Remove redundant .qch from installed docs
Use upper-level document build directory for generated .qch files. This avoids copying of .qch with html documents and duplicating them in the installation directory. Change-Id: I63b2de0047005419d352ea259dec6f17a826a477 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io> (cherry picked from commit 4d34314679598078d11508f540fe75f51a879046) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
c3b963ae4d
commit
7072295159
@ -75,9 +75,11 @@ function(qt_internal_add_docs)
|
|||||||
get_filename_component(doc_target "${doc_project}" NAME_WLE)
|
get_filename_component(doc_target "${doc_project}" NAME_WLE)
|
||||||
if (QT_WILL_INSTALL)
|
if (QT_WILL_INSTALL)
|
||||||
set(qdoc_output_dir "${CMAKE_BINARY_DIR}/${INSTALL_DOCDIR}/${doc_target}")
|
set(qdoc_output_dir "${CMAKE_BINARY_DIR}/${INSTALL_DOCDIR}/${doc_target}")
|
||||||
|
set(qdoc_qch_output_dir "${CMAKE_BINARY_DIR}/${INSTALL_DOCDIR}")
|
||||||
set(index_dir "${CMAKE_BINARY_DIR}/${INSTALL_DOCDIR}")
|
set(index_dir "${CMAKE_BINARY_DIR}/${INSTALL_DOCDIR}")
|
||||||
else()
|
else()
|
||||||
set(qdoc_output_dir "${QT_BUILD_INTERNALS_RELOCATABLE_INSTALL_PREFIX}/${INSTALL_DOCDIR}/${doc_target}")
|
set(qdoc_output_dir "${QT_BUILD_INTERNALS_RELOCATABLE_INSTALL_PREFIX}/${INSTALL_DOCDIR}/${doc_target}")
|
||||||
|
set(qdoc_qch_output_dir "${QT_BUILD_INTERNALS_RELOCATABLE_INSTALL_PREFIX}/${INSTALL_DOCDIR}")
|
||||||
set(index_dir "${QT_BUILD_INTERNALS_RELOCATABLE_INSTALL_PREFIX}/${INSTALL_DOCDIR}")
|
set(index_dir "${QT_BUILD_INTERNALS_RELOCATABLE_INSTALL_PREFIX}/${INSTALL_DOCDIR}")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
@ -153,7 +155,7 @@ function(qt_internal_add_docs)
|
|||||||
|
|
||||||
# generate .qch
|
# generate .qch
|
||||||
set(qch_file_name ${doc_target}.qch)
|
set(qch_file_name ${doc_target}.qch)
|
||||||
set(qch_file_path ${qdoc_output_dir}/${qch_file_name})
|
set(qch_file_path ${qdoc_qch_output_dir}/${qch_file_name})
|
||||||
|
|
||||||
foreach(target_prefix qch_top_level_docs qch_repo_docs qch_docs)
|
foreach(target_prefix qch_top_level_docs qch_repo_docs qch_docs)
|
||||||
add_custom_target(${target_prefix}_${target}
|
add_custom_target(${target_prefix}_${target}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user