diff options
author | Michael Meeks <michael.meeks@suse.com> | 2012-01-18 17:16:26 +0000 |
---|---|---|
committer | Michael Meeks <michael.meeks@suse.com> | 2012-01-18 17:16:53 +0000 |
commit | 3c9264558e120e9aa0a7bf7e86df14d51b900b42 (patch) | |
tree | 24c701032bb85e144ddcae00482cb7779db894e4 /android | |
parent | e3e54d74d6b9d8f5f2c256741fbaade69f4f0318 (diff) |
android: use config_host.mk for unit test goodness
Diffstat (limited to 'android')
-rw-r--r-- | android/qa/sc/Makefile | 12 | ||||
-rw-r--r-- | android/qa/simple/Makefile | 20 |
2 files changed, 12 insertions, 20 deletions
diff --git a/android/qa/sc/Makefile b/android/qa/sc/Makefile index 22d4ebafea31..d02379111fcd 100644 --- a/android/qa/sc/Makefile +++ b/android/qa/sc/Makefile @@ -1,3 +1,5 @@ +include ../../../config_host.mk + # The package of this app APP_PACKAGE=org.libreoffice.android.qa.sc @@ -9,15 +11,11 @@ BOOTSTRAP=org.libreoffice.android.Bootstrap APP_DATA_PATH=/data/data/$(APP_PACKAGE) -NDK_HOME:=$(shell type -p ndk-build) -NDK_HOME:=$(shell dirname $(NDK_HOME)) - SODEST=libs/armeabi-v7a OBJLOCAL=obj/local/armeabi-v7a define COPY -cp $(1) $(SODEST)$(if $(2),/$(2)) && \ -arm-linux-androideabi-strip --strip-debug $(SODEST)$(if $(2),/$(2),/$(notdir $(1))) && \ +cp $(1) $(SODEST)$(if $(2),/$(2)) && $(STRIP) --strip-debug $(SODEST)$(if $(2),/$(2),/$(notdir $(1))) && \ cp $(1) $(OBJLOCAL)$(if $(2),/$(2)) endef @@ -118,7 +116,7 @@ copy-stuff: done # # Then the shared GNU C++ library - $(call COPY,$(NDK_HOME)/sources/cxx-stl/gnu-libstdc++/libs/armeabi-v7a/libgnustl_shared.so) + $(call COPY,$(ANDROID_NDK_HOME)/sources/cxx-stl/gnu-libstdc++/libs/armeabi-v7a/libgnustl_shared.so) # # Then other "assets" that can be left in the .apk. Let the directory # structure under assets mimic that under solver or workdir for now. @@ -149,7 +147,7 @@ copy-stuff: # # Then gdbserver and gdb.setup so that we can debug with ndk-gdb. # - cp $(NDK_HOME)/toolchains/arm-linux-androideabi-4.4.3/prebuilt/gdbserver $(SODEST) + cp $(ANDROID_NDK_HOME)/toolchains/arm-linux-androideabi-4.4.3/prebuilt/gdbserver $(SODEST) echo set solib-search-path ./obj/local/armeabi-v7a >$(SODEST)/gdb.setup diff --git a/android/qa/simple/Makefile b/android/qa/simple/Makefile index a98250ba1b47..70fb5c62cc2d 100644 --- a/android/qa/simple/Makefile +++ b/android/qa/simple/Makefile @@ -1,3 +1,5 @@ +include ../../../config_host.mk + # The package of this app APP_PACKAGE=org.libreoffice.android.qa @@ -9,15 +11,11 @@ BOOTSTRAP=org.libreoffice.android.Bootstrap APP_DATA_PATH=/data/data/$(APP_PACKAGE) -NDK_HOME:=$(shell type -p ndk-build) -NDK_HOME:=$(shell dirname $(NDK_HOME)) - SODEST=libs/armeabi-v7a OBJLOCAL=obj/local/armeabi-v7a define COPY -cp $(1) $(SODEST)$(if $(2),/$(2)) && \ -arm-linux-androideabi-strip --strip-debug $(SODEST)$(if $(2),/$(2),/$(notdir $(1))) && \ +cp $(1) $(SODEST)$(if $(2),/$(2)) && $(STRIP) --strip-debug $(SODEST)$(if $(2),/$(2),/$(notdir $(1))) && \ cp $(1) $(OBJLOCAL)$(if $(2),/$(2)) endef @@ -47,17 +45,13 @@ copy-stuff: # # cppunit "plug-ins", first ones from sal # - $(call COPY,$(SRCDIR)/sal/$(INPATH)/lib/*.so) + $(call COPY,$(OUTDIR)/lib/libuno_sal*.so) # # and ones from other modules. Note that depending on when you try # this, these might not have been built yet. # - for F in $(SRC_ROOT)/cppu/$(INPATH)/lib/qa_*.so; do \ - $(call COPY,$${F},`basename $${F}`); \ - done -# - for F in i18npool_test_breakiterator; do \ - $(call COPY,$(WORKDIR)/LinkTarget/CppunitTest/libtest_$${F}.so); \ + for F in i18npool_test_breakiterator cppu cppuhelper sal; do \ + $(call COPY,$(WORKDIR)/LinkTarget/CppunitTest/libtest_$${F}*.so); \ done # # Other "programs" @@ -90,7 +84,7 @@ copy-stuff: done # # Then the shared GNU C++ library - $(call COPY,$(NDK_HOME)/sources/cxx-stl/gnu-libstdc++/libs/armeabi-v7a/libgnustl_shared.so) + $(call COPY,$(ANDROID_NDK_HOME)/sources/cxx-stl/gnu-libstdc++/libs/armeabi-v7a/libgnustl_shared.so) # # bridgetest components, not in solver for F in bridgetest constructors cppobj; do \ |