2009-08-17 22:47 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)

* config/global.mk
    ! Fixed previous commit after actual testing.
      Now wce cross build on linux works by simply setting HB_CCPATH
      and issuing 'make'.
    ; TODO: Extend above logic to other *nix platforms.
This commit is contained in:
Viktor Szakats
2009-08-17 20:49:20 +00:00
parent a6dff3e61a
commit 282af2d41b
2 changed files with 16 additions and 5 deletions

View File

@@ -17,6 +17,13 @@
past entries belonging to author(s): Viktor Szakats.
*/
2009-08-17 22:47 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* config/global.mk
! Fixed previous commit after actual testing.
Now wce cross build on linux works by simply setting HB_CCPATH
and issuing 'make'.
; TODO: Extend above logic to other *nix platforms.
2009-08-17 21:30 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* config/global.mk
* config/wce/mingwarm.mk

View File

@@ -53,6 +53,10 @@ define find_in_path
$(strip $(foreach dir,$(subst $(PTHSEP), ,$(PATH)),$(wildcard $(dir)/$(1)$(HB_HOST_BIN_EXT))))
endef
define find_in_path_par
$(strip $(foreach dir,$(subst $(PTHSEP), ,$(2)),$(wildcard $(dir)/$(1)$(HB_HOST_BIN_EXT))))
endef
define check_host
ifneq ($(findstring MINGW,$(1)),)
@@ -534,25 +538,24 @@ ifeq ($(HB_COMPILER),)
endif
endif
endif
export HB_CCPREFIX
else
ifeq ($(HB_ARCHITECTURE),linux)
ifneq ($(strip $(wildcard $(HB_CCPATH)/arm-wince-mingw32ce-gcc$(HB_HOST_BIN_EXT)))),)
ifneq ($(call find_in_path_par,arm-wince-mingw32ce-gcc,$(HB_CCPATH)),)
HB_COMPILER := mingwarm
HB_ARCHITECTURE := wce
HB_CCPREFIX := arm-wince-mingw32ce-
HB_CCPATH += /
HB_CCPATH := $(HB_CCPATH)/
export HB_TOOLS_PREF := hbce
export HB_XBUILD := wce
ifneq ($(HB_HOST_BUILD),all)
HB_HOST_BUILD := lib
endif
else
ifneq ($(strip $(wildcard $(HB_CCPATH)/arm-mingw32ce-gcc$(HB_HOST_BIN_EXT)))),)
ifneq ($(call find_in_path_par,arm-mingw32ce-gcc,$(HB_CCPATH)),)
HB_COMPILER := mingwarm
HB_ARCHITECTURE := wce
HB_CCPREFIX := arm-mingw32ce-
HB_CCPATH += /
HB_CCPATH := $(HB_CCPATH)/
export HB_TOOLS_PREF := hbce
export HB_XBUILD := wce
ifneq ($(HB_HOST_BUILD),all)
@@ -611,6 +614,7 @@ ifeq ($(HB_COMPILER),)
ifneq ($(HB_COMPILER),)
HB_COMP_AUTO := (autodetected)
endif
export HB_CCPREFIX
endif
ifeq ($(HB_ARCHITECTURE),)