[Lldb-commits] [lldb] r238441 - Add explicit dependency on headers to swig wrapper (cmake build)

Ed Maste emaste at freebsd.org
Thu May 28 10:25:34 PDT 2015


Author: emaste
Date: Thu May 28 12:25:34 2015
New Revision: 238441

URL: http://llvm.org/viewvc/llvm-project?rev=238441&view=rev
Log:
Add explicit dependency on headers to swig wrapper (cmake build)

This should avoid issues like that described in llvm.org/pr23686

Differential Revision:	http://reviews.llvm.org/D10092

Modified:
    lldb/trunk/scripts/CMakeLists.txt

Modified: lldb/trunk/scripts/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/scripts/CMakeLists.txt?rev=238441&r1=238440&r2=238441&view=diff
==============================================================================
--- lldb/trunk/scripts/CMakeLists.txt (original)
+++ lldb/trunk/scripts/CMakeLists.txt Thu May 28 12:25:34 2015
@@ -2,6 +2,14 @@ set(LLVM_NO_RTTI 1)
 
 file(GLOB SWIG_INTERFACES interface/*.i)
 file(GLOB_RECURSE SWIG_SOURCES *.swig)
+set(SWIG_HEADERS
+  ${LLDB_SOURCE_DIR}/include/lldb/API/SBDefines.h
+  ${LLDB_SOURCE_DIR}/include/lldb/lldb-defines.h
+  ${LLDB_SOURCE_DIR}/include/lldb/lldb-enumerations.h
+  ${LLDB_SOURCE_DIR}/include/lldb/lldb-forward.h
+  ${LLDB_SOURCE_DIR}/include/lldb/lldb-types.h
+  ${LLDB_SOURCE_DIR}/include/lldb/lldb-versioning.h
+)
 
 if ( LLDB_ENABLE_PYTHON_SCRIPTS_SWIG_API_GENERATION )
   find_package(SWIG REQUIRED)
@@ -9,6 +17,7 @@ if ( LLDB_ENABLE_PYTHON_SCRIPTS_SWIG_API
     OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/LLDBWrapPython.cpp
     DEPENDS ${SWIG_SOURCES}
     DEPENDS ${SWIG_INTERFACES}
+    DEPENDS ${SWIG_HEADERS}
     DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/buildSwigWrapperClasses.py
     COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/buildSwigWrapperClasses.py "--srcRoot=${LLDB_SOURCE_DIR}" "--targetDir=${CMAKE_CURRENT_BINARY_DIR}" "--cfgBldDir=${CMAKE_CURRENT_BINARY_DIR}" "--prefix=${CMAKE_BINARY_DIR}" "--swigExecutable=${SWIG_EXECUTABLE}" -m
     COMMENT "Python script building LLDB Python wrapper")  





More information about the lldb-commits mailing list