After moving python.swig and lua.swig into their respective subdirectories, the relative paths in these files were out of date. This fixes that and ensures the appropriate include paths are set in the SWIG invocation. Differential revision: https://reviews.llvm.org/D85859
20 lines
553 B
CMake
20 lines
553 B
CMake
add_custom_command(
|
|
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/LLDBWrapLua.cpp
|
|
DEPENDS ${SWIG_SOURCES}
|
|
DEPENDS ${SWIG_INTERFACES}
|
|
DEPENDS ${SWIG_HEADERS}
|
|
COMMAND ${SWIG_EXECUTABLE}
|
|
${SWIG_COMMON_FLAGS}
|
|
-I${CMAKE_CURRENT_SOURCE_DIR}
|
|
-lua
|
|
-w503
|
|
-outdir ${CMAKE_CURRENT_BINARY_DIR}
|
|
-o ${CMAKE_CURRENT_BINARY_DIR}/LLDBWrapLua.cpp
|
|
${CMAKE_CURRENT_SOURCE_DIR}/lua.swig
|
|
VERBATIM
|
|
COMMENT "Building LLDB Lua wrapper")
|
|
|
|
add_custom_target(swig_wrapper_lua ALL DEPENDS
|
|
${CMAKE_CURRENT_BINARY_DIR}/LLDBWrapLua.cpp
|
|
)
|