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 7add_lldb_unittest(debugserverTests 8 JSONTest.cpp 9 RNBSocketTest.cpp 10 debugserver_LogCallback.cpp 11 12 LINK_LIBS 13 lldbDebugserverCommon 14 lldbHost 15 LLVMTestingSupport 16 LINK_COMPONENTS 17 Support 18 ) 19 20target_include_directories(debugserverTests PRIVATE 21 ${LLDB_SOURCE_DIR}/tools/debugserver/source 22 ${LLDB_SOURCE_DIR}/tools/debugserver/source/MacOSX) 23 24if(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_LIBS 37 lldbDebugserverCommon_NonUI 38 lldbHost 39 LINK_COMPONENTS 40 Support 41 ) 42endif() 43