43 lines · plain
1# Note: debugserver is a Darwin-only implementation of a remote debugging2# server. It is not intended to be used on other platforms. The tests are here3# because using the LLDB Host API is convenient and allows testing of both parts4# of the debugserver communication path. If you are looking for a non-darwin5# remote debugging server, please use lldb-server.6 7add_lldb_unittest(debugserverTests8 JSONTest.cpp9 RNBSocketTest.cpp10 debugserver_LogCallback.cpp11 12 LINK_COMPONENTS13 Support14 LINK_LIBS15 lldbDebugserverCommon16 lldbHost17 LLVMTestingSupport18 )19 20target_include_directories(debugserverTests PRIVATE21 ${LLDB_SOURCE_DIR}/tools/debugserver/source22 ${LLDB_SOURCE_DIR}/tools/debugserver/source/MacOSX)23 24if(APPLE_EMBEDDED)25 set_property(TARGET debugserverTests APPEND PROPERTY COMPILE_DEFINITIONS26 WITH_LOCKDOWN27 WITH_FBS28 WITH_BKS29 )30 31 add_lldb_unittest(debugserverNonUITests32 JSONTest.cpp33 RNBSocketTest.cpp34 debugserver_LogCallback.cpp35 36 LINK_COMPONENTS37 Support38 LINK_LIBS39 lldbDebugserverCommon_NonUI40 lldbHost41 )42endif()43