Bah, don't bother with conditional copying of stuff into the .apk here

You are not expected to be make'ing here without knowing what you are
doing anyway. Just unconditionally require the stuff needed by the
sample cppunit tests mentioned on the last lines.
This commit is contained in:
Tor Lillqvist
2011-11-21 16:31:57 +02:00
parent 4b294b2c20
commit edda1f9a34

View File

@@ -10,10 +10,6 @@ arm-linux-androideabi-strip --strip-debug $(SODEST)$(if $(2),/$(2),/$(notdir $(1
cp $(1) $(OBJLOCAL)$(if $(2),/$(2))
endef
define CONDCOPY
test -f $(1) && $(call COPY,$(1),$(2))
endef
# The default target just builds
all: ndk-build
unset JAVA_HOME && ant debug
@@ -44,11 +40,11 @@ ndk-build:
# this, these might not have been built yet.
#
for F in $(SRC_ROOT)/cppu/$(INPATH)/lib/qa_*.so; do \
$(call CONDCOPY,$${F},`basename $${F}`); \
$(call COPY,$${F},`basename $${F}`); \
done
#
for F in i18npool_test_breakiterator; do \
$(call CONDCOPY,$(WORKDIR)/LinkTarget/CppunitTest/libtest_$${F}.so); \
$(call COPY,$(WORKDIR)/LinkTarget/CppunitTest/libtest_$${F}.so); \
done
#
@@ -78,7 +74,7 @@ ndk-build:
xmlreader \
bootstrap.uno \
i18npool.uno); do \
$(call CONDCOPY,$(OUTDIR)/lib/lib$${F}.so); \
$(call COPY,$(OUTDIR)/lib/lib$${F}.so); \
done
#
# Then the shared GNU C++ library