2019-12-19 11:17:53 +01:00
|
|
|
if (LLVM_INCLUDE_UTILS AND LLVM_INCLUDE_TOOLS)
|
2019-10-03 15:18:14 +02:00
|
|
|
add_custom_command(
|
|
|
|
OUTPUT ${LLVM_TOOLS_BINARY_DIR}/llvm-locstats
|
|
|
|
DEPENDS ${LLVM_MAIN_SRC_DIR}/utils/llvm-locstats/llvm-locstats.py
|
2019-12-20 10:11:07 +01:00
|
|
|
DEPENDS llvm-dwarfdump
|
2019-10-03 15:18:14 +02:00
|
|
|
COMMAND ${CMAKE_COMMAND} -E copy ${LLVM_MAIN_SRC_DIR}/utils/llvm-locstats/llvm-locstats.py ${LLVM_TOOLS_BINARY_DIR}/llvm-locstats
|
2019-10-02 09:00:01 +02:00
|
|
|
COMMENT "Copying llvm-locstats into ${LLVM_TOOLS_BINARY_DIR}"
|
|
|
|
)
|
2019-10-03 15:18:14 +02:00
|
|
|
add_custom_target(llvm-locstats ALL
|
|
|
|
DEPENDS ${LLVM_TOOLS_BINARY_DIR}/llvm-locstats
|
|
|
|
)
|
2019-12-20 10:11:07 +01:00
|
|
|
if (NOT LLVM_BUILD_TOOLS)
|
|
|
|
set_target_properties(llvm-locstats PROPERTIES EXCLUDE_FROM_ALL ON)
|
|
|
|
endif()
|
2019-10-02 09:00:01 +02:00
|
|
|
set_target_properties(llvm-locstats PROPERTIES FOLDER "Tools")
|
|
|
|
endif()
|