cling/lib/Interpreter/CMakeLists.txt

76 lines
1.9 KiB
CMake
Raw Normal View History

2014-01-07 14:57:25 +04:00
#------------------------------------------------------------------------------
# CLING - the C++ LLVM-based InterpreterG :)
#
# This file is dual-licensed: you can choose to license it under the University
# of Illinois Open Source License or the GNU Lesser General Public License. See
# LICENSE.TXT for details.
#------------------------------------------------------------------------------
set( LLVM_LINK_COMPONENTS
${LLVM_TARGETS_TO_BUILD}
asmparser
bitreader
bitwriter
codegen
linker
support
mc
executionengine
target
jit
x86info
x86asmprinter
)
#set(LLVM_USED_LIBS
# clingWhatever
#)
add_cling_library(clingInterpreter
ASTDumper.cpp
ASTNodeEraser.cpp
AutoSynthesizer.cpp
2013-10-30 18:59:05 +04:00
CheckEmptyTransactionTransformer.cpp
CIFactory.cpp
ClangInternalState.cpp
DeclCollector.cpp
DeclExtractor.cpp
DynamicLibraryManager.cpp
DynamicLookup.cpp
DynamicExprInfo.cpp
ExecutionContext.cpp
IncrementalParser.cpp
Interpreter.cpp
InterpreterCallbacks.cpp
InvocationOptions.cpp
IRDumper.cpp
LookupHelper.cpp
NullDerefProtectionTransformer.cpp
RequiredSymbols.cpp
ReturnSynthesizer.cpp
RuntimeException.cpp
StoredValueRef.cpp
Transaction.cpp
TransactionTransformer.cpp
Value.cpp
ValuePrinter.cpp
ValuePrinterInfo.cpp
ValuePrinterSynthesizer.cpp
)
set_source_files_properties(RuntimeException.cpp COMPILE_FLAGS -fexceptions)
#add_dependencies(clangDriver ClangAttrList ClangDiagnosticDriver
# ClangDriverOptions ClangCC1Options ClangCC1AsOptions)
2014-01-14 19:14:18 +04:00
add_file_dependencies(${CMAKE_CURRENT_SOURCE_DIR}/CIFactory.cpp
${CMAKE_CURRENT_BINARY_DIR}/cling-compiledata.h)
# Remove all -I from CMAKE_CXX_FLAGS
set(CMAKE_CXX_FLAGS_NO_I ${CMAKE_CXX_FLAGS})
2014-01-14 19:14:18 +04:00
file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/cling-compiledata.h
"#define LLVM_CXX \"${CMAKE_CXX_COMPILER} ${CMAKE_CXX_FLAGS_NO_I} ${CMAKE_CXX_FLAGS_${uppercase_CMAKE_BUILD_TYPE}}\"
2014-01-14 19:14:18 +04:00
")