2004-04-16 19:05 UTC+0300 Alexander Kresin <alex@belacy.belgorod.su>
This commit is contained in:
@@ -8,6 +8,16 @@
|
||||
2002-12-01 23:12 UTC+0100 Foo Bar <foo.bar@foobar.org>
|
||||
*/
|
||||
|
||||
2004-04-16 19:05 UTC+0300 Alexander Kresin <alex@belacy.belgorod.su>
|
||||
* hrbdll.bc
|
||||
* Makefile for the harbour.dll is changed
|
||||
+ mkbcdll.bat
|
||||
+ Bat file is added to build the Harbour.dll. Changing appropriate
|
||||
environment variables inside it, you may include/exclude from the dll
|
||||
RDD ADS, CT, Libmisc, Debug libraries.
|
||||
+ tests/bld4dll.bat
|
||||
+ Bat file is added to build sample applications, which uses harbour.dll
|
||||
|
||||
2004-04-16 13:55 UTC+0300 Alexander Kresin <alex@belacy.belgorod.su>
|
||||
* include/hbstack.h
|
||||
* source/vm/hvm.c
|
||||
|
||||
1304
harbour/hrbdll.bc
1304
harbour/hrbdll.bc
File diff suppressed because it is too large
Load Diff
46
harbour/mkbcdll.bat
Normal file
46
harbour/mkbcdll.bat
Normal file
@@ -0,0 +1,46 @@
|
||||
@echo off
|
||||
if "%1" == "clean" goto CLEAN
|
||||
if "%1" == "CLEAN" goto CLEAN
|
||||
|
||||
:BUILD
|
||||
if not exist obj\b32\dll md obj\b32\dll
|
||||
if not exist obj\b32\dll\ct md obj\b32\dll\ct
|
||||
|
||||
rem ---------------------------------------------------------------
|
||||
rem Set any of these LINK_* to 'NO' if you don't want to have
|
||||
rem appropriate modules in the harbour.dll
|
||||
rem ---------------------------------------------------------------
|
||||
SET LINK_ADS=YES
|
||||
SET LINK_CT=YES
|
||||
SET LINK_LIBMISC=YES
|
||||
SET LINK_DEBUG=YES
|
||||
|
||||
make -fhrbdll.bc %1 %2 %3 > makedll.log
|
||||
if errorlevel 1 goto BUILD_ERR
|
||||
|
||||
:BUILD_OK
|
||||
|
||||
copy lib\b32\harbour.dll lib\harbour.dll
|
||||
implib lib\harbour.lib lib\harbour.dll
|
||||
goto EXIT
|
||||
|
||||
:BUILD_ERR
|
||||
|
||||
notepad makedll.log
|
||||
goto EXIT
|
||||
|
||||
:CLEAN
|
||||
|
||||
if exist obj\b32\dll\*.c del obj\b32\dll\*.c
|
||||
if exist obj\b32\dll\*.obj del obj\b32\dll\*.obj
|
||||
if exist obj\b32\dll\*.h del obj\b32\dll\*.h
|
||||
if exist obj\b32\dll\ct\*.c del obj\b32\dll\ct\*.c
|
||||
if exist obj\b32\dll\ct\*.obj del obj\b32\dll\ct\*.obj
|
||||
if exist lib\b32\harbour.dll del lib\b32\harbour.dll
|
||||
if exist lib\b32\*.tds del lib\b32\*.tds
|
||||
if exist lib\b32\*.map del lib\b32\*.map
|
||||
if exist makedll.log del makedll.log
|
||||
goto EXIT
|
||||
|
||||
:EXIT
|
||||
|
||||
29
harbour/tests/bld4dll.bat
Normal file
29
harbour/tests/bld4dll.bat
Normal file
@@ -0,0 +1,29 @@
|
||||
@echo off
|
||||
rem ---------------------------------------------------------------
|
||||
rem This file is intended to build a program, which uses harbour.dll
|
||||
rem The main function must be called _AppMain.
|
||||
rem To run the program, you need to have harbour.dll in your path.
|
||||
rem ---------------------------------------------------------------
|
||||
|
||||
set HB_PATH=..\
|
||||
|
||||
%HB_PATH%\BIN\harbour %1.prg -n -i%HB_PATH%\INCLUDE %2 %3
|
||||
|
||||
bcc32 -c -O2 -d -I%HB_PATH%\INCLUDE %1.c %HB_PATH%\source\vm\mainwin.c
|
||||
|
||||
@echo c0w32.obj + > b32.bc
|
||||
@echo %1.obj + >> b32.bc
|
||||
@echo mainwin.obj,+ >> b32.bc
|
||||
@echo %1.exe, + >> b32.bc
|
||||
@echo , + >> b32.bc
|
||||
@echo %HB_PATH%\LIB\harbour.lib + >> b32.bc
|
||||
@echo cw32.lib + >> b32.bc
|
||||
@echo import32.lib, >> b32.bc
|
||||
|
||||
ilink32 -Tpe -Gn @b32.bc
|
||||
|
||||
del %1.obj
|
||||
del mainwin.obj
|
||||
del %1.c
|
||||
del *.tds
|
||||
del b32.bc
|
||||
Reference in New Issue
Block a user