Build libcling.so based on OBJECT "library" in CMake.

This commit is contained in:
Axel Naumann 2016-07-18 16:58:49 +02:00 committed by sftnight
parent 1d13fe7548
commit 2e08275916
4 changed files with 18 additions and 4 deletions

View File

@ -17,7 +17,7 @@ set( LLVM_LINK_COMPONENTS
objcarcopts
)
add_cling_library(clingInterpreter
add_cling_library(clingInterpreter OBJECT
AutoSynthesizer.cpp
AutoloadCallback.cpp
ASTTransformer.cpp
@ -56,9 +56,16 @@ add_cling_library(clingInterpreter
LINK_LIBS
clangBasic
clangAST
clangParse
clangCodeGen
clangFrontend
clangDriver
clingUtils
)
add_dependencies(clingInterpreter clangBasic clangAST LLVMCore)
add_library(clingInterpreter-interface INTERFACE)
target_sources(clingInterpreter-interface INTERFACE $<TARGET_OBJECTS:obj.clingInterpreter>)
add_dependencies(clingInterpreter-interface clangBasic clangAST LLVMCore)
if(NOT WIN32)
set_source_files_properties(ExceptionRTTI.cpp COMPILE_FLAGS "-fexceptions -frtti")

View File

@ -6,7 +6,11 @@
# LICENSE.TXT for details.
#------------------------------------------------------------------------------
add_cling_library(clingMetaProcessor
set(LIBS
libclingInterpreter
)
add_cling_library(clingMetaProcessor OBJECT
Display.cpp
InputValidator.cpp
MetaLexer.cpp
@ -16,6 +20,8 @@ add_cling_library(clingMetaProcessor
LINK_LIBS
clangBasic
clangLex
clingInterpreter
LLVMCore
)

View File

@ -6,7 +6,7 @@
# LICENSE.TXT for details.
#------------------------------------------------------------------------------
add_cling_library(clingUtils
add_cling_library(clingUtils OBJECT
AST.cpp
Validation.cpp

View File

@ -11,4 +11,5 @@ if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/../lib/UserInterface/textinput
OR CLING_INCLUDE_TESTS)
add_subdirectory(driver)
add_subdirectory(Jupyter)
add_subdirectory(libcling)
endif()