Debian Codegraph @

clang/tools/CMakeLists.txt

raw
1 create_subdirectory_options(CLANG TOOL)
2
3 add_clang_subdirectory(diagtool)
4 add_clang_subdirectory(driver)
5 if(CLANG_ENABLE_CIR)
6 add_clang_subdirectory(cir-opt)
7 add_clang_subdirectory(cir-translate)
8 add_clang_subdirectory(cir-lsp-server)
9 endif()
10 add_clang_subdirectory(clang-diff)
11 add_clang_subdirectory(clang-format)
12 add_clang_subdirectory(clang-fuzzer)
13 add_clang_subdirectory(clang-import-test)
14 add_clang_subdirectory(clang-linker-wrapper)
15 add_clang_subdirectory(clang-nvlink-wrapper)
16 add_clang_subdirectory(clang-offload-bundler)
17 add_clang_subdirectory(clang-scan-deps)
18 add_clang_subdirectory(clang-sycl-linker)
19 add_clang_subdirectory(clang-installapi)
20 if(HAVE_CLANG_REPL_SUPPORT)
21 add_clang_subdirectory(clang-repl)
22 endif()
23
24 if(CLANG_INCLUDE_TESTS)
25 add_clang_subdirectory(c-index-test)
26 add_clang_subdirectory(apinotes-test)
27 endif()
28
29 add_clang_subdirectory(clang-refactor)
30 # For MinGW/Cygwin we only enable shared library if LLVM_LINK_LLVM_DYLIB=ON.
31 # Without that option resulting library is too close to 2^16 DLL exports limit.
32 if((UNIX AND NOT CYGWIN) OR (MSVC AND LLVM_BUILD_LLVM_DYLIB_VIS) OR
33 ((MINGW OR CYGWIN) AND LLVM_LINK_LLVM_DYLIB))
34 add_clang_subdirectory(clang-shlib)
35 endif()
36
37 if(CLANG_ENABLE_STATIC_ANALYZER)
38 add_clang_subdirectory(clang-check)
39 add_clang_subdirectory(clang-extdef-mapping)
40 add_clang_subdirectory(scan-build)
41 add_clang_subdirectory(scan-build-py)
42 add_clang_subdirectory(scan-view)
43 endif()
44
45 # We support checking out the clang-tools-extra repository into the 'extra'
46 # subdirectory. It contains tools developed as part of the Clang/LLVM project
47 # on top of the Clang tooling platform. We keep them in a separate repository
48 # to keep the primary Clang repository small and focused.
49 # It also may be included by LLVM_EXTERNAL_CLANG_TOOLS_EXTRA_SOURCE_DIR.
50 add_llvm_external_project(clang-tools-extra extra)
51
52 # libclang may require clang-tidy in clang-tools-extra.
53 add_clang_subdirectory(libclang)
54
55 add_clang_subdirectory(offload-arch)