| Michael J. Spencer | 2670c25 | 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 | a229b3c | 2008-09-22 01:08:49 +0000 | [diff] [blame] | 4 | |
| Michael J. Spencer | 93c9b2e | 2010-09-13 23:59:48 +0000 | [diff] [blame] | 5 | if( NOT WIN32 OR MSYS OR CYGWIN ) |
| Daniel Dunbar | ab0ad4e | 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 | b8e6cee | 2011-12-01 10:50:19 +0000 | [diff] [blame] | 7 | # on pure Win32. |
| Daniel Dunbar | ab0ad4e | 2011-12-01 20:18:09 +0000 | [diff] [blame] | 8 | add_subdirectory(llvm-config) |
| Michael J. Spencer | 93c9b2e | 2010-09-13 23:59:48 +0000 | [diff] [blame] | 9 | endif() |
| 10 | |
| Oscar Fuentes | a229b3c | 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 | 8dd8a52 | 2009-06-18 23:04:45 +0000 | [diff] [blame] | 14 | add_subdirectory(llvm-mc) |
| Oscar Fuentes | a229b3c | 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 | c4ad466 | 2011-09-28 20:57:46 +0000 | [diff] [blame] | 20 | add_subdirectory(llvm-size) |
| Oscar Fuentes | a229b3c | 2008-09-22 01:08:49 +0000 | [diff] [blame] | 21 | |
| Duncan Sands | 851e948 | 2011-12-07 20:54:41 +0000 | [diff] [blame] | 22 | add_subdirectory(llvm-cov) |
| Oscar Fuentes | a229b3c | 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 | a229b3c | 2008-09-22 01:08:49 +0000 | [diff] [blame] | 27 | add_subdirectory(llvm-extract) |
| John McCall | 5ee026c | 2010-08-24 09:16:51 +0000 | [diff] [blame] | 28 | add_subdirectory(llvm-diff) |
| Daniel Dunbar | fdfb635 | 2010-11-27 05:58:44 +0000 | [diff] [blame] | 29 | add_subdirectory(macho-dump) |
| Michael J. Spencer | 2670c25 | 2011-01-20 06:39:06 +0000 | [diff] [blame] | 30 | add_subdirectory(llvm-objdump) |
| David Meyer | 2fc34c5 | 2012-03-01 01:36:50 +0000 | [diff] [blame] | 31 | add_subdirectory(llvm-readobj) |
| Jim Grosbach | 0072cdb | 2011-03-18 17:11:39 +0000 | [diff] [blame] | 32 | add_subdirectory(llvm-rtdyld) |
| Benjamin Kramer | aa2f78f | 2011-09-13 19:42:23 +0000 | [diff] [blame] | 33 | add_subdirectory(llvm-dwarfdump) |
| Andrew Kaylor | 93fe3dc | 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 | a229b3c | 2008-09-22 01:08:49 +0000 | [diff] [blame] | 37 | |
| 38 | add_subdirectory(bugpoint) |
| Rafael Espindola | 414de85 | 2010-08-08 00:50:57 +0000 | [diff] [blame] | 39 | add_subdirectory(bugpoint-passes) |
| Oscar Fuentes | a229b3c | 2008-09-22 01:08:49 +0000 | [diff] [blame] | 40 | add_subdirectory(llvm-bcanalyzer) |
| Nadav Rotem | 78bda89 | 2012-02-26 08:35:53 +0000 | [diff] [blame] | 41 | add_subdirectory(llvm-stress) |
| Jim Grosbach | acd8801 | 2012-10-31 23:24:13 +0000 | [diff] [blame] | 42 | add_subdirectory(llvm-mcmarkup) |
| Oscar Fuentes | e638f5d | 2008-10-26 00:52:09 +0000 | [diff] [blame] | 43 | |
| Alexander Potapenko | 8c07f55 | 2012-11-12 11:33:29 +0000 | [diff] [blame] | 44 | add_subdirectory(llvm-symbolizer) |
| 45 | |
| Oscar Fuentes | ac824ee | 2011-03-13 03:06:59 +0000 | [diff] [blame] | 46 | if( NOT WIN32 ) |
| 47 | add_subdirectory(lto) |
| 48 | endif() |
| 49 | |
| Chandler Carruth | 3f7b581 | 2011-04-28 08:18:22 +0000 | [diff] [blame] | 50 | if( LLVM_ENABLE_PIC ) |
| 51 | # TODO: support other systems: |
| Rafael Espindola | bd5bd89 | 2013-03-17 12:01:05 +0000 | [diff] [blame^] | 52 | if( (CMAKE_SYSTEM_NAME STREQUAL "Linux") |
| 53 | OR (CMAKE_SYSTEM_NAME STREQUAL "FreeBSD") ) |
| Chandler Carruth | 3f7b581 | 2011-04-28 08:18:22 +0000 | [diff] [blame] | 54 | add_subdirectory(gold) |
| 55 | endif() |
| 56 | endif() |
| 57 | |
| Michael J. Spencer | e734f54 | 2012-04-26 19:43:35 +0000 | [diff] [blame] | 58 | add_llvm_external_project(clang) |
| 59 | add_llvm_external_project(lld) |
| Daniel Malea | 6e9b040 | 2013-02-28 23:15:15 +0000 | [diff] [blame] | 60 | add_llvm_external_project(lldb) |
| Michael J. Spencer | e734f54 | 2012-04-26 19:43:35 +0000 | [diff] [blame] | 61 | add_llvm_external_project(polly) |
| Michael J. Spencer | 93c9b2e | 2010-09-13 23:59:48 +0000 | [diff] [blame] | 62 | |
| 63 | set(LLVM_COMMON_DEPENDS ${LLVM_COMMON_DEPENDS} PARENT_SCOPE) |