2010-06-09 03:23:49 +08:00
|
|
|
set(MODULE TRUE)
|
2009-11-15 08:27:43 +08:00
|
|
|
|
2013-12-10 20:40:37 +08:00
|
|
|
set( LLVM_LINK_COMPONENTS
|
|
|
|
Support
|
|
|
|
)
|
2010-09-14 14:39:35 +08:00
|
|
|
|
2013-12-30 07:14:26 +08:00
|
|
|
# If we don't need RTTI or EH, there's no reason to export anything
|
2013-12-30 07:15:01 +08:00
|
|
|
# from the plugin.
|
2013-12-30 07:14:26 +08:00
|
|
|
if( NOT LLVM_REQUIRES_RTTI )
|
|
|
|
if( NOT LLVM_REQUIRES_EH )
|
|
|
|
set(LLVM_EXPORTED_SYMBOL_FILE ${CMAKE_CURRENT_SOURCE_DIR}/PrintFunctionNames.exports)
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
|
2010-09-14 07:54:41 +08:00
|
|
|
add_clang_library(PrintFunctionNames PrintFunctionNames.cpp)
|
2009-11-15 08:27:43 +08:00
|
|
|
|
2012-07-27 14:17:56 +08:00
|
|
|
add_dependencies(PrintFunctionNames
|
|
|
|
ClangAttrClasses
|
|
|
|
ClangAttrList
|
|
|
|
ClangCommentNodes
|
|
|
|
ClangDeclNodes
|
|
|
|
ClangDiagnosticCommon
|
|
|
|
ClangStmtNodes
|
|
|
|
)
|
|
|
|
|
2012-06-21 09:30:21 +08:00
|
|
|
target_link_libraries(PrintFunctionNames
|
|
|
|
clangAST
|
2013-12-10 20:40:37 +08:00
|
|
|
clangBasic
|
|
|
|
clangFrontend
|
2012-06-21 09:30:21 +08:00
|
|
|
)
|
|
|
|
|
2009-11-15 08:27:43 +08:00
|
|
|
set_target_properties(PrintFunctionNames
|
|
|
|
PROPERTIES
|
2010-06-09 03:23:49 +08:00
|
|
|
LINKER_LANGUAGE CXX
|
|
|
|
PREFIX "")
|