From 383986041d21c429ab574b24380d1ac9137a0cf9 Mon Sep 17 00:00:00 2001 From: Jonas Häggqvist Date: Wed, 29 Oct 2008 00:27:09 +0000 Subject: First version of script to build crosscompiled Windows sims. Basically a copy of bins.pl, with some improved argument handling, to enable using the same script for building daily sims and release sims. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18908 a1c6a512-1295-4272-9138-f99709370657 --- tools/release/w32sims.pl | 144 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 144 insertions(+) create mode 100755 tools/release/w32sims.pl diff --git a/tools/release/w32sims.pl b/tools/release/w32sims.pl new file mode 100755 index 0000000000..058e2bb302 --- /dev/null +++ b/tools/release/w32sims.pl @@ -0,0 +1,144 @@ +#!/usr/bin/perl +# This is basically a copy of tools/release/bins.pl, with small changes +# You need to set up $PATH to include the bin dir of a crosscompiled SDL +# installation, and have mingw32 compilers installed. Everything else should +# Just Work[tm]. + +my $verbose, $update, $doonly, $version; +while (scalar @ARGV > 0) { + if ($ARGV[0] eq "-h") { + print $ARGV[0]."\n"; + print </dev/null 2>&1`; + + my $c = sprintf('printf "%s\n%ss\n" | ../tools/configure', + $confnum, $extra); + + print "C: $c\n" if($verbose); + `$c`; + + print "Run 'make'\n" if($verbose); + `make -j 2>/dev/null`; + + print "Run 'make install'\n" if($verbose); + `make install 2>/dev/null`; + + print "Find and copy SDL.dll\n" if ($verbose); + `cp \`dirname \\\`which sdl-config\\\`\`/SDL.dll ./`; + +} + +# run make in tools first to make sure they're up-to-date +print "cd tools && make\n" if($verbose); +`(cd tools && make ) >/dev/null 2>&1`; + +runone("player", "player", '\n'); +runone("recorder", "recorder", '\n'); +runone("recorder8mb", "recorder", '8\n'); +runone("fmrecorder", "fmrecorder", '\n'); +runone("fmrecorder8mb", "fmrecorder", '8\n'); +runone("recorderv2", "recorderv2", '\n'); +runone("ondiosp", "ondiosp", '\n'); +runone("ondiofm", "ondiofm", '\n'); +runone("h100", "h100"); +runone("h120", "h120"); +runone("h300", "h300"); +runone("ipodcolor", "ipodcolor"); +runone("ipodnano", "ipodnano"); +runone("ipod4gray", "ipod4g"); +runone("ipodvideo", "ipodvideo", '32\n'); +runone("ipodvideo64mb", "ipodvideo", '64\n'); +runone("ipod3g", "ipod3g"); +runone("ipod1g2g", "ipod1g2g"); +runone("iaudiox5", "x5"); +runone("iaudiom5", "m5"); +runone("iaudiom3", "m3"); +runone("ipodmini1g", "ipodmini"); +runone("ipodmini2g", "ipodmini2g"); +runone("h10", "h10"); +runone("h10_5gb", "h10_5gb"); +runone("gigabeatf", "gigabeatf"); +runone("sansae200", "e200"); +runone("sansac200", "c200"); +#runone("mrobe500", "mrobe500"); +runone("mrobe100", "mrobe100"); +runone("cowond2", "cowond2"); -- cgit v1.2.3