[llvm] bb029a5 - [gn] port 4c6043de0b83 (InstallAPITests)

Nico Weber via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 20 12:57:43 PST 2024


Author: Nico Weber
Date: 2024-02-20T15:57:38-05:00
New Revision: bb029a5c039766ef83c88a456cf936cec0a1a69b

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

LOG: [gn] port 4c6043de0b83 (InstallAPITests)

Added: 
    llvm/utils/gn/secondary/clang/unittests/InstallAPI/BUILD.gn

Modified: 
    llvm/utils/gn/secondary/clang/lib/ExtractAPI/BUILD.gn
    llvm/utils/gn/secondary/clang/lib/InstallAPI/BUILD.gn
    llvm/utils/gn/secondary/clang/unittests/BUILD.gn

Removed: 
    


################################################################################
diff  --git a/llvm/utils/gn/secondary/clang/lib/ExtractAPI/BUILD.gn b/llvm/utils/gn/secondary/clang/lib/ExtractAPI/BUILD.gn
index 62b4af0635841a..ee60eee0da0fb8 100644
--- a/llvm/utils/gn/secondary/clang/lib/ExtractAPI/BUILD.gn
+++ b/llvm/utils/gn/secondary/clang/lib/ExtractAPI/BUILD.gn
@@ -6,6 +6,7 @@ static_library("ExtractAPI") {
     "//clang/lib/Basic",
     "//clang/lib/Frontend",
     "//clang/lib/Index",
+    "//clang/lib/InstallAPI",
     "//llvm/lib/Support",
     "//llvm/lib/TargetParser",
   ]

diff  --git a/llvm/utils/gn/secondary/clang/lib/InstallAPI/BUILD.gn b/llvm/utils/gn/secondary/clang/lib/InstallAPI/BUILD.gn
index 4d79ac805ac193..6eae7e293dce61 100644
--- a/llvm/utils/gn/secondary/clang/lib/InstallAPI/BUILD.gn
+++ b/llvm/utils/gn/secondary/clang/lib/InstallAPI/BUILD.gn
@@ -6,5 +6,9 @@ static_library("InstallAPI") {
     "//llvm/lib/Support",
     "//llvm/lib/TextAPI",
   ]
-  sources = [ "Context.cpp" ]
+  sources = [
+    "Context.cpp",
+    "FileList.cpp",
+    "HeaderFile.cpp",
+  ]
 }

diff  --git a/llvm/utils/gn/secondary/clang/unittests/BUILD.gn b/llvm/utils/gn/secondary/clang/unittests/BUILD.gn
index b60c5264d60cce..354934f4b18ab1 100644
--- a/llvm/utils/gn/secondary/clang/unittests/BUILD.gn
+++ b/llvm/utils/gn/secondary/clang/unittests/BUILD.gn
@@ -13,6 +13,7 @@ group("unittests") {
     "Format:FormatTests",
     "Frontend:FrontendTests",
     "Index:IndexTests",
+    "InstallAPI:InstallAPITests",
     "Interpreter:ClangReplInterpreterTests",
     "Introspection:IntrospectionTests",
     "Lex:LexTests",

diff  --git a/llvm/utils/gn/secondary/clang/unittests/InstallAPI/BUILD.gn b/llvm/utils/gn/secondary/clang/unittests/InstallAPI/BUILD.gn
new file mode 100644
index 00000000000000..e27659457474f2
--- /dev/null
+++ b/llvm/utils/gn/secondary/clang/unittests/InstallAPI/BUILD.gn
@@ -0,0 +1,13 @@
+import("//third-party/unittest/unittest.gni")
+
+unittest("InstallAPITests") {
+  configs += [ "//llvm/utils/gn/build:clang_code" ]
+  deps = [
+    "//clang/lib/InstallAPI",
+    "//llvm/lib/Testing/Support",
+  ]
+  sources = [
+    "HeaderFileTest.cpp",
+    "FileListTest.cpp",
+  ]
+}


        


More information about the llvm-commits mailing list