mirror of
https://github.com/FreeRDP/FreeRDP.git
synced 2025-06-03 00:00:20 +00:00
cmake: refactoring of channels cmake scripts
This commit is contained in:
parent
e828feccb7
commit
e0693c8f4c
@ -1,9 +1,7 @@
|
|||||||
# FreeRDP: A Remote Desktop Protocol Client
|
# FreeRDP: A Remote Desktop Protocol Client
|
||||||
# FreeRDP cmake build script
|
# FreeRDP cmake build script
|
||||||
#
|
#
|
||||||
# Copyright 2011 O.S. Systems Software Ltda.
|
# Copyright 2012 Marc-Andre Moreau <marcandre.moreau@gmail.com>
|
||||||
# Copyright 2011 Otavio Salvador <otavio@ossystems.com.br>
|
|
||||||
# Copyright 2011 Marc-Andre Moreau <marcandre.moreau@gmail.com>
|
|
||||||
#
|
#
|
||||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
# you may not use this file except in compliance with the License.
|
# you may not use this file except in compliance with the License.
|
||||||
@ -17,22 +15,27 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
set(AUDIN_SRCS
|
set(MODULE_NAME "audin")
|
||||||
|
set(MODULE_PREFIX "CHANNEL_AUDIN_CLIENT")
|
||||||
|
|
||||||
|
set(${MODULE_PREFIX}_SRCS
|
||||||
audin_main.c
|
audin_main.c
|
||||||
audin_main.h)
|
audin_main.h)
|
||||||
|
|
||||||
include_directories(..)
|
include_directories(..)
|
||||||
|
|
||||||
add_library(audin ${AUDIN_SRCS})
|
add_library(${MODULE_NAME} ${${MODULE_PREFIX}_SRCS})
|
||||||
set_target_properties(audin PROPERTIES PREFIX "")
|
set_target_properties(${MODULE_NAME} PROPERTIES PREFIX "")
|
||||||
|
|
||||||
if(WITH_MONOLITHIC_BUILD)
|
if(WITH_MONOLITHIC_BUILD)
|
||||||
target_link_libraries(audin freerdp)
|
target_link_libraries(${MODULE_NAME} freerdp)
|
||||||
else()
|
else()
|
||||||
target_link_libraries(audin freerdp-utils)
|
target_link_libraries(${MODULE_NAME} freerdp-utils)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
install(TARGETS audin DESTINATION ${FREERDP_PLUGIN_PATH})
|
install(TARGETS ${MODULE_NAME} DESTINATION ${FREERDP_PLUGIN_PATH})
|
||||||
|
|
||||||
|
set_property(TARGET ${MODULE_NAME} PROPERTY FOLDER "Channels/${MODULE_NAME}/Client")
|
||||||
|
|
||||||
if(WITH_ALSA)
|
if(WITH_ALSA)
|
||||||
add_subdirectory(alsa)
|
add_subdirectory(alsa)
|
||||||
|
@ -1,9 +1,7 @@
|
|||||||
# FreeRDP: A Remote Desktop Protocol Client
|
# FreeRDP: A Remote Desktop Protocol Client
|
||||||
# FreeRDP cmake build script
|
# FreeRDP cmake build script
|
||||||
#
|
#
|
||||||
# Copyright 2011 O.S. Systems Software Ltda.
|
# Copyright 2012 Marc-Andre Moreau <marcandre.moreau@gmail.com>
|
||||||
# Copyright 2011 Otavio Salvador <otavio@ossystems.com.br>
|
|
||||||
# Copyright 2011 Marc-Andre Moreau <marcandre.moreau@gmail.com>
|
|
||||||
#
|
#
|
||||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
# you may not use this file except in compliance with the License.
|
# you may not use this file except in compliance with the License.
|
||||||
@ -17,20 +15,25 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
set(CLIPRDR_SRCS
|
set(MODULE_NAME "cliprdr")
|
||||||
|
set(MODULE_PREFIX "CHANNEL_CLIPRDR_CLIENT")
|
||||||
|
|
||||||
|
set(${MODULE_PREFIX}_SRCS
|
||||||
cliprdr_constants.h
|
cliprdr_constants.h
|
||||||
cliprdr_format.c
|
cliprdr_format.c
|
||||||
cliprdr_format.h
|
cliprdr_format.h
|
||||||
cliprdr_main.c
|
cliprdr_main.c
|
||||||
cliprdr_main.h)
|
cliprdr_main.h)
|
||||||
|
|
||||||
add_library(cliprdr ${CLIPRDR_SRCS})
|
add_library(${MODULE_NAME} ${${MODULE_PREFIX}_SRCS})
|
||||||
set_target_properties(cliprdr PROPERTIES PREFIX "")
|
set_target_properties(${MODULE_NAME} PROPERTIES PREFIX "")
|
||||||
|
|
||||||
if(WITH_MONOLITHIC_BUILD)
|
if(WITH_MONOLITHIC_BUILD)
|
||||||
target_link_libraries(cliprdr freerdp)
|
target_link_libraries(${MODULE_NAME} freerdp)
|
||||||
else()
|
else()
|
||||||
target_link_libraries(cliprdr freerdp-utils)
|
target_link_libraries(${MODULE_NAME} freerdp-utils)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
install(TARGETS cliprdr DESTINATION ${FREERDP_PLUGIN_PATH})
|
install(TARGETS ${MODULE_NAME} DESTINATION ${FREERDP_PLUGIN_PATH})
|
||||||
|
|
||||||
|
set_property(TARGET ${MODULE_NAME} PROPERTY FOLDER "Channels/${MODULE_NAME}/Client")
|
||||||
|
@ -1,9 +1,7 @@
|
|||||||
# FreeRDP: A Remote Desktop Protocol Client
|
# FreeRDP: A Remote Desktop Protocol Client
|
||||||
# FreeRDP cmake build script
|
# FreeRDP cmake build script
|
||||||
#
|
#
|
||||||
# Copyright 2011 O.S. Systems Software Ltda.
|
# Copyright 2012 Marc-Andre Moreau <marcandre.moreau@gmail.com>
|
||||||
# Copyright 2011 Otavio Salvador <otavio@ossystems.com.br>
|
|
||||||
# Copyright 2011 Marc-Andre Moreau <marcandre.moreau@gmail.com>
|
|
||||||
#
|
#
|
||||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
# you may not use this file except in compliance with the License.
|
# you may not use this file except in compliance with the License.
|
||||||
@ -17,22 +15,25 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
set(DRDYNVC_SRCS
|
set(MODULE_NAME "drdynvc")
|
||||||
|
set(MODULE_PREFIX "CHANNEL_DRDYNVC_CLIENT")
|
||||||
|
|
||||||
|
set(${MODULE_PREFIX}_SRCS
|
||||||
drdynvc_main.c
|
drdynvc_main.c
|
||||||
drdynvc_main.h
|
drdynvc_main.h
|
||||||
drdynvc_types.h
|
drdynvc_types.h
|
||||||
dvcman.c
|
dvcman.c
|
||||||
dvcman.h
|
dvcman.h)
|
||||||
)
|
|
||||||
|
|
||||||
add_library(drdynvc ${DRDYNVC_SRCS})
|
add_library(${MODULE_NAME} ${${MODULE_PREFIX}_SRCS})
|
||||||
set_target_properties(drdynvc PROPERTIES PREFIX "")
|
set_target_properties(${MODULE_NAME} PROPERTIES PREFIX "")
|
||||||
|
|
||||||
if(WITH_MONOLITHIC_BUILD)
|
if(WITH_MONOLITHIC_BUILD)
|
||||||
target_link_libraries(drdynvc freerdp winpr)
|
target_link_libraries(${MODULE_NAME} freerdp winpr)
|
||||||
else()
|
else()
|
||||||
target_link_libraries(drdynvc freerdp-utils winpr-synch)
|
target_link_libraries(${MODULE_NAME} freerdp-utils winpr-synch)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
install(TARGETS drdynvc DESTINATION ${FREERDP_PLUGIN_PATH})
|
install(TARGETS ${MODULE_NAME} DESTINATION ${FREERDP_PLUGIN_PATH})
|
||||||
|
|
||||||
|
set_property(TARGET ${MODULE_NAME} PROPERTY FOLDER "Channels/${MODULE_NAME}/Client")
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
# FreeRDP: A Remote Desktop Protocol Client
|
# FreeRDP: A Remote Desktop Protocol Client
|
||||||
# FreeRDP cmake build script
|
# FreeRDP cmake build script
|
||||||
#
|
#
|
||||||
# Copyright 2011 O.S. Systems Software Ltda.
|
|
||||||
# Copyright 2011 Otavio Salvador <otavio@ossystems.com.br>
|
|
||||||
# Copyright 2011 Marc-Andre Moreau <marcandre.moreau@gmail.com>
|
# Copyright 2011 Marc-Andre Moreau <marcandre.moreau@gmail.com>
|
||||||
#
|
#
|
||||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
@ -17,20 +15,24 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
set(RAIL_SRCS
|
set(MODULE_NAME "rail")
|
||||||
|
set(MODULE_PREFIX "CHANNEL_RAIL_CLIENT")
|
||||||
|
|
||||||
|
set(${MODULE_PREFIX}_SRCS
|
||||||
rail_main.c
|
rail_main.c
|
||||||
rail_main.h
|
rail_main.h
|
||||||
rail_orders.c
|
rail_orders.c
|
||||||
rail_orders.h)
|
rail_orders.h)
|
||||||
|
|
||||||
add_library(rail ${RAIL_SRCS})
|
add_library(${MODULE_NAME} ${${MODULE_PREFIX}_SRCS})
|
||||||
set_target_properties(rail PROPERTIES PREFIX "")
|
set_target_properties(${MODULE_NAME} PROPERTIES PREFIX "")
|
||||||
|
|
||||||
if(WITH_MONOLITHIC_BUILD)
|
if(WITH_MONOLITHIC_BUILD)
|
||||||
target_link_libraries(rail freerdp)
|
target_link_libraries(${MODULE_NAME} freerdp)
|
||||||
else()
|
else()
|
||||||
target_link_libraries(rail freerdp-utils)
|
target_link_libraries(${MODULE_NAME} freerdp-utils)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
install(TARGETS rail DESTINATION ${FREERDP_PLUGIN_PATH})
|
install(TARGETS ${MODULE_NAME} DESTINATION ${FREERDP_PLUGIN_PATH})
|
||||||
|
|
||||||
|
set_property(TARGET ${MODULE_NAME} PROPERTY FOLDER "Channels/${MODULE_NAME}/Client")
|
||||||
|
@ -1,9 +1,7 @@
|
|||||||
# FreeRDP: A Remote Desktop Protocol Client
|
# FreeRDP: A Remote Desktop Protocol Client
|
||||||
# FreeRDP cmake build script
|
# FreeRDP cmake build script
|
||||||
#
|
#
|
||||||
# Copyright 2011 O.S. Systems Software Ltda.
|
# Copyright 2012 Marc-Andre Moreau <marcandre.moreau@gmail.com>
|
||||||
# Copyright 2011 Otavio Salvador <otavio@ossystems.com.br>
|
|
||||||
# Copyright 2011 Marc-Andre Moreau <marcandre.moreau@gmail.com>
|
|
||||||
#
|
#
|
||||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
# you may not use this file except in compliance with the License.
|
# you may not use this file except in compliance with the License.
|
||||||
@ -17,7 +15,10 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
set(RDPDR_SRCS
|
set(MODULE_NAME "rdpdr")
|
||||||
|
set(MODULE_PREFIX "CHANNEL_RDPDR_CLIENT")
|
||||||
|
|
||||||
|
set(${MODULE_PREFIX}_SRCS
|
||||||
rdpdr_constants.h
|
rdpdr_constants.h
|
||||||
rdpdr_types.h
|
rdpdr_types.h
|
||||||
rdpdr_capabilities.c
|
rdpdr_capabilities.c
|
||||||
@ -29,19 +30,22 @@ set(RDPDR_SRCS
|
|||||||
rdpdr_main.c
|
rdpdr_main.c
|
||||||
rdpdr_main.h)
|
rdpdr_main.h)
|
||||||
|
|
||||||
add_library(rdpdr ${RDPDR_SRCS})
|
add_library(${MODULE_NAME} ${${MODULE_PREFIX}_SRCS})
|
||||||
set_target_properties(rdpdr PROPERTIES PREFIX "")
|
set_target_properties(${MODULE_NAME} PROPERTIES PREFIX "")
|
||||||
|
|
||||||
if(WITH_MONOLITHIC_BUILD)
|
if(WITH_MONOLITHIC_BUILD)
|
||||||
target_link_libraries(rdpdr freerdp)
|
target_link_libraries(${MODULE_NAME} freerdp)
|
||||||
else()
|
else()
|
||||||
target_link_libraries(rdpdr freerdp-utils)
|
target_link_libraries(${MODULE_NAME} freerdp-utils)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
install(TARGETS rdpdr DESTINATION ${FREERDP_PLUGIN_PATH})
|
install(TARGETS ${MODULE_NAME} DESTINATION ${FREERDP_PLUGIN_PATH})
|
||||||
|
|
||||||
|
set_property(TARGET ${MODULE_NAME} PROPERTY FOLDER "Channels/${MODULE_NAME}/Client")
|
||||||
|
|
||||||
add_subdirectory(disk)
|
add_subdirectory(disk)
|
||||||
add_subdirectory(printer)
|
add_subdirectory(printer)
|
||||||
|
|
||||||
if(NOT WIN32)
|
if(NOT WIN32)
|
||||||
add_subdirectory(parallel)
|
add_subdirectory(parallel)
|
||||||
add_subdirectory(serial)
|
add_subdirectory(serial)
|
||||||
|
@ -17,20 +17,23 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
set(RDPSND_SRCS
|
set(MODULE_NAME "rdpsnd")
|
||||||
|
set(MODULE_PREFIX "CHANNEL_RDPSND_CLIENT")
|
||||||
|
|
||||||
|
set(${MODULE_PREFIX}_SRCS
|
||||||
rdpsnd_main.c
|
rdpsnd_main.c
|
||||||
rdpsnd_main.h)
|
rdpsnd_main.h)
|
||||||
|
|
||||||
add_library(rdpsnd ${RDPSND_SRCS})
|
add_library(${MODULE_NAME} ${RDPSND_SRCS})
|
||||||
set_target_properties(rdpsnd PROPERTIES PREFIX "")
|
set_target_properties(${MODULE_NAME} PROPERTIES PREFIX "")
|
||||||
|
|
||||||
if(WITH_MONOLITHIC_BUILD)
|
if(WITH_MONOLITHIC_BUILD)
|
||||||
target_link_libraries(rdpsnd freerdp)
|
target_link_libraries(${MODULE_NAME} freerdp)
|
||||||
else()
|
else()
|
||||||
target_link_libraries(rdpsnd freerdp-utils)
|
target_link_libraries(${MODULE_NAME} freerdp-utils)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
install(TARGETS rdpsnd DESTINATION ${FREERDP_PLUGIN_PATH})
|
install(TARGETS ${MODULE_NAME} DESTINATION ${FREERDP_PLUGIN_PATH})
|
||||||
|
|
||||||
if(WITH_ALSA)
|
if(WITH_ALSA)
|
||||||
add_subdirectory(alsa)
|
add_subdirectory(alsa)
|
||||||
@ -41,6 +44,5 @@ if(WITH_PULSEAUDIO)
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(WITH_MACAUDIO)
|
if(WITH_MACAUDIO)
|
||||||
add_subdirectory(mac_audio)
|
add_subdirectory(MacAudio)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
@ -2,9 +2,7 @@
|
|||||||
# FreeRDP cmake build script
|
# FreeRDP cmake build script
|
||||||
#
|
#
|
||||||
# Copyright 2012 Laxmikant Rashinkar <LK.Rashinkar@gmail.com>
|
# Copyright 2012 Laxmikant Rashinkar <LK.Rashinkar@gmail.com>
|
||||||
# Copyright 2011 O.S. Systems Software Ltda.
|
# Copyright 2012 Marc-Andre Moreau <marcandre.moreau@gmail.com>
|
||||||
# Copyright 2011 Otavio Salvador <otavio@ossystems.com.br>
|
|
||||||
# Copyright 2011 Marc-Andre Moreau <marcandre.moreau@gmail.com>
|
|
||||||
#
|
#
|
||||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
# you may not use this file except in compliance with the License.
|
# you may not use this file except in compliance with the License.
|
@ -15,6 +15,7 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
|
set(MODULE_NAME "rdpsnd")
|
||||||
set(MODULE_PREFIX "CHANNEL_RDPSND_SERVER")
|
set(MODULE_PREFIX "CHANNEL_RDPSND_SERVER")
|
||||||
|
|
||||||
set(${MODULE_PREFIX}_SRCS
|
set(${MODULE_PREFIX}_SRCS
|
||||||
@ -27,3 +28,4 @@ else()
|
|||||||
set(${MODULE_PREFIX}_LIBS freerdp-utils PARENT_SCOPE)
|
set(${MODULE_PREFIX}_LIBS freerdp-utils PARENT_SCOPE)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
set_property(TARGET ${MODULE_NAME} PROPERTY FOLDER "Channels/${MODULE_NAME}/Server")
|
||||||
|
@ -1,9 +1,7 @@
|
|||||||
# FreeRDP: A Remote Desktop Protocol Client
|
# FreeRDP: A Remote Desktop Protocol Client
|
||||||
# FreeRDP cmake build script
|
# FreeRDP cmake build script
|
||||||
#
|
#
|
||||||
# Copyright 2011 O.S. Systems Software Ltda.
|
# Copyright 2012 Marc-Andre Moreau <marcandre.moreau@gmail.com>
|
||||||
# Copyright 2011 Otavio Salvador <otavio@ossystems.com.br>
|
|
||||||
# Copyright 2011 Marc-Andre Moreau <marcandre.moreau@gmail.com>
|
|
||||||
#
|
#
|
||||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
# you may not use this file except in compliance with the License.
|
# you may not use this file except in compliance with the License.
|
||||||
@ -17,17 +15,20 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
set(SKEL_SRCS
|
set(MODULE_NAME "sample")
|
||||||
|
set(MODULE_PREFIX "CHANNEL_SAMPLE_CLIENT")
|
||||||
|
|
||||||
|
set(${MODULE_PREFIX}_SRCS
|
||||||
skel_main.c
|
skel_main.c
|
||||||
skel_main.h)
|
skel_main.h)
|
||||||
|
|
||||||
add_library(skel ${SKEL_SRCS})
|
add_library(${MODULE_NAME} ${${MODULE_PREFIX}_SRCS})
|
||||||
set_target_properties(skel PROPERTIES PREFIX "")
|
set_target_properties(${MODULE_NAME} PROPERTIES PREFIX "")
|
||||||
|
|
||||||
if(WITH_MONOLITHIC_BUILD)
|
if(WITH_MONOLITHIC_BUILD)
|
||||||
target_link_libraries(skel freerdp)
|
target_link_libraries(${MODULE_NAME} freerdp)
|
||||||
else()
|
else()
|
||||||
target_link_libraries(skel freerdp-utils)
|
target_link_libraries(${MODULE_NAME} freerdp-utils)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
install(TARGETS skel DESTINATION ${FREERDP_PLUGIN_PATH})
|
install(TARGETS ${MODULE_NAME} DESTINATION ${FREERDP_PLUGIN_PATH})
|
||||||
|
@ -15,8 +15,8 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
set(MODULE_NAME "freerdp-server-channels")
|
set(MODULE_NAME "freerdp-channels-server")
|
||||||
set(MODULE_PREFIX "FREERDP_SERVER_CHANNELS")
|
set(MODULE_PREFIX "FREERDP_CHANNELS_SERVER")
|
||||||
|
|
||||||
foreach(_MODULE_NAME ${CHANNEL_BUILTIN_SERVER_MODULES})
|
foreach(_MODULE_NAME ${CHANNEL_BUILTIN_SERVER_MODULES})
|
||||||
string(TOUPPER "CHANNEL_${_MODULE_NAME}" _MODULE_PREFIX)
|
string(TOUPPER "CHANNEL_${_MODULE_NAME}" _MODULE_PREFIX)
|
||||||
@ -35,3 +35,5 @@ set_target_properties(${MODULE_NAME} PROPERTIES VERSION ${FREERDP_VERSION_FULL}
|
|||||||
|
|
||||||
target_link_libraries(${MODULE_NAME} ${CHANNEL_SERVER_LIBS})
|
target_link_libraries(${MODULE_NAME} ${CHANNEL_SERVER_LIBS})
|
||||||
install(TARGETS ${MODULE_NAME} DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
install(TARGETS ${MODULE_NAME} DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
||||||
|
|
||||||
|
set_property(TARGET ${MODULE_NAME} PROPERTY FOLDER "Channels/Server")
|
||||||
|
@ -1,9 +1,7 @@
|
|||||||
# FreeRDP: A Remote Desktop Protocol Client
|
# FreeRDP: A Remote Desktop Protocol Client
|
||||||
# FreeRDP cmake build script
|
# FreeRDP cmake build script
|
||||||
#
|
#
|
||||||
# Copyright 2011 O.S. Systems Software Ltda.
|
# Copyright 2012 Marc-Andre Moreau <marcandre.moreau@gmail.com>
|
||||||
# Copyright 2011 Otavio Salvador <otavio@ossystems.com.br>
|
|
||||||
# Copyright 2011 Marc-Andre Moreau <marcandre.moreau@gmail.com>
|
|
||||||
# Copyright 2012 Hewlett-Packard Development Company, L.P.
|
# Copyright 2012 Hewlett-Packard Development Company, L.P.
|
||||||
#
|
#
|
||||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
@ -18,7 +16,10 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
set(TSMF_SRCS
|
set(MODULE_NAME "tsmf")
|
||||||
|
set(MODULE_PREFIX "CHANNEL_TSMF_CLIENT")
|
||||||
|
|
||||||
|
set(${MODULE_PREFIX}_SRCS
|
||||||
tsmf_audio.c
|
tsmf_audio.c
|
||||||
tsmf_audio.h
|
tsmf_audio.h
|
||||||
tsmf_codec.c
|
tsmf_codec.c
|
||||||
@ -36,25 +37,27 @@ set(TSMF_SRCS
|
|||||||
|
|
||||||
include_directories(..)
|
include_directories(..)
|
||||||
|
|
||||||
add_library(tsmf ${TSMF_SRCS})
|
add_library(${MODULE_NAME} ${${MODULE_PREFIX}_SRCS})
|
||||||
set_target_properties(tsmf PROPERTIES PREFIX "")
|
set_target_properties(${MODULE_NAME} PROPERTIES PREFIX "")
|
||||||
|
|
||||||
if(WITH_MONOLITHIC_BUILD)
|
if(WITH_MONOLITHIC_BUILD)
|
||||||
target_link_libraries(tsmf freerdp)
|
target_link_libraries(${MODULE_NAME} freerdp)
|
||||||
else()
|
else()
|
||||||
target_link_libraries(tsmf freerdp-utils)
|
target_link_libraries(${MODULE_NAME} freerdp-utils)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
install(TARGETS tsmf DESTINATION ${FREERDP_PLUGIN_PATH})
|
install(TARGETS ${MODULE_NAME} DESTINATION ${FREERDP_PLUGIN_PATH})
|
||||||
|
|
||||||
|
set_property(TARGET ${MODULE_NAME} PROPERTY FOLDER "Channels/${MODULE_NAME}/Client")
|
||||||
|
|
||||||
if(WITH_FFMPEG)
|
if(WITH_FFMPEG)
|
||||||
add_subdirectory(ffmpeg)
|
add_subdirectory(ffmpeg)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(WITH_XRANDR)
|
if(WITH_XRANDR)
|
||||||
if(GSTREAMER_FOUND)
|
if(GSTREAMER_FOUND)
|
||||||
add_subdirectory(gstreamer)
|
add_subdirectory(gstreamer)
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(WITH_ALSA)
|
if(WITH_ALSA)
|
||||||
@ -64,4 +67,3 @@ endif()
|
|||||||
if(WITH_PULSEAUDIO)
|
if(WITH_PULSEAUDIO)
|
||||||
add_subdirectory(pulse)
|
add_subdirectory(pulse)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
@ -20,5 +20,3 @@ add_subdirectory(libusb)
|
|||||||
if(WITH_CLIENT_CHANNELS)
|
if(WITH_CLIENT_CHANNELS)
|
||||||
add_subdirectory(client)
|
add_subdirectory(client)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
||||||
|
@ -16,7 +16,10 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
set(URBDRC_SRCS
|
set(MODULE_NAME "urbdrc")
|
||||||
|
set(MODULE_PREFIX "CHANNEL_URBDRC_CLIENT")
|
||||||
|
|
||||||
|
set(${MODULE_PREFIX}_SRCS
|
||||||
searchman.c
|
searchman.c
|
||||||
searchman.h
|
searchman.h
|
||||||
isoch_queue.c
|
isoch_queue.c
|
||||||
@ -29,14 +32,22 @@ set(URBDRC_SRCS
|
|||||||
|
|
||||||
include_directories(..)
|
include_directories(..)
|
||||||
|
|
||||||
add_library(urbdrc ${URBDRC_SRCS})
|
add_library(${MODULE_NAME} ${URBDRC_SRCS})
|
||||||
set_target_properties(urbdrc PROPERTIES PREFIX "")
|
set_target_properties(${MODULE_NAME} PROPERTIES PREFIX "")
|
||||||
|
|
||||||
target_link_libraries(urbdrc udev)
|
set(${MODULE_PREFIX}_LIBS
|
||||||
target_link_libraries(urbdrc dbus-glib-1)
|
dbus-glib-1
|
||||||
target_link_libraries(urbdrc pthread)
|
udev
|
||||||
target_link_libraries(urbdrc uuid)
|
uuid)
|
||||||
target_link_libraries(urbdrc freerdp-utils)
|
|
||||||
|
|
||||||
install(TARGETS urbdrc DESTINATION ${FREERDP_PLUGIN_PATH})
|
if(WITH_MONOLITHIC_BUILD)
|
||||||
|
set(${MODULE_PREFIX}_LIBS ${${MODULE_PREFIX}_LIBS} freerdp)
|
||||||
|
target_link_libraries(${MODULE_NAME} ${MODULE_PREFIX}_LIBS)
|
||||||
|
else()
|
||||||
|
set(${MODULE_PREFIX}_LIBS ${${MODULE_PREFIX}_LIBS} freerdp-utils)
|
||||||
|
target_link_libraries(${MODULE_NAME} ${MODULE_PREFIX}_LIBS)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
install(TARGETS ${MODULE_NAME} DESTINATION ${FREERDP_PLUGIN_PATH})
|
||||||
|
|
||||||
|
set_property(TARGET ${MODULE_NAME} PROPERTY FOLDER "Channels/${MODULE_NAME}/Client")
|
||||||
|
@ -15,11 +15,14 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
|
set(MODULE_NAME "freerdp")
|
||||||
|
set(MODULE_PREFIX "FREERDP")
|
||||||
|
|
||||||
if(WITH_MONOLITHIC_BUILD)
|
if(WITH_MONOLITHIC_BUILD)
|
||||||
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
|
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(FREERDP_MODULES
|
set(${MODULE_PREFIX}_SUBMODULES
|
||||||
utils
|
utils
|
||||||
gdi
|
gdi
|
||||||
rail
|
rail
|
||||||
@ -30,21 +33,23 @@ set(FREERDP_MODULES
|
|||||||
locale
|
locale
|
||||||
core)
|
core)
|
||||||
|
|
||||||
foreach(FREERDP_MODULE ${FREERDP_MODULES})
|
foreach(${MODULE_PREFIX}_SUBMODULE ${FREERDP_SUBMODULES})
|
||||||
add_subdirectory(${FREERDP_MODULE})
|
add_subdirectory(${${MODULE_PREFIX}_SUBMODULE})
|
||||||
endforeach()
|
endforeach()
|
||||||
|
|
||||||
if(WITH_MONOLITHIC_BUILD)
|
if(WITH_MONOLITHIC_BUILD)
|
||||||
|
|
||||||
foreach(FREERDP_MODULE ${FREERDP_MODULES})
|
foreach(${MODULE_PREFIX}_SUBMODULE ${${MODULE_PREFIX}_MODULES})
|
||||||
set(FREERDP_OBJECTS ${FREERDP_OBJECTS} "$<TARGET_OBJECTS:freerdp-${FREERDP_MODULE}>")
|
set(${MODULE_PREFIX}_OBJECTS ${${MODULE_PREFIX}_OBJECTS} "$<TARGET_OBJECTS:${MODULE_PREFIX}-${${MODULE_PREFIX}_SUBMODULE}>")
|
||||||
endforeach()
|
endforeach()
|
||||||
|
|
||||||
add_library(freerdp ${FREERDP_OBJECTS})
|
add_library(${MODULE_NAME} ${${MODULE_PREFIX}_OBJECTS})
|
||||||
set_target_properties(freerdp PROPERTIES VERSION ${FREERDP_VERSION_FULL} SOVERSION ${FREERDP_VERSION} PREFIX "lib")
|
|
||||||
|
|
||||||
target_link_libraries(freerdp ${FREERDP_LIBS})
|
set_target_properties(${MODULE_NAME} PROPERTIES LINKER_LANGUAGE C)
|
||||||
install(TARGETS freerdp DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
set_target_properties(${MODULE_NAME} PROPERTIES VERSION ${FREERDP_VERSION_FULL} SOVERSION ${FREERDP_VERSION} PREFIX "lib")
|
||||||
|
|
||||||
|
target_link_libraries(${MODULE_NAME} ${${MODULE_PREFIX}_LIBS})
|
||||||
|
install(TARGETS ${MODULE_NAME} DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
||||||
|
|
||||||
|
set_property(TARGET ${MODULE_NAME} PROPERTY FOLDER "FreeRDP/libfreerdp")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set_property(TARGET ${MODULE_NAME} PROPERTY FOLDER "FreeRDP/libfreerdp")
|
|
||||||
|
@ -26,14 +26,14 @@ add_executable(${MODULE_NAME} ${${MODULE_PREFIX}_SRCS})
|
|||||||
if(WITH_MONOLITHIC_BUILD)
|
if(WITH_MONOLITHIC_BUILD)
|
||||||
target_link_libraries(${MODULE_NAME}
|
target_link_libraries(${MODULE_NAME}
|
||||||
freerdp
|
freerdp
|
||||||
freerdp-server)
|
freerdp-channels-server)
|
||||||
else()
|
else()
|
||||||
target_link_libraries(${MODULE_NAME}
|
target_link_libraries(${MODULE_NAME}
|
||||||
freerdp-core
|
freerdp-core
|
||||||
freerdp-utils
|
freerdp-utils
|
||||||
freerdp-codec
|
freerdp-codec
|
||||||
freerdp-channels
|
freerdp-channels
|
||||||
freerdp-server-channels)
|
freerdp-channels-server)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set_property(TARGET ${MODULE_NAME} PROPERTY FOLDER "Server/Sample")
|
set_property(TARGET ${MODULE_NAME} PROPERTY FOLDER "Server/Sample")
|
||||||
|
@ -89,11 +89,11 @@ typedef unsigned __int3264 ULONG_PTR, *PULONG_PTR;
|
|||||||
typedef signed int LONG32;
|
typedef signed int LONG32;
|
||||||
typedef signed __int64 LONG64;
|
typedef signed __int64 LONG64;
|
||||||
|
|
||||||
typedef CHAR* PSTR, *LPSTR;
|
typedef CHAR *PSTR, *LPSTR, *LPCH;
|
||||||
typedef const CHAR *LPCSTR,*PCSTR;
|
typedef const CHAR *LPCSTR, *PCSTR, *LPCCH;
|
||||||
|
|
||||||
typedef WCHAR* LPWSTR, *PWSTR;
|
typedef WCHAR *LPWSTR, *PWSTR, *LPWCH;
|
||||||
typedef const WCHAR *LPCWSTR,*PCWSTR;
|
typedef const WCHAR *LPCWSTR, *PCWSTR, *LPCWCH;
|
||||||
|
|
||||||
typedef CHAR *LPSTR, *LPCH;
|
typedef CHAR *LPSTR, *LPCH;
|
||||||
typedef WCHAR *LPWSTR, *LPWCH;
|
typedef WCHAR *LPWSTR, *LPWCH;
|
||||||
|
@ -15,6 +15,9 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
|
set(MODULE_NAME "winpr")
|
||||||
|
set(MODULE_PREFIX "WINPR")
|
||||||
|
|
||||||
if (APPLE)
|
if (APPLE)
|
||||||
# flat_namespace should be avoided, but is required for -undefined warning. Since WinPR currently has
|
# flat_namespace should be avoided, but is required for -undefined warning. Since WinPR currently has
|
||||||
# a lot of undefined symbols in use, use this hack until they're filled out.
|
# a lot of undefined symbols in use, use this hack until they're filled out.
|
||||||
@ -30,25 +33,28 @@ file(GLOB FILEPATHS RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} "*/${FILENAME}")
|
|||||||
|
|
||||||
foreach(FILEPATH ${FILEPATHS})
|
foreach(FILEPATH ${FILEPATHS})
|
||||||
if(${FILEPATH} MATCHES "^([^/]*)//${FILENAME}")
|
if(${FILEPATH} MATCHES "^([^/]*)//${FILENAME}")
|
||||||
string(REGEX REPLACE "^([^/]*)//${FILENAME}" "\\1" WINPR_MODULE ${FILEPATH})
|
string(REGEX REPLACE "^([^/]*)//${FILENAME}" "\\1" ${MODULE_PREFIX}_SUBMODULE ${FILEPATH})
|
||||||
set(WINPR_MODULES ${WINPR_MODULES} ${WINPR_MODULE})
|
set(${MODULE_PREFIX}_SUBMODULES ${${MODULE_PREFIX}_SUBMODULES} ${${MODULE_PREFIX}_SUBMODULE})
|
||||||
endif()
|
endif()
|
||||||
endforeach(FILEPATH)
|
endforeach(FILEPATH)
|
||||||
|
|
||||||
foreach(WINPR_MODULE ${WINPR_MODULES})
|
foreach(${MODULE_PREFIX}_SUBMODULE ${${MODULE_PREFIX}_SUBMODULES})
|
||||||
add_subdirectory(${WINPR_MODULE})
|
add_subdirectory(${${MODULE_PREFIX}_SUBMODULE})
|
||||||
endforeach()
|
endforeach()
|
||||||
|
|
||||||
if(WITH_MONOLITHIC_BUILD)
|
if(WITH_MONOLITHIC_BUILD)
|
||||||
|
|
||||||
foreach(WINPR_MODULE ${WINPR_MODULES})
|
foreach(${MODULE_PREFIX}_SUBMODULE ${${MODULE_PREFIX}_SUBMODULES})
|
||||||
set(WINPR_OBJECTS ${WINPR_OBJECTS} "$<TARGET_OBJECTS:winpr-${WINPR_MODULE}>")
|
set(${MODULE_PREFIX}_OBJECTS ${${MODULE_PREFIX}_OBJECTS} "$<TARGET_OBJECTS:${MODULE_NAME}-${${MODULE_PREFIX}_SUBMODULE}>")
|
||||||
endforeach()
|
endforeach()
|
||||||
|
|
||||||
add_library(winpr ${WINPR_OBJECTS})
|
add_library(${MODULE_NAME} ${${MODULE_PREFIX}_OBJECTS})
|
||||||
set_target_properties(winpr PROPERTIES VERSION ${WINPR_VERSION_FULL} SOVERSION ${WINPR_VERSION} PREFIX "lib")
|
|
||||||
|
|
||||||
target_link_libraries(winpr ${WINPR_LIBS})
|
set_target_properties(${MODULE_NAME} PROPERTIES LINKER_LANGUAGE C)
|
||||||
install(TARGETS winpr DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
set_target_properties(${MODULE_NAME} PROPERTIES VERSION ${WINPR_VERSION_FULL} SOVERSION ${WINPR_VERSION} PREFIX "lib")
|
||||||
|
|
||||||
|
target_link_libraries(${MODULE_NAME} ${WINPR_LIBS})
|
||||||
|
install(TARGETS ${MODULE_NAME} DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
||||||
|
|
||||||
|
set_property(TARGET ${MODULE_NAME} PROPERTY FOLDER "WinPR/libwinpr")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user