2019-05-17 15:32:54 +03:00
|
|
|
# FreeRDP: A Remote Desktop Protocol Implementation
|
|
|
|
# FreeRDP Proxy Server
|
|
|
|
#
|
|
|
|
# Copyright 2019 Mati Shabtay <matishabtay@gmail.com>
|
|
|
|
# Copyright 2019 Kobi Mizrachi <kmizrachi18@gmail.com>
|
2019-08-19 16:05:59 +03:00
|
|
|
# Copyright 2019 Idan Freiberg <speidy@gmail.com>
|
|
|
|
|
2019-05-17 15:32:54 +03: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.
|
|
|
|
|
|
|
|
set(MODULE_NAME "freerdp-proxy")
|
|
|
|
set(MODULE_PREFIX "FREERDP_SERVER_PROXY")
|
|
|
|
|
|
|
|
set(${MODULE_PREFIX}_SRCS
|
|
|
|
freerdp_proxy.c
|
|
|
|
pf_context.c
|
|
|
|
pf_context.h
|
|
|
|
pf_channels.c
|
|
|
|
pf_channels.h
|
|
|
|
pf_client.c
|
|
|
|
pf_client.h
|
|
|
|
pf_input.c
|
|
|
|
pf_input.h
|
|
|
|
pf_update.c
|
|
|
|
pf_update.h
|
2019-08-06 16:46:18 +03:00
|
|
|
pf_rail.c
|
|
|
|
pf_rail.h
|
2019-05-17 15:32:54 +03:00
|
|
|
pf_rdpgfx.c
|
|
|
|
pf_rdpgfx.h
|
2019-06-11 17:13:42 +03:00
|
|
|
pf_disp.c
|
|
|
|
pf_disp.h
|
2019-05-17 15:32:54 +03:00
|
|
|
pf_server.c
|
|
|
|
pf_server.h
|
|
|
|
pf_gdi.c
|
|
|
|
pf_gdi.h
|
|
|
|
pf_config.c
|
|
|
|
pf_config.h
|
|
|
|
pf_graphics.c
|
|
|
|
pf_graphics.h
|
2019-08-19 16:05:59 +03:00
|
|
|
pf_modules.c
|
|
|
|
pf_modules.h
|
2019-08-04 17:41:43 +03:00
|
|
|
pf_cliprdr.c
|
2019-08-19 16:05:59 +03:00
|
|
|
pf_cliprdr.h
|
2019-08-13 13:53:36 +03:00
|
|
|
pf_rdpsnd.c
|
|
|
|
pf_rdpsnd.h
|
2019-10-22 16:06:05 +03:00
|
|
|
pf_capture.c
|
|
|
|
pf_capture.h
|
2019-08-19 16:05:59 +03:00
|
|
|
pf_log.h
|
|
|
|
)
|
2019-05-17 15:32:54 +03:00
|
|
|
|
|
|
|
# On windows create dll version information.
|
|
|
|
# Vendor, product and year are already set in top level CMakeLists.txt
|
|
|
|
if (WIN32)
|
|
|
|
set (RC_VERSION_MAJOR ${FREERDP_VERSION_MAJOR})
|
|
|
|
set (RC_VERSION_MINOR ${FREERDP_VERSION_MINOR})
|
|
|
|
set (RC_VERSION_BUILD ${FREERDP_VERSION_REVISION})
|
|
|
|
set (RC_VERSION_FILE "${MODULE_NAME}${CMAKE_EXECUTABLE_SUFFIX}" )
|
|
|
|
|
|
|
|
configure_file(
|
|
|
|
${CMAKE_SOURCE_DIR}/cmake/WindowsDLLVersion.rc.in
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/version.rc
|
|
|
|
@ONLY)
|
|
|
|
|
|
|
|
set ( ${MODULE_PREFIX}_SRCS ${${MODULE_PREFIX}_SRCS} ${CMAKE_CURRENT_BINARY_DIR}/version.rc)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
add_executable(${MODULE_NAME} ${${MODULE_PREFIX}_SRCS})
|
|
|
|
|
|
|
|
set(${MODULE_PREFIX}_LIBS ${${MODULE_PREFIX}_LIBS} freerdp-server)
|
|
|
|
set(${MODULE_PREFIX}_LIBS ${${MODULE_PREFIX}_LIBS} freerdp-client)
|
2019-11-02 11:57:03 +03:00
|
|
|
set(${MODULE_PREFIX}_LIBS ${${MODULE_PREFIX}_LIBS} rdpgfx-client)
|
2019-05-17 15:32:54 +03:00
|
|
|
set(${MODULE_PREFIX}_LIBS ${${MODULE_PREFIX}_LIBS} winpr freerdp)
|
|
|
|
|
|
|
|
target_link_libraries(${MODULE_NAME} ${${MODULE_PREFIX}_LIBS})
|
|
|
|
install(TARGETS ${MODULE_NAME} DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT server)
|
|
|
|
if (WITH_DEBUG_SYMBOLS AND MSVC)
|
|
|
|
install(FILES ${CMAKE_PDB_BINARY_DIR}/${MODULE_NAME}.pdb DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT symbols)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
set_property(TARGET ${MODULE_NAME} PROPERTY FOLDER "Server/proxy")
|
2019-05-26 15:29:41 +03:00
|
|
|
|
2020-01-13 13:30:09 +03:00
|
|
|
if (WITH_PROXY_MODULES)
|
|
|
|
add_subdirectory("modules")
|
|
|
|
endif()
|