File tree 2 files changed +22
-2
lines changed
2 files changed +22
-2
lines changed Original file line number Diff line number Diff line change @@ -2,5 +2,8 @@ static_library("support") {
2
2
output_name = " clangDocSupport"
3
3
configs += [ " //llvm/utils/gn/build:clang_code" ]
4
4
deps = [ " //llvm/lib/Support" ]
5
- sources = [ " File.cpp" ]
5
+ sources = [
6
+ " File.cpp" ,
7
+ " Utils.cpp" ,
8
+ ]
6
9
}
Original file line number Diff line number Diff line change 1
1
import (" //third-party/unittest/unittest.gni" )
2
+ import (" //llvm/utils/gn/build/write_cmake_config.gni" )
3
+
4
+ write_cmake_config (" config" ) {
5
+ input = " config.h.cmake"
6
+ output = " $target_gen_dir /config.h"
7
+ values = [
8
+ " CLANG_DOC_TEST_ASSET_DIR=" ,
9
+ ]
10
+ }
2
11
3
12
unittest (" ClangDocTests" ) {
4
13
configs += [ " //llvm/utils/gn/build:clang_code" ]
5
14
deps = [
15
+ " :config" ,
6
16
" //clang-tools-extra/clang-doc" ,
7
17
" //clang/lib/AST" ,
8
18
" //clang/lib/ASTMatchers" ,
@@ -18,7 +28,14 @@ unittest("ClangDocTests") {
18
28
" //llvm/lib/Support" ,
19
29
" //llvm/lib/Testing/Support" ,
20
30
]
21
- include_dirs = [ " //clang-tools-extra/clang-doc" ]
31
+
32
+ include_dirs = [
33
+ " //clang-tools-extra/clang-doc" ,
34
+
35
+ # To pick up generated config.h.
36
+ target_gen_dir ,
37
+ ]
38
+
22
39
sources = [
23
40
" BitcodeTest.cpp" ,
24
41
" ClangDocTest.cpp" ,
You can’t perform that action at this time.
0 commit comments