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