Today I discovered a problem about the system used to compile end programs and (perhaps) about HMG library.
I think we must change all batch files, remove usage of hbmk.hbm and introduce usage of .hbp and .hbc for every demo folder.
I show my intention, using folders structure ( notice: all previous .hbp, .hbc, .hbm, .bat will be removed )
svn/source/buildlib.bat
svn/source/hmglib.hbp
svn/buildapp.bat
svn/samples/demofolder/build.bat
svn/samples/demofolder/xxxx.prg
svn/samples/demofolder/xxxx.hbp
svn/samples/demofolder/hmg.hbc
little brief about some files
A) buildlib.bat (see (2) )
Code: Select all
SET HMGLOG=hmg_errorlog.txt
hbmk2 hmglib.hbp -trace > %HMGLOG% 2>&1
SET HMGLOG=
Code: Select all
-hblib
-inc
-o../lib/hmg <== remember: we are within source folder. ../lib is needed to store in the right place
-I../include <== remember: we are within source folder. this is needed to localize hmg include folder
-w3
-es2
sourcename1.prg
sourcenameN.prg
Code: Select all
SET HMGLOG=hmg_errorlog.txt
SET GUI=-gtgui
hbmk2 -o%~n1.exe %GUI% -trace %1 > %HMGLOG% 2>&1
SET HMGLOG=
SET GUI=
Code: Select all
..\..\buildapp.bat %1 <== I removed "-run" option because it's dangerous. when there is some AV installed or wrong privileges
Code: Select all
-w3
-es2
hmg.hbc
xxxxx.prg can be more than one
?????.qrc if needed
Code: Select all
incpaths=../../Include <== need this to find hmg4 include folder
libpaths=../../Lib <== need this to find hmg4 lib folder
libs=hbqt.hbc
libs=hbct.hbc <== see (1)
libs=hmg <== I'm using compiled library, not hbc
(2) theoretically we must also introduce
SET HB_COMPILER=mingw <== to tell mingw usage....
SET HRBBIN=HarbourBinPath <== but everyone can have different value (remember: someone doesn't uses Harbour of HMG distribution)
Rathinagiri (and everyone):
1) please, could you tell me if this can create problem with HMG4 distribution
2) about HRBBIN setting: by default HMG4 package is C:\Hmg4 ? I'm always dowoload SVN and I don't remember. I can set this value as default.
Is there someone who want to do this job?
Cheers