forked from len0rd/rockbox
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
This commit is contained in:
parent
1aadfb2229
commit
70b81e65cc
5 changed files with 26 additions and 4 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue