-
Notifications
You must be signed in to change notification settings - Fork 20
/
myBuildX.bat
21 lines (20 loc) · 931 Bytes
/
myBuildX.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
:start
harbour %1.prg -oobj\%1.c -I%HB_INSTALL_PREFIX%\include -gc2 -b
IF %ERRORLEVEL% GEQ 1000 goto setup
cl obj\%1.c -I%HB_INSTALL_PREFIX%\include /c /Foobj/%1.obj
link obj/%1.obj /libpath:%HB_INSTALL_PREFIX%\lib /subsystem:console ^
code_dbgX.lib vm.lib rtl.lib common.lib rdd.lib pcrepos.lib ^
macro.lib dbfntx.lib dbffpt.lib hbsix.lib lang.lib gtwin.lib
::
goto :eof
:setup
set HB_INSTALL_PREFIX=C:\xharbour
SET CD_SRC=%CD%
:: I use visual studio 2017 x86 on a win64 system.
CALL "c:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvars32.bat"
if %ERRORLEVEL%==1 CALL "c:\Program Files\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars32.bat"
if %ERRORLEVEL%==1 CALL "c:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars32.bat"
echo on
cd %CD_SRC%
set path=%PATH%;%HB_INSTALL_PREFIX%\bin;%HB_INSTALL_PREFIX%\bin\win\msvc
goto start