[PATCH] D24935: [cmake] Support overriding remaining HTML doc install directories
Michał Górny via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 27 13:01:47 PDT 2016
This revision was automatically updated to reflect the committed changes.
mgorny marked 2 inline comments as done.
Closed by commit rL282536: [cmake] Support overriding remaining HTML doc install directories (authored by mgorny).
Changed prior to commit:
https://reviews.llvm.org/D24935?vs=72541&id=72696#toc
Repository:
rL LLVM
https://reviews.llvm.org/D24935
Files:
llvm/trunk/CMakeLists.txt
llvm/trunk/docs/CMake.rst
llvm/trunk/docs/CMakeLists.txt
Index: llvm/trunk/CMakeLists.txt
===================================================================
--- llvm/trunk/CMakeLists.txt
+++ llvm/trunk/CMakeLists.txt
@@ -456,6 +456,11 @@
option (LLVM_ENABLE_SPHINX "Use Sphinx to generate llvm documentation." OFF)
option (LLVM_ENABLE_OCAMLDOC "Build OCaml bindings documentation." ON)
+set(LLVM_INSTALL_DOXYGEN_HTML_DIR "share/doc/llvm/doxygen-html"
+ CACHE STRING "Doxygen-generated HTML documentation install directory")
+set(LLVM_INSTALL_OCAMLDOC_HTML_DIR "share/doc/llvm/ocaml-html"
+ CACHE STRING "OCamldoc-generated HTML documentation install directory")
+
option (LLVM_BUILD_EXTERNAL_COMPILER_RT
"Build compiler-rt as an external project." OFF)
Index: llvm/trunk/docs/CMake.rst
===================================================================
--- llvm/trunk/docs/CMake.rst
+++ llvm/trunk/docs/CMake.rst
@@ -431,6 +431,11 @@
Uses .svg files instead of .png files for graphs in the Doxygen output.
Defaults to OFF.
+**LLVM_INSTALL_DOXYGEN_HTML_DIR**:STRING
+ The path to install Doxygen-generated HTML documentation to. This path can
+ either be absolute or relative to the CMAKE_INSTALL_PREFIX. Defaults to
+ `share/doc/llvm/doxygen-html`.
+
**LLVM_ENABLE_SPHINX**:BOOL
If specified, CMake will search for the ``sphinx-build`` executable and will make
the ``SPHINX_OUTPUT_HTML`` and ``SPHINX_OUTPUT_MAN`` CMake options available.
@@ -461,6 +466,11 @@
either be absolute or relative to the CMAKE_INSTALL_PREFIX. Defaults to
`share/doc/llvm/html`.
+**LLVM_INSTALL_OCAMLDOC_HTML_DIR**:STRING
+ The path to install OCamldoc-generated HTML documentation to. This path can
+ either be absolute or relative to the CMAKE_INSTALL_PREFIX. Defaults to
+ `share/doc/llvm/ocaml-html`.
+
**LLVM_CREATE_XCODE_TOOLCHAIN**:BOOL
OS X Only: If enabled CMake will generate a target named
'install-xcode-toolchain'. This target will create a directory at
Index: llvm/trunk/docs/CMakeLists.txt
===================================================================
--- llvm/trunk/docs/CMakeLists.txt
+++ llvm/trunk/docs/CMakeLists.txt
@@ -93,8 +93,11 @@
endif()
if (NOT LLVM_INSTALL_TOOLCHAIN_ONLY)
- install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/doxygen/html
- DESTINATION docs/html)
+ # ./ suffix is needed to copy the contents of html directory without
+ # appending html/ into LLVM_INSTALL_DOXYGEN_HTML_DIR.
+ install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/doxygen/html/.
+ COMPONENT doxygen-html
+ DESTINATION "${LLVM_INSTALL_DOXYGEN_HTML_DIR}")
endif()
endif()
endif()
@@ -154,7 +157,10 @@
add_dependencies(ocaml_doc ${doc_targets})
if (NOT LLVM_INSTALL_TOOLCHAIN_ONLY)
- install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/ocamldoc/html
- DESTINATION docs/ocaml/html)
+ # ./ suffix is needed to copy the contents of html directory without
+ # appending html/ into LLVM_INSTALL_OCAMLDOC_HTML_DIR.
+ install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/ocamldoc/html/.
+ COMPONENT ocamldoc-html
+ DESTINATION "${LLVM_INSTALL_OCAMLDOC_HTML_DIR}")
endif()
endif()
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D24935.72696.patch
Type: text/x-patch
Size: 3113 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160927/e4383e88/attachment.bin>
More information about the llvm-commits
mailing list