summaryrefslogtreecommitdiff
path: root/Android.mk
blob: 0d98d0ee9cf926964052a52479fc2d4f3a3fdd84 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
LOCAL_PATH:= $(call my-dir)

include $(CLEAR_VARS)

TELEPATHY_GABBLE_BUILT_SOURCES := \
	gabble/telepathy-gabble.pc \
	gabble/telepathy-gabble-uninstalled.pc \
	src/Android.mk \
	lib/gibber/Android.mk \
	extensions/Android.mk

telepathy-gabble-configure-real:
	cd $(TELEPATHY_GABBLE_TOP) ; \
	CC="$(CONFIGURE_CC)" \
	CFLAGS="$(CONFIGURE_CFLAGS) -std=c99" \
	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) \
	$(TELEPATHY_GABBLE_TOP)/$(CONFIGURE) --host=arm-linux-androideabi \
	--disable-submodules \
		--disable-Werror --without-ca-certificates && \
	for file in $(TELEPATHY_GABBLE_BUILT_SOURCES); do \
		rm -f $$file && \
		make -C $$(dirname $$file) $$(basename $$file) ; \
	done

telepathy-gabble-configure: telepathy-gabble-configure-real

.PHONY: telepathy-gabble-configure

CONFIGURE_TARGETS += telepathy-gabble-configure

#include all the subdirs...
-include $(TELEPATHY_GABBLE_TOP)/src/Android.mk
-include $(TELEPATHY_GABBLE_TOP)/lib/gibber/Android.mk
-include $(TELEPATHY_GABBLE_TOP)/extensions/Android.mk