File tree Expand file tree Collapse file tree 17 files changed +39
-17
lines changed Expand file tree Collapse file tree 17 files changed +39
-17
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,8 @@ endif()
38
38
include (LLDBConfig )
39
39
include (AddLLDB )
40
40
41
+ set (LLDB_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR} /include )
42
+
41
43
# Define the LLDB_CONFIGURATION_xxx matching the build type.
42
44
if (uppercase_CMAKE_BUILD_TYPE STREQUAL "DEBUG" )
43
45
add_definitions (-DLLDB_CONFIGURATION_DEBUG )
Original file line number Diff line number Diff line change @@ -68,12 +68,6 @@ function(add_lldb_library name)
68
68
set_property (GLOBAL APPEND PROPERTY LLDB_PLUGINS ${name} )
69
69
endif ()
70
70
71
- if (MSVC_IDE OR XCODE )
72
- string (REGEX MATCHALL "/[^/]+" split_path ${CMAKE_CURRENT_SOURCE_DIR} )
73
- list (GET split_path -1 dir )
74
- file (GLOB_RECURSE headers
75
- ../../include/lldb${dir}/*.h )
76
- endif ()
77
71
if (PARAM_MODULE )
78
72
set (libkind MODULE )
79
73
elseif (PARAM_SHARED )
@@ -92,7 +86,7 @@ function(add_lldb_library name)
92
86
set (pass_NO_INSTALL_RPATH NO_INSTALL_RPATH )
93
87
endif ()
94
88
95
- llvm_add_library (${name} ${libkind} ${headers}
89
+ llvm_add_library (${name} ${libkind}
96
90
${PARAM_UNPARSED_ARGUMENTS}
97
91
LINK_LIBS ${PARAM_LINK_LIBS}
98
92
${pass_NO_INSTALL_RPATH}
Original file line number Diff line number Diff line change @@ -125,6 +125,8 @@ add_lldb_library(liblldb SHARED ${option_framework}
125
125
${lldb_python_wrapper}
126
126
${lldb_lua_wrapper}
127
127
128
+ ADDITIONAL_HEADER_DIRS
129
+ ${LLDB_INCLUDE_DIR} /lldb/API
128
130
DEPENDS
129
131
lldb-sbapi-dwarf-enums
130
132
Original file line number Diff line number Diff line change @@ -26,6 +26,8 @@ add_lldb_library(lldbBreakpoint NO_PLUGIN_DEPENDENCIES
26
26
WatchpointOptions.cpp
27
27
WatchpointResource.cpp
28
28
29
+ ADDITIONAL_HEADER_DIRS
30
+ ${LLDB_INCLUDE_DIR} /lldb/Breakpoint
29
31
LINK_COMPONENTS
30
32
Support
31
33
LINK_LIBS
Original file line number Diff line number Diff line change @@ -57,10 +57,11 @@ add_lldb_library(lldbCore NO_PLUGIN_DEPENDENCIES
57
57
ThreadedCommunication.cpp
58
58
UserSettingsController.cpp
59
59
Value .cpp
60
+
61
+ ADDITIONAL_HEADER_DIRS
62
+ ${LLDB_INCLUDE_DIR} /lldb/Core
60
63
DEPENDS
61
64
clang-tablegen-targets
62
-
63
-
64
65
LINK_COMPONENTS
65
66
Support
66
67
Demangle
Original file line number Diff line number Diff line change @@ -18,6 +18,8 @@ add_lldb_library(lldbDataFormatters NO_PLUGIN_DEPENDENCIES
18
18
ValueObjectPrinter.cpp
19
19
VectorType.cpp
20
20
21
+ ADDITIONAL_HEADER_DIRS
22
+ ${LLDB_INCLUDE_DIR} /lldb/DataFormatters
21
23
LINK_COMPONENTS
22
24
Support
23
25
LINK_LIBS
Original file line number Diff line number Diff line change @@ -17,6 +17,8 @@ add_lldb_library(lldbExpression NO_PLUGIN_DEPENDENCIES
17
17
UserExpression.cpp
18
18
UtilityFunction.cpp
19
19
20
+ ADDITIONAL_HEADER_DIRS
21
+ ${LLDB_INCLUDE_DIR} /lldb/Expression
20
22
DEPENDS
21
23
intrinsics_gen
22
24
Original file line number Diff line number Diff line change @@ -177,6 +177,8 @@ endif()
177
177
add_lldb_library (lldbHost NO_PLUGIN_DEPENDENCIES
178
178
${HOST_SOURCES}
179
179
180
+ ADDITIONAL_HEADER_DIRS
181
+ ${LLDB_INCLUDE_DIR} /lldb/Host
180
182
LINK_COMPONENTS
181
183
Object
182
184
Support
Original file line number Diff line number Diff line change @@ -8,6 +8,8 @@ add_lldb_library(lldbHostMacOSXObjCXX NO_PLUGIN_DEPENDENCIES
8
8
HostThreadMacOSX.mm
9
9
MemoryMonitorMacOSX.mm
10
10
11
+ ADDITIONAL_HEADER_DIRS
12
+ ${LLDB_INCLUDE_DIR} /lldb/Host/macosx/objcxx
11
13
LINK_COMPONENTS
12
14
Support
13
15
TargetParser
Original file line number Diff line number Diff line change @@ -11,6 +11,8 @@ add_lldb_library(lldbInitialization
11
11
SystemInitializer.cpp
12
12
SystemLifetimeManager.cpp
13
13
14
+ ADDITIONAL_HEADER_DIRS
15
+ ${LLDB_INCLUDE_DIR} /lldb/Initialization
14
16
LINK_COMPONENTS
15
17
Support
16
18
LINK_LIBS
Original file line number Diff line number Diff line change @@ -55,6 +55,8 @@ add_lldb_library(lldbInterpreter NO_PLUGIN_DEPENDENCIES
55
55
Property.cpp
56
56
ScriptInterpreter.cpp
57
57
58
+ ADDITIONAL_HEADER_DIRS
59
+ ${LLDB_INCLUDE_DIR} /lldb/Interpreter
58
60
LINK_COMPONENTS
59
61
Support
60
62
LINK_LIBS
Original file line number Diff line number Diff line change 1
1
add_lldb_library (lldbInterpreterInterfaces NO_PLUGIN_DEPENDENCIES
2
2
ScriptedInterfaceUsages.cpp
3
3
4
+ ADDITIONAL_HEADER_DIRS
5
+ ${LLDB_INCLUDE_DIR} /lldb/Interpreter/Interfaces
4
6
LINK_COMPONENTS
5
7
Support
6
8
LINK_LIBS
Original file line number Diff line number Diff line change @@ -33,6 +33,8 @@ add_lldb_library(lldbSymbol NO_PLUGIN_DEPENDENCIES
33
33
Variable .cpp
34
34
VariableList.cpp
35
35
36
+ ADDITIONAL_HEADER_DIRS
37
+ ${LLDB_INCLUDE_DIR} /lldb/Symbol
36
38
LINK_COMPONENTS
37
39
Support
38
40
LINK_LIBS
Original file line number Diff line number Diff line change @@ -82,6 +82,8 @@ add_lldb_library(lldbTarget
82
82
UnwindLLDB.cpp
83
83
VerboseTrapFrameRecognizer.cpp
84
84
85
+ ADDITIONAL_HEADER_DIRS
86
+ ${LLDB_INCLUDE_DIR} /lldb/Target
85
87
LINK_COMPONENTS
86
88
Support
87
89
MC
Original file line number Diff line number Diff line change @@ -81,6 +81,8 @@ add_lldb_library(lldbUtility NO_INTERNAL_DEPENDENCIES
81
81
XcodeSDK.cpp
82
82
ZipFile.cpp
83
83
84
+ ADDITIONAL_HEADER_DIRS
85
+ ${LLDB_INCLUDE_DIR} /lldb/Utility
84
86
LINK_COMPONENTS
85
87
BinaryFormat
86
88
Support
Original file line number Diff line number Diff line change @@ -19,6 +19,8 @@ add_lldb_library(lldbValueObject
19
19
ValueObjectVariable.cpp
20
20
ValueObjectVTable.cpp
21
21
22
+ ADDITIONAL_HEADER_DIRS
23
+ ${LLDB_INCLUDE_DIR} /lldb/ValueObject
22
24
LINK_COMPONENTS
23
25
Support
24
26
Demangle
Original file line number Diff line number Diff line change @@ -21,9 +21,6 @@ add_custom_command(OUTPUT "${vcs_version_inc}"
21
21
"-DLLVM_FORCE_VC_REPOSITORY=${LLVM_FORCE_VC_REPOSITORY} "
22
22
-P "${generate_vcs_version_script} " )
23
23
24
- set_source_files_properties ("${vcs_version_inc} "
25
- PROPERTIES GENERATED TRUE
26
- HEADER_FILE_ONLY TRUE )
27
24
28
25
# Configure the Version.inc file.
29
26
set (version_inc "${LLDB_BINARY_DIR} /include/lldb/Version/Version.inc" )
@@ -32,13 +29,15 @@ configure_file(
32
29
${LLDB_SOURCE_DIR} /include/lldb/Version/Version.inc.in
33
30
${version_inc} )
34
31
35
- set_source_files_properties ("${version_inc} "
32
+ set_source_files_properties (
33
+ "${vcs_version_inc} " "${version_inc} "
36
34
PROPERTIES GENERATED TRUE
37
- HEADER_FILE_ONLY TRUE )
38
-
35
+ )
39
36
include_directories (${CMAKE_CURRENT_BINARY_DIR} )
40
37
41
38
add_lldb_library (lldbVersion NO_PLUGIN_DEPENDENCIES
42
39
Version .cpp
43
- ${vcs_version_inc}
44
- ${version_inc} )
40
+ ADDITIONAL_HEADERS
41
+ ${version_inc}
42
+ ${vcs_version_inc}
43
+ )
You can’t perform that action at this time.
0 commit comments