For a loop in the NDK makefile to define static libraries
I have a common.mk file that I include in each of my NDK files Android.mk
that defines the static libraries available to me. For a boost, I wanted to try something clever like this:
BOOST_COMPONENTS = \
filesystem \
system \
thread \
atomic
for c in $(BOOST_COMPONENTS) ; do \
include $(CLEAR_VARS) ; \
LOCAL_MODULE := boost_$$(c) ; \
LOCAL_SRC_FILES := ../../../../../Core/ThirdParty/boost/lib/android/libboost_$$(c)-gcc-mt-s-1_55.a ; \
include $(PREBUILT_STATIC_LIBRARY) ; \
done
However, while I don't see any direct errors in doing this when I build, I get linker errors because no promotion symbols were found. This tells me that it does not configure them correctly.
How can I make this work?
+3
source to share
No one has answered this question yet
Check out similar questions: