Kaydet (Commit) 3c926455 authored tarafından Michael Meeks's avatar Michael Meeks

android: use config_host.mk for unit test goodness

üst e3e54d74
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
......
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 \
......
......@@ -104,6 +104,7 @@ if test "z$with_android_ndk" != "z"; then
test -z "$STRIP" && STRIP=$ANDROID_ABI_PREBUILT_BIN/arm-linux-androideabi-strip
test -z "$CC" && CC="$ANDROID_ABI_PREBUILT_BIN/arm-linux-androideabi-gcc --sysroot $ANDROID_NDK_HOME/platforms/android-9/arch-arm -L$ANDROID_NDK_HOME/sources/cxx-stl/gnu-libstdc++/libs/armeabi-v7a"
test -z "$CXX" && CXX="$ANDROID_ABI_PREBUILT_BIN/arm-linux-androideabi-g++ --sysroot $ANDROID_NDK_HOME/platforms/android-9/arch-arm -I $ANDROID_NDK_HOME/sources/cxx-stl/gnu-libstdc++/include -I$ANDROID_NDK_HOME/sources/cxx-stl/gnu-libstdc++/libs/armeabi-v7a/include -L$ANDROID_NDK_HOME/sources/cxx-stl/gnu-libstdc++/libs/armeabi-v7a -fexceptions -frtti"
# PATH="$ANDROID_NDK_HOME/:$PATH"
fi
AC_SUBST(ANDROID_NDK_HOME)
......
......@@ -91,10 +91,8 @@ rtl::OUString SvpSalSystem::GetDisplayScreenName( unsigned int nScreen )
return aBuf.makeStringAndClear();
}
int SvpSalSystem::ShowNativeDialog( const rtl::OUString& rTitle,
const rtl::OUString& rMessage,
const std::list< rtl::OUString >& rButtons,
int nDefButton )
int SvpSalSystem::ShowNativeDialog( const rtl::OUString&, const rtl::OUString&,
const std::list< rtl::OUString >&, int )
{
return 0;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment