[clang] b69af88 - [gn build] (manually) port 82f86ae01

Nico Weber via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 5 11:11:46 PST 2020


Author: Nico Weber
Date: 2020-11-05T14:11:26-05:00
New Revision: b69af88481aa88e04ff4490dc8d420ec570ec0f1

URL: https://github.com/llvm/llvm-project/commit/b69af88481aa88e04ff4490dc8d420ec570ec0f1
DIFF: https://github.com/llvm/llvm-project/commit/b69af88481aa88e04ff4490dc8d420ec570ec0f1.diff

LOG: [gn build] (manually) port 82f86ae01

Added: 
    llvm/utils/gn/secondary/clang/lib/APINotes/BUILD.gn
    llvm/utils/gn/secondary/clang/tools/apinotes-test/BUILD.gn

Modified: 
    clang/tools/apinotes-test/CMakeLists.txt
    llvm/utils/gn/secondary/clang/test/BUILD.gn

Removed: 
    


################################################################################
diff  --git a/clang/tools/apinotes-test/CMakeLists.txt b/clang/tools/apinotes-test/CMakeLists.txt
index 39e82d90b74f..82c3b7bcb648 100644
--- a/clang/tools/apinotes-test/CMakeLists.txt
+++ b/clang/tools/apinotes-test/CMakeLists.txt
@@ -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
index 000000000000..e49d3d08dc07
--- /dev/null
+++ b/llvm/utils/gn/secondary/clang/lib/APINotes/BUILD.gn
@@ -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" ]
+}

diff  --git a/llvm/utils/gn/secondary/clang/test/BUILD.gn b/llvm/utils/gn/secondary/clang/test/BUILD.gn
index a0680d984823..9219d2d7bfad 100644
--- a/llvm/utils/gn/secondary/clang/test/BUILD.gn
+++ b/llvm/utils/gn/secondary/clang/test/BUILD.gn
@@ -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
index 000000000000..d9fce4156908
--- /dev/null
+++ b/llvm/utils/gn/secondary/clang/tools/apinotes-test/BUILD.gn
@@ -0,0 +1,7 @@
+executable("apinotes-test") {
+  configs += [ "//llvm/utils/gn/build:clang_code" ]
+  deps = [
+    "//clang/lib/APINotes",
+  ]
+  sources = [ "APINotesTest.cpp" ]
+}


        


More information about the cfe-commits mailing list