llvm.org GIT mirror llvm / 00d78f1
Use explicit add_subdirectory's for LLVM target sublibraries instead of testing for its presence at cmake time. This way the build automatically regenerates the makefiles when a svn update brings in a new sublibrary. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126068 91177308-0d34-0410-b5e6-96231b3b80d8 Oscar Fuentes 8 years ago
17 changed file(s) with 42 addition(s) and 11 deletion(s). Raw diff Collapse all Expand all
120120 if ( TABLEGEN_OUTPUT )
121121 add_dependencies(LLVM${target_name} ${target_name}Table_gen)
122122 endif (TABLEGEN_OUTPUT)
123 set(CURRENT_LLVM_TARGET LLVM${target_name} PARENT_SCOPE)
123 set( CURRENT_LLVM_TARGET LLVM${target_name} )
124124 endmacro(add_llvm_target)
6161 PROPERTY COMPILE_FLAGS "/Od"
6262 )
6363 endif()
64
65 add_subdirectory(TargetInfo)
66 add_subdirectory(AsmParser)
67 add_subdirectory(Disassembler)
68 add_subdirectory(InstPrinter)
2323 AlphaTargetMachine.cpp
2424 AlphaSelectionDAGInfo.cpp
2525 )
26
27 add_subdirectory(TargetInfo)
2323 BlackfinTargetMachine.cpp
2424 BlackfinSelectionDAGInfo.cpp
2525 )
26
27 add_subdirectory(TargetInfo)
0 add_llvm_target(CBackend
11 CBackend.cpp
22 )
3
4 add_subdirectory(TargetInfo)
2121 foreach(t ${LLVM_TARGETS_TO_BUILD})
2222 message(STATUS "Targeting ${t}")
2323 add_subdirectory(${t})
24 add_subdirectory(${t}/TargetInfo)
2524 set( td ${LLVM_MAIN_SRC_DIR}/lib/Target/${t} )
2625 file(GLOB asmp_file "${td}/*AsmPrinter.cpp")
2726 if( asmp_file )
2827 set(LLVM_ENUM_ASM_PRINTERS
2928 "${LLVM_ENUM_ASM_PRINTERS}LLVM_ASM_PRINTER(${t})\n")
3029 endif()
31 if( EXISTS ${td}/InstPrinter/CMakeLists.txt )
32 add_subdirectory(${t}/InstPrinter)
33 endif()
3430 if( EXISTS ${td}/AsmParser/CMakeLists.txt )
35 add_subdirectory(${t}/AsmParser)
3631 set(LLVM_ENUM_ASM_PARSERS
3732 "${LLVM_ENUM_ASM_PARSERS}LLVM_ASM_PARSER(${t})\n")
3833 endif()
3934 if( EXISTS ${td}/Disassembler/CMakeLists.txt )
40 add_subdirectory(${t}/Disassembler)
4135 set(LLVM_ENUM_DISASSEMBLERS
4236 "${LLVM_ENUM_DISASSEMBLERS}LLVM_DISASSEMBLER(${t})\n")
4337 endif()
44 if( EXISTS ${td}/Utils/CMakeLists.txt )
45 add_subdirectory(${td}/Utils)
46 endif()
47 set(CURRENT_LLVM_TARGET)
4838 endforeach(t)
4939
5040 # Produce llvm/Config/AsmPrinters.def
2424 SPUSelectionDAGInfo.cpp
2525 SPUNopFiller.cpp
2626 )
27
28 add_subdirectory(TargetInfo)
0 add_llvm_target(CppBackend
11 CPPBackend.cpp
22 )
3
4 add_subdirectory(TargetInfo)
3232 MBlazeELFWriterInfo.cpp
3333 MBlazeMCCodeEmitter.cpp
3434 )
35
36 add_subdirectory(AsmParser)
37 add_subdirectory(Disassembler)
38 add_subdirectory(InstPrinter)
39 add_subdirectory(TargetInfo)
2323 MSP430AsmPrinter.cpp
2424 MSP430MCInstLower.cpp
2525 )
26
27 add_subdirectory(InstPrinter)
28 add_subdirectory(TargetInfo)
2323 MipsTargetObjectFile.cpp
2424 MipsSelectionDAGInfo.cpp
2525 )
26
27 add_subdirectory(TargetInfo)
2121 PTXSubtarget.cpp
2222 PTXTargetMachine.cpp
2323 )
24
25 add_subdirectory(TargetInfo)
3131 PPCTargetMachine.cpp
3232 PPCSelectionDAGInfo.cpp
3333 )
34
35 add_subdirectory(InstPrinter)
36 add_subdirectory(TargetInfo)
2323 SparcTargetMachine.cpp
2424 SparcSelectionDAGInfo.cpp
2525 )
26
27 add_subdirectory(TargetInfo)
2121 SystemZTargetMachine.cpp
2222 SystemZSelectionDAGInfo.cpp
2323 )
24
25 add_subdirectory(TargetInfo)
5656
5757 add_llvm_target(X86CodeGen ${sources})
5858
59 add_subdirectory(AsmParser)
60 add_subdirectory(Disassembler)
61 add_subdirectory(InstPrinter)
62 add_subdirectory(TargetInfo)
63 add_subdirectory(Utils)
2222 XCoreTargetObjectFile.cpp
2323 XCoreSelectionDAGInfo.cpp
2424 )
25
26 add_subdirectory(TargetInfo)