xref: /netbsd-src/external/apache2/llvm/dist/clang/tools/CMakeLists.txt (revision e038c9c4676b0f19b1b7dd08a940c6ed64a6d5ae)
1create_subdirectory_options(CLANG TOOL)
2
3add_clang_subdirectory(diagtool)
4add_clang_subdirectory(driver)
5add_clang_subdirectory(apinotes-test)
6add_clang_subdirectory(clang-diff)
7add_clang_subdirectory(clang-format)
8add_clang_subdirectory(clang-format-vs)
9add_clang_subdirectory(clang-fuzzer)
10add_clang_subdirectory(clang-import-test)
11add_clang_subdirectory(clang-offload-bundler)
12add_clang_subdirectory(clang-offload-wrapper)
13add_clang_subdirectory(clang-scan-deps)
14add_clang_subdirectory(clang-repl)
15
16add_clang_subdirectory(c-index-test)
17
18add_clang_subdirectory(clang-rename)
19add_clang_subdirectory(clang-refactor)
20# For MinGW we only enable shared library if LLVM_LINK_LLVM_DYLIB=ON.
21# Without that option resulting library is too close to 2^16 DLL exports limit.
22if(UNIX OR (MINGW AND LLVM_LINK_LLVM_DYLIB))
23  add_clang_subdirectory(clang-shlib)
24endif()
25
26if(CLANG_ENABLE_ARCMT)
27  add_clang_subdirectory(arcmt-test)
28  add_clang_subdirectory(c-arcmt-test)
29endif()
30
31if(CLANG_ENABLE_STATIC_ANALYZER)
32  add_clang_subdirectory(clang-check)
33  add_clang_subdirectory(clang-extdef-mapping)
34  add_clang_subdirectory(scan-build)
35  add_clang_subdirectory(scan-view)
36endif()
37
38# We support checking out the clang-tools-extra repository into the 'extra'
39# subdirectory. It contains tools developed as part of the Clang/LLVM project
40# on top of the Clang tooling platform. We keep them in a separate repository
41# to keep the primary Clang repository small and focused.
42# It also may be included by LLVM_EXTERNAL_CLANG_TOOLS_EXTRA_SOURCE_DIR.
43add_llvm_external_project(clang-tools-extra extra)
44
45# libclang may require clang-tidy in clang-tools-extra.
46add_clang_subdirectory(libclang)
47
48add_clang_subdirectory(amdgpu-arch)
49