D17015: Fix the Qt doc creation with Qt 5.12.

2019-01-21 Thread Christophe Giboudeaux
cgiboudeaux abandoned this revision.
cgiboudeaux added a comment.


  qhelpgenerator is back in Qt 5.12.1

REPOSITORY
  R240 Extra CMake Modules

REVISION DETAIL
  https://phabricator.kde.org/D17015

To: cgiboudeaux, kossebau
Cc: thiago, tcberner, kde-frameworks-devel, kde-buildsystem, michaelh, ngraham, 
bruns


D17015: Fix the Qt doc creation with Qt 5.12.

2018-12-29 Thread Thiago Macieira
thiago added a comment.


  qhelpgenerator is coming back in 5.12.1. You may simply tell people to skip 
the .0 release and upgrade.

REPOSITORY
  R240 Extra CMake Modules

REVISION DETAIL
  https://phabricator.kde.org/D17015

To: cgiboudeaux, kossebau
Cc: thiago, tcberner, kde-frameworks-devel, kde-buildsystem, michaelh, ngraham, 
bruns


D17015: Fix the Qt doc creation with Qt 5.12.

2018-12-21 Thread Christophe Giboudeaux
cgiboudeaux updated this revision to Diff 47962.
cgiboudeaux added a comment.


  Try to find qmake if qmake-qt5 is not found

REPOSITORY
  R240 Extra CMake Modules

CHANGES SINCE LAST UPDATE
  https://phabricator.kde.org/D17015?vs=46780=47962

BRANCH
  arcpatch-D17015

REVISION DETAIL
  https://phabricator.kde.org/D17015

AFFECTED FILES
  cmake/FindQHelpGenerator.cmake
  docs/CMakeLists.txt
  modules/ECMQueryQmake.cmake

To: cgiboudeaux, kossebau
Cc: tcberner, kde-frameworks-devel, kde-buildsystem, michaelh, ngraham, bruns


D17015: Fix the Qt doc creation with Qt 5.12.

2018-12-06 Thread Tobias C. Berner
tcberner added inline comments.

INLINE COMMENTS

> ECMQueryQmake.cmake:9
> +# We need to look for the executable directly.
> +find_program(_qmake_executable_default NAMES qmake-qt5)
>  endif()

^ on FreeBSD qmake-qt5 is just called qmake (which is in fact qtchooser).

REPOSITORY
  R240 Extra CMake Modules

REVISION DETAIL
  https://phabricator.kde.org/D17015

To: cgiboudeaux, kossebau
Cc: tcberner, kde-frameworks-devel, kde-buildsystem, michaelh, ngraham, bruns


D17015: Fix the Qt doc creation with Qt 5.12.

2018-12-03 Thread Christophe Giboudeaux
cgiboudeaux added a comment.


  In D17015#363060 , @kossebau wrote:
  
  > Good to see you caring for ECM documentation not getting broken with Qt 
5.12 :)
  >
  > Any idea how we could perhaps deduplicate the  FindQHelpGenerator.cmake 
with the one from find-modules (which is a helper for runtime with the 
ECMAddQch macro)? No instant idea yet, perhaps also better to have dedicated 
variants for each purppse? Needs me another round of thinking.
  
  
  FindQHelpGenerator.cmake can be deprecated and replaced by a FindXXX.cmake 
(name to define) module that looks for qhelpgenerator or qcollectiongenerator. 
IMO not worth the effort, FindQHelpGenerator.cmake will be removed in KF6

REPOSITORY
  R240 Extra CMake Modules

REVISION DETAIL
  https://phabricator.kde.org/D17015

To: cgiboudeaux, kossebau
Cc: kde-frameworks-devel, kde-buildsystem, michaelh, ngraham, bruns


D17015: Fix the Qt doc creation with Qt 5.12.

2018-12-03 Thread Christophe Giboudeaux
cgiboudeaux marked an inline comment as done.

REPOSITORY
  R240 Extra CMake Modules

REVISION DETAIL
  https://phabricator.kde.org/D17015

To: cgiboudeaux, kossebau
Cc: kde-frameworks-devel, kde-buildsystem, michaelh, ngraham, bruns


