[gn build] (manually) port 82f86ae01

This commit is contained in:
Nico Weber 2020-11-05 14:11:26 -05:00
parent 98d7e583db
commit b69af88481
4 changed files with 19 additions and 1 deletions

View File

@ -1,6 +1,7 @@
set(LLVM_LINK_COMPONENTS
Support)
add_clang_executable(apinotes-test
APINotesTest.cpp)
APINotesTest.cpp
)
clang_target_link_libraries(apinotes-test PRIVATE
clangAPINotes)

View File

@ -0,0 +1,9 @@
static_library("APINotes") {
output_name = "clangAPINotes"
configs += [ "//llvm/utils/gn/build:clang_code" ]
deps = [
"//clang/lib/Basic",
"//llvm/lib/Support",
]
sources = [ "APINotesYAMLCompiler.cpp" ]
}

View File

@ -131,6 +131,7 @@ group("test") {
":lit_site_cfg",
":lit_unit_site_cfg",
"//clang/lib/Headers",
"//clang/tools/apinotes-test",
"//clang/tools/c-index-test",
"//clang/tools/clang-diff",
"//clang/tools/clang-format",

View File

@ -0,0 +1,7 @@
executable("apinotes-test") {
configs += [ "//llvm/utils/gn/build:clang_code" ]
deps = [
"//clang/lib/APINotes",
]
sources = [ "APINotesTest.cpp" ]
}