#!/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");