[Lldb-commits] [lldb] r182751 - Mac OS X CMake fix: generate LLDB version from xcodeproj
Daniel Malea
daniel.malea at intel.com
Mon May 27 20:44:37 PDT 2013
Author: dmalea
Date: Mon May 27 22:44:37 2013
New Revision: 182751
URL: http://llvm.org/viewvc/llvm-project?rev=182751&view=rev
Log:
Mac OS X CMake fix: generate LLDB version from xcodeproj
- This resolves the remaining issues related to building lldb utility/dylib
- TODO: fix up debugserver build
Patch by Ahmed Bougacha!
Modified:
lldb/trunk/source/CMakeLists.txt
Modified: lldb/trunk/source/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/CMakeLists.txt?rev=182751&r1=182750&r2=182751&view=diff
==============================================================================
--- lldb/trunk/source/CMakeLists.txt (original)
+++ lldb/trunk/source/CMakeLists.txt Mon May 27 22:44:37 2013
@@ -87,6 +87,13 @@ endif ()
# Darwin-only libraries
if ( CMAKE_SYSTEM_NAME MATCHES "Darwin" )
+ set(LLDB_VERS_GENERATED_FILE ${LLDB_BINARY_DIR}/source/LLDB_vers.c)
+ add_custom_command(OUTPUT ${LLDB_VERS_GENERATED_FILE}
+ COMMAND ${LLDB_SOURCE_DIR}/scripts/generate-vers.pl
+ ${LLDB_SOURCE_DIR}/lldb.xcodeproj/project.pbxproj
+ > ${LLDB_VERS_GENERATED_FILE})
+
+ set_source_files_properties(${LLDB_VERS_GENERATED_FILE} PROPERTIES GENERATED 1)
list(APPEND LLDB_USED_LIBS
lldbHostMacOSX
lldbPluginDynamicLoaderDarwinKernel
@@ -142,13 +149,17 @@ add_lldb_library(liblldb
lldb.cpp
lldb-log.cpp
${LLDB_BINARY_DIR}/scripts/LLDBWrapPython.cpp
+ ${LLDB_VERS_GENERATED_FILE}
)
set_target_properties(liblldb
PROPERTIES
OUTPUT_NAME lldb
VERSION ${LLDB_VERSION}
)
-add_dependencies(liblldb ${LLDB_BINARY_DIR}/scripts/LLDBWrapPython.cpp)
+add_dependencies(liblldb
+ ${LLDB_BINARY_DIR}/scripts/LLDBWrapPython.cpp
+ ${LLDB_VERS_GENERATED_FILE}
+ )
target_link_libraries(liblldb ${LLDB_SYSTEM_LIBS})
# Determine LLDB revision and repository. GetSourceVersion and GetRepositoryPath are shell-scripts, and as
More information about the lldb-commits
mailing list