Add Makefile support for the Platform plugins.
This patch supports building the Linux platform plugin, and should also support the MacOSX plugin as well (the MacOSX side has not been tested, unfortunately). A small typo was corrected in lldb.cpp to initialize the new platform code on Linux. llvm-svn: 127393
This commit is contained in:
parent
c574ede632
commit
1636265248
|
@ -65,12 +65,14 @@ ifeq ($(HOST_OS),Darwin)
|
|||
lldbPluginObjectContainerUniversalMachO.a \
|
||||
lldbPluginObjectFileMachO.a \
|
||||
lldbPluginProcessGDBRemote.a \
|
||||
lldbPluginSymbolVendorMacOSX.a
|
||||
lldbPluginSymbolVendorMacOSX.a \
|
||||
lldbPluginPlatformMacOSX.a
|
||||
endif
|
||||
|
||||
ifeq ($(HOST_OS),Linux)
|
||||
USEDLIBS += lldbPluginProcessLinux.a \
|
||||
lldbPluginDynamicLoaderLinux.a
|
||||
lldbPluginDynamicLoaderLinux.a \
|
||||
lldbPluginPlatformLinux.a
|
||||
endif
|
||||
|
||||
include $(LEVEL)/Makefile.common
|
||||
|
|
|
@ -14,7 +14,8 @@ include $(LLDB_LEVEL)/../../Makefile.config
|
|||
|
||||
DIRS := ABI/MacOSX-i386 ABI/SysV-x86_64 Disassembler/llvm \
|
||||
ObjectContainer/BSD-Archive ObjectFile/ELF SymbolFile/DWARF \
|
||||
SymbolFile/Symtab Process/Utility DynamicLoader/Static
|
||||
SymbolFile/Symtab Process/Utility DynamicLoader/Static \
|
||||
Platform
|
||||
|
||||
ifeq ($(HOST_OS),Darwin)
|
||||
DIRS += DynamicLoader/MacOSX-DYLD ObjectContainer/Universal-Mach-O \
|
||||
|
|
|
@ -0,0 +1,14 @@
|
|||
##===- source/Plugins/Platform/Linux/Makefile --------------*- Makefile -*-===##
|
||||
#
|
||||
# The LLVM Compiler Infrastructure
|
||||
#
|
||||
# This file is distributed under the University of Illinois Open Source
|
||||
# License. See LICENSE.TXT for details.
|
||||
#
|
||||
##===----------------------------------------------------------------------===##
|
||||
|
||||
LLDB_LEVEL := ../../../..
|
||||
LIBRARYNAME := lldbPluginPlatformLinux
|
||||
BUILD_ARCHIVE = 1
|
||||
|
||||
include $(LLDB_LEVEL)/Makefile
|
|
@ -0,0 +1,15 @@
|
|||
##===- source/Plugins/Platform/MacOSX/Makefile -------------*- Makefile -*-===##
|
||||
#
|
||||
# The LLVM Compiler Infrastructure
|
||||
#
|
||||
# This file is distributed under the University of Illinois Open Source
|
||||
# License. See LICENSE.TXT for details.
|
||||
#
|
||||
##===----------------------------------------------------------------------===##
|
||||
|
||||
LLDB_LEVEL := ../../../..
|
||||
LIBRARYNAME := lldbPluginPlatformMacOSX
|
||||
BUILD_ARCHIVE = 1
|
||||
|
||||
include $(LLDB_LEVEL)/Makefile
|
||||
|
|
@ -0,0 +1,24 @@
|
|||
##===- source/Plugins/Platform/Makefile --------------------*- Makefile -*-===##
|
||||
#
|
||||
# The LLVM Compiler Infrastructure
|
||||
#
|
||||
# This file is distributed under the University of Illinois Open Source
|
||||
# License. See LICENSE.TXT for details.
|
||||
#
|
||||
##===----------------------------------------------------------------------===##
|
||||
|
||||
LLDB_LEVEL := ../../..
|
||||
|
||||
include $(LLDB_LEVEL)/../../Makefile.config
|
||||
|
||||
DIRS :=
|
||||
|
||||
ifeq ($(HOST_OS),Darwin)
|
||||
DIRS += MacOSX
|
||||
endif
|
||||
|
||||
ifeq ($(HOST_OS),Linux)
|
||||
DIRS += Linux
|
||||
endif
|
||||
|
||||
include $(LLDB_LEVEL)/Makefile
|
|
@ -104,7 +104,7 @@ lldb_private::Initialize ()
|
|||
PlatformMacOSX::Initialize();
|
||||
#endif
|
||||
#if defined (__linux__)
|
||||
ProcessLinux::Initialize();
|
||||
PlatformLinux::Initialize();
|
||||
ProcessLinux::Initialize();
|
||||
DynamicLoaderLinuxDYLD::Initialize();
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue