2011-01-20 06:39:06 +00:00
|
|
|
# NOTE: The tools are organized into groups of four consisting of one large and
|
|
|
|
# three small executables. This is done to minimize memory load in parallel
|
|
|
|
# builds. Please retain this ordering.
|
2008-09-22 01:08:49 +00:00
|
|
|
|
2010-09-13 23:59:48 +00:00
|
|
|
if( NOT WIN32 OR MSYS OR CYGWIN )
|
2011-12-01 20:18:09 +00:00
|
|
|
# We currently require 'sed' to build llvm-config, so don't try to build it
|
2011-12-01 10:50:19 +00:00
|
|
|
# on pure Win32.
|
2011-12-01 20:18:09 +00:00
|
|
|
add_subdirectory(llvm-config)
|
2010-09-13 23:59:48 +00:00
|
|
|
endif()
|
|
|
|
|
2008-09-22 01:08:49 +00:00
|
|
|
add_subdirectory(opt)
|
|
|
|
add_subdirectory(llvm-as)
|
|
|
|
add_subdirectory(llvm-dis)
|
2009-06-18 23:04:45 +00:00
|
|
|
add_subdirectory(llvm-mc)
|
2008-09-22 01:08:49 +00:00
|
|
|
|
|
|
|
add_subdirectory(llc)
|
|
|
|
add_subdirectory(llvm-ar)
|
|
|
|
add_subdirectory(llvm-nm)
|
2011-09-28 20:57:46 +00:00
|
|
|
add_subdirectory(llvm-size)
|
2008-09-22 01:08:49 +00:00
|
|
|
|
2011-12-07 20:54:41 +00:00
|
|
|
add_subdirectory(llvm-cov)
|
2008-09-22 01:08:49 +00:00
|
|
|
add_subdirectory(llvm-prof)
|
|
|
|
add_subdirectory(llvm-link)
|
|
|
|
add_subdirectory(lli)
|
|
|
|
|
|
|
|
add_subdirectory(llvm-extract)
|
2010-08-24 09:16:51 +00:00
|
|
|
add_subdirectory(llvm-diff)
|
2010-11-27 05:58:44 +00:00
|
|
|
add_subdirectory(macho-dump)
|
2011-01-20 06:39:06 +00:00
|
|
|
add_subdirectory(llvm-objdump)
|
2012-03-01 01:36:50 +00:00
|
|
|
add_subdirectory(llvm-readobj)
|
2011-03-18 17:11:39 +00:00
|
|
|
add_subdirectory(llvm-rtdyld)
|
2011-09-13 19:42:23 +00:00
|
|
|
add_subdirectory(llvm-dwarfdump)
|
2012-11-21 20:38:26 +00:00
|
|
|
if( LLVM_USE_INTEL_JITEVENTS )
|
|
|
|
add_subdirectory(llvm-jitlistener)
|
|
|
|
endif( LLVM_USE_INTEL_JITEVENTS )
|
2008-09-22 01:08:49 +00:00
|
|
|
|
|
|
|
add_subdirectory(bugpoint)
|
2010-08-08 00:50:57 +00:00
|
|
|
add_subdirectory(bugpoint-passes)
|
2008-09-22 01:08:49 +00:00
|
|
|
add_subdirectory(llvm-bcanalyzer)
|
2012-02-26 08:35:53 +00:00
|
|
|
add_subdirectory(llvm-stress)
|
2012-10-31 23:24:13 +00:00
|
|
|
add_subdirectory(llvm-mcmarkup)
|
2008-10-26 00:52:09 +00:00
|
|
|
|
2012-11-12 11:33:29 +00:00
|
|
|
add_subdirectory(llvm-symbolizer)
|
|
|
|
|
2013-04-05 02:57:22 +00:00
|
|
|
add_subdirectory(obj2yaml)
|
2013-04-05 20:00:35 +00:00
|
|
|
add_subdirectory(yaml2obj)
|
2013-04-05 02:57:22 +00:00
|
|
|
|
2011-03-13 03:06:59 +00:00
|
|
|
if( NOT WIN32 )
|
|
|
|
add_subdirectory(lto)
|
|
|
|
endif()
|
|
|
|
|
2011-04-28 08:18:22 +00:00
|
|
|
if( LLVM_ENABLE_PIC )
|
|
|
|
# TODO: support other systems:
|
2013-03-17 12:01:05 +00:00
|
|
|
if( (CMAKE_SYSTEM_NAME STREQUAL "Linux")
|
|
|
|
OR (CMAKE_SYSTEM_NAME STREQUAL "FreeBSD") )
|
2011-04-28 08:18:22 +00:00
|
|
|
add_subdirectory(gold)
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
|
2012-04-26 19:43:35 +00:00
|
|
|
add_llvm_external_project(clang)
|
|
|
|
add_llvm_external_project(lld)
|
2013-02-28 23:15:15 +00:00
|
|
|
add_llvm_external_project(lldb)
|
2012-04-26 19:43:35 +00:00
|
|
|
add_llvm_external_project(polly)
|
2010-09-13 23:59:48 +00:00
|
|
|
|
|
|
|
set(LLVM_COMMON_DEPENDS ${LLVM_COMMON_DEPENDS} PARENT_SCOPE)
|