D17015: Fix the Qt doc creation with Qt 5.12.

2018-12-03 Thread Christophe Giboudeaux
cgiboudeaux updated this revision to Diff 46780.
cgiboudeaux added a comment.


  Add the reason for looking for the executable

REPOSITORY
  R240 Extra CMake Modules

CHANGES SINCE LAST UPDATE
  https://phabricator.kde.org/D17015?vs=45806=46780

BRANCH
  arcpatch-D17015

REVISION DETAIL
  https://phabricator.kde.org/D17015

AFFECTED FILES
  cmake/FindQHelpGenerator.cmake
  docs/CMakeLists.txt
  modules/ECMQueryQmake.cmake

To: cgiboudeaux, kossebau
Cc: kde-frameworks-devel, kde-buildsystem, michaelh, ngraham, bruns


D17015: Fix the Qt doc creation with Qt 5.12.

2018-11-20 Thread Friedrich W. H. Kossebau
kossebau added a comment.


  Good to see you caring for ECM documentation not getting broken with Qt 5.12 
:)
  
  Any idea how we could perhaps deduplicate the  FindQHelpGenerator.cmake with 
the one from find-modules (which is a helper for runtime with the ECMAddQch 
macro)? No instant idea yet, perhaps also better to have dedicated variants for 
each purppse? Needs me another round of thinking.

INLINE COMMENTS

> ECMQueryQmake.cmake:6
> +else()
> +find_program(_qmake_executable_default NAMES qmake-qt5)
>  endif()

Perhaps worth to add a comment describing all known scenarios why we reach the 
else branch.
The version with find_package(Qt5Core) failing due to NONE language would be 
not on my radar, thus nice to have it listed here for future code readers.

REPOSITORY
  R240 Extra CMake Modules

REVISION DETAIL
  https://phabricator.kde.org/D17015

To: cgiboudeaux, kossebau
Cc: kde-frameworks-devel, kde-buildsystem, michaelh, ngraham, bruns


D17015: Fix the Qt doc creation with Qt 5.12.

2018-11-20 Thread Christophe Giboudeaux
cgiboudeaux added a reviewer: kossebau.

REPOSITORY
  R240 Extra CMake Modules

REVISION DETAIL
  https://phabricator.kde.org/D17015

To: cgiboudeaux, kossebau
Cc: kde-frameworks-devel, kde-buildsystem, michaelh, ngraham, bruns


D17015: Fix the Qt doc creation with Qt 5.12.

2018-11-19 Thread Christophe Giboudeaux
cgiboudeaux added a comment.


  If anyone wonders:
  
  - These are 2 different commits for the same
  - Using find-modules/FindQHelpGenerator.cmake is not an option. Same reason 
as the one that made using query_qmake impossible.

REPOSITORY
  R240 Extra CMake Modules

REVISION DETAIL
  https://phabricator.kde.org/D17015

To: cgiboudeaux
Cc: kde-frameworks-devel, kde-buildsystem, michaelh, ngraham, bruns


D17015: Fix the Qt doc creation with Qt 5.12.

2018-11-19 Thread Christophe Giboudeaux
cgiboudeaux created this revision.
Herald added projects: Frameworks, Build System.
Herald added subscribers: kde-buildsystem, kde-frameworks-devel.
cgiboudeaux requested review of this revision.

REVISION SUMMARY
  In Qt >= 5.12, the qhelpgenerator and qcollectiongenerator tools were fused, 
only qhelpgenerator remains.
  
  Allow using ECMQueryQmake inside ECM.
  
  Due to project(ECM) specifying the "NONE" language, find_package(Qt5Core)
  cannot succeed.
  
  if the Qt5::qmake target doesn't exist, we now look for the qmake executable.

REPOSITORY
  R240 Extra CMake Modules

BRANCH
  master

REVISION DETAIL
  https://phabricator.kde.org/D17015

AFFECTED FILES
  cmake/FindQHelpGenerator.cmake
  docs/CMakeLists.txt
  modules/ECMQueryQmake.cmake

To: cgiboudeaux
Cc: kde-frameworks-devel, kde-buildsystem, michaelh, ngraham, bruns