From e0ca4347beb2e2e7235e16c4555d426c7d923468 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 14 Jul 2014 19:03:45 +0200 Subject: [PATCH] Android: generate icon from SVG --- Makefile.am | 11 ++++++++--- android/res/drawable/icon.png | Bin 2931 -> 0 bytes 2 files changed, 8 insertions(+), 3 deletions(-) delete mode 100644 android/res/drawable/icon.png diff --git a/Makefile.am b/Makefile.am index 7f9ef3e93..23b5201b6 100644 --- a/Makefile.am +++ b/Makefile.am @@ -276,8 +276,9 @@ libmpd.so: $(filter %.a,$(src_mpd_LDADD)) libmain.a android/build/build.xml: android/AndroidManifest.xml rm -rf android/build - mkdir -p android/build/include - ln -s $(srcdir)/android/AndroidManifest.xml $(srcdir)/android/custom_rules.xml $(srcdir)/android/src $(srcdir)/android/res android/build + mkdir -p android/build/include android/build/res + ln -s $(srcdir)/android/AndroidManifest.xml $(srcdir)/android/custom_rules.xml $(srcdir)/android/src android/build + ln -s $(srcdir)/android/res/values android/build/res $(ANDROID_SDK)/tools/android update project --path android/build --target android-17 android/build/bin/classes/org/musicpd/Bridge.class: android/src/Bridge.java android/build/build.xml @@ -293,7 +294,11 @@ android/build/libs/armeabi-v7a/libmpd.so: libmpd.so android/build/build.xml rm -f $@ $(STRIP) -o $@ $< -android/build/bin/Main-debug.apk: android/build/build.xml android/build/libs/armeabi-v7a/libmpd.so +android/build/res/drawable/icon.png: mpd.svg + mkdir -p $(@D) + rsvg-convert --width=48 --height=48 $< -o $@ + +android/build/bin/Main-debug.apk: android/build/build.xml android/build/res/drawable/icon.png android/build/libs/armeabi-v7a/libmpd.so cd android/build && ant nodeps debug android/build/bin/Main-release-unsigned.apk: android/build/build.xml android/build/libs/armeabi-v7a/libmpd.so diff --git a/android/res/drawable/icon.png b/android/res/drawable/icon.png deleted file mode 100644 index dd23fb895d79ca132e719368451b123b85da001f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2931 zcmZ`*XE@sn7ylEhF(%gg{EC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