summaryrefslogtreecommitdiff
path: root/tools/buildzip.pl
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2011-05-31 21:26:18 +0000
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2011-05-31 21:26:18 +0000
commit70b81e65cceb83b8933c7da7bdae2ce709404998 (patch)
treea9415ac980bd144dfd08e9eda41b8d6066de47e0 /tools/buildzip.pl
parent1aadfb2229d7105d19d321079acaede1e4f63a3f (diff)
downloadrockbox-70b81e65cceb83b8933c7da7bdae2ce709404998.zip
rockbox-70b81e65cceb83b8933c7da7bdae2ce709404998.tar.gz
rockbox-70b81e65cceb83b8933c7da7bdae2ce709404998.tar.bz2
rockbox-70b81e65cceb83b8933c7da7bdae2ce709404998.tar.xz
Android: install codecs as native libs instead of extracting them (FS#12134).
Codec files are loaded as dynamic libraries. Instead of extracting them from the packaged libmisc.so and therefore having them present twice on the device put them into the apk as native libraries. Decreases the size of the installed Rockbox by the compressed size of the codecs. Also, the extraction on first Rockbox startup gets notably faster since it's less data to extract. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29940 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'tools/buildzip.pl')
-rwxr-xr-xtools/buildzip.pl12
1 files changed, 10 insertions, 2 deletions
diff --git a/tools/buildzip.pl b/tools/buildzip.pl
index 2337dbe..ed937d4 100755
--- a/tools/buildzip.pl
+++ b/tools/buildzip.pl
@@ -150,7 +150,11 @@ sub make_install {
unless (glob_mkdir("$libdir/codecs")) {
return 0;
}
- glob_install("$src/codecs/*", "$libdir/codecs", "-m 0755");
+ # Android has codecs installed as native libraries so they are not needed
+ # in the zip.
+ if ($modelname !~ /android/) {
+ glob_install("$src/codecs/*", "$libdir/codecs", "-m 0755");
+ }
# plugins
unless (glob_mkdir("$libdir/rocks")) {
@@ -473,7 +477,11 @@ STOP
glob_mkdir("$temp_dir/codecs");
- find(find_copyfile(qr/.*\.codec/, abs_path("$temp_dir/codecs/")), 'apps/codecs');
+ # Android has codecs installed as native libraries so they are not needed
+ # in the zip.
+ if ($modelname !~ /android/) {
+ find(find_copyfile(qr/.*\.codec/, abs_path("$temp_dir/codecs/")), 'apps/codecs');
+ }
# remove directory again if no codec was copied
rmdir("$temp_dir/codecs");