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.

llvm-svn: 144444
This commit is contained in:
Daniel Dunbar 2011-11-12 02:10:57 +00:00
parent a83fbaff5f
commit 73d41b0f03
31 changed files with 31 additions and 42 deletions

View File

@ -12,10 +12,11 @@ add_llvm_library(LLVMJIT
)
add_llvm_library_dependencies(LLVMJIT
LLVMCodeGen
LLVMCore
LLVMExecutionEngine
LLVMMC
LLVMRuntimeDyld
LLVMSupport
LLVMTarget
LLVMCodeGen
)

View File

@ -19,5 +19,5 @@
type = Library
name = JIT
parent = ExecutionEngine
required_libraries = CodeGen Core ExecutionEngine MC Support Target
required_libraries = CodeGen Core ExecutionEngine MC RuntimeDyld Support Target

View File

@ -19,5 +19,5 @@
type = Library
name = MC
parent = Libraries
required_libraries = Support
required_libraries = Object Support

View File

@ -10,21 +10,4 @@ add_llvm_library_dependencies(LLVMMCDisassembler
LLVMMC
LLVMMCParser
LLVMSupport
LLVMTarget
)
foreach(t ${LLVM_TARGETS_TO_BUILD})
set(td ${LLVM_MAIN_SRC_DIR}/lib/Target/${t})
if(EXISTS ${td}/TargetInfo/CMakeLists.txt)
add_llvm_library_dependencies(LLVMMCDisassembler "LLVM${t}Info")
endif()
if(EXISTS ${td}/MCTargetDesc/CMakeLists.txt)
add_llvm_library_dependencies(LLVMMCDisassembler "LLVM${t}Desc")
endif()
if(EXISTS ${td}/AsmParser/CMakeLists.txt)
add_llvm_library_dependencies(LLVMMCDisassembler "LLVM${t}AsmParser")
endif()
if(EXISTS ${td}/Disassembler/CMakeLists.txt)
add_llvm_library_dependencies(LLVMMCDisassembler "LLVM${t}Disassembler")
endif()
endforeach(t)

View File

@ -19,5 +19,5 @@
type = Library
name = Object
parent = Libraries
required_libraries = Support
required_libraries = Core Support

View File

@ -19,6 +19,6 @@
type = Library
name = ARMDisassembler
parent = ARM
required_libraries = ARMDesc ARMInfo MC Support
required_libraries = ARMCodeGen ARMDesc ARMInfo MC Support
add_to_library_groups = ARM

View File

@ -12,8 +12,8 @@ add_dependencies(LLVMARMDesc ARMCommonTableGen)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/.. ${CMAKE_CURRENT_BINARY_DIR}/..)
add_llvm_library_dependencies(LLVMARMDesc
LLVMARMInfo
LLVMARMAsmPrinter
LLVMARMInfo
LLVMMC
LLVMSupport
)

View File

@ -19,6 +19,6 @@
type = Library
name = ARMInfo
parent = ARM
required_libraries = MC Support
required_libraries = MC Support Target
add_to_library_groups = ARM

View File

@ -19,6 +19,6 @@
type = Library
name = CBackendInfo
parent = CBackend
required_libraries = MC Support
required_libraries = MC Support Target
add_to_library_groups = CBackend

View File

@ -19,6 +19,6 @@
type = Library
name = CellSPUDesc
parent = CellSPU
required_libraries = CellSPUInfo MC Support
required_libraries = CellSPUInfo MC
add_to_library_groups = CellSPU

View File

@ -19,6 +19,6 @@
type = Library
name = CellSPUInfo
parent = CellSPU
required_libraries = MC Support
required_libraries = MC Support Target
add_to_library_groups = CellSPU

View File

