Kaydet (Commit) 49a6efd9 authored tarafından Tor Lillqvist's avatar Tor Lillqvist

Copy more shared objects for unit testing

üst 73ee896b
NDK_HOME:=$(shell type -p ndk-build) NDK_HOME:=$(shell type -p ndk-build)
NDK_HOME:=$(shell dirname $(NDK_HOME)) NDK_HOME:=$(shell dirname $(NDK_HOME))
SODEST=libs/armeabi-v7a
all: all:
ndk-build V=1 ndk-build V=1
#
# Copy shared libraries we need to libs/armeabi-v7a so that ant will # Copy shared libraries we need to libs/armeabi-v7a so that ant will
# include them in the .apk # include them in the .apk.
cp ../../unxandr.pro/bin/cppunittester libs/armeabi-v7a/libcppunittester.so # First ones from here, sal
cp ../../../solver/unxandr.pro/lib/libcppunit-1.12.so libs/armeabi-v7a cp ../../$(INPATH)/bin/cppunittester $(SODEST)/libcppunittester.so
cp ../../unxandr.pro/lib/*.so libs/armeabi-v7a #
cp $(NDK_HOME)/sources/cxx-stl/gnu-libstdc++/libs/armeabi-v7a/libgnustl_shared.so libs/armeabi-v7a # Then the cppunit library
cp $(OUTDIR)/lib/libcppunit-1.12.so $(SODEST)
#
# Then cppunit "plug-ins", first ones from sal
#
cp ../../$(INPATH)/lib/*.so $(SODEST)
#
# Then 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 \
test -f $${F} && cp $${F} $(SODEST); \
done
#
-for F in i18npool_test_breakiterator; do \
test -f $(WORKDIR)/LinkTarget/CppunitTest/libtest_$${F}.so && cp $(WORKDIR)/LinkTarget/CppunitTest/libtest_$${F}.so $(SODEST); \
done
#
# Then libs that the tests from other modules need.
#
-for F in libuno_cppu libuno_salhelpergcc3 libuno_cppuhelpergcc3; do \
test -f $(OUTDIR)/lib/$${F}.so && cp $(OUTDIR)/lib/$${F}.so $(SODEST); \
done
#
# Then the shared GNU C++ library
cp $(NDK_HOME)/sources/cxx-stl/gnu-libstdc++/libs/armeabi-v7a/libgnustl_shared.so $(SODEST)
#
# Copy them to obj/local/armeabi-v7a, too, where gdb will look for # Copy them to obj/local/armeabi-v7a, too, where gdb will look for
# them. Not sure if this is useful or not; I have great problems with # them. Not sure if this is useful or not; I have great problems with
# ndk-gdb. # ndk-gdb. Actually, commenting out this part for now...
cp ../../unxandr.pro/bin/cppunittester obj/local/armeabi-v7a/libcppunittester.so #
cp ../../../solver/unxandr.pro/lib/libcppunit-1.12.so obj/local/armeabi-v7a # cp ../../$(INPATH)/bin/cppunittester obj/local/armeabi-v7a/libcppunittester.so
cp ../../unxandr.pro/lib/*.so obj/local/armeabi-v7a # cp $(OUTPATH)/lib/libcppunit-1.12.so obj/local/armeabi-v7a
cp $(NDK_HOME)/sources/cxx-stl/gnu-libstdc++/libs/armeabi-v7a/libgnustl_shared.so obj/local/armeabi-v7a # cp ../../$(INPATH)/lib/*.so obj/local/armeabi-v7a
# cp $(NDK_HOME)/sources/cxx-stl/gnu-libstdc++/libs/armeabi-v7a/libgnustl_shared.so obj/local/armeabi-v7a
unset JAVA_HOME && ant debug unset JAVA_HOME && ant debug
@echo 'Install it on the device with ant debug install' @echo 'Install it on the device with ant debug install'
@echo 'Then run it with something like what "make run" does (see Makefile)' @echo 'Then run it with something like what "make run" does (see Makefile)'
......
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