actions: Remove PointerDefault affect field
[platform/upstream/libxkbcommon.git] / Android.mk
1 LOCAL_PATH:= $(call my-dir)
2
3 include $(CLEAR_VARS)
4
5 LIBXKBCOMMON_TOP := $(LOCAL_PATH)
6
7 LIBXKBCOMMON_BUILT_MAKEFILES := \
8         $(LIBXKBCOMMON_TOP)/Android_build.mk
9
10 libxkbcommon-configure:
11         cd $(LIBXKBCOMMON_TOP) && autoreconf -fiv
12         cd $(LIBXKBCOMMON_TOP) && \
13                 CC="$(CONFIGURE_CC)" \
14                 CFLAGS="$(CONFIGURE_CFLAGS)" \
15                 LD=$(TARGET_LD) \
16                 LDFLAGS="$(CONFIGURE_LDFLAGS)" \
17                 CPP=$(CONFIGURE_CPP) \
18                 CPPFLAGS="$(CONFIGURE_CPPFLAGS)" \
19                 PKG_CONFIG_LIBDIR=$(CONFIGURE_PKG_CONFIG_LIBDIR) \
20                 PKG_CONFIG_TOP_BUILD_DIR=$(PKG_CONFIG_TOP_BUILD_DIR) \
21                 ./configure --host=arm-linux-androideabi \
22                 --prefix /system \
23                 --with-xkb-config-root=/system/usr/share/xkb
24         rm -f $(LIBXKBCOMMON_BUILT_MAKEFILES)
25         @for file in $(LIBXKBCOMMON_BUILT_MAKEFILES); do \
26                 echo "make -C $$(dirname $$file) $$(basename $$file)" ; \
27                 make -C $$(dirname $$file) $$(basename $$file) ; \
28         done
29
30 libxkbcommon-reset:
31         cd $(LIBXKBCOMMON_TOP) && \
32         git clean -qdxf && \
33         git reset --hard HEAD
34
35 libxkbcommon-clean:
36
37 .PHONY: libxkbcommon-configure libxkbcommon-clean libxkbcommon-reset
38
39 CONFIGURE_TARGETS += libxkbcommon-configure
40 CONFIGURE_RESET_TARGETS += libxkbcommon-reset
41 AGGREGATE_CLEAN_TARGETS += libxkbcommon-clean
42 CONFIGURE_PKG_CONFIG_LIBDIR := $(CONFIGURE_PKG_CONFIG_LIBDIR):$(LIBXKBCOMMON_TOP)
43
44 -include $(LIBXKBCOMMON_BUILT_MAKEFILES)
45