Skip to content

Commit bb029a5

Browse files
committed
[gn] port 4c6043d (InstallAPITests)
1 parent f804e2b commit bb029a5

File tree

4 files changed

+20
-1
lines changed

4 files changed

+20
-1
lines changed

llvm/utils/gn/secondary/clang/lib/ExtractAPI/BUILD.gn

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ static_library("ExtractAPI") {
66
"//clang/lib/Basic",
77
"//clang/lib/Frontend",
88
"//clang/lib/Index",
9+
"//clang/lib/InstallAPI",
910
"//llvm/lib/Support",
1011
"//llvm/lib/TargetParser",
1112
]

llvm/utils/gn/secondary/clang/lib/InstallAPI/BUILD.gn

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,9 @@ static_library("InstallAPI") {
66
"//llvm/lib/Support",
77
"//llvm/lib/TextAPI",
88
]
9-
sources = [ "Context.cpp" ]
9+
sources = [
10+
"Context.cpp",
11+
"FileList.cpp",
12+
"HeaderFile.cpp",
13+
]
1014
}

llvm/utils/gn/secondary/clang/unittests/BUILD.gn

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ group("unittests") {
1313
"Format:FormatTests",
1414
"Frontend:FrontendTests",
1515
"Index:IndexTests",
16+
"InstallAPI:InstallAPITests",
1617
"Interpreter:ClangReplInterpreterTests",
1718
"Introspection:IntrospectionTests",
1819
"Lex:LexTests",
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import("//third-party/unittest/unittest.gni")
2+
3+
unittest("InstallAPITests") {
4+
configs += [ "//llvm/utils/gn/build:clang_code" ]
5+
deps = [
6+
"//clang/lib/InstallAPI",
7+
"//llvm/lib/Testing/Support",
8+
]
9+
sources = [
10+
"HeaderFileTest.cpp",
11+
"FileListTest.cpp",
12+
]
13+
}

0 commit comments

Comments
 (0)