134 lines · plain
1# The LLDB_IN_LIBLLDB setup requires that liblldb is a shared_library2# on Windows.3# FIXME: Consider making it a shared_library everywhere like in cmake?4# (Having it a static_library is simpler -- no need for5# -Wl,-runpath=$ORIGIN/../lib in executables on unix or the corresponding @loader_path on mac,6# no need for .exports files, etc.)7if (current_os == "win") {8 liblldb_type = "shared_library"9} else {10 liblldb_type = "static_library"11}12 13target(liblldb_type, "liblldb") {14 # XXX LLDB_BUILD_FRAMEWORK15 # XXX LLDB_ENABLE_PYTHON16 # XXX LLDB_ENABLE_LUA17 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.h41 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 "SBFrameList.cpp",72 "SBFunction.cpp",73 "SBHostOS.cpp",74 "SBInstruction.cpp",75 "SBInstructionList.cpp",76 "SBLanguageRuntime.cpp",77 "SBLaunchInfo.cpp",78 "SBLineEntry.cpp",79 "SBListener.cpp",80 "SBMemoryRegionInfo.cpp",81 "SBMemoryRegionInfoList.cpp",82 "SBModule.cpp",83 "SBModuleSpec.cpp",84 "SBMutex.cpp",85 "SBPlatform.cpp",86 "SBProcess.cpp",87 "SBProcessInfo.cpp",88 "SBProcessInfoList.cpp",89 "SBProgress.cpp",90 "SBQueue.cpp",91 "SBQueueItem.cpp",92 "SBReproducer.cpp",93 "SBSaveCoreOptions.cpp",94 "SBScriptObject.cpp",95 "SBSection.cpp",96 "SBSourceManager.cpp",97 "SBStatisticsOptions.cpp",98 "SBStream.cpp",99 "SBStringList.cpp",100 "SBStructuredData.cpp",101 "SBSymbol.cpp",102 "SBSymbolContext.cpp",103 "SBSymbolContextList.cpp",104 "SBTarget.cpp",105 "SBThread.cpp",106 "SBThreadCollection.cpp",107 "SBThreadPlan.cpp",108 "SBTrace.cpp",109 "SBTraceCursor.cpp",110 "SBType.cpp",111 "SBTypeCategory.cpp",112 "SBTypeEnumMember.cpp",113 "SBTypeFilter.cpp",114 "SBTypeFormat.cpp",115 "SBTypeNameSpecifier.cpp",116 "SBTypeSummary.cpp",117 "SBTypeSynthetic.cpp",118 "SBUnixSignals.cpp",119 "SBValue.cpp",120 "SBValueList.cpp",121 "SBVariablesOptions.cpp",122 "SBWatchpoint.cpp",123 "SBWatchpointOptions.cpp",124 "SystemInitializerFull.cpp",125 ]126 127 if (current_os == "win") {128 defines = [ "LLDB_IN_LIBLLDB" ]129 }130 131 # XXX liblldb.exports or liblldb-private.expoorts132 # XXX dep on clang resource directory133}134