| 1 |
import("//lldb/utils/TableGen/lldb_tablegen.gni") |
| 2 |
|
| 3 |
lldb_tablegen("ObjectFilePECOFFProperties") { |
| 4 |
args = [ "-gen-lldb-property-defs" ] |
| 5 |
} |
| 6 |
|
| 7 |
lldb_tablegen("ObjectFilePECOFFPropertiesEnum") { |
| 8 |
args = [ "-gen-lldb-property-enum-defs" ] |
| 9 |
td_file = "ObjectFilePECOFFProperties.td" |
| 10 |
} |
| 11 |
|
| 12 |
static_library("PECOFF") { |
| 13 |
output_name = "lldbPluginObjectFilePECOFF" |
| 14 |
configs += [ "//llvm/utils/gn/build:lldb_code" ] |
| 15 |
deps = [ |
| 16 |
":ObjectFilePECOFFProperties", |
| 17 |
":ObjectFilePECOFFPropertiesEnum", |
| 18 |
"//lldb/source/Core", |
| 19 |
"//lldb/source/Host", |
| 20 |
"//lldb/source/Symbol", |
| 21 |
"//lldb/source/Target", |
| 22 |
"//llvm/lib/BinaryFormat", |
| 23 |
"//llvm/lib/Support", |
| 24 |
"//llvm/lib/TargetParser", |
| 25 |
] |
| 26 |
|
| 27 |
# Reaches into Plugins/Process/Utility. |
| 28 |
include_dirs = [ "//lldb/source" ] |
| 29 |
sources = [ |
| 30 |
"ObjectFilePECOFF.cpp", |
| 31 |
"PECallFrameInfo.cpp", |
| 32 |
"WindowsMiniDump.cpp", |
| 33 |
] |
| 34 |
|
| 35 |
if (current_os == "win") { |
| 36 |
# Dbghelp is used on windows for writing minidump files. |
| 37 |
libs = [ "dbghelp.lib" ] |
| 38 |
} |
| 39 |
} |