2012-10-09 07:02:04 +04:00
|
|
|
# FreeRDP: A Remote Desktop Protocol Implementation
|
2011-07-02 21:58:55 +04:00
|
|
|
# libfreerdp-core cmake build script
|
|
|
|
#
|
2012-08-13 06:16:26 +04:00
|
|
|
# Copyright 2012 Marc-Andre Moreau <marcandre.moreau@gmail.com>
|
2011-07-02 21:58:55 +04:00
|
|
|
#
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
# You may obtain a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
2011-07-01 06:20:39 +04:00
|
|
|
|
2012-10-01 06:58:59 +04:00
|
|
|
set(MODULE_NAME "freerdp-core")
|
|
|
|
set(MODULE_PREFIX "FREERDP_CORE")
|
|
|
|
|
2012-07-03 11:51:00 +04:00
|
|
|
add_definitions(-DEXT_PATH="${FREERDP_EXTENSION_PATH}")
|
2012-02-21 09:56:55 +04:00
|
|
|
|
2011-07-31 05:22:09 +04:00
|
|
|
include_directories(${OPENSSL_INCLUDE_DIR})
|
|
|
|
include_directories(${ZLIB_INCLUDE_DIRS})
|
2011-07-01 06:20:39 +04:00
|
|
|
|
2012-11-28 03:52:08 +04:00
|
|
|
set(${MODULE_PREFIX}_GATEWAY_DIR "gateway")
|
|
|
|
|
|
|
|
set(${MODULE_PREFIX}_GATEWAY_SRCS
|
|
|
|
${${MODULE_PREFIX}_GATEWAY_DIR}/tsg.c
|
|
|
|
${${MODULE_PREFIX}_GATEWAY_DIR}/tsg.h
|
2012-11-28 09:32:12 +04:00
|
|
|
${${MODULE_PREFIX}_GATEWAY_DIR}/rpc.c
|
|
|
|
${${MODULE_PREFIX}_GATEWAY_DIR}/rpc.h
|
|
|
|
${${MODULE_PREFIX}_GATEWAY_DIR}/rpc_bind.c
|
|
|
|
${${MODULE_PREFIX}_GATEWAY_DIR}/rpc_bind.h
|
2012-11-28 21:47:04 +04:00
|
|
|
${${MODULE_PREFIX}_GATEWAY_DIR}/rpc_client.c
|
|
|
|
${${MODULE_PREFIX}_GATEWAY_DIR}/rpc_client.h
|
2012-11-28 09:32:12 +04:00
|
|
|
${${MODULE_PREFIX}_GATEWAY_DIR}/rpc_fault.c
|
|
|
|
${${MODULE_PREFIX}_GATEWAY_DIR}/rpc_fault.h
|
2012-11-28 03:52:08 +04:00
|
|
|
${${MODULE_PREFIX}_GATEWAY_DIR}/rts.c
|
|
|
|
${${MODULE_PREFIX}_GATEWAY_DIR}/rts.h
|
2012-11-28 07:26:57 +04:00
|
|
|
${${MODULE_PREFIX}_GATEWAY_DIR}/rts_signature.c
|
|
|
|
${${MODULE_PREFIX}_GATEWAY_DIR}/rts_signature.h
|
2012-11-28 03:52:08 +04:00
|
|
|
${${MODULE_PREFIX}_GATEWAY_DIR}/ntlm.c
|
|
|
|
${${MODULE_PREFIX}_GATEWAY_DIR}/ntlm.h
|
|
|
|
${${MODULE_PREFIX}_GATEWAY_DIR}/http.c
|
|
|
|
${${MODULE_PREFIX}_GATEWAY_DIR}/http.h
|
2012-11-28 07:03:05 +04:00
|
|
|
${${MODULE_PREFIX}_GATEWAY_DIR}/ncacn_http.c
|
|
|
|
${${MODULE_PREFIX}_GATEWAY_DIR}/ncacn_http.h)
|
2012-11-28 03:52:08 +04:00
|
|
|
|
2012-10-01 06:58:59 +04:00
|
|
|
set(${MODULE_PREFIX}_SRCS
|
2014-03-10 19:41:10 +04:00
|
|
|
bulk.c
|
|
|
|
bulk.h
|
2011-07-25 21:52:48 +04:00
|
|
|
activation.c
|
|
|
|
activation.h
|
2011-07-05 01:05:58 +04:00
|
|
|
gcc.c
|
|
|
|
gcc.h
|
2011-07-04 06:47:35 +04:00
|
|
|
mcs.c
|
|
|
|
mcs.h
|
2012-11-15 06:19:17 +04:00
|
|
|
nla.c
|
|
|
|
nla.h
|
2011-07-03 20:42:35 +04:00
|
|
|
nego.c
|
|
|
|
nego.h
|
2011-07-12 02:46:36 +04:00
|
|
|
info.c
|
|
|
|
info.h
|
2011-07-28 04:14:12 +04:00
|
|
|
input.c
|
|
|
|
input.h
|
2011-07-12 04:46:03 +04:00
|
|
|
license.c
|
|
|
|
license.h
|
2011-08-08 07:59:28 +04:00
|
|
|
errinfo.c
|
|
|
|
errinfo.h
|
2011-07-12 02:46:36 +04:00
|
|
|
security.c
|
|
|
|
security.h
|
2011-07-07 21:37:48 +04:00
|
|
|
settings.c
|
2011-07-25 09:45:25 +04:00
|
|
|
orders.c
|
|
|
|
orders.h
|
2011-07-28 08:38:25 +04:00
|
|
|
freerdp.c
|
2011-10-21 01:28:59 +04:00
|
|
|
graphics.c
|
2014-02-12 00:42:28 +04:00
|
|
|
client.c
|
|
|
|
client.h
|
2014-02-16 02:42:59 +04:00
|
|
|
server.c
|
|
|
|
server.h
|
2014-05-26 20:30:58 +04:00
|
|
|
metrics.c
|
2011-07-20 00:30:05 +04:00
|
|
|
capabilities.c
|
|
|
|
capabilities.h
|
2011-07-13 02:18:24 +04:00
|
|
|
certificate.c
|
|
|
|
certificate.h
|
2011-07-10 09:48:10 +04:00
|
|
|
connection.c
|
|
|
|
connection.h
|
2011-07-12 04:46:03 +04:00
|
|
|
redirection.c
|
|
|
|
redirection.h
|
2014-01-24 03:01:31 +04:00
|
|
|
autodetect.c
|
|
|
|
autodetect.h
|
2014-01-24 07:23:47 +04:00
|
|
|
heartbeat.c
|
|
|
|
heartbeat.h
|
2014-01-24 03:01:31 +04:00
|
|
|
multitransport.c
|
|
|
|
multitransport.h
|
2012-02-16 10:53:58 +04:00
|
|
|
timezone.c
|
|
|
|
timezone.h
|
2011-07-10 23:34:43 +04:00
|
|
|
rdp.c
|
|
|
|
rdp.h
|
2011-07-03 23:34:15 +04:00
|
|
|
tcp.c
|
|
|
|
tcp.h
|
2011-07-03 01:10:10 +04:00
|
|
|
tpdu.c
|
|
|
|
tpdu.h
|
2011-07-02 22:40:03 +04:00
|
|
|
tpkt.c
|
|
|
|
tpkt.h
|
2011-08-01 20:19:39 +04:00
|
|
|
fastpath.c
|
|
|
|
fastpath.h
|
2011-08-23 17:01:19 +04:00
|
|
|
surface.c
|
|
|
|
surface.h
|
2011-07-03 06:59:07 +04:00
|
|
|
transport.c
|
|
|
|
transport.h
|
2011-07-25 09:45:25 +04:00
|
|
|
update.c
|
|
|
|
update.h
|
2013-01-25 02:11:43 +04:00
|
|
|
message.c
|
|
|
|
message.h
|
2014-02-12 00:42:28 +04:00
|
|
|
channels.c
|
|
|
|
channels.h
|
2011-08-09 10:32:50 +04:00
|
|
|
window.c
|
|
|
|
window.h
|
2011-08-18 12:06:32 +04:00
|
|
|
listener.c
|
|
|
|
listener.h
|
|
|
|
peer.c
|
2012-08-13 06:16:26 +04:00
|
|
|
peer.h)
|
2011-07-01 06:20:39 +04:00
|
|
|
|
2012-11-28 03:52:08 +04:00
|
|
|
set(${MODULE_PREFIX}_SRCS ${${MODULE_PREFIX}_SRCS} ${${MODULE_PREFIX}_GATEWAY_SRCS})
|
|
|
|
|
2012-10-13 23:20:39 +04:00
|
|
|
add_complex_library(MODULE ${MODULE_NAME} TYPE "OBJECT"
|
|
|
|
MONOLITHIC ${MONOLITHIC_BUILD}
|
2014-04-23 12:16:02 +04:00
|
|
|
SOURCES ${${MODULE_PREFIX}_SRCS}
|
|
|
|
EXPORT)
|
2011-07-01 06:20:39 +04:00
|
|
|
|
2014-04-29 11:42:18 +04:00
|
|
|
if (WITH_LIBRARY_VERSIONING)
|
|
|
|
set_target_properties(${MODULE_NAME} PROPERTIES VERSION ${FREERDP_VERSION} SOVERSION ${FREERDP_API_VERSION})
|
|
|
|
endif()
|
|
|
|
set_target_properties(${MODULE_NAME} PROPERTIES PREFIX "lib")
|
2011-08-17 07:54:42 +04:00
|
|
|
|
2011-08-17 01:40:29 +04:00
|
|
|
if(WIN32)
|
2012-10-01 06:58:59 +04:00
|
|
|
set(${MODULE_PREFIX}_LIBS ${${MODULE_PREFIX}_LIBS} ws2_32)
|
2011-08-17 01:40:29 +04:00
|
|
|
else()
|
2012-10-01 06:58:59 +04:00
|
|
|
set(${MODULE_PREFIX}_LIBS ${${MODULE_PREFIX}_LIBS} ${ZLIB_LIBRARIES})
|
2011-08-17 01:40:29 +04:00
|
|
|
endif()
|
|
|
|
|
2012-10-01 06:58:59 +04:00
|
|
|
set(${MODULE_PREFIX}_LIBS ${${MODULE_PREFIX}_LIBS} ${OPENSSL_LIBRARIES})
|
2012-08-13 06:16:26 +04:00
|
|
|
|
2012-10-13 23:20:39 +04:00
|
|
|
set_complex_link_libraries(VARIABLE ${MODULE_PREFIX}_LIBS
|
|
|
|
MONOLITHIC ${MONOLITHIC_BUILD} INTERNAL
|
|
|
|
MODULE freerdp
|
2012-11-26 21:38:28 +04:00
|
|
|
MODULES freerdp-crypto freerdp-codec freerdp-locale freerdp-common freerdp-utils)
|
2012-10-13 23:20:39 +04:00
|
|
|
|
2014-07-10 02:03:20 +04:00
|
|
|
set(${MODULE_PREFIX}_LIBS ${${MODULE_PREFIX}_LIBS} winpr)
|
2012-10-14 01:30:59 +04:00
|
|
|
|
2012-10-09 06:55:06 +04:00
|
|
|
if(MONOLITHIC_BUILD)
|
2012-10-01 06:58:59 +04:00
|
|
|
set(FREERDP_LIBS ${FREERDP_LIBS} ${${MODULE_PREFIX}_LIBS} PARENT_SCOPE)
|
2012-10-13 23:20:39 +04:00
|
|
|
else()
|
2012-10-01 06:58:59 +04:00
|
|
|
target_link_libraries(${MODULE_NAME} ${${MODULE_PREFIX}_LIBS})
|
2013-10-29 07:06:39 +04:00
|
|
|
install(TARGETS ${MODULE_NAME} DESTINATION ${CMAKE_INSTALL_LIBDIR} EXPORT FreeRDPTargets)
|
2012-08-14 06:53:26 +04:00
|
|
|
endif()
|
2012-10-01 06:58:59 +04:00
|
|
|
|
2012-10-04 17:42:23 +04:00
|
|
|
set_property(TARGET ${MODULE_NAME} PROPERTY FOLDER "FreeRDP/libfreerdp")
|
2012-10-29 23:02:35 +04:00
|
|
|
|
|
|
|
|