Add source tree version into AndroidManifest.xml
Use the source tree version as versionName string. As result the Android Settings menu will now show that version instead of a rather unhelpful "1.0". git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29929 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
ee7cbf6d4a
commit
bc3f9c1b71
2 changed files with 7 additions and 2 deletions
|
@ -33,7 +33,8 @@ ZIPALIGN=$(ANDROID_SDK_PATH)/tools/zipalign
|
|||
KEYSTORE=$(HOME)/.android/debug.keystore
|
||||
ADB=$(ANDROID_SDK_PATH)/platform-tools/adb
|
||||
|
||||
MANIFEST := $(ANDROID_DIR)/AndroidManifest.xml
|
||||
MANIFEST := $(BUILDDIR)/AndroidManifest.xml
|
||||
MANIFEST_SRC := $(ANDROID_DIR)/AndroidManifest.xml
|
||||
|
||||
R_JAVA := $(BUILDDIR)/gen/$(PACKAGE_PATH)/R.java
|
||||
R_OBJ := $(BUILDDIR)/bin/$(PACKAGE_PATH)/R.class
|
||||
|
@ -64,6 +65,10 @@ CLEANOBJS += bin gen libs data
|
|||
|
||||
JAVAC_OPTS += -implicit:none -classpath $(ANDROID_PLATFORM)/android.jar:$(BUILDDIR)/bin
|
||||
|
||||
.PHONY:
|
||||
$(MANIFEST): $(MANIFEST_SRC)
|
||||
$(call PRINTS,MANIFEST $(@F))sed -e 's/versionName="1.0"/versionName="$(SVNVERSION)"/' $(MANIFEST_SRC) > $(MANIFEST)
|
||||
|
||||
$(R_JAVA) $(AP_): $(MANIFEST) $(RES) | $(DIRS)
|
||||
$(call PRINTS,AAPT $(subst $(BUILDDIR)/,,$@))$(AAPT) package -f -m \
|
||||
-J $(BUILDDIR)/gen -M $(MANIFEST) -S $(ANDROID_DIR)/res \
|
||||
|
|
|
@ -148,7 +148,7 @@ clean::
|
|||
$(LINKRAM) $(LINKROM) rockbox.elf rockbox.map rockbox.bin \
|
||||
make.dep rombox.elf rombox.map rombox.bin rombox.ucl romstart.txt \
|
||||
$(BINARY) $(FLASHFILE) uisimulator bootloader flash $(BOOTLINK) \
|
||||
rockbox.apk
|
||||
rockbox.apk AndroidManifest.xml
|
||||
|
||||
#### linking the binaries: ####
|
||||
|
||||
|
|
Loading…
Reference in a new issue