blob: 144e8ec3ea6323415a31dec6d90094edd3326757 [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
Michael J. Spencer3a210e22010-09-13 23:59:48 +00005if( NOT WIN32 OR MSYS OR CYGWIN )
Daniel Dunbarcb497b82011-12-01 20:18:09 +00006 # We currently require 'sed' to build llvm-config, so don't try to build it
Duncan Sandsf6ace192011-12-01 10:50:19 +00007 # on pure Win32.
Daniel Dunbarcb497b82011-12-01 20:18:09 +00008 add_subdirectory(llvm-config)
Michael J. Spencer3a210e22010-09-13 23:59:48 +00009endif()
10
Oscar Fuentes3d01fc72008-09-22 01:08:49 +000011add_subdirectory(opt)
12add_subdirectory(llvm-as)
13add_subdirectory(llvm-dis)
Chris Lattnerf9f065e2009-06-18 23:04:45 +000014add_subdirectory(llvm-mc)
Oscar Fuentes3d01fc72008-09-22 01:08:49 +000015
16add_subdirectory(llc)
17add_subdirectory(llvm-ranlib)
18add_subdirectory(llvm-ar)
19add_subdirectory(llvm-nm)
Michael J. Spencer32a12ba2011-09-28 20:57:46 +000020add_subdirectory(llvm-size)
Oscar Fuentes3d01fc72008-09-22 01:08:49 +000021
Duncan Sands6de29c52011-12-07 20:54:41 +000022add_subdirectory(llvm-cov)
Oscar Fuentes3d01fc72008-09-22 01:08:49 +000023add_subdirectory(llvm-prof)
24add_subdirectory(llvm-link)
25add_subdirectory(lli)
26
Oscar Fuentes3d01fc72008-09-22 01:08:49 +000027add_subdirectory(llvm-extract)
John McCallb82b4332010-08-24 09:16:51 +000028add_subdirectory(llvm-diff)
Daniel Dunbar75373ac2010-11-27 05:58:44 +000029add_subdirectory(macho-dump)
Michael J. Spencer92e1deb2011-01-20 06:39:06 +000030add_subdirectory(llvm-objdump)
David Meyer5c2b4ea2012-03-01 01:36:50 +000031add_subdirectory(llvm-readobj)
Jim Grosbach1cb19a42011-03-18 17:11:39 +000032add_subdirectory(llvm-rtdyld)
Benjamin Kramer72c0d7f2011-09-13 19:42:23 +000033add_subdirectory(llvm-dwarfdump)
Andrew Kaylor238f34a2012-11-21 20:38:26 +000034if( LLVM_USE_INTEL_JITEVENTS )
35 add_subdirectory(llvm-jitlistener)
36endif( LLVM_USE_INTEL_JITEVENTS )
Oscar Fuentes3d01fc72008-09-22 01:08:49 +000037
38add_subdirectory(bugpoint)
Rafael Espindola6b018372010-08-08 00:50:57 +000039add_subdirectory(bugpoint-passes)
Oscar Fuentes3d01fc72008-09-22 01:08:49 +000040add_subdirectory(llvm-bcanalyzer)
Nadav Rotemfdc309c2012-02-26 08:35:53 +000041add_subdirectory(llvm-stress)
Jim Grosbach7dd4dc82012-10-31 23:24:13 +000042add_subdirectory(llvm-mcmarkup)
Oscar Fuentes48ed0f52008-10-26 00:52:09 +000043
Alexander Potapenkof41954b2012-11-12 11:33:29 +000044add_subdirectory(llvm-symbolizer)
45
Oscar Fuentes98f6ddc2011-03-13 03:06:59 +000046if( NOT WIN32 )
47 add_subdirectory(lto)
48endif()
49
Chandler Carruthd7797492011-04-28 08:18:22 +000050if( LLVM_ENABLE_PIC )
51 # TODO: support other systems:
52 if( CMAKE_SYSTEM_NAME STREQUAL "Linux" )
53 add_subdirectory(gold)
54 endif()
55endif()
56
Michael J. Spencer3c00db72012-04-26 19:43:35 +000057add_llvm_external_project(clang)
58add_llvm_external_project(lld)
59add_llvm_external_project(polly)
Michael J. Spencer3a210e22010-09-13 23:59:48 +000060
61set(LLVM_COMMON_DEPENDS ${LLVM_COMMON_DEPENDS} PARENT_SCOPE)