2012-08-12 18:05:25 -04:00
|
|
|
|
2012-10-12 17:55:12 -04:00
|
|
|
if((CMAKE_SYSTEM_PROCESSOR MATCHES "i386|i686|x86") AND (CMAKE_SIZEOF_VOID_P EQUAL 4))
|
|
|
|
set(TARGET_ARCH "x86")
|
|
|
|
elseif((CMAKE_SYSTEM_PROCESSOR MATCHES "x86_64|AMD64") AND (CMAKE_SIZEOF_VOID_P EQUAL 8))
|
|
|
|
set(TARGET_ARCH "x64")
|
2012-10-22 19:01:19 -04:00
|
|
|
elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "arm*")
|
|
|
|
set(TARGET_ARCH "ARM")
|
2012-10-12 17:55:12 -04:00
|
|
|
endif()
|
|
|
|
|
2012-03-22 13:33:01 +01:00
|
|
|
option(WITH_MANPAGES "Generate manpages." ON)
|
|
|
|
option(WITH_PROFILER "Compile profiler." OFF)
|
2013-01-18 15:32:58 -07:00
|
|
|
option(WITH_IPP "Use Intel Performance Primitives." OFF)
|
2012-10-12 17:55:12 -04:00
|
|
|
|
|
|
|
if((TARGET_ARCH MATCHES "x86|x64") AND (NOT DEFINED WITH_SSE2))
|
|
|
|
option(WITH_SSE2 "Enable SSE2 optimization." ON)
|
|
|
|
else()
|
|
|
|
option(WITH_SSE2 "Enable SSE2 optimization." OFF)
|
|
|
|
endif()
|
|
|
|
|
2013-02-20 01:08:27 +01:00
|
|
|
if(TARGET_ARCH MATCHES "ARM")
|
|
|
|
if (NOT DEFINED WITH_NEON)
|
|
|
|
option(WITH_NEON "Enable NEON optimization." ON)
|
|
|
|
else()
|
|
|
|
option(WITH_NEON "Enable NEON optimization." OFF)
|
|
|
|
endif()
|
|
|
|
if (NOT DEFINED ARM_FP_ABI)
|
|
|
|
set(ARM_FP_ABI "softfp" CACHE STRING "Floating point ABI to use on arm")
|
|
|
|
else()
|
|
|
|
set(ARM_FP_ABI ${ARM_FP_API} CACHE STRING "Floating point ABI to use on arm")
|
|
|
|
endif()
|
|
|
|
mark_as_advanced(ARM_FP_ABI)
|
2012-10-22 19:01:19 -04:00
|
|
|
endif()
|
2012-10-12 17:55:12 -04:00
|
|
|
|
2012-07-24 18:26:24 -07:00
|
|
|
option(WITH_JPEG "Use JPEG decoding." OFF)
|
2012-03-22 13:33:01 +01:00
|
|
|
|
2012-08-12 18:05:25 -04:00
|
|
|
if(APPLE)
|
|
|
|
option(WITH_CLANG "Build using clang" OFF)
|
|
|
|
endif()
|
|
|
|
|
2012-08-12 20:43:24 -04:00
|
|
|
if(MSVC)
|
|
|
|
option(WITH_NATIVE_SSPI "Use native SSPI modules" ON)
|
2012-12-27 19:19:52 +08:00
|
|
|
option(WITH_WINMM "Use Windows Multimedia" ON)
|
2012-09-19 17:51:06 -04:00
|
|
|
option(WITH_WIN8 "Use Windows 8 libraries" OFF)
|
2012-08-12 20:43:24 -04:00
|
|
|
endif()
|
|
|
|
|
2012-10-13 09:50:02 -04:00
|
|
|
option(BUILD_TESTING "Build unit tests" OFF)
|
2012-10-13 20:55:28 -04:00
|
|
|
option(WITH_SAMPLE "Build sample code" OFF)
|
2012-10-02 11:56:10 -04:00
|
|
|
|
2012-08-14 00:11:04 -04:00
|
|
|
if(${CMAKE_VERSION} VERSION_GREATER 2.8.8)
|
2013-02-14 14:59:12 +01:00
|
|
|
if(ANDROID OR IOS)
|
2012-10-22 19:01:19 -04:00
|
|
|
option(MONOLITHIC_BUILD "Use monolithic build" ON)
|
|
|
|
else()
|
|
|
|
option(MONOLITHIC_BUILD "Use monolithic build" OFF)
|
|
|
|
endif()
|
2012-08-13 12:32:41 -04:00
|
|
|
endif()
|
|
|
|
|
2012-08-12 18:05:25 -04:00
|
|
|
option(WITH_CLIENT "Build client binaries" ON)
|
|
|
|
option(WITH_SERVER "Build server binaries" OFF)
|
2012-10-04 23:19:05 -04:00
|
|
|
|
2012-10-10 17:13:42 -04:00
|
|
|
option(STATIC_CHANNELS "Build channels statically" ON)
|
2012-10-22 19:01:19 -04:00
|
|
|
|
2012-08-12 18:05:25 -04:00
|
|
|
option(WITH_CHANNELS "Build virtual channel plugins" ON)
|
2012-09-22 20:16:38 -04:00
|
|
|
|
|
|
|
if(WITH_CLIENT AND WITH_CHANNELS)
|
|
|
|
option(WITH_CLIENT_CHANNELS "Build virtual channel plugins" ON)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if(WITH_SERVER AND WITH_CHANNELS)
|
|
|
|
option(WITH_SERVER_CHANNELS "Build virtual channel plugins" ON)
|
|
|
|
endif()
|
|
|
|
|
2012-08-12 18:05:25 -04:00
|
|
|
option(WITH_THIRD_PARTY "Build third-party components" OFF)
|
|
|
|
|
2012-09-15 22:19:26 -04:00
|
|
|
option(WITH_SERVER_INTERFACE "Build server as a library with an interface" OFF)
|
|
|
|
|
2012-09-08 15:27:00 -04:00
|
|
|
option(WITH_DEBUG_ALL "Print all debug messages." OFF)
|
|
|
|
|
|
|
|
if(WITH_DEBUG_ALL)
|
|
|
|
set(DEFAULT_DEBUG_OPTION "ON")
|
|
|
|
else()
|
|
|
|
set(DEFAULT_DEBUG_OPTION "OFF")
|
|
|
|
endif()
|
|
|
|
|
|
|
|
option(WITH_DEBUG_CERTIFICATE "Print certificate related debug messages." ${DEFAULT_DEBUG_OPTION})
|
2013-02-12 16:25:16 -05:00
|
|
|
option(WITH_DEBUG_CAPABILITIES "Print capability negotiation debug messages." ${DEFAULT_DEBUG_OPTION})
|
2012-09-08 15:27:00 -04:00
|
|
|
option(WITH_DEBUG_CHANNELS "Print channel manager debug messages." ${DEFAULT_DEBUG_OPTION})
|
|
|
|
option(WITH_DEBUG_CLIPRDR "Print clipboard redirection debug messages" ${DEFAULT_DEBUG_OPTION})
|
|
|
|
option(WITH_DEBUG_DVC "Print dynamic virtual channel debug messages." ${DEFAULT_DEBUG_OPTION})
|
|
|
|
option(WITH_DEBUG_GDI "Print graphics debug messages." ${DEFAULT_DEBUG_OPTION})
|
|
|
|
option(WITH_DEBUG_KBD "Print keyboard related debug messages." ${DEFAULT_DEBUG_OPTION})
|
|
|
|
option(WITH_DEBUG_LICENSE "Print license debug messages." ${DEFAULT_DEBUG_OPTION})
|
|
|
|
option(WITH_DEBUG_NEGO "Print negotiation related debug messages." ${DEFAULT_DEBUG_OPTION})
|
|
|
|
option(WITH_DEBUG_NLA "Print authentication related debug messages." ${DEFAULT_DEBUG_OPTION})
|
|
|
|
option(WITH_DEBUG_NTLM "Print NTLM debug messages" ${DEFAULT_DEBUG_OPTION})
|
|
|
|
option(WITH_DEBUG_TSG "Print Terminal Server Gateway debug messages" ${DEFAULT_DEBUG_OPTION})
|
|
|
|
option(WITH_DEBUG_ORDERS "Print drawing orders debug messages" ${DEFAULT_DEBUG_OPTION})
|
|
|
|
option(WITH_DEBUG_RAIL "Print RemoteApp debug messages" ${DEFAULT_DEBUG_OPTION})
|
|
|
|
option(WITH_DEBUG_RDP "Print RDP debug messages" ${DEFAULT_DEBUG_OPTION})
|
|
|
|
option(WITH_DEBUG_REDIR "Redirection debug messages" ${DEFAULT_DEBUG_OPTION})
|
|
|
|
option(WITH_DEBUG_RFX "Print RemoteFX debug messages." ${DEFAULT_DEBUG_OPTION})
|
|
|
|
option(WITH_DEBUG_SCARD "Print smartcard debug messages" ${DEFAULT_DEBUG_OPTION})
|
|
|
|
option(WITH_DEBUG_SVC "Print static virtual channel debug messages." ${DEFAULT_DEBUG_OPTION})
|
|
|
|
option(WITH_DEBUG_TRANSPORT "Print transport debug messages." ${DEFAULT_DEBUG_OPTION})
|
|
|
|
option(WITH_DEBUG_TIMEZONE "Print timezone debug messages." ${DEFAULT_DEBUG_OPTION})
|
|
|
|
option(WITH_DEBUG_WND "Print window order debug messages" ${DEFAULT_DEBUG_OPTION})
|
|
|
|
option(WITH_DEBUG_X11_CLIPRDR "Print X11 clipboard redirection debug messages" ${DEFAULT_DEBUG_OPTION})
|
|
|
|
option(WITH_DEBUG_X11_LOCAL_MOVESIZE "Print X11 Client local movesize debug messages" ${DEFAULT_DEBUG_OPTION})
|
|
|
|
option(WITH_DEBUG_X11 "Print X11 Client debug messages" ${DEFAULT_DEBUG_OPTION})
|
|
|
|
option(WITH_DEBUG_XV "Print XVideo debug messages" ${DEFAULT_DEBUG_OPTION})
|
2012-08-12 18:05:25 -04:00
|
|
|
|
2013-01-29 12:59:58 +01:00
|
|
|
if(ANDROID)
|
|
|
|
include(ConfigOptionsAndroid)
|
|
|
|
endif(ANDROID)
|
2013-02-14 14:59:12 +01:00
|
|
|
|
|
|
|
if(IOS)
|
|
|
|
include(ConfigOptionsiOS)
|
|
|
|
endif(IOS)
|