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")
|
|
|
|
|
2014-09-12 02:19:53 +04:00
|
|
|
freerdp_definition_add(-DEXT_PATH="${FREERDP_EXTENSION_PATH}")
|
2012-02-21 09:56:55 +04:00
|
|
|
|
2014-09-12 02:19:53 +04:00
|
|
|
freerdp_include_directory_add(${OPENSSL_INCLUDE_DIR})
|
|
|
|
freerdp_include_directory_add(${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
|
2015-03-17 21:54:16 +03:00
|
|
|
${${MODULE_PREFIX}_GATEWAY_DIR}/rdg.c
|
|
|
|
${${MODULE_PREFIX}_GATEWAY_DIR}/rdg.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
|
2015-03-19 13:05:16 +03:00
|
|
|
errbase.c
|
|
|
|
errconnect.c
|
2011-08-08 07:59:28 +04:00
|
|
|
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-09-10 08:42:41 +04:00
|
|
|
codecs.c
|
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})
|
|
|
|
|
2014-09-12 02:19:53 +04:00
|
|
|
freerdp_module_add(${${MODULE_PREFIX}_SRCS})
|
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)
|
2014-09-12 02:19:53 +04:00
|
|
|
freerdp_library_add(ws2_32)
|
2011-08-17 01:40:29 +04:00
|
|
|
else()
|
2014-09-12 02:19:53 +04:00
|
|
|
freerdp_library_add(${ZLIB_LIBRARIES})
|
2011-08-17 01:40:29 +04:00
|
|
|
endif()
|
|
|
|
|
2014-09-12 02:19:53 +04:00
|
|
|
freerdp_library_add(${OPENSSL_LIBRARIES})
|
2015-03-30 18:50:47 +03:00
|
|
|
|
|
|
|
if(BUILD_TESTING)
|
|
|
|
add_subdirectory(test)
|
|
|
|
endif()
|