1 # The LLDB_IN_LIBLLDB setup requires that liblldb is a shared_library
3 # FIXME: Consider making it a shared_library everywhere like in cmake?
4 # (Having it a static_library is simpler -- no need for
5 # -Wl,-runpath=$ORIGIN/../lib in executables on unix or the corresponding @loader_path on mac,
6 # no need for .exports files, etc.)
7 if (current_os == "win") {
8 liblldb_type = "shared_library"
10 liblldb_type = "static_library"
13 target(liblldb_type, "liblldb") {
14 # XXX LLDB_BUILD_FRAMEWORK
15 # XXX LLDB_ENABLE_PYTHON
18 output_name = "liblldb" # XXX lib prefix?
19 configs += [ "//llvm/utils/gn/build:lldb_code" ]
20 public_deps = [ "//lldb/include/lldb/API:SBLanguages" ]
22 "//lldb/include/lldb/Host:Config",
23 "//lldb/source/Breakpoint",
25 "//lldb/source/DataFormatters",
26 "//lldb/source/Expression",
28 "//lldb/source/Initialization",
29 "//lldb/source/Interpreter",
30 "//lldb/source/Plugins:LldbAllPlugins",
31 "//lldb/source/Symbol",
32 "//lldb/source/Target",
33 "//lldb/source/Utility",
34 "//lldb/source/ValueObject",
35 "//lldb/source/Version",
36 "//lldb/tools/argdumper:lldb-argdumper",
40 # SBTarget.cpp includes Commands-internal header Commands/CommandObjectBreakpoint.h
41 include_dirs = [ ".." ]
45 "SBAddressRangeList.cpp",
49 "SBBreakpointLocation.cpp",
50 "SBBreakpointName.cpp",
51 "SBBreakpointOptionCommon.cpp",
53 "SBCommandInterpreter.cpp",
54 "SBCommandInterpreterRunOptions.cpp",
55 "SBCommandReturnObject.cpp",
56 "SBCommunication.cpp",
64 "SBExecutionContext.cpp",
65 "SBExpressionOptions.cpp",
74 "SBInstructionList.cpp",
75 "SBLanguageRuntime.cpp",
79 "SBMemoryRegionInfo.cpp",
80 "SBMemoryRegionInfoList.cpp",
86 "SBProcessInfoList.cpp",
91 "SBSaveCoreOptions.cpp",
94 "SBSourceManager.cpp",
95 "SBStatisticsOptions.cpp",
98 "SBStructuredData.cpp",
100 "SBSymbolContext.cpp",
101 "SBSymbolContextList.cpp",
104 "SBThreadCollection.cpp",
109 "SBTypeCategory.cpp",
110 "SBTypeEnumMember.cpp",
113 "SBTypeNameSpecifier.cpp",
115 "SBTypeSynthetic.cpp",
119 "SBVariablesOptions.cpp",
121 "SBWatchpointOptions.cpp",
122 "SystemInitializerFull.cpp",
125 if (current_os == "win") {
126 defines = [ "LLDB_IN_LIBLLDB" ]
129 # XXX liblldb.exports or liblldb-private.expoorts
130 # XXX dep on clang resource directory