summaryrefslogtreecommitdiff
path: root/Android.mk
diff options
context:
space:
mode:
authorAlvaro Soliverez <alvaro.soliverez@collabora.co.uk>2011-12-13 16:37:54 -0300
committerAlvaro Soliverez <alvaro.soliverez@collabora.co.uk>2012-02-22 10:37:40 -0300
commit9ceff79bbfa423452249298684543f5f2dbe581b (patch)
tree79791da6ffcb7f9801d60bae5d78bd6aec7e5604 /Android.mk
parent1e8ce5770f6a908b133aa2b0401b2e4f7dc9c1b5 (diff)
Support for building on Android, modified from patches by Derek Foreman and Johnny Lamb
Diffstat (limited to 'Android.mk')
-rw-r--r--Android.mk38
1 files changed, 38 insertions, 0 deletions
diff --git a/Android.mk b/Android.mk
new file mode 100644
index 0000000..c1ac105
--- /dev/null
+++ b/Android.mk
@@ -0,0 +1,38 @@
+LOCAL_PATH:= $(call my-dir)
+
+include $(CLEAR_VARS)
+
+YTSTENUT_PLUGINS_BUILT_SOURCES := \
+ mission-control/Android.mk \
+ salut/Android.mk \
+ gabble/Android.mk
+
+ytstenut-plugins-configure-real:
+ cd $(YTSTENUT_PLUGINS_TOP) ; \
+ CXX="$(CONFIGURE_CXX)" \
+ CC="$(CONFIGURE_CC)" \
+ CFLAGS="$(CONFIGURE_CFLAGS)" \
+ LD=$(TARGET_LD) \
+ LDFLAGS="$(CONFIGURE_LDFLAGS)" \
+ CPP=$(CONFIGURE_CPP) \
+ CPPFLAGS="$(CONFIGURE_CPPFLAGS)" \
+ PKG_CONFIG_LIBDIR=$(CONFIGURE_PKG_CONFIG_LIBDIR) \
+ PKG_CONFIG_TOP_BUILD_DIR=$(PKG_CONFIG_TOP_BUILD_DIR) \
+ $(YTSTENUT_PLUGINS_TOP)/$(CONFIGURE) --host=arm-linux-androideabi \
+ --disable-spec-documentation --disable-qt4 \
+ --disable-Werror && \
+ for file in $(YTSTENUT_PLUGINS_BUILT_SOURCES); do \
+ rm -f $$file && \
+ make -C $$(dirname $$file) $$(basename $$file) ; \
+ done
+
+ytstenut-plugins-configure: ytstenut-plugins-configure-real
+
+.PHONY: ytstenut-plugins-configure
+
+CONFIGURE_TARGETS += ytstenut-plugins-configure
+
+#include all the subdirs...
+-include $(YTSTENUT_PLUGINS_TOP)/mission-control/Android.mk
+-include $(YTSTENUT_PLUGINS_TOP)/salut/Android.mk
+-include $(YTSTENUT_PLUGINS_TOP)/gabble/Android.mk