+ contrib/mtpl_b32.bat
+ contrib/mtpl_vc.bat
+ Added generic non-GNU make batch files.
; Thanks to Marek.
* utils/hbmake/hbmutils.prg
! Some untested fixes to hbmake. If someone
uses this tool, pls send reports.
- contrib/mkall_b32.bat
* contrib/make_b32_all.bat
+ contrib/make_vc_all.bat
* Renamed.
+ VC version added.
* contrib/mtpl_b32.mak
* contrib/mtpl_vc.mak
! Minor fix by Marek.
* contrib/rdd_ads/doc/gendoc.bat
! Fix to run from its place.
* contrib/rdd_ads/adsmgmnt.c
! Fixed to compile with ADS 8.10.
#define ADS_VER=810 (or upper) to enable this.
* contrib/rdd_ads/rddads.h
! Fixed to compile using original ads.h headers.
(tested with 6.11, 7.00, 7.10, 8.00, 8.10)
* contrib/rdd_ads/ads1.c
* contrib/rdd_ads/adsfunc.c
! Suppressed this BCC32 warning using #pragma:
'Call to function 'AdsApplicationExit' with no prototype in function ...'
+ contrib/rdd_ads/unixutils.h
+ Added dummy header to fix compilation under
Linux, using the original ads.h headers.
Not tested. Supposed to replace the workaround
currently in local ads.h where '#include "unixutils.h"'
is commented out.
* contrib/rdd_ads/readme.txt
! Added SVN header.
* contrib/pgsql/Makefile
* contrib/pgsql/common.mak
+ Added pgrdd.prg to make files.
- contrib/pgsql/tstpgrdd.prg
+ contrib/pgsql/tests/tstpgrdd.prg
! Moved test to test dir.
* contrib/pgsql/pgrdd.prg
! Fixed warnings.
- contrib/pgsql/README
+ contrib/pgsql/readme.txt
* Rename.
* contrib/pgsql/common.mak
! Lib name change: libhbpg -> hbpg
+ contrib/pgsql/tests/bld_b32.bat
+ Added test app build helper.
* contrib/rdd_ads/make_b32.bat
* contrib/rdd_ads/make_vc.bat
* contrib/pgsql/make_b32.bat
* contrib/pgsql/make_vc.bat
* contrib/ole/make_b32.bat
* contrib/ole/make_vc.bat
* contrib/xhb/make_b32.bat
* contrib/xhb/make_vc.bat
* contrib/libmisc/make_b32.bat
* contrib/libmisc/make_vc.bat
* contrib/freeimage/make_b32.bat
* contrib/freeimage/make_vc.bat
* contrib/apollo/make_b32.bat
* contrib/apollo/make_vc.bat
* contrib/firebird/make_b32.bat
* contrib/firebird/make_vc.bat
* contrib/htmllib/make_b32.bat
* contrib/htmllib/make_vc.bat
* contrib/libct/make_b32.bat
* contrib/libct/make_vc.bat
* contrib/pdflib/make_b32.bat
* contrib/pdflib/make_vc.bat
* contrib/libgt/make_b32.bat
* contrib/libgt/make_vc.bat
* contrib/hgf/win32/make_b32.bat
* contrib/hgf/win32/make_vc.bat
* contrib/telepath/make_b32.bat
* contrib/telepath/make_vc.bat
* contrib/hbzlib/make_b32.bat
* contrib/hbzlib/make_vc.bat
* contrib/gd/make_b32.bat
* contrib/gd/make_vc.bat
* contrib/libnf/make_b32.bat
* contrib/libnf/make_vc.bat
* contrib/tip/make_b32.bat
* contrib/tip/make_vc.bat
* contrib/adordd/make_b32.bat
* contrib/adordd/make_vc.bat
* contrib/btree/make_b32.bat
* contrib/btree/make_vc.bat
* contrib/directx/make_b32.bat
* contrib/directx/make_vc.bat
* contrib/win32/make_b32.bat
* contrib/win32/make_vc.bat
* contrib/samples/make_b32.bat
* contrib/samples/make_vc.bat
* contrib/mysql/make_b32.bat
* contrib/mysql/make_vc.bat
* contrib/odbc/make_b32.bat
* contrib/odbc/make_vc.bat
* contrib/bmdbfcdx/make_b32.bat
* contrib/bmdbfcdx/make_vc.bat
% Using the batch file templates.
+ Some other additions and fixes related to make it easy
to specifiy 3rd party package locations.
These envvars can be used for our libs:
set APOLLO_DIR=C:\Apollo
set FIREBIRD_DIR=C:\Firebird
set FREEIMAGE_DIR=C:\FreeImage
set GD_DIR=C:\gd
set MYSQL_DIR=C:\mysql
set PDFLIB_DIR=C:\pdflib
set PGSQL_DIR=C:\pgsql
72 lines
2.6 KiB
Batchfile
72 lines
2.6 KiB
Batchfile
@echo off
|
|
rem
|
|
rem $Id$
|
|
rem
|
|
|
|
if "%PGSQL_DIR%" == "" goto HELP
|
|
|
|
set C_USR=%C_USR% -I%PGSQL_DIR%\include -DHB_OS_WIN_32_USED
|
|
rem .exe
|
|
set HB_DLL_NAME=postgres
|
|
if "%HB_DLL_DIR%" == "" set HB_DLL_DIR=%PGSQL_DIR%\bin
|
|
|
|
rem ---------------------------------------------------------------
|
|
|
|
call ..\mtpl_vc.bat %1 %2 %3 %4 %5 %6 %7 %8 %9
|
|
|
|
rem ---------------------------------------------------------------
|
|
|
|
set _HB_INSTALL_PREFIX=%HB_INSTALL_PREFIX%
|
|
if "%_HB_INSTALL_PREFIX%" == "" set _HB_INSTALL_PREFIX=..\..
|
|
set _HB_LIB_INSTALL=%HB_LIB_INSTALL%
|
|
if "%_HB_LIB_INSTALL%" == "" set _HB_LIB_INSTALL=%_HB_INSTALL_PREFIX%\lib
|
|
|
|
if "%1" == "clean" goto POST_CLEAN
|
|
if "%1" == "CLEAN" goto POST_CLEAN
|
|
if "%1" == "install" goto POST_INSTALL
|
|
if "%1" == "INSTALL" goto POST_INSTALL
|
|
|
|
:POST_BUILD
|
|
|
|
rem ---------------------------------------------------------------
|
|
rem This .dll to .lib conversion needs GNU sed.exe in the path
|
|
rem ---------------------------------------------------------------
|
|
echo./[ \t]*ordinal hint/,/^^[ \t]*Summary/{> _temp.sed
|
|
echo. /^^[ \t]\+[0-9]\+/{>> _temp.sed
|
|
echo. s/^^[ \t]\+[0-9]\+[ \t]\+[0-9A-Fa-f]\+[ \t]\+[0-9A-Fa-f]\+[ \t]\+\(.*\)/\1/p>> _temp.sed
|
|
echo. }>> _temp.sed
|
|
echo.}>> _temp.sed
|
|
DUMPBIN /EXPORTS %HB_DLL_DIR%\%HB_DLL_NAME%.exe > _dump.tmp
|
|
echo.LIBRARY %HB_DLL_DIR%\%HB_DLL_NAME%.exe > _temp.def
|
|
echo.EXPORTS >> _temp.def
|
|
sed -nf _temp.sed < _dump.tmp >> _temp.def
|
|
LIB /MACHINE:X86 /DEF:_temp.def /OUT:..\..\lib\%HB_CC_NAME%\%HB_DLL_NAME%.lib
|
|
del _dump.tmp
|
|
del _temp.def
|
|
del _temp.sed
|
|
rem ---------------------------------------------------------------
|
|
goto POST_EXIT
|
|
|
|
:POST_CLEAN
|
|
|
|
if exist ..\..\lib\%HB_CC_NAME%\%HB_DLL_NAME%.lib del ..\..\lib\%HB_CC_NAME%\%HB_DLL_NAME%.lib > nul
|
|
if exist ..\..\lib\%HB_CC_NAME%\%HB_DLL_NAME%.exp del ..\..\lib\%HB_CC_NAME%\%HB_DLL_NAME%.exp > nul
|
|
if exist %_HB_LIB_INSTALL%\%HB_DLL_NAME%.lib del %_HB_LIB_INSTALL%\%HB_DLL_NAME%.lib > nul
|
|
goto POST_EXIT
|
|
|
|
:POST_INSTALL
|
|
|
|
if exist %_HB_LIB_INSTALL%\%HB_DLL_NAME%.lib del %_HB_LIB_INSTALL%\%HB_DLL_NAME%.lib
|
|
if exist ..\..\lib\%HB_CC_NAME%\%HB_DLL_NAME%.lib copy ..\..\lib\%HB_CC_NAME%\%HB_DLL_NAME%.lib %_HB_LIB_INSTALL%
|
|
goto POST_EXIT
|
|
|
|
:HELP
|
|
|
|
echo ---------------------------------------------------------------
|
|
echo IMPORTANT: You'll need PostreSQL package and this envvar
|
|
echo to be set to successfully build this library:
|
|
echo set PGSQL_DIR=C:\pgsql
|
|
echo ---------------------------------------------------------------
|
|
|
|
:POST_EXIT
|