blob: 2f37911d2518cfa8d263daeba208179198e20699 [file] [log] [blame]
Michael J. Spencer92e1deb2011-01-20 06:39:06 +00001# NOTE: The tools are organized into groups of four consisting of one large and
2# three small executables. This is done to minimize memory load in parallel
3# builds. Please retain this ordering.
Oscar Fuentes3d01fc72008-09-22 01:08:49 +00004
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)
Daniel Dunbar75373ac2010-11-27 05:58:44 +000039add_subdirectory(macho-dump)
Michael J. Spencer92e1deb2011-01-20 06:39:06 +000040add_subdirectory(llvm-objdump)
Oscar Fuentes3d01fc72008-09-22 01:08:49 +000041
42add_subdirectory(bugpoint)
Rafael Espindola6b018372010-08-08 00:50:57 +000043add_subdirectory(bugpoint-passes)
Oscar Fuentes3d01fc72008-09-22 01:08:49 +000044add_subdirectory(llvm-bcanalyzer)
45add_subdirectory(llvm-stub)
Ted Kremenek0a6f0532010-04-13 20:52:50 +000046add_subdirectory(edis)
Oscar Fuentes63c956c2008-11-25 22:18:49 +000047add_subdirectory(llvmc)
Oscar Fuentes48ed0f52008-10-26 00:52:09 +000048
49if( EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/clang/CMakeLists.txt )
50 add_subdirectory( ${CMAKE_CURRENT_SOURCE_DIR}/clang )
Michael J. Spencer3a210e22010-09-13 23:59:48 +000051endif( EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/clang/CMakeLists.txt )
52
53set(LLVM_COMMON_DEPENDS ${LLVM_COMMON_DEPENDS} PARENT_SCOPE)