2010-03-28 11:38 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)

* config/wce/mingwarm.mk
  * config/win/mingw.mk
  * config/win/cygwin.mk
  * config/os2/gcc.mk
    ! Fixed resource compiler binary name to honor CCPREFIX and friends.

  * utils/hbrun/Makefile
  + utils/hbrun/hbrun.rc
    + Added resource file to include icon.
    ; TOFIX: The .ico file path is hard-wired and will break if HB_BUILD_NAME
             contains subdirs.

  * bin/postinst.bat
    - Deleted no more necessary hack to build hbrun with icon using hbmk2.
This commit is contained in:
Viktor Szakats
2010-03-28 09:43:41 +00:00
parent 1c4fffba99
commit 037260a10b
8 changed files with 32 additions and 21 deletions

View File

@@ -17,6 +17,22 @@
past entries belonging to author(s): Viktor Szakats.
*/
2010-03-28 11:38 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* config/wce/mingwarm.mk
* config/win/mingw.mk
* config/win/cygwin.mk
* config/os2/gcc.mk
! Fixed resource compiler binary name to honor CCPREFIX and friends.
* utils/hbrun/Makefile
+ utils/hbrun/hbrun.rc
+ Added resource file to include icon.
; TOFIX: The .ico file path is hard-wired and will break if HB_BUILD_NAME
contains subdirs.
* bin/postinst.bat
- Deleted no more necessary hack to build hbrun with icon using hbmk2.
2010-03-28 11:15 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* INSTALL
* config/rules.mk

View File

@@ -33,23 +33,6 @@ if "%HB_SHELL%" == "nt" goto _SH_NT
:_SH_NT
if "%HB_PLATFORM%" == "dos" goto _NO_ICON_BIN
if "%HB_PLATFORM%" == "linux" goto _NO_ICON_BIN
rem ; We build this here, because GNU Make wouldn't add the icon.
echo ! Making hbrun with application icon...
set _HB_OPTIONS_=
if "%HB_BUILD_SHARED%" == "yes" set _HB_OPTIONS_=-shared
if "%HB_BUILD_DLL%" == "no" set _HB_OPTIONS_=
if "%HB_BUILD_MODE%" == "cpp" set _HB_OPTIONS_=%_HB_OPTIONS_% -cpp=yes
if "%HB_BUILD_MODE%" == "c" set _HB_OPTIONS_=%_HB_OPTIONS_% -cpp=no
if "%HB_BUILD_DEBUG%" == "yes" set _HB_OPTIONS_=%_HB_OPTIONS_% -debug
"%HB_HOST_BIN_DIR%\hbmk2" -quiet -q0 -lang=en %_HB_OPTIONS_% "-o%HB_BIN_INSTALL%\hbrun" "%~dp0..\utils\hbrun\hbrun.hbp"
set _HB_OPTIONS_=
:_NO_ICON_BIN
if "%HB_PLATFORM%" == "linux" goto _NO_PKG
if not "%HB_BUILD_PKG%" == "yes" goto _NO_PKG
if "%HB_TOP%" == "" goto _NO_PKG

View File

@@ -39,7 +39,7 @@ ifeq ($(HB_BUILD_DEBUG),yes)
CFLAGS += -g
endif
RC := windres
RC := $(HB_CCPATH)$(HB_CCPREFIX)windres
RC_OUT := -o$(subst x,x, )
ifeq ($(HB_COMPILER),gccomf)
RCFLAGS := -O omf

View File

@@ -34,7 +34,7 @@ ifeq ($(HB_BUILD_DEBUG),yes)
CFLAGS += -g
endif
RC := windres
RC := $(HB_CCPATH)$(HB_CCPREFIX)windres
RC_OUT := -o$(subst x,x, )
RCFLAGS := -O coff

View File

@@ -31,7 +31,7 @@ ifeq ($(HB_BUILD_DEBUG),yes)
CFLAGS += -g
endif
RC := windres
RC := $(HB_CCPATH)$(HB_CCPREFIX)windres
RC_OUT := -o$(subst x,x, )
RCFLAGS := -O coff

View File

@@ -50,7 +50,7 @@ ifeq ($(HB_BUILD_DEBUG),yes)
CFLAGS += -g
endif
RC := windres
RC := $(HB_CCPATH)$(HB_CCPREFIX)windres
RC_OUT := -o$(subst x,x, )
RCFLAGS := -O coff

View File

@@ -9,6 +9,9 @@ include $(TOP)$(ROOT)config/global.mk
PRG_SOURCES := \
hbrun.prg \
RC_SOURCES := \
hbrun.rc
PRG_MAIN := hbrun.prg
LIBS = hbcplr hbpp hbcommon $(HB_LIBS_ST_RDD)

View File

@@ -0,0 +1,9 @@
/*
* $Id$
*/
#if defined( __BORLANDC__ )
ICON1 ICON DISCARDABLE "..\..\..\..\..\package\harbour.ico"
#else
ICON1 ICON DISCARDABLE "..\\..\\..\\..\\..\\package\\harbour.ico"
#endif