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