@ -6,5 +6,6 @@ add_llvm_library(LLVMCppBackendInfo
add_llvm_library_dependencies(LLVMCppBackendInfo
LLVMMC
LLVMSupport
LLVMTarget
)

View File

@ -19,6 +19,6 @@
type = Library
name = CppBackendInfo
parent = CppBackend
required_libraries = MC Support
required_libraries = MC Support Target
add_to_library_groups = CppBackend

View File

@ -14,7 +14,6 @@ set_property(
endif()
add_llvm_library_dependencies(LLVMMBlazeDisassembler
LLVMMBlazeCodeGen
LLVMMBlazeDesc
LLVMMBlazeInfo
LLVMMC

View File

@ -19,6 +19,6 @@
type = Library
name = MBlazeInfo
parent = MBlaze
required_libraries = MC Support
required_libraries = MC Support Target
add_to_library_groups = MBlaze

View File

@ -7,6 +7,8 @@ add_llvm_library_dependencies(LLVMMSP430Desc
LLVMMC
LLVMMSP430AsmPrinter
LLVMMSP430Info
LLVMSupport
LLVMTarget
)
add_dependencies(LLVMMSP430Desc MSP430CommonTableGen)

View File

@ -19,6 +19,6 @@
type = Library
name = MSP430Desc
parent = MSP430
required_libraries = MC MSP430AsmPrinter MSP430Info Support
required_libraries = MC MSP430AsmPrinter MSP430Info Support Target
add_to_library_groups = MSP430

View File

@ -19,6 +19,6 @@
type = Library
name = MSP430Info
parent = MSP430
required_libraries = MC Support
required_libraries = MC Support Target
add_to_library_groups = MSP430

View File

@ -19,6 +19,6 @@
type = Library
name = MipsInfo
parent = Mips
required_libraries = MC Support
required_libraries = MC Support Target
add_to_library_groups = Mips

View File

@ -36,6 +36,7 @@ add_llvm_library_dependencies(LLVMPTXCodeGen
LLVMSelectionDAG
LLVMSupport
LLVMTarget
LLVMTransformUtils
)
add_subdirectory(TargetInfo)

View File

@ -25,6 +25,6 @@ has_asmprinter = 1
type = Library
name = PTXCodeGen
parent = PTX
required_libraries = Analysis AsmPrinter CodeGen Core MC PTXDesc PTXInfo Scalar SelectionDAG Support Target TransformUtils
required_libraries = Analysis AsmPrinter CodeGen Core MC PTXDesc PTXInfo SelectionDAG Support Target TransformUtils
add_to_library_groups = PTX

View File

@ -5,8 +5,8 @@ add_llvm_library(LLVMPTXDesc
add_llvm_library_dependencies(LLVMPTXDesc
LLVMMC
LLVMPTXInfo
LLVMPTXAsmPrinter
LLVMPTXInfo
LLVMSupport
)

View File

@ -19,6 +19,6 @@
type = Library
name = PTXInfo
parent = PTX
required_libraries = MC Support
required_libraries = MC Support Target
add_to_library_groups = PTX

View File

@ -19,6 +19,6 @@
type = Library
name = PowerPCInfo
parent = PowerPC
required_libraries = MC Support
required_libraries = MC Support Target
add_to_library_groups = PowerPC

View File

@ -19,6 +19,6 @@
type = Library
name = SparcInfo
parent = Sparc
required_libraries = MC Support
required_libraries = MC Support Target
add_to_library_groups = Sparc

View File

@ -62,6 +62,8 @@ add_llvm_library_dependencies(LLVMX86CodeGen
LLVMTarget
LLVMX86AsmPrinter
LLVMX86Desc
LLVMX86Info
LLVMX86Utils
)
add_subdirectory(AsmParser)

View File

@ -10,7 +10,6 @@ add_llvm_library_dependencies(LLVMX86Desc
LLVMMC
LLVMSupport
LLVMX86AsmPrinter
LLVMX86AsmPrinter
LLVMX86Info
)

View File

@ -19,6 +19,6 @@
type = Library
name = X86Info
parent = X86
required_libraries = MC Support
required_libraries = MC Support Target
add_to_library_groups = X86

View File

@ -19,6 +19,6 @@
type = Library
name = XCoreDesc
parent = XCore
required_libraries = MC Support XCoreInfo
required_libraries = MC XCoreInfo
add_to_library_groups = XCore

View File

@ -19,6 +19,6 @@
type = Library
name = XCoreInfo
parent = XCore
required_libraries = MC Support
required_libraries = MC Support Target
add_to_library_groups = XCore

View File

@ -24,6 +24,7 @@ add_llvm_library(LLVMipo
add_llvm_library_dependencies(LLVMipo
LLVMAnalysis
LLVMCore
LLVMInstCombine
LLVMScalarOpts
LLVMSupport
LLVMTarget