[PATCH] D68339: [llvm] [cmake] Add install targets for missing distribution components
Michał Górny via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 2 09:06:18 PDT 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rL373482: [llvm] [cmake] Add install targets for missing distribution components (authored by mgorny, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D68339?vs=222836&id=222846#toc
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D68339/new/
https://reviews.llvm.org/D68339
Files:
llvm/trunk/cmake/modules/AddSphinxTarget.cmake
llvm/trunk/cmake/modules/TableGen.cmake
llvm/trunk/tools/opt-viewer/CMakeLists.txt
Index: llvm/trunk/tools/opt-viewer/CMakeLists.txt
===================================================================
--- llvm/trunk/tools/opt-viewer/CMakeLists.txt
+++ llvm/trunk/tools/opt-viewer/CMakeLists.txt
@@ -11,3 +11,10 @@
DESTINATION share/opt-viewer
COMPONENT opt-viewer)
endforeach (file)
+
+add_custom_target(opt-viewer DEPENDS ${files})
+if(NOT LLVM_ENABLE_IDE)
+ add_llvm_install_targets("install-opt-viewer"
+ DEPENDS opt-viewer
+ COMPONENT opt-viewer)
+endif()
Index: llvm/trunk/cmake/modules/AddSphinxTarget.cmake
===================================================================
--- llvm/trunk/cmake/modules/AddSphinxTarget.cmake
+++ llvm/trunk/cmake/modules/AddSphinxTarget.cmake
@@ -71,6 +71,11 @@
COMPONENT "${project}-sphinx-man"
DESTINATION ${INSTALL_MANDIR}man1)
+ if(NOT LLVM_ENABLE_IDE)
+ add_llvm_install_targets("install-${SPHINX_TARGET_NAME}"
+ DEPENDS ${SPHINX_TARGET_NAME}
+ COMPONENT "${project}-sphinx-man")
+ endif()
elseif (builder STREQUAL html)
string(TOUPPER "${project}" project_upper)
set(${project_upper}_INSTALL_SPHINX_HTML_DIR "share/doc/${project}/html"
@@ -82,6 +87,12 @@
install(DIRECTORY "${SPHINX_BUILD_DIR}/."
COMPONENT "${project}-sphinx-html"
DESTINATION "${${project_upper}_INSTALL_SPHINX_HTML_DIR}")
+
+ if(NOT LLVM_ENABLE_IDE)
+ add_llvm_install_targets("install-${SPHINX_TARGET_NAME}"
+ DEPENDS ${SPHINX_TARGET_NAME}
+ COMPONENT "${project}-sphinx-html")
+ endif()
else()
message(WARNING Installation of ${builder} not supported)
endif()
Index: llvm/trunk/cmake/modules/TableGen.cmake
===================================================================
--- llvm/trunk/cmake/modules/TableGen.cmake
+++ llvm/trunk/cmake/modules/TableGen.cmake
@@ -171,7 +171,13 @@
install(TARGETS ${target}
${export_to_llvmexports}
+ COMPONENT ${target}
RUNTIME DESTINATION ${LLVM_TOOLS_INSTALL_DIR})
+ if(NOT LLVM_ENABLE_IDE)
+ add_llvm_install_targets("install-${target}"
+ DEPENDS ${target}
+ COMPONENT ${target})
+ endif()
endif()
set_property(GLOBAL APPEND PROPERTY LLVM_EXPORTS ${target})
endmacro()
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D68339.222846.patch
Type: text/x-patch
Size: 2539 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191002/994f7b3f/attachment.bin>
More information about the llvm-commits
mailing list