2015-07-17 23:50:48 +08:00
|
|
|
cmake_minimum_required(VERSION 2.8)
|
|
|
|
|
2015-03-03 04:45:26 +08:00
|
|
|
include(cmake/modules/LLDBStandalone.cmake)
|
2015-07-17 23:50:48 +08:00
|
|
|
include(cmake/modules/LLDBConfig.cmake)
|
2015-03-03 04:45:26 +08:00
|
|
|
include(cmake/modules/AddLLDB.cmake)
|
2014-05-29 01:06:04 +08:00
|
|
|
|
2013-09-25 18:37:32 +08:00
|
|
|
#add_subdirectory(include)
|
|
|
|
add_subdirectory(docs)
|
2015-04-07 23:30:23 +08:00
|
|
|
if (NOT LLDB_DISABLE_PYTHON)
|
2014-07-04 14:43:47 +08:00
|
|
|
add_subdirectory(scripts)
|
|
|
|
endif ()
|
2013-09-25 18:37:32 +08:00
|
|
|
add_subdirectory(source)
|
|
|
|
add_subdirectory(test)
|
|
|
|
add_subdirectory(tools)
|
2015-03-14 04:54:57 +08:00
|
|
|
add_subdirectory(unittests)
|
2015-03-14 04:55:07 +08:00
|
|
|
add_subdirectory(lit)
|
2015-02-18 06:20:29 +08:00
|
|
|
|
2015-09-08 13:00:22 +08:00
|
|
|
if (NOT LLDB_DISABLE_PYTHON)
|
2015-09-16 23:34:06 +08:00
|
|
|
# Add a Post-Build Event to copy over Python files and create the symlink to liblldb.so for the Python API(hardlink on Windows)
|
2015-02-18 06:20:29 +08:00
|
|
|
add_custom_target( finish_swig ALL
|
2015-04-23 06:53:18 +08:00
|
|
|
COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/scripts/finishSwigWrapperClasses.py "--srcRoot=${LLDB_SOURCE_DIR}" "--targetDir=${CMAKE_CURRENT_BINARY_DIR}/scripts" "--cfgBldDir=${CMAKE_CURRENT_BINARY_DIR}/scripts" "--prefix=${CMAKE_BINARY_DIR}" "--cmakeBuildConfiguration=${CMAKE_CFG_INTDIR}" -m
|
2015-02-18 06:20:29 +08:00
|
|
|
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/scripts/finishSwigWrapperClasses.py
|
|
|
|
COMMENT "Python script sym-linking LLDB Python API")
|
2015-09-16 23:34:06 +08:00
|
|
|
# We depend on liblldb being built before we can do this step.
|
2015-02-18 06:20:29 +08:00
|
|
|
add_dependencies(finish_swig liblldb argdumper)
|
2015-09-16 23:34:06 +08:00
|
|
|
|
|
|
|
# Ensure we do the python post-build step when building lldb.
|
|
|
|
add_dependencies(lldb finish_swig)
|
2015-02-18 06:20:29 +08:00
|
|
|
endif ()
|