| 1 |
import("//lldb/utils/TableGen/lldb_tablegen.gni") |
| 2 |
|
| 3 |
lldb_tablegen("PlatformMacOSXProperties") { |
| 4 |
args = [ "-gen-lldb-property-defs" ] |
| 5 |
} |
| 6 |
|
| 7 |
lldb_tablegen("PlatformMacOSXPropertiesEnum") { |
| 8 |
args = [ "-gen-lldb-property-enum-defs" ] |
| 9 |
td_file = "PlatformMacOSXProperties.td" |
| 10 |
} |
| 11 |
|
| 12 |
static_library("MacOSX") { |
| 13 |
output_name = "lldbPluginPlatformMacOSX" |
| 14 |
configs += [ |
| 15 |
"//llvm/utils/gn/build:clang_code", |
| 16 |
"//llvm/utils/gn/build:lldb_code", |
| 17 |
] |
| 18 |
deps = [ |
| 19 |
":PlatformMacOSXProperties", |
| 20 |
":PlatformMacOSXPropertiesEnum", |
| 21 |
"//clang/lib/Basic", |
| 22 |
"//lldb/source/Breakpoint", |
| 23 |
"//lldb/source/Core", |
| 24 |
"//lldb/source/Host", |
| 25 |
"//lldb/source/Interpreter", |
| 26 |
"//lldb/source/Plugins/DynamicLoader/Darwin-Kernel", |
| 27 |
"//lldb/source/Plugins/ObjectContainer/Mach-O-Fileset", |
| 28 |
"//lldb/source/Plugins/Platform/POSIX", |
| 29 |
"//lldb/source/Symbol", |
| 30 |
"//lldb/source/Target", |
| 31 |
"//lldb/source/Utility", |
| 32 |
"//llvm/lib/Support", |
| 33 |
"//llvm/lib/TargetParser", |
| 34 |
] |
| 35 |
|
| 36 |
# Reaches into Plugins/Platform/POSIX. |
| 37 |
include_dirs = [ "//lldb/source" ] |
| 38 |
sources = [ |
| 39 |
"PlatformDarwin.cpp", |
| 40 |
"PlatformDarwinDevice.cpp", |
| 41 |
"PlatformDarwinKernel.cpp", |
| 42 |
"PlatformMacOSX.cpp", |
| 43 |
"PlatformRemoteAppleBridge.cpp", |
| 44 |
"PlatformRemoteAppleTV.cpp", |
| 45 |
"PlatformRemoteAppleWatch.cpp", |
| 46 |
"PlatformRemoteAppleXR.cpp", |
| 47 |
"PlatformRemoteDarwinDevice.cpp", |
| 48 |
"PlatformRemoteMacOSX.cpp", |
| 49 |
"PlatformRemoteiOS.cpp", |
| 50 |
] |
| 51 |
if (host_os == "mac") { |
| 52 |
deps += [ "objcxx" ] |
| 53 |
sources += [ "PlatformAppleSimulator.cpp" ] |
| 54 |
} |
| 55 |
} |