2010-05-21 21:15 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)

* utils/hbmk2/hbmk2.prg
    ! -hbimplib extended for msvc to first look for any existing
      .lib file with the same name as the .dll.

  * contrib/sddfb/sddfb.hbi
  * contrib/hbfbird/hbfbird.hbi
    * Changed to use existing .lib for msvc compilers.
This commit is contained in:
Viktor Szakats
2010-05-21 19:16:32 +00:00
parent d8d5c8c4b2
commit 5ca20b5be1
4 changed files with 23 additions and 4 deletions

View File

@@ -17,6 +17,15 @@
past entries belonging to author(s): Viktor Szakats.
*/
2010-05-21 21:15 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* utils/hbmk2/hbmk2.prg
! -hbimplib extended for msvc to first look for any existing
.lib file with the same name as the .dll.
* contrib/sddfb/sddfb.hbi
* contrib/hbfbird/hbfbird.hbi
* Changed to use existing .lib for msvc compilers.
2010-05-21 17:06 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* src/compiler/genhrb.c
! Fixed very old copy paste error in .hrb generation feedback

View File

@@ -6,5 +6,5 @@
-ofbclient
{!allgcc}${HB_WITH_FIREBIRD}/../bin/fbclient.dll
{allgcc}${HB_WITH_FIREBIRD}/../lib/fbclient_ms.lib
{!(allgcc|allmsvc)}${HB_WITH_FIREBIRD}/../bin/fbclient.dll
{allgcc|allmsvc}${HB_WITH_FIREBIRD}/../lib/fbclient_ms.lib

View File

@@ -6,5 +6,5 @@
-ofbclient
{!allgcc}${HB_WITH_FIREBIRD}/../bin/fbclient.dll
{allgcc}${HB_WITH_FIREBIRD}/../lib/fbclient_ms.lib
{!(allgcc|allmsvc)}${HB_WITH_FIREBIRD}/../bin/fbclient.dll
{allgcc|allmsvc}${HB_WITH_FIREBIRD}/../lib/fbclient_ms.lib

View File

@@ -7996,6 +7996,16 @@ STATIC FUNCTION win_implib_command_msvc( hbmk, cCommand, nCmd_Esc, cSourceDLL, c
LOCAL cCommandDump
/* Try to find COFF .lib with the same name */
IF hb_FileExists( tmp := FN_ExtSet( cSourceDLL, ".lib" ) )
IF IsCOFFLib( tmp )
IF ! hbmk[ _HBMK_lQuiet ]
hbmk_OutStd( hbmk, I_( "Found COFF .lib with the same name, falling back to using it instead of the .dll." ) )
ENDIF
RETURN hb_FCopy( tmp, cTargetLib ) != F_ERROR
ENDIF
ENDIF
cCommandDump := "dumpbin.exe -exports {ID}"
cCommandDump := StrTran( cCommandDump, "{ID}", FN_Escape( cSourceDLL, nCmd_Esc ) )