2011-02-05 10:42 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)

* utils/hbmk2/hbmk2.prg
    + Add -D__HBEXTREQ__ whenever an .hbx module is present in a project.

  * contrib/hbpost.hbm
    - Delete manual -D__HBEXTREQ__. Now automatic.
This commit is contained in:
Viktor Szakats
2011-02-05 09:43:16 +00:00
parent e7a4f9d9af
commit eafb6f595d
3 changed files with 10 additions and 2 deletions

View File

@@ -16,6 +16,13 @@
The license applies to all entries newer than 2009-04-28.
*/
2011-02-05 10:42 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
+ Add -D__HBEXTREQ__ whenever an .hbx module is present in a project.
* contrib/hbpost.hbm
- Delete manual -D__HBEXTREQ__. Now automatic.
2011-02-05 10:15 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
- contrib/hbct/ctextern.prg
* contrib/hbct/hbct.hbp
@@ -46,7 +53,7 @@
so .hbx cannot be directly included ATM.
; TODO: Move -D__HBEXTREQ__ to local .hbp files so they kick in in stdalone mode too.
Or maybe hbmk2 should always define it, if there is an .hbx file included
in a project, after all it can generate these .hbx files, too.
in a project, after all it can generate these .hbx files, too. [DONE]
* contrib/hbmxml/hbmxmlx.prg
* contrib/hblzf/hblzfx.prg

View File

@@ -11,7 +11,6 @@
-prgflag=-es2
-prgflag=-kmo
-prgflag=-i-
-prgflag=-D__HBEXTREQ__
# It is also supported by official mingw 4.4.x and mingw64 4.4.x,
# but not supported by mingw tdm 4.4.x, so I only enable it on or

View File

@@ -2894,6 +2894,8 @@ FUNCTION hbmk2( aArgs, nArgTarget, /* @ */ lPause, nLevel )
cParam := PathMakeAbsolute( PathSepToSelf( cParam ), aParam[ _PAR_cFileName ] )
IF Empty( FNameExtGet( cParam ) )
cParam := FNameExtSet( cParam, ".prg" )
ELSEIF FNameExtGet( cParamL ) == ".hbx"
AAddNew( hbmk[ _HBMK_aOPTPRG ], "-D__HBEXTREQ__" )
ENDIF
AAdd( hbmk[ _HBMK_aPRG ], cParam )
DEFAULT hbmk[ _HBMK_cFIRST ] TO cParam