* bin/hb-mkdyn.bat
! Applied recent change in WinCE .dll names.
% Remmed some verbose output in .dll generation code.
* bin/postinst.bat
* bin/hb-mkimp.bat
* Minor in wording.
* utils/hbmk2/hbmk2.prg
! Fixed converting input filename dirseps for target compiler
in resource compiler commands. (error ocurred when testing
mingwarm)
* config/win/bcc.cf
! Fixed bad typo in prev commit.
* config/dos/watcom.cf
* config/win/watcom.cf
* config/linux/watcom.cf
* config/os2/watcom.cf
+ Added -q to wlib cmdline.
118 lines
4.4 KiB
Batchfile
118 lines
4.4 KiB
Batchfile
@rem
|
|
@rem $Id$
|
|
@rem
|
|
|
|
@echo off
|
|
|
|
rem ---------------------------------------------------------------
|
|
rem Copyright 2009 Viktor Szakats (harbour.01 syenar.hu)
|
|
rem See COPYING for licensing terms.
|
|
rem
|
|
rem Script run after Harbour make install to finish install process
|
|
rem (for Windows/DOS)
|
|
rem
|
|
rem Contains: install package creator script, which requires:
|
|
rem
|
|
rem - Info-ZIP zip.exe in PATH
|
|
rem or HB_DIR_ZIP envvar set to its dir with an ending backslash.
|
|
rem https://sourceforge.net/project/showfiles.php?group_id=118012
|
|
rem - NullSoft Installer installed (NSIS)
|
|
rem https://sourceforge.net/project/showfiles.php?group_id=22049&package_id=15374
|
|
rem (only for Windows builds)
|
|
rem - makensis.exe (part of NSIS) in PATH
|
|
rem or HB_DIR_NSIS envvar set to its dir with an ending backslash.
|
|
rem (only for Windows builds)
|
|
rem ---------------------------------------------------------------
|
|
|
|
if "%HB_BIN_INSTALL%" == "" echo HB_BIN_INSTALL needs to be set.
|
|
if "%HB_BIN_INSTALL%" == "" goto END
|
|
|
|
echo ! Generating %HB_BIN_INSTALL%\hbmk.cfg...
|
|
echo # Harbour Make (hbmk2) configuration> %HB_BIN_INSTALL%\hbmk.cfg
|
|
echo # Generated by Harbour build process>> %HB_BIN_INSTALL%\hbmk.cfg
|
|
echo.>> %HB_BIN_INSTALL%\hbmk.cfg
|
|
echo libpaths=../contrib/%%{hb_name}>> %HB_BIN_INSTALL%\hbmk.cfg
|
|
echo libpaths=../contrib/rddsql/%%{hb_name}>> %HB_BIN_INSTALL%\hbmk.cfg
|
|
echo libpaths=../addons/%%{hb_name}>> %HB_BIN_INSTALL%\hbmk.cfg
|
|
echo libpaths=../examples/%%{hb_name}>> %HB_BIN_INSTALL%\hbmk.cfg
|
|
|
|
goto INST_%HB_ARCHITECTURE%
|
|
|
|
:INST_WIN
|
|
:INST_WCE
|
|
|
|
rem Windows post install part
|
|
|
|
if not "%OS%" == "Windows_NT" echo ! postinst.bat Harbour build script requires Windows NT or upper.
|
|
if not "%OS%" == "Windows_NT" goto END
|
|
|
|
rem ; Post-build installation
|
|
if not "%HB_INSTALL_PREFIX%" == "" copy ChangeLog* "%HB_INSTALL_PREFIX%\" > nul
|
|
if not "%HB_INSTALL_PREFIX%" == "" copy COPYING "%HB_INSTALL_PREFIX%\" > nul
|
|
if not "%HB_INSTALL_PREFIX%" == "" copy ERRATA "%HB_INSTALL_PREFIX%\" > nul
|
|
if not "%HB_INSTALL_PREFIX%" == "" copy INSTALL "%HB_INSTALL_PREFIX%\" > nul
|
|
if not "%HB_INSTALL_PREFIX%" == "" copy TODO "%HB_INSTALL_PREFIX%\" > nul
|
|
|
|
if "%HB_BUILD_DLL%" == "no" goto _SKIP_DLL_BIN
|
|
|
|
call "%~dp0hb-mkdyn.bat"
|
|
|
|
if exist "%HB_BIN_INSTALL%\*.dll" (
|
|
echo ! Making shared version of Harbour binaries...
|
|
"%HB_HOST_BIN_DIR%\hbmk2" -q0 -lng=en-EN -shared "-o%HB_BIN_INSTALL%\hbrun-dll" "%~dp0..\utils\hbrun\hbrun.hbp"
|
|
"%HB_HOST_BIN_DIR%\hbmk2" -q0 -lng=en-EN -shared "-o%HB_BIN_INSTALL%\hbmk2-dll" "%~dp0..\utils\hbmk2\hbmk2.hbp"
|
|
"%HB_HOST_BIN_DIR%\hbmk2" -q0 -lng=en-EN -shared "-o%HB_BIN_INSTALL%\hbtest-dll" "%~dp0..\utils\hbtest\hbtest.hbp"
|
|
"%HB_HOST_BIN_DIR%\hbmk2" -q0 -lng=en-EN -shared "-o%HB_BIN_INSTALL%\hbi18n-dll" "%~dp0..\utils\hbi18n\hbi18n.hbp"
|
|
"%HB_HOST_BIN_DIR%\hbmk2" -q0 -lng=en-EN -shared "-o%HB_BIN_INSTALL%\hbformat-dll" "%~dp0..\utils\hbformat\hbformat.hbp"
|
|
)
|
|
|
|
:_SKIP_DLL_BIN
|
|
|
|
rem ; We build this here, because GNU Make wouldn't add the icon.
|
|
echo ! Making hbrun with application icon...
|
|
"%HB_HOST_BIN_DIR%\hbmk2" -q0 -lng=en-EN "-o%HB_BIN_INSTALL%\hbrun" "%~dp0..\utils\hbrun\hbrun.hbp"
|
|
|
|
if "%HB_BUILD_IMPLIB%" == "yes" call "%~dp0hb-mkimp.bat"
|
|
if "%HB_BUILD_PKG%" == "yes" call :MK_PKG
|
|
|
|
goto END
|
|
|
|
:INST_DOS
|
|
|
|
rem ; Post-build installation
|
|
if not "%HB_INSTALL_PREFIX%" == "" copy CHANG* %HB_INSTALL_PREFIX%\CHANGES > nul
|
|
if not "%HB_INSTALL_PREFIX%" == "" copy COPYING %HB_INSTALL_PREFIX% > nul
|
|
if not "%HB_INSTALL_PREFIX%" == "" copy ERRATA %HB_INSTALL_PREFIX% > nul
|
|
if not "%HB_INSTALL_PREFIX%" == "" copy INSTALL %HB_INSTALL_PREFIX% > nul
|
|
if not "%HB_INSTALL_PREFIX%" == "" copy TODO %HB_INSTALL_PREFIX% > nul
|
|
|
|
if "%HB_BUILD_PKG%" == "yes" call :MK_PKG
|
|
|
|
goto END
|
|
|
|
:INST_LINUX
|
|
|
|
goto END
|
|
|
|
:INST_
|
|
|
|
goto END
|
|
|
|
:MK_PKG
|
|
|
|
echo ! Making Harbour .zip install package: '%HB_PKGPATH%.zip'
|
|
if exist "%HB_PKGPATH%.zip" del "%HB_PKGPATH%.zip"
|
|
pushd
|
|
cd "%HB_PKGBASE%"
|
|
"%HB_DIR_ZIP%zip.exe" -q -9 -X -r -o "%HB_PKGPATH%.zip" . -i "%HB_PKGNAME%\*" -x *.tds -x *.exp
|
|
popd
|
|
|
|
if "%HB_ARCHITECTURE%" == "dos" goto :EOF
|
|
|
|
echo ! Making Harbour .exe install package: '%HB_PKGPATH%.exe'
|
|
"%HB_DIR_NSIS%makensis.exe" /V2 "%~dp0..\package\mpkg_win.nsi"
|
|
|
|
goto :EOF
|
|
|
|
:END
|