[WebAssembly] Add new target feature in support of 'extended-const' proposal
[llvm-project.git] / llvm / lib / CMakeLists.txt
blob5ecdf5af956a31a5b75f8645624ce81a1fba9f3a
1 include(LLVM-Build)
3 # `Demangle', `Support' and `TableGen' libraries are added on the top-level
4 # CMakeLists.txt
6 add_subdirectory(IR)
7 add_subdirectory(FuzzMutate)
8 add_subdirectory(FileCheck)
9 add_subdirectory(InterfaceStub)
10 add_subdirectory(IRReader)
11 add_subdirectory(CodeGen)
12 add_subdirectory(BinaryFormat)
13 add_subdirectory(Bitcode)
14 add_subdirectory(Bitstream)
15 add_subdirectory(DWARFLinker)
16 add_subdirectory(Extensions)
17 add_subdirectory(Frontend)
18 add_subdirectory(Transforms)
19 add_subdirectory(Linker)
20 add_subdirectory(Analysis)
21 add_subdirectory(LTO)
22 add_subdirectory(MC)
23 add_subdirectory(MCA)
24 add_subdirectory(ObjCopy)
25 add_subdirectory(Object)
26 add_subdirectory(ObjectYAML)
27 add_subdirectory(Option)
28 add_subdirectory(Remarks)
29 add_subdirectory(Debuginfod)
30 add_subdirectory(DebugInfo)
31 add_subdirectory(DWP)
32 add_subdirectory(ExecutionEngine)
33 add_subdirectory(Target)
34 add_subdirectory(AsmParser)
35 add_subdirectory(LineEditor)
36 add_subdirectory(ProfileData)
37 add_subdirectory(Passes)
38 add_subdirectory(TextAPI)
39 add_subdirectory(ToolDrivers)
40 add_subdirectory(XRay)
41 if (LLVM_INCLUDE_TESTS)
42   add_subdirectory(Testing)
43 endif()
44 add_subdirectory(WindowsDriver)
45 add_subdirectory(WindowsManifest)
47 set(LLVMCONFIGLIBRARYDEPENDENCIESINC "${LLVM_BINARY_DIR}/tools/llvm-config/LibraryDependencies.inc")
49 # Special components which don't have any source attached but aggregate other
50 # components
51 add_llvm_component_group(all-targets LINK_COMPONENTS ${LLVM_TARGETS_TO_BUILD})
52 add_llvm_component_group(Engine)
54 # The native target may not be enabled when cross compiling
55 if(TARGET ${LLVM_NATIVE_ARCH})
56   add_llvm_component_group(Native LINK_COMPONENTS ${LLVM_NATIVE_ARCH})
57   add_llvm_component_group(NativeCodeGen LINK_COMPONENTS ${LLVM_NATIVE_ARCH}CodeGen)
58 else()
59   add_llvm_component_group(Native)
60   add_llvm_component_group(NativeCodeGen)
61 endif()
63 # Component post-processing
64 LLVMBuildResolveComponentsLink()
65 LLVMBuildGenerateCFragment(OUTPUT ${LLVMCONFIGLIBRARYDEPENDENCIESINC})