2010-07-21 11:28 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)

* utils/hbmk2/hbmk2.prg
    + Tackled watcom target platform autodetection to be in
      sync with global.mk. Whole autodetection should be
      rewritten in hbmk2 (it's an old TODO).
    ! Fixed to not show error when trying to create implibs 
      defined in dep spec on platform that don't support it.

  * contrib/make.hbs
    - Deleted one TODO.

  * ChangeLog
    ! Typos in prev. Add note new 'option names tentative' yet.
This commit is contained in:
Viktor Szakats
2010-07-21 09:30:58 +00:00
parent a58605eabc
commit 062c7e464e
3 changed files with 29 additions and 4 deletions

View File

@@ -16,16 +16,31 @@
The license applies to all entries newer than 2009-04-28.
*/
2010-07-21 11:28 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
+ Tackled watcom target platform autodetection to be in
sync with global.mk. Whole autodetection should be
rewritten in hbmk2 (it's an old TODO).
! Fixed to not show error when trying to create implibs
defined in dep spec on platform that don't support it.
* contrib/make.hbs
- Deleted one TODO.
* ChangeLog
! Typos in prev. Add note new 'option names tentative' yet.
2010-07-21 10:14 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
+ Added mingw/mingw64 version detection. Not very extensively
tested.
+ Added -depimplibs=, -depimplibd cmdline options, and depimplibs=
and depimplibd .hbc options. They serve to configure automatic
+ Added -depimplibs=, -depimplibd= cmdline options, and depimplibs=
and depimplibd= .hbc options. They serve to configure automatic
(without stdalone .hbi file using -hbimplib) import library
generation for dependencies. The internal logic is the same,
but now implibs can be generated for multiple dependencies
at once, using pure .hbp files (or eveb .hbc for that matter).
(option names tentative)
+ Filters now also support '<' and '>' operators.
+ Filters will now expand internal macros before looking for
envvars.

View File

@@ -47,7 +47,6 @@
9. Delete Makefiles in contrib area.
10. Move some logic to hbmk2.
11. Honor paths found in --hbinfo hbctree{{}} section.
12. integrate .hbi functionality into .hbp
*/
#pragma warninglevel=3

View File

@@ -1458,6 +1458,17 @@ FUNCTION hbmk2( aArgs, /* @ */ lPause )
IF Len( aCOMPDET[ tmp ] ) >= _COMPDET_cCCPOSTFIX
hbmk[ _HBMK_cCCPOSTFIX ] := aCOMPDET[ tmp ][ _COMPDET_cCCPOSTFIX ]
ENDIF
/* Hack autodetect watcom platform by looking at the header path config. TODO: Do it properly */
IF hbmk[ _HBMK_cCOMP ] == "watcom"
DO CASE
CASE FindInPath( "os2.h", GetEnv( "INCLUDE" ) ) != NIL
hbmk[ _HBMK_cPLAT ] := "os2"
CASE FindInPath( "dirent.h", GetEnv( "INCLUDE" ) ) != NIL
hbmk[ _HBMK_cPLAT ] := "linux"
CASE FindInPath( "windows.h", GetEnv( "INCLUDE" ) ) != NIL
hbmk[ _HBMK_cPLAT ] := "dos"
ENDCASE
ENDIF
EXIT
ELSE
IF hbmk[ _HBMK_lInfo ]
@@ -4480,7 +4491,7 @@ FUNCTION hbmk2( aArgs, /* @ */ lPause )
/* Creating implibs requested in dependency specification */
IF ! hbmk[ _HBMK_lStopAfterInit ] .AND. hbmk[ _HBMK_lDEPIMPLIB ]
IF ! hbmk[ _HBMK_lStopAfterInit ] .AND. hbmk[ _HBMK_lDEPIMPLIB ] .AND. ISBLOCK( bBlk_ImpLib )
FOR EACH tmp IN hbmk[ _HBMK_hDEP ]
IF tmp[ _HBMKDEP_lFound ] .AND. ! Empty( tmp[ _HBMKDEP_aIMPLIBSRC ] )
DoIMPLIB( hbmk, bBlk_ImpLib, cLibLibPrefix, cLibLibExt, tmp[ _HBMKDEP_aIMPLIBSRC ], tmp[ _HBMKDEP_cIMPLIBDST ] )