Skip to content

Commit

Permalink
2024-12-17 01:09 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
Browse files Browse the repository at this point in the history
  * contrib/gtqtc/gtqtc.hbc
  * contrib/gtqtc/gtqtc.hbp
    ! fixed dependency macros

  * contrib/gtqtc/hbmk2_qtgt.hb
    * set QT_SELECT envvar for systems which supports different QT versions

  * utils/hbmk2/hbmk2.prg
    + added "dept" => hbmk[ _HBMK_hDEPTMACRO ] to hbmk hash table passed to
      hbmk2 plugins
  • Loading branch information
druzus committed Dec 17, 2024
1 parent 9b389a9 commit 9a23266
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 6 deletions.
12 changes: 12 additions & 0 deletions ChangeLog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,18 @@
Entries may not always be in chronological/commit order.
See license at the end of file. */

2024-12-17 01:09 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* contrib/gtqtc/gtqtc.hbc
* contrib/gtqtc/gtqtc.hbp
! fixed dependency macros

* contrib/gtqtc/hbmk2_qtgt.hb
* set QT_SELECT envvar for systems which supports different QT versions

* utils/hbmk2/hbmk2.prg
+ added "dept" => hbmk[ _HBMK_hDEPTMACRO ] to hbmk hash table passed to
hbmk2 plugins

2024-12-15 20:54 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* contrib/gtqtc/gtqtc.h
* contrib/gtqtc/gtqtc.hbc
Expand Down
6 changes: 3 additions & 3 deletions contrib/gtqtc/gtqtc.hbc
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ depfinish=qt6
{!HBMK_HAS_QT6}depcontrol=qt5:${HB_WITH_QT}
{!HBMK_HAS_QT6}depkeyhead=qt5:QtCore/QJsonObject
{!HBMK_HAS_QT6}depoptional=qt5:yes
{!HBMK_HAS_QT6}depincpath=qt5:/usr/include/x86_64-linux-gnu/qt5{linux}
{!HBMK_HAS_QT6}depincpath=qt5:/usr/local/opt/qt5/include{darwin}
{!HBMK_HAS_QT6}depincpath=qt5:/usr/local/include/qt5{bsd}
{!HBMK_HAS_QT6&linux}depincpath=qt5:/usr/include/x86_64-linux-gnu/qt5
{!HBMK_HAS_QT6&darwin}depincpath=qt5:/usr/local/opt/qt5/include
{!HBMK_HAS_QT6&bsd}depincpath=qt5:/usr/local/include/qt5
{!HBMK_HAS_QT6}depfinish=qt5

{!(HBMK_HAS_QT5|HBMK_HAS_QT6)&!darwin&!android}deppkgname=qt:QtCore
Expand Down
6 changes: 3 additions & 3 deletions contrib/gtqtc/gtqtc.hbp
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@
{!HBMK_HAS_QT6}-depcontrol=qt5:${HB_WITH_QT}
{!HBMK_HAS_QT6&HB_BUILD_3RDEXT='no'}-depoptional=qt5:no
{!HBMK_HAS_QT6}-depoptional=qt5:yes
{!HBMK_HAS_QT6}-depincpath=qt5:/usr/include/x86_64-linux-gnu/qt5{linux}
{!HBMK_HAS_QT6}-depincpath=qt5:/usr/local/opt/qt5/include{darwin}
{!HBMK_HAS_QT6}-depincpath=qt5:/usr/local/include/qt5{bsd}
{!HBMK_HAS_QT6&linux}-depincpath=qt5:/usr/include/x86_64-linux-gnu/qt5
{!HBMK_HAS_QT6&darwin}-depincpath=qt5:/usr/local/opt/qt5/include
{!HBMK_HAS_QT6&bsd}-depincpath=qt5:/usr/local/include/qt5
{!HBMK_HAS_QT6}-depfinish=qt5

{!(HBMK_HAS_QT5|HBMK_HAS_QT6)&!darwin&!android}-deppkgname=qt:QtCore
Expand Down
10 changes: 10 additions & 0 deletions contrib/gtqtc/hbmk2_qtgt.hb
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,16 @@ FUNCTION hbmk_plugin_qt( hbmk )
LOCAL cCommand
LOCAL nError
LOCAL lBuildIt
LOCAL nQtVer

IF "dept" $ hbmk
nQtVer := iif( "HBMK_HAS_QT4" $ hbmk[ "dept" ], 4, ;
iif( "HBMK_HAS_QT5" $ hbmk[ "dept" ], 5, ;
iif( "HBMK_HAS_QT6" $ hbmk[ "dept" ], 6, 0 ) ) )
IF nQtVer > 0
hb_SetEnv( "QT_SELECT", hb_ntos( nQtVer ) )
ENDIF
ENDIF

SWITCH hbmk[ "cSTATE" ]
CASE "init"
Expand Down
1 change: 1 addition & 0 deletions utils/hbmk2/hbmk2.prg
Original file line number Diff line number Diff line change
Expand Up @@ -9854,6 +9854,7 @@ STATIC FUNCTION PlugIn_make_ctx( hbmk, cState, hVars )
"cSTATE" => cState , ;
"params" => hbmk[ _HBMK_aPLUGINPars ] , ;
"vars" => hVars , ;
"dept" => hbmk[ _HBMK_hDEPTMACRO ] , ;
"cPLAT" => hbmk[ _HBMK_cPLAT ] , ;
"cCOMP" => hbmk[ _HBMK_cCOMP ] , ;
"nCOMPVer" => hbmk[ _HBMK_nCOMPVer ] , ;
Expand Down

0 comments on commit 9a23266

Please sign in to comment.