diff options
Diffstat (limited to 'tools/release/sims.pl')
-rwxr-xr-x | tools/release/sims.pl | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/tools/release/sims.pl b/tools/release/sims.pl index a837b00c1c..6093ebe5d1 100755 --- a/tools/release/sims.pl +++ b/tools/release/sims.pl | |||
@@ -117,6 +117,7 @@ sub runone { | |||
117 | $cmd = "find \\( -name 'rockboxui*' -o -iname '*dll' -o -name '*.rock' -o -name '*.codec' \\) -exec $striptool '{}' ';'"; | 117 | $cmd = "find \\( -name 'rockboxui*' -o -iname '*dll' -o -name '*.rock' -o -name '*.codec' \\) -exec $striptool '{}' ';'"; |
118 | print("$cmd\n") if ($verbose); | 118 | print("$cmd\n") if ($verbose); |
119 | `$cmd`; | 119 | `$cmd`; |
120 | close(MAKE); | ||
120 | } | 121 | } |
121 | 122 | ||
122 | chdir ".."; | 123 | chdir ".."; |
@@ -135,9 +136,15 @@ sub runone { | |||
135 | print "Zip up the sim and associated files\n" if ($verbose); | 136 | print "Zip up the sim and associated files\n" if ($verbose); |
136 | mkpath(dirname($newo)); | 137 | mkpath(dirname($newo)); |
137 | system("mv build-$dir $newo"); | 138 | system("mv build-$dir $newo"); |
138 | if (-f "$newo/rockboxui.exe") { | 139 | if ($cross) { |
139 | print "Find and copy SDL.dll\n" if ($verbose); | 140 | print "Find and copy SDL.dll\n" if ($verbose); |
140 | `cp \`dirname \\\`which sdl-config\\\`\`/SDL.dll ./$newo/`; | 141 | open(MAKE, "$newo/Makefile"); |
142 | my $GCCOPTS=(grep(/^export GCCOPTS=/, <MAKE>))[0]; | ||
143 | chomp($GCCOPTS); | ||
144 | (my $sdldll = $GCCOPTS) =~ s/^export GCCOPTS=.*-I([^ ]+)\/include\/SDL.*$/$1\/bin\/SDL.dll/; | ||
145 | print "Found $sdldll\n" if ($verbose); | ||
146 | `cp $sdldll ./$newo/`; | ||
147 | close(MAKE); | ||
141 | } | 148 | } |
142 | my $toplevel = getcwd(); | 149 | my $toplevel = getcwd(); |
143 | chdir(dirname($newo)); | 150 | chdir(dirname($newo)); |