From 70b81e65cceb83b8933c7da7bdae2ce709404998 Mon Sep 17 00:00:00 2001 From: Dominik Riebeling Date: Tue, 31 May 2011 21:26:18 +0000 Subject: 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 --- android/android.make | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'android/android.make') diff --git a/android/android.make b/android/android.make index fa3b48e..f12b797 100644 --- a/android/android.make +++ b/android/android.make @@ -46,6 +46,7 @@ JAVA_OBJ := $(call java2class,$(subst $(ANDROID)/src/$(PACKAGE_PATH),$(ANDROID)/ LIBS := $(BINLIB_DIR)/$(BINARY) $(BINLIB_DIR)/libmisc.so +LIBS += $(addprefix $(BINLIB_DIR)/lib,$(patsubst %.codec,%.so,$(notdir $(CODECS)))) TEMP_APK := $(BUILDDIR)/bin/_rockbox.apk TEMP_APK2 := $(BUILDDIR)/bin/__rockbox.apk DEX := $(BUILDDIR)/bin/classes.dex @@ -107,6 +108,9 @@ $(BINLIB_DIR)/$(BINARY): $(BUILDDIR)/$(BINARY) $(BINLIB_DIR)/libmisc.so: $(BUILDDIR)/rockbox.zip $(call PRINTS,CP rockbox.zip)cp $^ $@ +$(BINLIB_DIR)/lib%.so: $(BUILDDIR)/apps/codecs/%.codec + $(call PRINTS,CP $(@F))cp $^ $@ + libs: $(LIBS) $(TEMP_APK): $(AP_) $(LIBS) $(DEX) | $(DIRS) -- cgit v1.1