by JC » Mon Mar 17, 2008 4:27 pm
StefanHaupt wrote:Julio,
here is a batch to compile the lib. Just change the pathnames at the beginning
- Code: Select all Expand view
@ECHO OFF
CLS
rem Change these pathnames
set fwh=d:\fwh
set include=.\INCLUDE;d:\fwh\include;%INCLUDE%
set hdir=d:\xharbour
set bcdir=d:\Borland\bcc55\bin
set def=HB_API_MACROS
%hdir%\bin\harbour SOURCE\Classes\TSBAR.PRG /n /i%fwh%\include;%hdir%\include /oOBJ\TSBAR.C
%hdir%\bin\harbour SOURCE\Classes\TSBUTTON.PRG /n /i%fwh%\include;%hdir%\include /oOBJ\TSBUTTON.C
%hdir%\bin\harbour SOURCE\Classes\TSLINES.PRG /n /i%fwh%\include;%hdir%\include /oOBJ\TSLINES.C
%hdir%\bin\harbour SOURCE\Classes\TSRADIO.PRG /n /i%fwh%\include;%hdir%\include /oOBJ\TSRADIO.C
%hdir%\bin\harbour SOURCE\Classes\TSTSAY.PRG /n /i%fwh%\include;%hdir%\include /oOBJ\TSTSAY.C
rem INICIO Modulos C Generados por Harbour !!!
%bcdir%\bcc32 -M -c -O2 -D__HARBOUR__ -DHB_API_MACROS -DHB_FM_STATISTICS_OFF -I%hdir%\include -oOBJ\TSBAR.OBJ OBJ\TSBAR.C
%bcdir%\bcc32 -M -c -O2 -D__HARBOUR__ -DHB_API_MACROS -DHB_FM_STATISTICS_OFF -I%hdir%\include -oOBJ\TSBUTTON.OBJ OBJ\TSBUTTON.C
%bcdir%\bcc32 -M -c -O2 -D__HARBOUR__ -DHB_API_MACROS -DHB_FM_STATISTICS_OFF -I%hdir%\include -oOBJ\TSLINES.OBJ OBJ\TSLINES.C
%bcdir%\bcc32 -M -c -O2 -D__HARBOUR__ -DHB_API_MACROS -DHB_FM_STATISTICS_OFF -I%hdir%\include -oOBJ\TSRADIO.OBJ OBJ\TSRADIO.C
%bcdir%\bcc32 -M -c -O2 -D__HARBOUR__ -DHB_API_MACROS -DHB_FM_STATISTICS_OFF -I%hdir%\include -oOBJ\TSTSAY.OBJ OBJ\TSTSAY.C
@del OBJ\*.c
rem Modulos C Nativos !!!
%bcdir%\bcc32 -M -c -O2 -D__HARBOUR__ -DHB_API_MACROS -DHB_FM_STATISTICS_OFF -I%hdir%\include;%include% -oOBJ\BPAINT.OBJ source\function\BPAINT.C
@del LIB\SButtonX.LIB
%bcdir%\Tlib lib\SButtonX +obj\TSBar > Lib.log
%bcdir%\Tlib lib\SButtonX +obj\TSBUtton >> Lib.log
%bcdir%\Tlib lib\SButtonX +obj\TSLines >> Lib.log
%bcdir%\Tlib lib\SButtonX +obj\TSRadio >> Lib.log
%bcdir%\Tlib lib\SButtonX +obj\TSTSay >> Lib.log
%bcdir%\Tlib lib\SButtonX +obj\BPaint >> Lib.log
rem @del tmplib.bc
@echo Library built
Thanks Stefan and Manuel!
Now, my TsButton it's ok! Running!
Really, I don't need to create a sbutton.lib, just i'm including the BPaint.c and the class TSButton.prg in my .BC while compile! Works fine!
Greats!
Peace and lighting!
Júlio César M. Ferreira
FWH 8.10 / xHB 1.1.0 / xDevStudio 0.72 / Pelles C 5.0.1 / SQLLIB 1.9