diff options
author | Michael Meeks <michael.meeks@suse.com> | 2012-08-03 16:39:20 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@suse.com> | 2012-08-03 16:41:42 +0100 |
commit | e61e51ab96263072df21519c50adb38c4996405c (patch) | |
tree | c81aa96e3a02a81326c4d23de2b15669b87632c3 /android/experimental | |
parent | 7b75535e2891ff55f3c51f97f7dcb108f938e122 (diff) |
android: share more common Makefile pieces between a couple of users
Try to start consolidating the complexity here.
generate Application.mk to specify the required ABI
fold common distro-config pieces out of README
Diffstat (limited to 'android/experimental')
-rw-r--r-- | android/experimental/LibreOffice4Android/Makefile | 51 | ||||
-rw-r--r-- | android/experimental/LibreOffice4Android/jni/Application.mk | 3 |
2 files changed, 3 insertions, 51 deletions
diff --git a/android/experimental/LibreOffice4Android/Makefile b/android/experimental/LibreOffice4Android/Makefile index 94cadc0eaec2..9e6b239f1b74 100644 --- a/android/experimental/LibreOffice4Android/Makefile +++ b/android/experimental/LibreOffice4Android/Makefile @@ -1,46 +1,13 @@ include ../../../config_host.mk +include ../../Bootstrap/Makefile.shared # The package of this app APP_PACKAGE=org.libreoffice -# We can't keep assuming APP_DATA_PATH like this, surely this can vary with -# Android versions and whatnot, this is temporary and works at least with the -# SDK 16 emulator... - -# Probably would be best to just stop fooling around with the possibilities to -# set various stuff with the -env command line parameters (and environment -# variables?) and in a plethora of rc files, and hardcode construction of -# *all* required pathnames based on the app installation location for Android -# (and iOS), etc. We don't really win anything by having so many layers of -# configurability on platforms like Android and iOS where apps based on LO -# code are very much self-contained pre-packaged thingies. -APP_DATA_PATH=/data/data/$(APP_PACKAGE) - -ifeq ($(CPU),I) -ABI_PATH=x86 -else -ABI_PATH=armeabi-v7a -endif -SODEST=libs/$(ABI_PATH) -OBJLOCAL=obj/local/$(ABI_PATH) - -define COPYSO -cp $(1) $(SODEST)$(if $(2),/$(2)) && $(STRIP) --strip-debug $(SODEST)$(if $(2),/$(2),/$(notdir $(1))) && \ -cp $(1) $(OBJLOCAL)$(if $(2),/$(2)) -endef - -define COPYJAR -cp $(1) libs -endef - # The default target just builds. all: build-ant -properties: - echo sdk.dir=$(ANDROID_SDK_HOME) >local.properties - echo sdk.dir=$(ANDROID_SDK_HOME) >../../Bootstrap/local.properties - copy-stuff: # First always clean rm -rf libs $(OBJLOCAL) @@ -253,25 +220,11 @@ build-ant: copy-stuff properties unoil \ unoloader \ ); do \ - $(call COPYJAR,$(OUTDIR)/bin/$${F}.jar); \ + $(call COPYSOJAR,$(OUTDIR)/bin/$${F}.jar); \ done # unset JAVA_HOME && $(ANT) debug -install: build-ant - unset JAVA_HOME && $(ANT) debug install - @echo - @echo 'Run it with something like what "make run" does (see Makefile)' - @echo - -uninstall: - $(ANDROID_SDK_HOME)/platform-tools/adb uninstall $(APP_PACKAGE) - run: # /data/local/tmp/sample-document.odt adb shell am start -n $(APP_PACKAGE)/.ui.LibreOfficeUIActivity -e input /assets/test1.odt - - -clean: properties - $(ANT) clean - rm -rf assets libs $(SODEST) $(OBJLOCAL) diff --git a/android/experimental/LibreOffice4Android/jni/Application.mk b/android/experimental/LibreOffice4Android/jni/Application.mk index f326d1a59879..9b408d093282 100644 --- a/android/experimental/LibreOffice4Android/jni/Application.mk +++ b/android/experimental/LibreOffice4Android/jni/Application.mk @@ -1,3 +1,2 @@ -# File needed by ndk-gdb -APP_ABI := armeabi-v7a +APP_ABI := x86 APP_PLATFORM := android-14 |