From adb89e012149157203813577f43306240072f070 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 21 Feb 2014 10:35:20 +0100 Subject: [PATCH] Makefile.am: build shared library for Android Doesn't work yet, just to get the Android port started. --- Makefile.am | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Makefile.am b/Makefile.am index 44d70411e..9993b9ffa 100644 --- a/Makefile.am +++ b/Makefile.am @@ -228,6 +228,16 @@ UPNP_SOURCES = \ src/lib/upnp/WorkQueue.hxx \ src/lib/upnp/Action.hxx +# +# Android native library +# + +if ANDROID +all-local: libmpd.so +libmpd.so: $(filter %.a,$(src_mpd_LDADD)) + $(AM_V_CXXLD)$(CXXLD) -Wl,-shared -o $@ $(AM_CXXFLAGS) $(CXXFLAGS) $(LDFLAGS) $(src_mpd_LDADD) $(LIBS) +endif + # # Windows resource file #