2013-03-20 17:53:23 +08:00
|
|
|
set(LLVM_LINK_COMPONENTS support)
|
|
|
|
|
2016-02-24 04:33:15 +08:00
|
|
|
add_clang_tool(clang-format
|
2013-03-20 17:53:23 +08:00
|
|
|
ClangFormat.cpp
|
|
|
|
)
|
|
|
|
|
2015-01-30 00:58:53 +08:00
|
|
|
set(CLANG_FORMAT_LIB_DEPS
|
2013-12-10 20:40:37 +08:00
|
|
|
clangBasic
|
2013-03-20 17:53:23 +08:00
|
|
|
clangFormat
|
2015-10-01 03:28:47 +08:00
|
|
|
clangRewrite
|
2014-10-30 08:44:01 +08:00
|
|
|
clangToolingCore
|
2013-03-20 17:53:23 +08:00
|
|
|
)
|
|
|
|
|
2015-01-30 00:58:53 +08:00
|
|
|
target_link_libraries(clang-format
|
|
|
|
${CLANG_FORMAT_LIB_DEPS}
|
|
|
|
)
|
|
|
|
|
2017-10-13 06:00:09 +08:00
|
|
|
if( LLVM_LIB_FUZZING_ENGINE OR LLVM_USE_SANITIZE_COVERAGE )
|
2015-01-30 00:58:53 +08:00
|
|
|
add_subdirectory(fuzzer)
|
|
|
|
endif()
|
|
|
|
|
2016-02-24 04:33:15 +08:00
|
|
|
install(PROGRAMS clang-format-bbedit.applescript
|
|
|
|
DESTINATION share/clang
|
|
|
|
COMPONENT clang-format)
|
|
|
|
install(PROGRAMS clang-format-diff.py
|
|
|
|
DESTINATION share/clang
|
|
|
|
COMPONENT clang-format)
|
|
|
|
install(PROGRAMS clang-format-sublime.py
|
|
|
|
DESTINATION share/clang
|
|
|
|
COMPONENT clang-format)
|
|
|
|
install(PROGRAMS clang-format.el
|
|
|
|
DESTINATION share/clang
|
|
|
|
COMPONENT clang-format)
|
|
|
|
install(PROGRAMS clang-format.py
|
|
|
|
DESTINATION share/clang
|
|
|
|
COMPONENT clang-format)
|
|
|
|
install(PROGRAMS git-clang-format
|
|
|
|
DESTINATION bin
|
|
|
|
COMPONENT clang-format)
|