Re: [Ohrrpgce] SVN: teeemcee/8168 scons: Cross-compiling to Windows now works!

2016-10-16 Thread Ralph Versteegen
On 17 October 2016 at 03:53,  wrote:

> teeemcee
> 2016-10-16 07:53:15 -0700 (Sun, 16 Oct 2016)
> 44
> scons: Cross-compiling to Windows now works!
> ---
> U   wip/SConscript
> U   wip/whatsnew.txt
>

Turns out that setting up a cross compiler to Windows is amazingly easy
thanks to mxe; I've put instructions for setting it up at
http://rpg.hamsterrepublic.com/ohrrpgce/Cross-compiling
In future if I want to compile a custom sdl_mixer.dll build or try out 64
bit windows builds, I'll definitely use mxe for that.

>From now on I'm definitely going to cross-compile from linux to windows,
because it's 10x faster than compiling in my Win XP VM, which actually gets
slower if I give it more than one core to run on! I could make scons run
all the tests under wine when cross-compiling, then I wouldn't need the VM
when not working on gfx_directx.dll ;)
___
Ohrrpgce mailing list
ohrrpgce@lists.motherhamster.org
http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org


[Ohrrpgce] SVN: teeemcee/8166 android: Add gdb-commandline-program.sh utility, and rewrite compile-usi

2016-10-16 Thread subversion
teeemcee
2016-10-16 07:53:10 -0700 (Sun, 16 Oct 2016)
510
android: Add gdb-commandline-program.sh utility, and rewrite 
compile-using-toolchain.sh

gdb-commandline-program.sh pushes a binary (not an .apk) to an emulator and
runs it under gdbserver, remotely attaching to it. It's based on ndk-gdb which
does the same thing for .apks.

compile-using-toolchain.sh is now much cleaner, updated to work for both
newer and older NDK releases, and partially works to compile stuff without
needing a standalone toolchain (cross compiling scons without one doesn't
work though)
---
U   wip/android/compile-using-toolchain.sh
A   wip/android/extract-pid.awk
A   wip/android/gdb-commandline-program.sh
___
Ohrrpgce mailing list
ohrrpgce@lists.motherhamster.org
http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org


[Ohrrpgce] SVN: teeemcee/8168 scons: Cross-compiling to Windows now works!

2016-10-16 Thread subversion
teeemcee
2016-10-16 07:53:15 -0700 (Sun, 16 Oct 2016)
44
scons: Cross-compiling to Windows now works!
---
U   wip/SConscript
U   wip/whatsnew.txt
___
Ohrrpgce mailing list
ohrrpgce@lists.motherhamster.org
http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org


[Ohrrpgce] SVN: teeemcee/8167 Fix reloadutil not compiling with debug=0

2016-10-16 Thread subversion
teeemcee
2016-10-16 07:53:12 -0700 (Sun, 16 Oct 2016)
89
Fix reloadutil not compiling with debug=0

Enabling debug exposes internals in reload.bi.
---
U   wip/reloadutil.bas
___
Ohrrpgce mailing list
ohrrpgce@lists.motherhamster.org
http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org


[Ohrrpgce] SVN: teeemcee/8165 scons: general crosscompiling support (added target= option); rewrite ar

2016-10-16 Thread subversion
teeemcee
2016-10-16 07:53:07 -0700 (Sun, 16 Oct 2016)
1173
scons: general crosscompiling support (added target= option); rewrite arch= 
option

scons will now default to using FB's default target/arch, with the exception of
using x86 instead of x86_64. Hopefully this means that compiling on an ARM
linux works out of the box.
I have only tried cross-compiling from linux to android arm and x86 targets,
which already worked anyway with the old android=1 option. This changeset,
although changing a huge amount of stuff, makes little difference in practice
if you're not cross compiling.

Removed android=1 option. Pass target=android instead if you want to compile
commandline programs. Continue to use android-source=1 for android .apk builds
(that is, there are no changes to the Android .apk build process).

With FB 1.03+, just use `fbc -print fblibdir` to find the FB libraries instead
of searching for them. Kept the old code around for now for older FB.

Extended get_command_output() to accept args as a list, and 'shell' arg.
It could probably just be replaced with subprocess.check_output().

Move get_fb_version() to ohrbuild.py because it needs to happen early in the
scons script (reduce clutter) and might be reusable.
---
U   wip/.gitignore
U   wip/SConscript
U   wip/ohrbuild.py
___
Ohrrpgce mailing list
ohrrpgce@lists.motherhamster.org
http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org