mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 13:12:37 -05:00
configure: statically link sdl on win32 cross compile
Change-Id: If9115da0470e2c301589329af67433f7260d24d3
This commit is contained in:
parent
d405026ca8
commit
60fb707203
2 changed files with 2 additions and 13 deletions
|
|
@ -148,22 +148,11 @@ sub runone {
|
|||
print "Zip up the sim and associated files\n" if ($verbose);
|
||||
mkpath(dirname($newo));
|
||||
system("mv build-$dir $newo");
|
||||
if ($cross) {
|
||||
print "Find and copy SDL.dll\n" if ($verbose);
|
||||
open(MAKE, "$newo/Makefile");
|
||||
my $GCCOPTS=(grep(/^export GCCOPTS=/, <MAKE>))[0];
|
||||
chomp($GCCOPTS);
|
||||
(my $sdldll = $GCCOPTS) =~ s/^export GCCOPTS=.*-I([^ ]+)\/include\/SDL.*$/$1\/bin\/SDL.dll/;
|
||||
print "Found $sdldll\n" if ($verbose);
|
||||
`cp $sdldll ./$newo/`;
|
||||
close(MAKE);
|
||||
}
|
||||
my $toplevel = getcwd();
|
||||
chdir(dirname($newo));
|
||||
$cmd = "zip -9 -r -q \"".basename($newo)."\" "
|
||||
. "\"".basename($newo)."\"/rockboxui* "
|
||||
. "\"".basename($newo)."\"/UI256.bmp "
|
||||
. "\"".basename($newo)."\"/SDL.dll "
|
||||
. "\"".basename($newo)."\"/simdisk ";
|
||||
print("$cmd\n") if($verbose);
|
||||
`$cmd`;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue