diff options
author | Jonas Häggqvist <rasher@rasher.dk> | 2009-10-27 22:57:23 +0000 |
---|---|---|
committer | Jonas Häggqvist <rasher@rasher.dk> | 2009-10-27 22:57:23 +0000 |
commit | 06027214c8ffe7e2be0fb81742b1c8478ad91f38 (patch) | |
tree | a0cf72f2d50787154360a2ce8db878d6b5d46fe1 | |
parent | b82963bd9dd99c705625aceadb7118a428fc4ed2 (diff) |
Adapt to the new method of building w32 sims (adds a -w flag).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23373 a1c6a512-1295-4272-9138-f99709370657
-rwxr-xr-x | tools/release/sims.pl | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/tools/release/sims.pl b/tools/release/sims.pl index 0481234189..a837b00c1c 100755 --- a/tools/release/sims.pl +++ b/tools/release/sims.pl @@ -18,12 +18,13 @@ while (scalar @ARGV > 0) { if ($ARGV[0] eq "-h") { print $ARGV[0]."\n"; print <<MOO -Usage: w32sims [-v] [-u] [-r VERSION] [-f filename] [buildonly] +Usage: w32sims [-v] [-u] [-s] [-w] [-r VERSION] [-f filename] [buildonly] -v Verbose output -u Run svn up before building -r Use the specified version string for filenames (defaults to SVN revision) -s Strip binaries before zipping them up. + -w Crosscompile for Windows (requires mingw32) -f Filename format string (without extension). This can include a filepath (relative or absolute) May include the following special strings: @@ -49,6 +50,9 @@ MOO elsif ($ARGV[0] eq "-s") { $strip =1; } + elsif ($ARGV[0] eq "-w") { + $cross =1; + } elsif ($ARGV[0] eq "-r") { $version =$ARGV[1]; shift @ARGV; @@ -153,8 +157,15 @@ sub buildit { `rm -rf * >/dev/null 2>&1`; - my $c = sprintf('printf "%s\n%ss\n" | ../tools/configure', - $confnum, $extra); + if ($cross) { + $simstring = 'a\nw\ns\n\n'; + } + else { + $simstring = 's\n'; + } + + my $c = sprintf('printf "%s\n%s%s" | ../tools/configure', + $confnum, $extra, $simstring); print "C: $c\n" if($verbose); `$c`; |