This refactoring changes two significant things about how the debugserver build system works: (1) debugserver will include all appropriate architecture support, so we can now build arm or ppc debugservers (2) debugserver can be built by itself, so you don't have to configure all of LLDB in order to generate debugserver. llvm-svn: 308377
24 lines
780 B
CMake
24 lines
780 B
CMake
if("${CMAKE_OSX_ARCHITECTURES}" MATCHES ".*arm.*")
|
|
list(APPEND SOURCES arm/DNBArchImpl.cpp arm64/DNBArchImplARM64.cpp)
|
|
include_directories(${CURRENT_SOURCE_DIR}/arm ${CURRENT_SOURCE_DIR}/arm64)
|
|
endif()
|
|
|
|
if(NOT CMAKE_OSX_ARCHITECTURES OR "${CMAKE_OSX_ARCHITECTURES}" MATCHES ".*86.*")
|
|
list(APPEND SOURCES i386/DNBArchImplI386.cpp x86_64/DNBArchImplX86_64.cpp)
|
|
include_directories(${CURRENT_SOURCE_DIR}/i386 ${CURRENT_SOURCE_DIR}/x86_64)
|
|
endif()
|
|
|
|
if("${CMAKE_OSX_ARCHITECTURES}" MATCHES ".*ppc.*")
|
|
list(APPEND SOURCES ppc/DNBArchImpl.cpp)
|
|
include_directories(${CURRENT_SOURCE_DIR}/ppc)
|
|
endif()
|
|
|
|
add_subdirectory(DarwinLog)
|
|
|
|
include_directories(..)
|
|
|
|
include_directories(${LLDB_SOURCE_DIR}/tools/debugserver/source)
|
|
add_library(lldbDebugserverArchSupport
|
|
${SOURCES}
|
|
)
|