>
> Here's a non-extensive list of cross-compilations known to exist/work:
> - win64 executable on win + msvc (already working, needs compiler setup
> only)
>
Update: Sorry this won't work yet either.

The cross compilation method should look something like this:

You manually set HB_COMPILER= to your cross target
compiler. If the target platform of selected compiler differs
from the native platform of hbmk.exe, it will require you to
use these envvars to point to your target built Harbour
installation:

HB_TARGET_PREFIX=C:\harbour-msvc64
.OR.
HB_BIN_TARGET=C:\harbour-msvc64\bin
HB_LIB_TARGET=C:\harbour-msvc64\lib
HB_INC_TARGET=C:\harbour-msvc64\inc

The host and target Harbour versions should be pcode
compatible.

Before we jump into these things it would be better
to clean up the whole xbuild situation in Harbour, as
there are few problem with current approach:
- ARCHITECTURE isn't really architecture, it's
  rather platform. ARCHITECTURE is x86, amd64, ARM.
- COMPILER is a mixture of compiler + architecture.

It's just brainstorming, but we'd need something like this:
- PLAT (linux, darwin, win, dos, os/2, bsd, hpux, sunos)
- ARCH (x86, amd64, arm, ppc32, ppc64, ia64, pa-risc, [unibin])
- COMP (gcc, owatcom, msvc, bcc)
  Cross compilers would need to be marked as such:
  gcc-win-x86, gcc-win-arm, msvc-win-arm, msvc-win-amd64,
  pocc-win-arm, pocc-win-amd64. (WinCE == win-arm).

[

It would also greatly help making our system a faster moving
target if we could drop support for non-GNU make systems.
This would have these consequences:
1) MSVC, BCC users would need mingw-make.exe to create a build.
2) MSVC, BCC GNU-make should be able to create proper .dlls.

The other possibility is to drop our GNU-make, and resort to our
non-GNU make system, which also supports GCC flavours, so this means:
1) OpenWatcom, POCC, DMC support should be added, maybe also DJGPP.

Question who would make these, and which way to go. It looks
GNU-make is the easier path, but the two issues should be solved,
and we it more difficult to build Harbour on the most popular
platforms/compilers.

Anyhow I'd like to recheck the situation after fully switching to
new hbmk. I hope this will happen rather sooner than later.

]

Brgds,
Viktor
_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to