Debian Codegraph @

lldb/unittests/debugserver/CMakeLists.txt

raw
1 # Note: debugserver is a Darwin-only implementation of a remote debugging
2 # server. It is not intended to be used on other platforms. The tests are here
3 # because using the LLDB Host API is convenient and allows testing of both parts
4 # of the debugserver communication path. If you are looking for a non-darwin
5 # remote debugging server, please use lldb-server.
6
7 add_lldb_unittest(debugserverTests
8 JSONTest.cpp
9 RNBSocketTest.cpp
10 debugserver_LogCallback.cpp
11
12 LINK_COMPONENTS
13 Support
14 LINK_LIBS
15 lldbDebugserverCommon
16 lldbHost
17 LLVMTestingSupport
18 )
19
20 target_include_directories(debugserverTests PRIVATE
21 ${LLDB_SOURCE_DIR}/tools/debugserver/source
22 ${LLDB_SOURCE_DIR}/tools/debugserver/source/MacOSX)
23
24 if(APPLE_EMBEDDED)
25 set_property(TARGET debugserverTests APPEND PROPERTY COMPILE_DEFINITIONS
26 WITH_LOCKDOWN
27 WITH_FBS
28 WITH_BKS
29 )
30
31 add_lldb_unittest(debugserverNonUITests
32 JSONTest.cpp
33 RNBSocketTest.cpp
34 debugserver_LogCallback.cpp
35
36 LINK_COMPONENTS
37 Support
38 LINK_LIBS
39 lldbDebugserverCommon_NonUI
40 lldbHost
41 )
42 endif()