From: Daniel Malea Date: Thu, 21 Feb 2013 20:58:22 +0000 (+0000) Subject: Adding CMake build system to LLDB. Some known issues remain: X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=23720cc66c3b639b2c4c1399e9f994dc14c5814b;p=platform%2Fupstream%2Fllvm.git Adding CMake build system to LLDB. Some known issues remain: - generate-vers.pl has to be called by cmake to generate the version number - parallel builds not yet supported; dependency on clang must be explicitly specified Tested on Linux. - Building on Mac will require code-signing logic to be implemented. - Building on Windows will require OS-detection logic and some selective directory inclusion Thanks to Carlo Kok (who originally prepared these CMakefiles for Windows) and Ben Langmuir who ported them to Linux! llvm-svn: 175795 --- diff --git a/lldb/source/API/CMakeLists.txt b/lldb/source/API/CMakeLists.txt new file mode 100644 index 0000000..3580b74 --- /dev/null +++ b/lldb/source/API/CMakeLists.txt @@ -0,0 +1,50 @@ +set(LLVM_NO_RTTI 1) + +add_lldb_library(lldbAPI + SBAddress.cpp + SBBlock.cpp + SBBreakpoint.cpp + SBBreakpointLocation.cpp + SBBroadcaster.cpp + SBCommandInterpreter.cpp + SBCommandReturnObject.cpp + SBCommunication.cpp + SBCompileUnit.cpp + SBData.cpp + SBDebugger.cpp + SBDeclaration.cpp + SBError.cpp + SBEvent.cpp + SBExpressionOptions.cpp + SBFileSpec.cpp + SBFileSpecList.cpp + SBFrame.cpp + SBFunction.cpp + SBHostOS.cpp + SBInputReader.cpp + SBInstruction.cpp + SBInstructionList.cpp + SBLineEntry.cpp + SBListener.cpp + SBModule.cpp + SBProcess.cpp + SBSection.cpp + SBSourceManager.cpp + SBStream.cpp + SBStringList.cpp + SBSymbol.cpp + SBSymbolContext.cpp + SBSymbolContextList.cpp + SBTarget.cpp + SBThread.cpp + SBType.cpp + SBTypeCategory.cpp + SBTypeFilter.cpp + SBTypeFormat.cpp + SBTypeNameSpecifier.cpp + SBTypeSummary.cpp + SBTypeSynthetic.cpp + SBValue.cpp + SBValueList.cpp + SBWatchpoint.cpp + ) diff --git a/lldb/source/Breakpoint/CMakeLists.txt b/lldb/source/Breakpoint/CMakeLists.txt new file mode 100644 index 0000000..e3e0c90 --- /dev/null +++ b/lldb/source/Breakpoint/CMakeLists.txt @@ -0,0 +1,25 @@ +set(LLVM_NO_RTTI 1) + +add_lldb_library(lldbBreakpoint + Breakpoint.cpp + BreakpointID.cpp + BreakpointIDList.cpp + BreakpointList.cpp + BreakpointLocation.cpp + BreakpointLocationCollection.cpp + BreakpointLocationList.cpp + BreakpointOptions.cpp + BreakpointResolver.cpp + BreakpointResolverAddress.cpp + BreakpointResolverFileLine.cpp + BreakpointResolverFileRegex.cpp + BreakpointResolverName.cpp + BreakpointSite.cpp + BreakpointSiteList.cpp + Stoppoint.cpp + StoppointCallbackContext.cpp + StoppointLocation.cpp + Watchpoint.cpp + WatchpointList.cpp + WatchpointOptions.cpp + ) diff --git a/lldb/source/CMakeLists.txt b/lldb/source/CMakeLists.txt new file mode 100644 index 0000000..33433fc --- /dev/null +++ b/lldb/source/CMakeLists.txt @@ -0,0 +1,134 @@ +include_directories(.) + +# FIXME: these includes should be enabled only for Linux builds +include_directories( + Plugins/Process/Linux + Plugins/Process/POSIX + ) + +add_subdirectory(API) +add_subdirectory(Breakpoint) +add_subdirectory(Commands) +add_subdirectory(Core) +add_subdirectory(DataFormatters) +add_subdirectory(Expression) +add_subdirectory(Host) +add_subdirectory(Interpreter) +add_subdirectory(Plugins) +add_subdirectory(Symbol) +add_subdirectory(Target) +add_subdirectory(Utility) + +set( LLDB_USED_LIBS + lldbAPI + lldbBreakpoint + lldbCommands + lldbDataFormatters + lldbHostCommon + lldbCore + lldbExpression + #lldbInitAndLog + lldbInterpreter + lldbSymbol + lldbTarget + lldbUtility + + # Plugins + lldbPluginDisassemblerLLVM + lldbPluginSymbolFileDWARF + lldbPluginSymbolFileSymtab + lldbPluginDynamicLoaderStatic + + lldbPluginObjectFileMachO + lldbPluginObjectFileELF + lldbPluginObjectContainerBSDArchive + lldbPluginObjectContainerMachOArchive + lldbPluginProcessGDBRemote + lldbPluginProcessUtility + lldbPluginPlatformGDB + lldbPluginPlatformFreeBSD + lldbPluginPlatformLinux + lldbPluginObjectFileMachO + lldbPluginObjectContainerMachOArchive + lldbPluginObjectContainerBSDArchive + lldbPluginPlatformMacOSX + lldbPluginDynamicLoaderMacOSXDYLD + lldbPluginDynamicLoaderPosixDYLD + lldbPluginUnwindAssemblyInstEmulation + lldbPluginUnwindAssemblyX86 + lldbPluginDynamicLoaderDarwinKernel + lldbPluginAppleObjCRuntime + lldbPluginCXXItaniumABI + lldbPluginABIMacOSX_arm + lldbPluginABIMacOSX_i386 + lldbPluginABISysV_x86_64 + lldbPluginInstructionARM + lldbPluginOSPython + + + # Windows (FIXME: detect host OS and enable below if Windows) + #lldbHostWindows + #lldbPluginPlatformWindows + lldbPluginObjectFilePECOFF + #Ws2_32 + + # Linux (FIXME: detect host OS and enable below if Linux) + lldbHostLinux + lldbPluginProcessLinux + lldbPluginProcessPOSIX + ) + +set( CLANG_USED_LIBS + clangAnalysis + clangAST + clangBasic + clangCodeGen + clangDriver + clangEdit + clangFrontend + clangLex + clangParse + clangRewriteCore + clangRewriteFrontend + clangSema + clangSerialization + ) + +set( LLDB_SYSTEM_LIBS + edit + python2.7 + ) + +set( LLVM_LINK_COMPONENTS + ${LLVM_TARGETS_TO_BUILD} + jit + interpreter + nativecodegen + asmparser + bitreader + bitwriter + codegen + ipo + selectiondag + bitreader + mc + mcjit + core + mcdisassembler + executionengine + ) + +set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/../scripts/LLDBWrapPython.cpp PROPERTIES GENERATED 1) +set(SHARED_LIBRARY 1) + +add_lldb_library(liblldb + lldb.cpp + lldb-log.cpp + ${CMAKE_CURRENT_BINARY_DIR}/../scripts/LLDBWrapPython.cpp + ) +set_target_properties(liblldb PROPERTIES OUTPUT_NAME lldb) +target_link_libraries(liblldb ${LLDB_SYSTEM_LIBS}) +add_dependencies(liblldb swig_wrapper) + +install(TARGETS liblldb + LIBRARY DESTINATION lib) diff --git a/lldb/source/Commands/CMakeLists.txt b/lldb/source/Commands/CMakeLists.txt new file mode 100644 index 0000000..df48c6d --- /dev/null +++ b/lldb/source/Commands/CMakeLists.txt @@ -0,0 +1,32 @@ +set(LLVM_NO_RTTI 1) + +add_lldb_library(lldbCommands + CommandCompletions.cpp + CommandObjectApropos.cpp + CommandObjectArgs.cpp + CommandObjectBreakpoint.cpp + CommandObjectBreakpointCommand.cpp + CommandObjectCommands.cpp + CommandObjectCrossref.cpp + CommandObjectDisassemble.cpp + CommandObjectExpression.cpp + CommandObjectFrame.cpp + CommandObjectHelp.cpp + CommandObjectLog.cpp + CommandObjectMemory.cpp + CommandObjectMultiword.cpp + CommandObjectPlatform.cpp + CommandObjectPlugin.cpp + CommandObjectProcess.cpp + CommandObjectQuit.cpp + CommandObjectRegister.cpp + CommandObjectSettings.cpp + CommandObjectSource.cpp + CommandObjectSyntax.cpp + CommandObjectTarget.cpp + CommandObjectThread.cpp + CommandObjectType.cpp + CommandObjectVersion.cpp + CommandObjectWatchpoint.cpp + CommandObjectWatchpointCommand.cpp + ) diff --git a/lldb/source/Core/CMakeLists.txt b/lldb/source/Core/CMakeLists.txt new file mode 100644 index 0000000..99f4307 --- /dev/null +++ b/lldb/source/Core/CMakeLists.txt @@ -0,0 +1,76 @@ +set(LLVM_NO_RTTI 1) + +add_lldb_library(lldbCore + Address.cpp + AddressRange.cpp + AddressResolver.cpp + AddressResolverFileLine.cpp + AddressResolverName.cpp + ArchSpec.cpp + Baton.cpp + Broadcaster.cpp + Communication.cpp + Connection.cpp + ConnectionFileDescriptor.cpp + ConnectionMachPort.cpp + ConnectionSharedMemory.cpp + ConstString.cpp + cxa_demangle.cpp + DataBufferHeap.cpp + DataBufferMemoryMap.cpp + DataEncoder.cpp + DataExtractor.cpp + Debugger.cpp + Disassembler.cpp + DynamicLoader.cpp + EmulateInstruction.cpp + Error.cpp + Event.cpp + FileLineResolver.cpp + FileSpecList.cpp + History.cpp + InputReader.cpp + InputReaderEZ.cpp + InputReaderStack.cpp + Language.cpp + Listener.cpp + Log.cpp + Mangled.cpp + Module.cpp + ModuleChild.cpp + ModuleList.cpp + Opcode.cpp + PluginManager.cpp + RegisterValue.cpp + RegularExpression.cpp + Scalar.cpp + SearchFilter.cpp + Section.cpp + SourceManager.cpp + State.cpp + Stream.cpp + StreamAsynchronousIO.cpp + StreamCallback.cpp + StreamFile.cpp + StreamString.cpp + StringList.cpp + Timer.cpp + UserID.cpp + UserSettingsController.cpp + UUID.cpp + Value.cpp + ValueObject.cpp + ValueObjectCast.cpp + ValueObjectChild.cpp + ValueObjectConstResult.cpp + ValueObjectConstResultChild.cpp + ValueObjectConstResultImpl.cpp + ValueObjectDynamicValue.cpp + ValueObjectList.cpp + ValueObjectMemory.cpp + ValueObjectRegister.cpp + ValueObjectSyntheticFilter.cpp + ValueObjectVariable.cpp + VMRange.cpp + #Windows.cpp + ) diff --git a/lldb/source/DataFormatters/CMakeLists.txt b/lldb/source/DataFormatters/CMakeLists.txt new file mode 100644 index 0000000..ce39622 --- /dev/null +++ b/lldb/source/DataFormatters/CMakeLists.txt @@ -0,0 +1,14 @@ +set(LLVM_NO_RTTI 1) + +add_lldb_library(lldbDataFormatters + CXXFormatterFunctions.cpp + DataVisualization.cpp + FormatCache.cpp + FormatClasses.cpp + FormatManager.cpp + TypeCategory.cpp + TypeCategoryMap.cpp + TypeFormat.cpp + TypeSummary.cpp + TypeSynthetic.cpp + ) diff --git a/lldb/source/Expression/CMakeLists.txt b/lldb/source/Expression/CMakeLists.txt new file mode 100644 index 0000000..a3fbdf9 --- /dev/null +++ b/lldb/source/Expression/CMakeLists.txt @@ -0,0 +1,22 @@ +set(LLVM_NO_RTTI 1) + +add_lldb_library(lldbExpression + ASTDumper.cpp + ASTResultSynthesizer.cpp + ASTStructExtractor.cpp + ClangASTSource.cpp + ClangExpressionDeclMap.cpp + ClangExpressionParser.cpp + ClangExpressionVariable.cpp + ClangFunction.cpp + ClangPersistentVariables.cpp + ClangUserExpression.cpp + ClangUtilityFunction.cpp + DWARFExpression.cpp + ExpressionSourceCode.cpp + IRDynamicChecks.cpp + IRForTarget.cpp + IRInterpreter.cpp + ProcessDataAllocator.cpp + RecordingMemoryManager.cpp + ) diff --git a/lldb/source/Host/CMakeLists.txt b/lldb/source/Host/CMakeLists.txt new file mode 100644 index 0000000..4807d50 --- /dev/null +++ b/lldb/source/Host/CMakeLists.txt @@ -0,0 +1,3 @@ +add_subdirectory(common) +add_subdirectory(linux) +#add_subdirectory(windows) diff --git a/lldb/source/Host/common/CMakeLists.txt b/lldb/source/Host/common/CMakeLists.txt new file mode 100644 index 0000000..cad9c07 --- /dev/null +++ b/lldb/source/Host/common/CMakeLists.txt @@ -0,0 +1,14 @@ +set(LLVM_NO_RTTI 1) + +add_lldb_library(lldbHostCommon + Condition.cpp + DynamicLibrary.cpp + File.cpp + FileSpec.cpp + Host.cpp + Mutex.cpp + SocketAddress.cpp + Symbols.cpp + Terminal.cpp + TimeValue.cpp + ) diff --git a/lldb/source/Host/freebsd/CMakeLists.txt b/lldb/source/Host/freebsd/CMakeLists.txt new file mode 100644 index 0000000..17794f4 --- /dev/null +++ b/lldb/source/Host/freebsd/CMakeLists.txt @@ -0,0 +1,5 @@ +set(LLVM_NO_RTTI 1) + +add_lldb_library(lldbHostFreeBSD + Host.cpp + ) diff --git a/lldb/source/Host/linux/CMakeLists.txt b/lldb/source/Host/linux/CMakeLists.txt new file mode 100644 index 0000000..b98c410 --- /dev/null +++ b/lldb/source/Host/linux/CMakeLists.txt @@ -0,0 +1,5 @@ +set(LLVM_NO_RTTI 1) + +add_lldb_library(lldbHostLinux + Host.cpp + ) diff --git a/lldb/source/Host/macosx/CMakeLists.txt b/lldb/source/Host/macosx/CMakeLists.txt new file mode 100644 index 0000000..faafefb --- /dev/null +++ b/lldb/source/Host/macosx/CMakeLists.txt @@ -0,0 +1,6 @@ +set(LLVM_NO_RTTI 1) + +add_lldb_library(lldbHostMacOSX + Host.cpp + Symbols.cpp + ) diff --git a/lldb/source/Interpreter/CMakeLists.txt b/lldb/source/Interpreter/CMakeLists.txt new file mode 100644 index 0000000..0d2976c --- /dev/null +++ b/lldb/source/Interpreter/CMakeLists.txt @@ -0,0 +1,45 @@ +set(LLVM_NO_RTTI 1) + +add_lldb_library(lldbInterpreter + Args.cpp + CommandInterpreter.cpp + CommandObject.cpp + CommandObjectRegexCommand.cpp + CommandObjectScript.cpp + CommandReturnObject.cpp + OptionGroupArchitecture.cpp + OptionGroupBoolean.cpp + OptionGroupFile.cpp + OptionGroupFormat.cpp + OptionGroupOutputFile.cpp + OptionGroupPlatform.cpp + OptionGroupString.cpp + OptionGroupUInt64.cpp + OptionGroupUUID.cpp + OptionGroupValueObjectDisplay.cpp + OptionValue.cpp + OptionValueArch.cpp + OptionValueArgs.cpp + OptionValueArray.cpp + OptionValueBoolean.cpp + OptionValueDictionary.cpp + OptionValueEnumeration.cpp + OptionValueFileSpec.cpp + OptionValueFileSpecLIst.cpp + OptionValueFormat.cpp + OptionValuePathMappings.cpp + OptionValueProperties.cpp + OptionValueRegex.cpp + OptionValueSInt64.cpp + OptionValueString.cpp + OptionValueUInt64.cpp + OptionValueUUID.cpp + OptionGroupVariable.cpp + OptionGroupWatchpoint.cpp + Options.cpp + Property.cpp + PythonDataObjects.cpp + ScriptInterpreter.cpp + ScriptInterpreterNone.cpp + ScriptInterpreterPython.cpp + ) diff --git a/lldb/source/Plugins/ABI/CMakeLists.txt b/lldb/source/Plugins/ABI/CMakeLists.txt new file mode 100644 index 0000000..c6316e0 --- /dev/null +++ b/lldb/source/Plugins/ABI/CMakeLists.txt @@ -0,0 +1,3 @@ +add_subdirectory(SysV-x86_64) +add_subdirectory(MacOSX-i386) +add_subdirectory(MacOSX-arm) diff --git a/lldb/source/Plugins/ABI/MacOSX-arm/CMakeLists.txt b/lldb/source/Plugins/ABI/MacOSX-arm/CMakeLists.txt new file mode 100644 index 0000000..9dfc2ca --- /dev/null +++ b/lldb/source/Plugins/ABI/MacOSX-arm/CMakeLists.txt @@ -0,0 +1,5 @@ +set(LLVM_NO_RTTI 1) + +add_lldb_library(lldbPluginABIMacOSX_arm + ABIMacOSX_arm.cpp + ) diff --git a/lldb/source/Plugins/ABI/MacOSX-i386/CMakeLists.txt b/lldb/source/Plugins/ABI/MacOSX-i386/CMakeLists.txt new file mode 100644 index 0000000..d2a5f5a --- /dev/null +++ b/lldb/source/Plugins/ABI/MacOSX-i386/CMakeLists.txt @@ -0,0 +1,5 @@ +set(LLVM_NO_RTTI 1) + +add_lldb_library(lldbPluginABIMacOSX_i386 + ABIMacOSX_i386.cpp + ) diff --git a/lldb/source/Plugins/ABI/SysV-x86_64/CMakeLists.txt b/lldb/source/Plugins/ABI/SysV-x86_64/CMakeLists.txt new file mode 100644 index 0000000..0907248 --- /dev/null +++ b/lldb/source/Plugins/ABI/SysV-x86_64/CMakeLists.txt @@ -0,0 +1,5 @@ +set(LLVM_NO_RTTI 1) + +add_lldb_library(lldbPluginABISysV_x86_64 + ABISysV_x86_64.cpp + ) diff --git a/lldb/source/Plugins/CMakeLists.txt b/lldb/source/Plugins/CMakeLists.txt new file mode 100644 index 0000000..7e19b3f --- /dev/null +++ b/lldb/source/Plugins/CMakeLists.txt @@ -0,0 +1,13 @@ +add_subdirectory(ABI) +add_subdirectory(Disassembler) +add_subdirectory(DynamicLoader) +add_subdirectory(Instruction) +add_subdirectory(LanguageRuntime) +add_subdirectory(ObjectContainer) +add_subdirectory(ObjectFile) +add_subdirectory(OperatingSystem) +add_subdirectory(Platform) +add_subdirectory(Process) +add_subdirectory(SymbolFile) +add_subdirectory(SymbolVendor) +add_subdirectory(UnwindAssembly) diff --git a/lldb/source/Plugins/Disassembler/CMakeLists.txt b/lldb/source/Plugins/Disassembler/CMakeLists.txt new file mode 100644 index 0000000..dd2113b --- /dev/null +++ b/lldb/source/Plugins/Disassembler/CMakeLists.txt @@ -0,0 +1 @@ +add_subdirectory(llvm) diff --git a/lldb/source/Plugins/Disassembler/llvm/CMakeLists.txt b/lldb/source/Plugins/Disassembler/llvm/CMakeLists.txt new file mode 100644 index 0000000..f82627a --- /dev/null +++ b/lldb/source/Plugins/Disassembler/llvm/CMakeLists.txt @@ -0,0 +1,5 @@ +set(LLVM_NO_RTTI 1) + +add_lldb_library(lldbPluginDisassemblerLLVM + DisassemblerLLVMC.cpp + ) diff --git a/lldb/source/Plugins/DynamicLoader/CMakeLists.txt b/lldb/source/Plugins/DynamicLoader/CMakeLists.txt new file mode 100644 index 0000000..22ce69c --- /dev/null +++ b/lldb/source/Plugins/DynamicLoader/CMakeLists.txt @@ -0,0 +1,4 @@ +add_subdirectory(Darwin-Kernel) +add_subdirectory(MacOSX-DYLD) +add_subdirectory(POSIX-DYLD) +add_subdirectory(Static) diff --git a/lldb/source/Plugins/DynamicLoader/Darwin-Kernel/CMakeLists.txt b/lldb/source/Plugins/DynamicLoader/Darwin-Kernel/CMakeLists.txt new file mode 100644 index 0000000..6db034d --- /dev/null +++ b/lldb/source/Plugins/DynamicLoader/Darwin-Kernel/CMakeLists.txt @@ -0,0 +1,5 @@ +set(LLVM_NO_RTTI 1) + +add_lldb_library(lldbPluginDynamicLoaderDarwinKernel + DynamicLoaderDarwinKernel.cpp + ) diff --git a/lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/CMakeLists.txt b/lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/CMakeLists.txt new file mode 100644 index 0000000..c78dc03 --- /dev/null +++ b/lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/CMakeLists.txt @@ -0,0 +1,5 @@ +set(LLVM_NO_RTTI 1) + +add_lldb_library(lldbPluginDynamicLoaderMacOSXDYLD + DynamicLoaderMacOSXDYLD.cpp + ) diff --git a/lldb/source/Plugins/DynamicLoader/POSIX-DYLD/CMakeLists.txt b/lldb/source/Plugins/DynamicLoader/POSIX-DYLD/CMakeLists.txt new file mode 100644 index 0000000..4dc3456 --- /dev/null +++ b/lldb/source/Plugins/DynamicLoader/POSIX-DYLD/CMakeLists.txt @@ -0,0 +1,7 @@ +set(LLVM_NO_RTTI 1) + +add_lldb_library(lldbPluginDynamicLoaderPosixDYLD + AuxVector.cpp + DYLDRendezvous.cpp + DynamicLoaderPOSIXDYLD.cpp + ) diff --git a/lldb/source/Plugins/DynamicLoader/Static/CMakeLists.txt b/lldb/source/Plugins/DynamicLoader/Static/CMakeLists.txt new file mode 100644 index 0000000..3c0b519 --- /dev/null +++ b/lldb/source/Plugins/DynamicLoader/Static/CMakeLists.txt @@ -0,0 +1,5 @@ +set(LLVM_NO_RTTI 1) + +add_lldb_library(lldbPluginDynamicLoaderStatic + DynamicLoaderStatic.cpp + ) diff --git a/lldb/source/Plugins/Instruction/ARM/CMakeLists.txt b/lldb/source/Plugins/Instruction/ARM/CMakeLists.txt new file mode 100644 index 0000000..7089b83 --- /dev/null +++ b/lldb/source/Plugins/Instruction/ARM/CMakeLists.txt @@ -0,0 +1,6 @@ +set(LLVM_NO_RTTI 1) + +add_lldb_library(lldbPluginInstructionARM + EmulateInstructionARM.cpp + EmulationStateARM.cpp + ) diff --git a/lldb/source/Plugins/Instruction/CMakeLists.txt b/lldb/source/Plugins/Instruction/CMakeLists.txt new file mode 100644 index 0000000..69a7cea --- /dev/null +++ b/lldb/source/Plugins/Instruction/CMakeLists.txt @@ -0,0 +1 @@ +add_subdirectory(ARM) diff --git a/lldb/source/Plugins/LanguageRuntime/CMakeLists.txt b/lldb/source/Plugins/LanguageRuntime/CMakeLists.txt new file mode 100644 index 0000000..72694dc --- /dev/null +++ b/lldb/source/Plugins/LanguageRuntime/CMakeLists.txt @@ -0,0 +1,2 @@ +add_subdirectory(CPlusPlus) +add_subdirectory(ObjC) diff --git a/lldb/source/Plugins/LanguageRuntime/CPlusPlus/CMakeLists.txt b/lldb/source/Plugins/LanguageRuntime/CPlusPlus/CMakeLists.txt new file mode 100644 index 0000000..4fdf103 --- /dev/null +++ b/lldb/source/Plugins/LanguageRuntime/CPlusPlus/CMakeLists.txt @@ -0,0 +1,2 @@ +add_subdirectory(ItaniumABI) +#add_subdirectory(MicrosoftABI) diff --git a/lldb/source/Plugins/LanguageRuntime/CPlusPlus/ItaniumABI/CMakeLists.txt b/lldb/source/Plugins/LanguageRuntime/CPlusPlus/ItaniumABI/CMakeLists.txt new file mode 100644 index 0000000..0136630 --- /dev/null +++ b/lldb/source/Plugins/LanguageRuntime/CPlusPlus/ItaniumABI/CMakeLists.txt @@ -0,0 +1,5 @@ +set(LLVM_NO_RTTI 1) + +add_lldb_library(lldbPluginCXXItaniumABI + ItaniumABILanguageRuntime.cpp + ) diff --git a/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/CMakeLists.txt b/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/CMakeLists.txt new file mode 100644 index 0000000..d0c0181 --- /dev/null +++ b/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/CMakeLists.txt @@ -0,0 +1,10 @@ +set(LLVM_NO_RTTI 1) + +add_lldb_library(lldbPluginAppleObjCRuntime + AppleObjCRuntime.cpp + AppleObjCRuntimeV1.cpp + AppleObjCRuntimeV2.cpp + AppleObjCTrampolineHandler.cpp + AppleObjCTypeVendor.cpp + AppleThreadPlanStepThroughObjCTrampoline.cpp + ) diff --git a/lldb/source/Plugins/LanguageRuntime/ObjC/CMakeLists.txt b/lldb/source/Plugins/LanguageRuntime/ObjC/CMakeLists.txt new file mode 100644 index 0000000..e4ce578 --- /dev/null +++ b/lldb/source/Plugins/LanguageRuntime/ObjC/CMakeLists.txt @@ -0,0 +1 @@ +add_subdirectory(AppleObjCRuntime) diff --git a/lldb/source/Plugins/ObjectContainer/BSD-Archive/CMakeLists.txt b/lldb/source/Plugins/ObjectContainer/BSD-Archive/CMakeLists.txt new file mode 100644 index 0000000..f206cdb --- /dev/null +++ b/lldb/source/Plugins/ObjectContainer/BSD-Archive/CMakeLists.txt @@ -0,0 +1,5 @@ +set(LLVM_NO_RTTI 1) + +add_lldb_library(lldbPluginObjectContainerBSDArchive + ObjectContainerBSDArchive.cpp + ) diff --git a/lldb/source/Plugins/ObjectContainer/CMakeLists.txt b/lldb/source/Plugins/ObjectContainer/CMakeLists.txt new file mode 100644 index 0000000..2a06774 --- /dev/null +++ b/lldb/source/Plugins/ObjectContainer/CMakeLists.txt @@ -0,0 +1,2 @@ +add_subdirectory(BSD-Archive) +add_subdirectory(Universal-Mach-O) diff --git a/lldb/source/Plugins/ObjectContainer/Universal-Mach-O/CMakeLists.txt b/lldb/source/Plugins/ObjectContainer/Universal-Mach-O/CMakeLists.txt new file mode 100644 index 0000000..7d0aef8 --- /dev/null +++ b/lldb/source/Plugins/ObjectContainer/Universal-Mach-O/CMakeLists.txt @@ -0,0 +1,5 @@ +set(LLVM_NO_RTTI 1) + +add_lldb_library(lldbPluginObjectContainerMachOArchive + ObjectContainerUniversalMachO.cpp + ) diff --git a/lldb/source/Plugins/ObjectFile/CMakeLists.txt b/lldb/source/Plugins/ObjectFile/CMakeLists.txt new file mode 100644 index 0000000..14861ab --- /dev/null +++ b/lldb/source/Plugins/ObjectFile/CMakeLists.txt @@ -0,0 +1,3 @@ +add_subdirectory(ELF) +add_subdirectory(Mach-O) +add_subdirectory(PECOFF) diff --git a/lldb/source/Plugins/ObjectFile/ELF/CMakeLists.txt b/lldb/source/Plugins/ObjectFile/ELF/CMakeLists.txt new file mode 100644 index 0000000..073c47e --- /dev/null +++ b/lldb/source/Plugins/ObjectFile/ELF/CMakeLists.txt @@ -0,0 +1,6 @@ +set(LLVM_NO_RTTI 1) + +add_lldb_library(lldbPluginObjectFileELF + ELFHeader.cpp + ObjectFileELF.cpp + ) diff --git a/lldb/source/Plugins/ObjectFile/Mach-O/CMakeLists.txt b/lldb/source/Plugins/ObjectFile/Mach-O/CMakeLists.txt new file mode 100644 index 0000000..aac9713 --- /dev/null +++ b/lldb/source/Plugins/ObjectFile/Mach-O/CMakeLists.txt @@ -0,0 +1,5 @@ +set(LLVM_NO_RTTI 1) + +add_lldb_library(lldbPluginObjectFileMachO + ObjectFileMachO.cpp + ) diff --git a/lldb/source/Plugins/ObjectFile/PECOFF/CMakeLists.txt b/lldb/source/Plugins/ObjectFile/PECOFF/CMakeLists.txt new file mode 100644 index 0000000..f704665 --- /dev/null +++ b/lldb/source/Plugins/ObjectFile/PECOFF/CMakeLists.txt @@ -0,0 +1,5 @@ +set(LLVM_NO_RTTI 1) + +add_lldb_library(lldbPluginObjectFilePECOFF + ObjectFilePECOFF.cpp + ) diff --git a/lldb/source/Plugins/OperatingSystem/CMakeLists.txt b/lldb/source/Plugins/OperatingSystem/CMakeLists.txt new file mode 100644 index 0000000..980d4a5 --- /dev/null +++ b/lldb/source/Plugins/OperatingSystem/CMakeLists.txt @@ -0,0 +1,2 @@ +#add_subdirectory(Darwin-Kernel) +add_subdirectory(Python) diff --git a/lldb/source/Plugins/OperatingSystem/Darwin-Kernel/CMakeLists.txt b/lldb/source/Plugins/OperatingSystem/Darwin-Kernel/CMakeLists.txt new file mode 100644 index 0000000..ea1891a --- /dev/null +++ b/lldb/source/Plugins/OperatingSystem/Darwin-Kernel/CMakeLists.txt @@ -0,0 +1,5 @@ +set(LLVM_NO_RTTI 1) + +add_lldb_library(lldbPluginOSDarwinKernel + OperatingSystemDarwinKernel.cpp + ) diff --git a/lldb/source/Plugins/OperatingSystem/Python/CMakeLists.txt b/lldb/source/Plugins/OperatingSystem/Python/CMakeLists.txt new file mode 100644 index 0000000..ceed468 --- /dev/null +++ b/lldb/source/Plugins/OperatingSystem/Python/CMakeLists.txt @@ -0,0 +1,5 @@ +set(LLVM_NO_RTTI 1) + +add_lldb_library(lldbPluginOSPython + OperatingSystemPython.cpp + ) diff --git a/lldb/source/Plugins/Platform/CMakeLists.txt b/lldb/source/Plugins/Platform/CMakeLists.txt new file mode 100644 index 0000000..c65ca5a --- /dev/null +++ b/lldb/source/Plugins/Platform/CMakeLists.txt @@ -0,0 +1,5 @@ +add_subdirectory(FreeBSD) +add_subdirectory(gdb-server) +add_subdirectory(Linux) +add_subdirectory(MacOSX) +#add_subdirectory(Windows) diff --git a/lldb/source/Plugins/Platform/FreeBSD/CMakeLists.txt b/lldb/source/Plugins/Platform/FreeBSD/CMakeLists.txt new file mode 100644 index 0000000..a4d6f59 --- /dev/null +++ b/lldb/source/Plugins/Platform/FreeBSD/CMakeLists.txt @@ -0,0 +1,5 @@ +set(LLVM_NO_RTTI 1) + +add_lldb_library(lldbPluginPlatformFreeBSD + PlatformFreeBSD.cpp + ) diff --git a/lldb/source/Plugins/Platform/Linux/CMakeLists.txt b/lldb/source/Plugins/Platform/Linux/CMakeLists.txt new file mode 100644 index 0000000..827585f --- /dev/null +++ b/lldb/source/Plugins/Platform/Linux/CMakeLists.txt @@ -0,0 +1,5 @@ +set(LLVM_NO_RTTI 1) + +add_lldb_library(lldbPluginPlatformLinux + PlatformLinux.cpp + ) diff --git a/lldb/source/Plugins/Platform/MacOSX/CMakeLists.txt b/lldb/source/Plugins/Platform/MacOSX/CMakeLists.txt new file mode 100644 index 0000000..bf34db0 --- /dev/null +++ b/lldb/source/Plugins/Platform/MacOSX/CMakeLists.txt @@ -0,0 +1,8 @@ +set(LLVM_NO_RTTI 1) + +add_lldb_library(lldbPluginPlatformMacOSX + PlatformDarwin.cpp + PlatformiOSSimulator.cpp + PlatformMacOSX.cpp + PlatformRemoteiOS.cpp + ) diff --git a/lldb/source/Plugins/Platform/gdb-server/CMakeLists.txt b/lldb/source/Plugins/Platform/gdb-server/CMakeLists.txt new file mode 100644 index 0000000..e46021c --- /dev/null +++ b/lldb/source/Plugins/Platform/gdb-server/CMakeLists.txt @@ -0,0 +1,5 @@ +set(LLVM_NO_RTTI 1) + +add_lldb_library(lldbPluginPlatformGDB + PlatformRemoteGDBServer.cpp + ) diff --git a/lldb/source/Plugins/Process/CMakeLists.txt b/lldb/source/Plugins/Process/CMakeLists.txt new file mode 100644 index 0000000..fe56d9b --- /dev/null +++ b/lldb/source/Plugins/Process/CMakeLists.txt @@ -0,0 +1,7 @@ +#add_subdirectory(FreeBSD) +add_subdirectory(gdb-remote) +add_subdirectory(Linux) +#add_subdirectory(mach-core) +#add_subdirectory(MacOSx-Kernel) +add_subdirectory(POSIX) +add_subdirectory(Utility) diff --git a/lldb/source/Plugins/Process/FreeBSD/CMakeLists.txt b/lldb/source/Plugins/Process/FreeBSD/CMakeLists.txt new file mode 100644 index 0000000..430f01e --- /dev/null +++ b/lldb/source/Plugins/Process/FreeBSD/CMakeLists.txt @@ -0,0 +1,6 @@ +set(LLVM_NO_RTTI 1) + +add_lldb_library(lldbPluginProcessFreeBSD + ProcessFreeBSD.cpp + ProcessMonitor.cpp + ) diff --git a/lldb/source/Plugins/Process/Linux/CMakeLists.txt b/lldb/source/Plugins/Process/Linux/CMakeLists.txt new file mode 100644 index 0000000..96ccb4d --- /dev/null +++ b/lldb/source/Plugins/Process/Linux/CMakeLists.txt @@ -0,0 +1,11 @@ +set(LLVM_NO_RTTI 1) + +include_directories(.) +include_directories(../POSIX) + +add_lldb_library(lldbPluginProcessLinux + ProcessLinux.cpp + ProcessMonitor.cpp + LinuxSignals.cpp + ) + diff --git a/lldb/source/Plugins/Process/MacOSX-Kernel/CMakeLists.txt b/lldb/source/Plugins/Process/MacOSX-Kernel/CMakeLists.txt new file mode 100644 index 0000000..4203a87 --- /dev/null +++ b/lldb/source/Plugins/Process/MacOSX-Kernel/CMakeLists.txt @@ -0,0 +1,11 @@ +set(LLVM_NO_RTTI 1) + +add_lldb_library(lldbPluginProcessMacOSXKernel + CommunicationKDP.cpp + ProcessKDP.cpp + ProcessKDPLog.cpp + RegisterContextKDP_arm.cpp + RegisterContextKDP_i386.cpp + RegisterContextKDP_x86_64.cpp + ThreadKDP.cpp + ) diff --git a/lldb/source/Plugins/Process/POSIX/CMakeLists.txt b/lldb/source/Plugins/Process/POSIX/CMakeLists.txt new file mode 100644 index 0000000..741a55f --- /dev/null +++ b/lldb/source/Plugins/Process/POSIX/CMakeLists.txt @@ -0,0 +1,15 @@ +set(LLVM_NO_RTTI 1) + +include_directories(.) +include_directories(../Linux) +include_directories(../Utility) + +add_lldb_library(lldbPluginProcessPOSIX + POSIXStopInfo.cpp + POSIXThread.cpp + ProcessMessage.cpp + ProcessPOSIX.cpp + ProcessPOSIXLog.cpp + RegisterContext_i386.cpp + RegisterContext_x86_64.cpp + ) diff --git a/lldb/source/Plugins/Process/Utility/CMakeLists.txt b/lldb/source/Plugins/Process/Utility/CMakeLists.txt new file mode 100644 index 0000000..252f509 --- /dev/null +++ b/lldb/source/Plugins/Process/Utility/CMakeLists.txt @@ -0,0 +1,19 @@ +set(LLVM_NO_RTTI 1) + +add_lldb_library(lldbPluginProcessUtility + DynamicRegisterInfo.cpp + InferiorCallPOSIX.cpp + RegisterContextDarwin_arm.cpp + RegisterContextDarwin_i386.cpp + RegisterContextDarwin_x86_64.cpp + RegisterContextLLDB.cpp + RegisterContextMach_arm.cpp + RegisterContextMach_i386.cpp + RegisterContextMach_x86_64.cpp + RegisterContextMacOSXFrameBackchain.cpp + RegisterContextMemory.cpp + StopInfoMachException.cpp + ThreadMemory.cpp + UnwindLLDB.cpp + UnwindMacOSXFrameBackchain.cpp + ) \ No newline at end of file diff --git a/lldb/source/Plugins/Process/gdb-remote/CMakeLists.txt b/lldb/source/Plugins/Process/gdb-remote/CMakeLists.txt new file mode 100644 index 0000000..32f0d13 --- /dev/null +++ b/lldb/source/Plugins/Process/gdb-remote/CMakeLists.txt @@ -0,0 +1,11 @@ +set(LLVM_NO_RTTI 1) + +add_lldb_library(lldbPluginProcessGDBRemote + GDBRemoteCommunication.cpp + GDBRemoteCommunicationClient.cpp + GDBRemoteCommunicationServer.cpp + GDBRemoteRegisterContext.cpp + ProcessGDBRemote.cpp + ProcessGDBRemoteLog.cpp + ThreadGDBRemote.cpp + ) \ No newline at end of file diff --git a/lldb/source/Plugins/Process/mach-core/CMakeLists.txt b/lldb/source/Plugins/Process/mach-core/CMakeLists.txt new file mode 100644 index 0000000..0016271 --- /dev/null +++ b/lldb/source/Plugins/Process/mach-core/CMakeLists.txt @@ -0,0 +1,6 @@ +set(LLVM_NO_RTTI 1) + +add_lldb_library(lldbPluginProcessMachCore + ProcessMachCore.cpp + ThreadMachCore.cpp + ) diff --git a/lldb/source/Plugins/SymbolFile/CMakeLists.txt b/lldb/source/Plugins/SymbolFile/CMakeLists.txt new file mode 100644 index 0000000..85e7129 --- /dev/null +++ b/lldb/source/Plugins/SymbolFile/CMakeLists.txt @@ -0,0 +1,2 @@ +add_subdirectory(DWARF) +add_subdirectory(Symtab) diff --git a/lldb/source/Plugins/SymbolFile/DWARF/CMakeLists.txt b/lldb/source/Plugins/SymbolFile/DWARF/CMakeLists.txt new file mode 100644 index 0000000..987111c --- /dev/null +++ b/lldb/source/Plugins/SymbolFile/DWARF/CMakeLists.txt @@ -0,0 +1,28 @@ +set(LLVM_NO_RTTI 1) + +add_lldb_library(lldbPluginSymbolFileDWARF + DWARFAbbreviationDeclaration.cpp + DWARFCompileUnit.cpp + DWARFDebugAbbrev.cpp + DWARFDebugAranges.cpp + DWARFDebugArangeSet.cpp + DWARFDebugInfo.cpp + DWARFDebugInfoEntry.cpp + DWARFDebugLine.cpp + DWARFDebugMacinfo.cpp + DWARFDebugMacinfoEntry.cpp + DWARFDebugPubnames.cpp + DWARFDebugPubnamesSet.cpp + DWARFDebugRanges.cpp + DWARFDeclContext.cpp + DWARFDefines.cpp + DWARFDIECollection.cpp + DWARFFormValue.cpp + DWARFLocationDescription.cpp + DWARFLocationList.cpp + LogChannelDWARF.cpp + NameToDIE.cpp + SymbolFileDWARF.cpp + SymbolFileDWARFDebugMap.cpp + UniqueDWARFASTType.cpp + ) diff --git a/lldb/source/Plugins/SymbolFile/Symtab/CMakeLists.txt b/lldb/source/Plugins/SymbolFile/Symtab/CMakeLists.txt new file mode 100644 index 0000000..00252ff --- /dev/null +++ b/lldb/source/Plugins/SymbolFile/Symtab/CMakeLists.txt @@ -0,0 +1,5 @@ +set(LLVM_NO_RTTI 1) + +add_lldb_library(lldbPluginSymbolFileSymtab + SymbolFileSymtab.cpp + ) diff --git a/lldb/source/Plugins/SymbolVendor/CMakeLists.txt b/lldb/source/Plugins/SymbolVendor/CMakeLists.txt new file mode 100644 index 0000000..a50a542 --- /dev/null +++ b/lldb/source/Plugins/SymbolVendor/CMakeLists.txt @@ -0,0 +1 @@ +#add_subdirectory(MacOSX) diff --git a/lldb/source/Plugins/SymbolVendor/MacOSX/CMakeLists.txt b/lldb/source/Plugins/SymbolVendor/MacOSX/CMakeLists.txt new file mode 100644 index 0000000..e47f52f --- /dev/null +++ b/lldb/source/Plugins/SymbolVendor/MacOSX/CMakeLists.txt @@ -0,0 +1,5 @@ +set(LLVM_NO_RTTI 1) + +add_lldb_library(lldbPluginSymbolVendorMacOSX + SymbolVendorMacOSX.cpp + ) diff --git a/lldb/source/Plugins/UnwindAssembly/CMakeLists.txt b/lldb/source/Plugins/UnwindAssembly/CMakeLists.txt new file mode 100644 index 0000000..c4a9729 --- /dev/null +++ b/lldb/source/Plugins/UnwindAssembly/CMakeLists.txt @@ -0,0 +1,2 @@ +add_subdirectory(InstEmulation) +add_subdirectory(x86) diff --git a/lldb/source/Plugins/UnwindAssembly/InstEmulation/CMakeLists.txt b/lldb/source/Plugins/UnwindAssembly/InstEmulation/CMakeLists.txt new file mode 100644 index 0000000..6003672 --- /dev/null +++ b/lldb/source/Plugins/UnwindAssembly/InstEmulation/CMakeLists.txt @@ -0,0 +1,5 @@ +set(LLVM_NO_RTTI 1) + +add_lldb_library(lldbPluginUnwindAssemblyInstEmulation + UnwindAssemblyInstEmulation.cpp + ) diff --git a/lldb/source/Plugins/UnwindAssembly/x86/CMakeLists.txt b/lldb/source/Plugins/UnwindAssembly/x86/CMakeLists.txt new file mode 100644 index 0000000..bb0ffad --- /dev/null +++ b/lldb/source/Plugins/UnwindAssembly/x86/CMakeLists.txt @@ -0,0 +1,5 @@ +set(LLVM_NO_RTTI 1) + +add_lldb_library(lldbPluginUnwindAssemblyX86 + UnwindAssembly-x86.cpp + ) diff --git a/lldb/source/Symbol/CMakeLists.txt b/lldb/source/Symbol/CMakeLists.txt new file mode 100644 index 0000000..d018293 --- /dev/null +++ b/lldb/source/Symbol/CMakeLists.txt @@ -0,0 +1,32 @@ +set(LLVM_NO_RTTI 1) + +add_lldb_library(lldbSymbol + Block.cpp + ClangASTContext.cpp + ClangASTImporter.cpp + ClangASTType.cpp + ClangExternalASTSourceCallbacks.cpp + ClangExternalASTSourceCommon.cpp + ClangNamespaceDecl.cpp + CompileUnit.cpp + Declaration.cpp + DWARFCallFrameInfo.cpp + Function.cpp + FuncUnwinders.cpp + LineEntry.cpp + LineTable.cpp + ObjectFile.cpp + Symbol.cpp + SymbolContext.cpp + SymbolFile.cpp + SymbolVendor.cpp + Symtab.cpp + Type.cpp + TypeHierarchyNavigator.cpp + TypeList.cpp + UnwindPlan.cpp + UnwindTable.cpp + Variable.cpp + VariableList.cpp + VerifyDecl.cpp + ) diff --git a/lldb/source/Target/CMakeLists.txt b/lldb/source/Target/CMakeLists.txt new file mode 100644 index 0000000..383e6db --- /dev/null +++ b/lldb/source/Target/CMakeLists.txt @@ -0,0 +1,44 @@ +set(LLVM_NO_RTTI 1) + +include_directories(../Plugins/Process/Utility) + +add_lldb_library(lldbTarget + ABI.cpp + CPPLanguageRuntime.cpp + ExecutionContext.cpp + LanguageRuntime.cpp + Memory.cpp + ObjCLanguageRuntime.cpp + OperatingSystem.cpp + PathMappingList.cpp + Platform.cpp + Process.cpp + RegisterContext.cpp + SectionLoadList.cpp + StackFrame.cpp + StackFrameList.cpp + StackID.cpp + StopInfo.cpp + Target.cpp + TargetList.cpp + Thread.cpp + ThreadList.cpp + ThreadPlan.cpp + ThreadPlanBase.cpp + ThreadPlanCallFunction.cpp + ThreadPlanCallUserExpression.cpp + ThreadPlanRunToAddress.cpp + ThreadPlanShouldStopHere.cpp + ThreadPlanStepInRange.cpp + ThreadPlanStepInstruction.cpp + ThreadPlanStepOut.cpp + ThreadPlanStepOverBreakpoint.cpp + ThreadPlanStepOverRange.cpp + ThreadPlanStepRange.cpp + ThreadPlanStepThrough.cpp + ThreadPlanStepUntil.cpp + ThreadPlanTracer.cpp + ThreadSpec.cpp + UnixSignals.cpp + UnwindAssembly.cpp + ) diff --git a/lldb/source/Utility/CMakeLists.txt b/lldb/source/Utility/CMakeLists.txt new file mode 100644 index 0000000..326afae --- /dev/null +++ b/lldb/source/Utility/CMakeLists.txt @@ -0,0 +1,10 @@ +set(LLVM_NO_RTTI 1) + +add_lldb_library(lldbUtility + ARM_DWARF_Registers.cpp + PseudoTerminal.cpp + RefCounter.cpp + SharingPtr.cpp + StringExtractor.cpp + StringExtractorGDBRemote.cpp + )