[gn build] (manually) port 82f86ae01
authorNico Weber <thakis@chromium.org>
Thu, 5 Nov 2020 19:11:26 +0000 (14:11 -0500)
committerNico Weber <thakis@chromium.org>
Thu, 5 Nov 2020 19:11:26 +0000 (14:11 -0500)
clang/tools/apinotes-test/CMakeLists.txt
llvm/utils/gn/secondary/clang/lib/APINotes/BUILD.gn [new file with mode: 0644]
llvm/utils/gn/secondary/clang/test/BUILD.gn
llvm/utils/gn/secondary/clang/tools/apinotes-test/BUILD.gn [new file with mode: 0644]

index 39e82d9..82c3b7b 100644 (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)
diff --git a/llvm/utils/gn/secondary/clang/lib/APINotes/BUILD.gn b/llvm/utils/gn/secondary/clang/lib/APINotes/BUILD.gn
new file mode 100644 (file)
index 0000000..e49d3d0
--- /dev/null
@@ -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" ]
+}
index a0680d9..9219d2d 100644 (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",
diff --git a/llvm/utils/gn/secondary/clang/tools/apinotes-test/BUILD.gn b/llvm/utils/gn/secondary/clang/tools/apinotes-test/BUILD.gn
new file mode 100644 (file)
index 0000000..d9fce41
--- /dev/null
@@ -0,0 +1,7 @@
+executable("apinotes-test") {
+  configs += [ "//llvm/utils/gn/build:clang_code" ]
+  deps = [
+    "//clang/lib/APINotes",
+  ]
+  sources = [ "APINotesTest.cpp" ]
+}