mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 10:42:39 +01:00
[llvm] [cmake] Add install targets for missing distribution components
Add install targets as necessary to include all files normally installed in LLVM_DISTRIBUTION_COMPONENTS. This includes targets for Sphinx docs, opt-viewer Python modules and TableGens. Differential Revision: https://reviews.llvm.org/D68339 llvm-svn: 373482
This commit is contained in:
parent
bf14dd016f
commit
f97c03b940
@ -71,6 +71,11 @@ function (add_sphinx_target builder project)
|
|||||||
COMPONENT "${project}-sphinx-man"
|
COMPONENT "${project}-sphinx-man"
|
||||||
DESTINATION ${INSTALL_MANDIR}man1)
|
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)
|
elseif (builder STREQUAL html)
|
||||||
string(TOUPPER "${project}" project_upper)
|
string(TOUPPER "${project}" project_upper)
|
||||||
set(${project_upper}_INSTALL_SPHINX_HTML_DIR "share/doc/${project}/html"
|
set(${project_upper}_INSTALL_SPHINX_HTML_DIR "share/doc/${project}/html"
|
||||||
@ -82,6 +87,12 @@ function (add_sphinx_target builder project)
|
|||||||
install(DIRECTORY "${SPHINX_BUILD_DIR}/."
|
install(DIRECTORY "${SPHINX_BUILD_DIR}/."
|
||||||
COMPONENT "${project}-sphinx-html"
|
COMPONENT "${project}-sphinx-html"
|
||||||
DESTINATION "${${project_upper}_INSTALL_SPHINX_HTML_DIR}")
|
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()
|
else()
|
||||||
message(WARNING Installation of ${builder} not supported)
|
message(WARNING Installation of ${builder} not supported)
|
||||||
endif()
|
endif()
|
||||||
|
@ -171,7 +171,13 @@ macro(add_tablegen target project)
|
|||||||
|
|
||||||
install(TARGETS ${target}
|
install(TARGETS ${target}
|
||||||
${export_to_llvmexports}
|
${export_to_llvmexports}
|
||||||
|
COMPONENT ${target}
|
||||||
RUNTIME DESTINATION ${LLVM_TOOLS_INSTALL_DIR})
|
RUNTIME DESTINATION ${LLVM_TOOLS_INSTALL_DIR})
|
||||||
|
if(NOT LLVM_ENABLE_IDE)
|
||||||
|
add_llvm_install_targets("install-${target}"
|
||||||
|
DEPENDS ${target}
|
||||||
|
COMPONENT ${target})
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
set_property(GLOBAL APPEND PROPERTY LLVM_EXPORTS ${target})
|
set_property(GLOBAL APPEND PROPERTY LLVM_EXPORTS ${target})
|
||||||
endmacro()
|
endmacro()
|
||||||
|
@ -11,3 +11,10 @@ foreach (file ${files})
|
|||||||
DESTINATION share/opt-viewer
|
DESTINATION share/opt-viewer
|
||||||
COMPONENT opt-viewer)
|
COMPONENT opt-viewer)
|
||||||
endforeach (file)
|
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()
|
||||||
|
Loading…
Reference in New Issue
Block a user