summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEd Maste <emaste@freebsd.org>2014-04-03 15:03:11 +0000
committerEd Maste <emaste@freebsd.org>2014-04-03 15:03:11 +0000
commit0dcccf7bf3c1c8dfcfb8a92940c3240f8a2f7749 (patch)
treea0c24b055b2800eb5f6938a1643396e15b6a31cc
parenta934837e48db0f84f65574da725944364f1871d7 (diff)
downloadbcm5719-llvm-0dcccf7bf3c1c8dfcfb8a92940c3240f8a2f7749.tar.gz
bcm5719-llvm-0dcccf7bf3c1c8dfcfb8a92940c3240f8a2f7749.zip
Add explict dependencies on swig .i files for cmake builds
llvm.org/pr19316 llvm-svn: 205539
-rw-r--r--lldb/scripts/CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/lldb/scripts/CMakeLists.txt b/lldb/scripts/CMakeLists.txt
index 9b2f2db54bb..1e1ca5c6b1a 100644
--- a/lldb/scripts/CMakeLists.txt
+++ b/lldb/scripts/CMakeLists.txt
@@ -1,8 +1,11 @@
set(LLVM_NO_RTTI 1)
+file(GLOB SWIG_INPUTS Python/interface/*.i)
+
add_custom_command(
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/LLDBWrapPython.cpp
DEPENDS ${LLDB_SOURCE_DIR}/scripts/lldb.swig
+ DEPENDS ${SWIG_INPUTS}
# swig was directly invoked on Windows (where the Python API is not being generated) but on other platforms, we need to run the *swig-wrapper-classes.sh shell-scripts.
#COMMAND swig -c++ -shadow -python -I${LLDB_SOURCE_DIR}/include -I./. -outdir ${LLDB_SOURCE_DIR}/scripts/Python -o ${LLDB_SOURCE_DIR}/source/LLDBWrapPython.cpp ${LLDB_SOURCE_DIR}/scripts/lldb.swig
COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/build-swig-wrapper-classes.sh ${LLDB_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_BINARY_DIR} -m
OpenPOWER on IntegriCloud