1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
|
# The LLDB_IN_LIBLLDB setup requires that liblldb is a shared_library
# on Windows.
# FIXME: Consider making it a shared_library everywhere like in cmake?
# (Having it a static_library is simpler -- no need for
# -Wl,-runpath=$ORIGIN/../lib in executables on unix or the corresponding @loader_path on mac,
# no need for .exports files, etc.)
if (current_os == "win") {
liblldb_type = "shared_library"
} else {
liblldb_type = "static_library"
}
target(liblldb_type, "liblldb") {
# XXX LLDB_BUILD_FRAMEWORK
# XXX LLDB_ENABLE_PYTHON
# XXX LLDB_ENABLE_LUA
output_name = "liblldb" # XXX lib prefix?
configs += [ "//llvm/utils/gn/build:lldb_code" ]
public_deps = [ "//lldb/include/lldb/API:SBLanguages" ]
deps = [
"//lldb/include/lldb/Host:Config",
"//lldb/source/Breakpoint",
"//lldb/source/Core",
"//lldb/source/DataFormatters",
"//lldb/source/Expression",
"//lldb/source/Host",
"//lldb/source/Initialization",
"//lldb/source/Interpreter",
"//lldb/source/Plugins:LldbAllPlugins",
"//lldb/source/Symbol",
"//lldb/source/Target",
"//lldb/source/Utility",
"//lldb/source/ValueObject",
"//lldb/source/Version",
"//lldb/tools/argdumper:lldb-argdumper",
"//llvm/lib/Support",
]
# SBTarget.cpp includes Commands-internal header Commands/CommandObjectBreakpoint.h
include_dirs = [ ".." ]
sources = [
"SBAddress.cpp",
"SBAddressRange.cpp",
"SBAddressRangeList.cpp",
"SBAttachInfo.cpp",
"SBBlock.cpp",
"SBBreakpoint.cpp",
"SBBreakpointLocation.cpp",
"SBBreakpointName.cpp",
"SBBreakpointOptionCommon.cpp",
"SBBroadcaster.cpp",
"SBCommandInterpreter.cpp",
"SBCommandInterpreterRunOptions.cpp",
"SBCommandReturnObject.cpp",
"SBCommunication.cpp",
"SBCompileUnit.cpp",
"SBData.cpp",
"SBDebugger.cpp",
"SBDeclaration.cpp",
"SBEnvironment.cpp",
"SBError.cpp",
"SBEvent.cpp",
"SBExecutionContext.cpp",
"SBExpressionOptions.cpp",
"SBFile.cpp",
"SBFileSpec.cpp",
"SBFileSpecList.cpp",
"SBFormat.cpp",
"SBFrame.cpp",
"SBFunction.cpp",
"SBHostOS.cpp",
"SBInstruction.cpp",
"SBInstructionList.cpp",
"SBLanguageRuntime.cpp",
"SBLaunchInfo.cpp",
"SBLineEntry.cpp",
"SBListener.cpp",
"SBMemoryRegionInfo.cpp",
"SBMemoryRegionInfoList.cpp",
"SBModule.cpp",
"SBModuleSpec.cpp",
"SBMutex.cpp",
"SBPlatform.cpp",
"SBProcess.cpp",
"SBProcessInfo.cpp",
"SBProcessInfoList.cpp",
"SBProgress.cpp",
"SBQueue.cpp",
"SBQueueItem.cpp",
"SBReproducer.cpp",
"SBSaveCoreOptions.cpp",
"SBScriptObject.cpp",
"SBSection.cpp",
"SBSourceManager.cpp",
"SBStatisticsOptions.cpp",
"SBStream.cpp",
"SBStringList.cpp",
"SBStructuredData.cpp",
"SBSymbol.cpp",
"SBSymbolContext.cpp",
"SBSymbolContextList.cpp",
"SBTarget.cpp",
"SBThread.cpp",
"SBThreadCollection.cpp",
"SBThreadPlan.cpp",
"SBTrace.cpp",
"SBTraceCursor.cpp",
"SBType.cpp",
"SBTypeCategory.cpp",
"SBTypeEnumMember.cpp",
"SBTypeFilter.cpp",
"SBTypeFormat.cpp",
"SBTypeNameSpecifier.cpp",
"SBTypeSummary.cpp",
"SBTypeSynthetic.cpp",
"SBUnixSignals.cpp",
"SBValue.cpp",
"SBValueList.cpp",
"SBVariablesOptions.cpp",
"SBWatchpoint.cpp",
"SBWatchpointOptions.cpp",
"SystemInitializerFull.cpp",
]
if (current_os == "win") {
defines = [ "LLDB_IN_LIBLLDB" ]
}
# XXX liblldb.exports or liblldb-private.expoorts
# XXX dep on clang resource directory
}
|