llvm.org GIT mirror llvm / e7742fb
[gn] Update the clangd test lit site configuration This reflects changes made in r359763. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@359825 91177308-0d34-0410-b5e6-96231b3b80d8 Petr Hosek 5 months ago
3 changed file(s) with 17 addition(s) and 7 deletion(s). Raw diff Collapse all Expand all
0 import("//clang-tools-extra/clangd/xpc/enable.gni")
11 import("//llvm/triples.gni")
22 import("//llvm/utils/gn/build/write_cmake_config.gni")
3
4 clangd_lit_site_cfg_file = "$root_gen_dir/clang-tools-extra/clangd/test/lit.cfg"
5 clangd_lit_unit_site_cfg_file =
6 "$root_gen_dir/clang-tools-extra/clangd/unittests/lit.cfg"
3 import("clangd_lit_site_cfg_files.gni")
74
85 template("write_lit_config") {
96 write_cmake_config(target_name) {
1916
2017 write_lit_config("lit_site_cfg") {
2118 # Fully-qualified instead of relative for LIT_SITE_CFG_IN_HEADER.
22 input = "//clang-tools-extra/clangd/test/lit.cfg.in"
19 input = "//clang-tools-extra/clangd/test/lit.site.cfg.py.in"
2320 output = clangd_lit_site_cfg_file
2421
2522 extra_values = [
4542
4643 write_lit_config("lit_unit_site_cfg") {
4744 # Fully-qualified instead of relative for LIT_SITE_CFG_IN_HEADER.
48 input = "//clang-tools-extra/clangd/unittests/lit.cfg.in"
45 input = "//clang-tools-extra/clangd/unittests/lit.site.cfg.py.in"
4946 output = clangd_lit_unit_site_cfg_file
5047 extra_values =
5148 [ "CMAKE_CURRENT_BINARY_DIR=" +
5249 rebase_path(get_label_info("//clang-tools-extra/clangd/unittests",
53 "target_out_dir")) ]
50 "target_out_dir")),
51 "CMAKE_CURRENT_SOURCE_DIR=" +
52 rebase_path("//clang-tools-extra/clangd/unittest")]
5453 if (host_os == "win") {
5554 # See comment for Windows solink in llvm/utils/gn/build/toolchain/BUILD.gn
5655 extra_values += [ "SHLIBDIR=" + rebase_path("$root_out_dir/bin") ]
0 clangd_lit_site_cfg_file =
1 "$root_gen_dir/clang-tools-extra/clangd/test/lit.site.cfg.py"
2 clangd_lit_unit_site_cfg_file =
3 "$root_gen_dir/clang-tools-extra/clangd/unittests/lit.site.cfg.py"
0 import("//clang-tools-extra/test/clang_tools_extra_lit_site_cfg_files.gni")
1 import("//clang-tools-extra/clangd/test/clangd_lit_site_cfg_files.gni")
12 import("//clang/test/clang_lit_site_cfg_files.gni")
23 import("//lld/test/lld_lit_site_cfg_files.gni")
34 import("//llvm/test/llvm_lit_site_cfg_files.gni")
4142 config_map +=
4243 "map_config('" + rebase_path("//clang-tools-extra/test/Unit/lit.cfg.py") +
4344 "', '" + rebase_path(clang_tools_extra_lit_unit_site_cfg_file) + "')\n"
45 config_map +=
46 "map_config('" + rebase_path("//clang-tools-extra/clangd/test/lit.cfg.py") +
47 "', '" + rebase_path(clangd_lit_site_cfg_file) + "')\n"
48 config_map +=
49 "map_config('" + rebase_path("//clang-tools-extra/clang/unittests/lit.cfg.py") +
50 "', '" + rebase_path(clangd_lit_unit_site_cfg_file) + "')\n"
4451 config_map += "map_config('" + rebase_path("//clang/test/lit.cfg.py") +
4552 "', '" + rebase_path(clang_lit_site_cfg_file) + "')\n"
4653 config_map += "map_config('" + rebase_path("//clang/test/Unit/lit.cfg.py") +