llvm.org GIT mirror llvm / b8ebca8
build: Attempt to rectify inconsistencies between CMake and LLVMBuild versions of explicit dependencies. - The hope is that we have a tool/test to verify these are accurate (and tight) soon. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@144444 91177308-0d34-0410-b5e6-96231b3b80d8 Daniel Dunbar 8 years ago
31 changed file(s) with 31 addition(s) and 42 deletion(s). Raw diff Collapse all Expand all
1111 )
1212
1313 add_llvm_library_dependencies(LLVMJIT
14 LLVMCodeGen
1415 LLVMCore
1516 LLVMExecutionEngine
17 LLVMMC
1618 LLVMRuntimeDyld
1719 LLVMSupport
1820 LLVMTarget
19 LLVMCodeGen
2021 )
1818 type = Library
1919 name = JIT
2020 parent = ExecutionEngine
21 required_libraries = CodeGen Core ExecutionEngine MC Support Target
21 required_libraries = CodeGen Core ExecutionEngine MC RuntimeDyld Support Target
2222
1818 type = Library
1919 name = MC
2020 parent = Libraries
21 required_libraries = Support
21 required_libraries = Object Support
2222
99 LLVMMC
1010 LLVMMCParser
1111 LLVMSupport
12 LLVMTarget
1312 )
14
15 foreach(t ${LLVM_TARGETS_TO_BUILD})
16 set(td ${LLVM_MAIN_SRC_DIR}/lib/Target/${t})
17 if(EXISTS ${td}/TargetInfo/CMakeLists.txt)
18 add_llvm_library_dependencies(LLVMMCDisassembler "LLVM${t}Info")
19 endif()
20 if(EXISTS ${td}/MCTargetDesc/CMakeLists.txt)
21 add_llvm_library_dependencies(LLVMMCDisassembler "LLVM${t}Desc")
22 endif()
23 if(EXISTS ${td}/AsmParser/CMakeLists.txt)
24 add_llvm_library_dependencies(LLVMMCDisassembler "LLVM${t}AsmParser")
25 endif()
26 if(EXISTS ${td}/Disassembler/CMakeLists.txt)
27 add_llvm_library_dependencies(LLVMMCDisassembler "LLVM${t}Disassembler")
28 endif()
29 endforeach(t)
1818 type = Library
1919 name = Object
2020 parent = Libraries
21 required_libraries = Support
21 required_libraries = Core Support
2222
1818 type = Library
1919 name = ARMDisassembler
2020 parent = ARM
21 required_libraries = ARMDesc ARMInfo MC Support
21 required_libraries = ARMCodeGen ARMDesc ARMInfo MC Support
2222 add_to_library_groups = ARM
2323
1111 include_directories(${CMAKE_CURRENT_SOURCE_DIR}/.. ${CMAKE_CURRENT_BINARY_DIR}/..)
1212
1313 add_llvm_library_dependencies(LLVMARMDesc
14 LLVMARMAsmPrinter
1415 LLVMARMInfo
15 LLVMARMAsmPrinter
1616 LLVMMC
1717 LLVMSupport
1818 )
1818 type = Library
1919 name = ARMInfo
2020 parent = ARM
21 required_libraries = MC Support
21 required_libraries = MC Support Target
2222 add_to_library_groups = ARM
2323
1818 type = Library
1919 name = CBackendInfo
2020 parent = CBackend
21 required_libraries = MC Support
21 required_libraries = MC Support Target
2222 add_to_library_groups = CBackend
2323
1818 type = Library
1919 name = CellSPUDesc
2020 parent = CellSPU
21 required_libraries = CellSPUInfo MC Support
21 required_libraries = CellSPUInfo MC
2222 add_to_library_groups = CellSPU
2323
1818 type = Library
1919 name = CellSPUInfo
2020 parent = CellSPU
21 required_libraries = MC Support
21 required_libraries = MC Support Target
2222 add_to_library_groups = CellSPU
2323
55
66 add_llvm_library_dependencies(LLVMCppBackendInfo
77 LLVMMC
8 LLVMSupport
89 LLVMTarget
910 )
1818 type = Library
1919 name = CppBackendInfo
2020 parent = CppBackend
21 required_libraries = MC Support
21 required_libraries = MC Support Target
2222 add_to_library_groups = CppBackend
2323
1313 endif()
1414
1515 add_llvm_library_dependencies(LLVMMBlazeDisassembler
16 LLVMMBlazeCodeGen
1716 LLVMMBlazeDesc
1817 LLVMMBlazeInfo
1918 LLVMMC
1818 type = Library
1919 name = MBlazeInfo
2020 parent = MBlaze
21 required_libraries = MC Support
21 required_libraries = MC Support Target
2222 add_to_library_groups = MBlaze
2323
66 LLVMMC
77 LLVMMSP430AsmPrinter
88 LLVMMSP430Info
9 LLVMSupport
10 LLVMTarget
911 )
1012
1113 add_dependencies(LLVMMSP430Desc MSP430CommonTableGen)
1818 type = Library
1919 name = MSP430Desc
2020 parent = MSP430
21 required_libraries = MC MSP430AsmPrinter MSP430Info Support
21 required_libraries = MC MSP430AsmPrinter MSP430Info Support Target
2222 add_to_library_groups = MSP430
2323
1818 type = Library
1919 name = MSP430Info
2020 parent = MSP430
21 required_libraries = MC Support
21 required_libraries = MC Support Target
2222 add_to_library_groups = MSP430
2323
1818 type = Library
1919 name = MipsInfo
2020 parent = Mips
21 required_libraries = MC Support
21 required_libraries = MC Support Target
2222 add_to_library_groups = Mips
2323
3535 LLVMSelectionDAG
3636 LLVMSupport
3737 LLVMTarget
38 LLVMTransformUtils
3839 )
3940
4041 add_subdirectory(TargetInfo)
2424 type = Library
2525 name = PTXCodeGen
2626 parent = PTX
27 required_libraries = Analysis AsmPrinter CodeGen Core MC PTXDesc PTXInfo Scalar SelectionDAG Support Target TransformUtils
27 required_libraries = Analysis AsmPrinter CodeGen Core MC PTXDesc PTXInfo SelectionDAG Support Target TransformUtils
2828 add_to_library_groups = PTX
2929
44
55 add_llvm_library_dependencies(LLVMPTXDesc
66 LLVMMC
7 LLVMPTXAsmPrinter
78 LLVMPTXInfo
8 LLVMPTXAsmPrinter
99 LLVMSupport
1010 )
1111
1818 type = Library
1919 name = PTXInfo
2020 parent = PTX
21 required_libraries = MC Support
21 required_libraries = MC Support Target
2222 add_to_library_groups = PTX
2323
1818 type = Library
1919 name = PowerPCInfo
2020 parent = PowerPC
21 required_libraries = MC Support
21 required_libraries = MC Support Target
2222 add_to_library_groups = PowerPC
2323
1818 type = Library
1919 name = SparcInfo
2020 parent = Sparc
21 required_libraries = MC Support
21 required_libraries = MC Support Target
2222 add_to_library_groups = Sparc
2323
6161 LLVMTarget
6262 LLVMX86AsmPrinter
6363 LLVMX86Desc
64 LLVMX86Info
65 LLVMX86Utils
6466 )
6567
6668 add_subdirectory(AsmParser)
99 LLVMMC
1010 LLVMSupport
1111 LLVMX86AsmPrinter
12 LLVMX86AsmPrinter
1312 LLVMX86Info
1413 )
1514
1818 type = Library
1919 name = X86Info
2020 parent = X86
21 required_libraries = MC Support
21 required_libraries = MC Support Target
2222 add_to_library_groups = X86
2323
1818 type = Library
1919 name = XCoreDesc
2020 parent = XCore
21 required_libraries = MC Support XCoreInfo
21 required_libraries = MC XCoreInfo
2222 add_to_library_groups = XCore
2323
1818 type = Library
1919 name = XCoreInfo
2020 parent = XCore
21 required_libraries = MC Support
21 required_libraries = MC Support Target
2222 add_to_library_groups = XCore
2323
2323 add_llvm_library_dependencies(LLVMipo
2424 LLVMAnalysis
2525 LLVMCore
26 LLVMInstCombine
2627 LLVMScalarOpts
2728 LLVMSupport
2829 LLVMTarget