Michael J. Spencer | 92e1deb | 2011-01-20 06:39:06 +0000 | [diff] [blame] | 1 | # 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 Fuentes | 3d01fc7 | 2008-09-22 01:08:49 +0000 | [diff] [blame] | 4 | |
Michael J. Spencer | 3a210e2 | 2010-09-13 23:59:48 +0000 | [diff] [blame] | 5 | if( NOT WIN32 OR MSYS OR CYGWIN ) |
Daniel Dunbar | cb497b8 | 2011-12-01 20:18:09 +0000 | [diff] [blame] | 6 | # We currently require 'sed' to build llvm-config, so don't try to build it |
Duncan Sands | f6ace19 | 2011-12-01 10:50:19 +0000 | [diff] [blame] | 7 | # on pure Win32. |
Daniel Dunbar | cb497b8 | 2011-12-01 20:18:09 +0000 | [diff] [blame] | 8 | add_subdirectory(llvm-config) |
Michael J. Spencer | 3a210e2 | 2010-09-13 23:59:48 +0000 | [diff] [blame] | 9 | endif() |
| 10 | |
Oscar Fuentes | 3d01fc7 | 2008-09-22 01:08:49 +0000 | [diff] [blame] | 11 | add_subdirectory(opt) |
| 12 | add_subdirectory(llvm-as) |
| 13 | add_subdirectory(llvm-dis) |
Chris Lattner | f9f065e | 2009-06-18 23:04:45 +0000 | [diff] [blame] | 14 | add_subdirectory(llvm-mc) |
Oscar Fuentes | 3d01fc7 | 2008-09-22 01:08:49 +0000 | [diff] [blame] | 15 | |
| 16 | add_subdirectory(llc) |
| 17 | add_subdirectory(llvm-ranlib) |
| 18 | add_subdirectory(llvm-ar) |
| 19 | add_subdirectory(llvm-nm) |
Michael J. Spencer | 32a12ba | 2011-09-28 20:57:46 +0000 | [diff] [blame] | 20 | add_subdirectory(llvm-size) |
Oscar Fuentes | 3d01fc7 | 2008-09-22 01:08:49 +0000 | [diff] [blame] | 21 | |
Duncan Sands | 6de29c5 | 2011-12-07 20:54:41 +0000 | [diff] [blame] | 22 | add_subdirectory(llvm-cov) |
Oscar Fuentes | 3d01fc7 | 2008-09-22 01:08:49 +0000 | [diff] [blame] | 23 | add_subdirectory(llvm-prof) |
| 24 | add_subdirectory(llvm-link) |
| 25 | add_subdirectory(lli) |
| 26 | |
Oscar Fuentes | 3d01fc7 | 2008-09-22 01:08:49 +0000 | [diff] [blame] | 27 | add_subdirectory(llvm-extract) |
John McCall | b82b433 | 2010-08-24 09:16:51 +0000 | [diff] [blame] | 28 | add_subdirectory(llvm-diff) |
Daniel Dunbar | 75373ac | 2010-11-27 05:58:44 +0000 | [diff] [blame] | 29 | add_subdirectory(macho-dump) |
Michael J. Spencer | 92e1deb | 2011-01-20 06:39:06 +0000 | [diff] [blame] | 30 | add_subdirectory(llvm-objdump) |
David Meyer | 5c2b4ea | 2012-03-01 01:36:50 +0000 | [diff] [blame] | 31 | add_subdirectory(llvm-readobj) |
Jim Grosbach | 1cb19a4 | 2011-03-18 17:11:39 +0000 | [diff] [blame] | 32 | add_subdirectory(llvm-rtdyld) |
Benjamin Kramer | 72c0d7f | 2011-09-13 19:42:23 +0000 | [diff] [blame] | 33 | add_subdirectory(llvm-dwarfdump) |
Andrew Kaylor | 238f34a | 2012-11-21 20:38:26 +0000 | [diff] [blame] | 34 | if( LLVM_USE_INTEL_JITEVENTS ) |
| 35 | add_subdirectory(llvm-jitlistener) |
| 36 | endif( LLVM_USE_INTEL_JITEVENTS ) |
Oscar Fuentes | 3d01fc7 | 2008-09-22 01:08:49 +0000 | [diff] [blame] | 37 | |
| 38 | add_subdirectory(bugpoint) |
Rafael Espindola | 6b01837 | 2010-08-08 00:50:57 +0000 | [diff] [blame] | 39 | add_subdirectory(bugpoint-passes) |
Oscar Fuentes | 3d01fc7 | 2008-09-22 01:08:49 +0000 | [diff] [blame] | 40 | add_subdirectory(llvm-bcanalyzer) |
Nadav Rotem | fdc309c | 2012-02-26 08:35:53 +0000 | [diff] [blame] | 41 | add_subdirectory(llvm-stress) |
Jim Grosbach | 7dd4dc8 | 2012-10-31 23:24:13 +0000 | [diff] [blame] | 42 | add_subdirectory(llvm-mcmarkup) |
Oscar Fuentes | 48ed0f5 | 2008-10-26 00:52:09 +0000 | [diff] [blame] | 43 | |
Alexander Potapenko | f41954b | 2012-11-12 11:33:29 +0000 | [diff] [blame] | 44 | add_subdirectory(llvm-symbolizer) |
| 45 | |
Oscar Fuentes | 98f6ddc | 2011-03-13 03:06:59 +0000 | [diff] [blame] | 46 | if( NOT WIN32 ) |
| 47 | add_subdirectory(lto) |
| 48 | endif() |
| 49 | |
Chandler Carruth | d779749 | 2011-04-28 08:18:22 +0000 | [diff] [blame] | 50 | if( LLVM_ENABLE_PIC ) |
| 51 | # TODO: support other systems: |
| 52 | if( CMAKE_SYSTEM_NAME STREQUAL "Linux" ) |
| 53 | add_subdirectory(gold) |
| 54 | endif() |
| 55 | endif() |
| 56 | |
Michael J. Spencer | 3c00db7 | 2012-04-26 19:43:35 +0000 | [diff] [blame] | 57 | add_llvm_external_project(clang) |
| 58 | add_llvm_external_project(lld) |
| 59 | add_llvm_external_project(polly) |
Michael J. Spencer | 3a210e2 | 2010-09-13 23:59:48 +0000 | [diff] [blame] | 60 | |
| 61 | set(LLVM_COMMON_DEPENDS ${LLVM_COMMON_DEPENDS} PARENT_SCOPE) |