blob: 89d858c4e74002ef21e9437c684e25e32695c7f5 [file] [log] [blame]
Oscar Fuentes3d01fc72008-09-22 01:08:49 +00001# NOTE: The tools are organized into five groups of four consisting of one
2# large and three small executables. This is done to minimize memory load
3# in parallel builds. Please retain this ordering.
4
Tobias Grosserbaaadb22010-10-30 00:54:26 +00005# If polly exists and is not disabled compile it and add it to the LLVM tools.
6option(LLVM_BUILD_POLLY "Compile polly" ON)
7if( EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/polly/CMakeLists.txt )
8 if (LLVM_BUILD_POLLY)
9 add_subdirectory( ${CMAKE_CURRENT_SOURCE_DIR}/polly)
10 endif (LLVM_BUILD_POLLY)
11endif( EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/polly/CMakeLists.txt )
12
Michael J. Spencer3a210e22010-09-13 23:59:48 +000013if( NOT WIN32 OR MSYS OR CYGWIN )
14 # It is useful to build llvm-config before the other tools, so we
15 # have a fresh LibDeps.txt for regenerating the hard-coded library
16 # dependencies. llvm-config/CMakeLists.txt takes care of this but we
17 # must keep llvm-config as the first entry on the list of tools to
18 # be built.
19 add_subdirectory(llvm-config)
20endif()
21
Oscar Fuentes3d01fc72008-09-22 01:08:49 +000022add_subdirectory(opt)
23add_subdirectory(llvm-as)
24add_subdirectory(llvm-dis)
Chris Lattnerf9f065e2009-06-18 23:04:45 +000025add_subdirectory(llvm-mc)
Oscar Fuentes3d01fc72008-09-22 01:08:49 +000026
27add_subdirectory(llc)
28add_subdirectory(llvm-ranlib)
29add_subdirectory(llvm-ar)
30add_subdirectory(llvm-nm)
31
32add_subdirectory(llvm-ld)
33add_subdirectory(llvm-prof)
34add_subdirectory(llvm-link)
35add_subdirectory(lli)
36
Oscar Fuentes3d01fc72008-09-22 01:08:49 +000037add_subdirectory(llvm-extract)
John McCallb82b4332010-08-24 09:16:51 +000038add_subdirectory(llvm-diff)
Oscar Fuentes3d01fc72008-09-22 01:08:49 +000039
40add_subdirectory(bugpoint)
Rafael Espindola6b018372010-08-08 00:50:57 +000041add_subdirectory(bugpoint-passes)
Oscar Fuentes3d01fc72008-09-22 01:08:49 +000042add_subdirectory(llvm-bcanalyzer)
43add_subdirectory(llvm-stub)
Ted Kremenek0a6f0532010-04-13 20:52:50 +000044add_subdirectory(edis)
Oscar Fuentes63c956c2008-11-25 22:18:49 +000045add_subdirectory(llvmc)
Oscar Fuentes48ed0f52008-10-26 00:52:09 +000046
47if( EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/clang/CMakeLists.txt )
48 add_subdirectory( ${CMAKE_CURRENT_SOURCE_DIR}/clang )
Michael J. Spencer3a210e22010-09-13 23:59:48 +000049endif( EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/clang/CMakeLists.txt )
50
51set(LLVM_COMMON_DEPENDS ${LLVM_COMMON_DEPENDS} PARENT_SCOPE)