llvm.org GIT mirror llvm / 3401a90
Switch the CMake edis build over to add_llvm_library_dependencies git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136463 91177308-0d34-0410-b5e6-96231b3b80d8 Douglas Gregor 8 years ago
1 changed file(s) with 8 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
44 EDMain.cpp
55 )
66
7 set(LLVM_LINK_COMPONENTS mcdisassembler)
7 set(EDIS_DEPENDS LLVMMCDisassembler LLVMMCParser)
88 if( LLVM_TARGETS_TO_BUILD MATCHES X86 )
9 list(APPEND LLVM_LINK_COMPONENTS x86asmprinter x86disassembler)
9 list(APPEND EDIS_DEPENDS LLVMX86AsmPrinter LLVMX86AsmParser LLVMX86Disassembler LLVMX86Desc)
1010 endif()
1111 if( LLVM_TARGETS_TO_BUILD MATCHES ARM )
12 list(APPEND LLVM_LINK_COMPONENTS armasmprinter armdisassembler)
12 list(APPEND EDIS_DEPENDS LLVMARMAsmPrinter LLVMARMAsmParser LLVMARMDisassembler LLVMARMDesc)
1313 endif()
1414
1515 # TODO: Process EnhancedDisassembly.exports
1818 set(bsl ${BUILD_SHARED_LIBS})
1919 set(BUILD_SHARED_LIBS ON)
2020 add_llvm_library(EnhancedDisassembly ${SOURCES})
21 add_llvm_library_dependencies(EnhancedDisassembly ${EDIS_DEPENDS})
2122 set_property(TARGET EnhancedDisassembly PROPERTY
2223 OUTPUT_NAME "EnhancedDisassembly")
2324 set(BUILD_SHARED_LIBS ${bsl})
3031 add_llvm_library(${EnhancedDisassembly_STATIC_TARGET_NAME} ${SOURCES})
3132 set_property(TARGET ${EnhancedDisassembly_STATIC_TARGET_NAME} PROPERTY
3233 OUTPUT_NAME "EnhancedDisassembly")
34
35 add_llvm_library_dependencies(${EnhancedDisassembly_STATIC_TARGET_NAME}
36 ${EDIS_DEPENDS})
37
3338 endif()