Promote keymap enumeration API to public
[platform/upstream/libxkbcommon.git] / Android.mk
1 LOCAL_PATH:= $(call my-dir)
2 include $(CLEAR_VARS)
3
4 LIBXKBCOMMON_TOP := $(LOCAL_PATH)
5
6 LIBXKBCOMMON_BUILT_MAKEFILES := \
7         $(LIBXKBCOMMON_TOP)/Android_build.mk
8
9 LIBXKBCOMMON_CONFIGURE_TARGET := $(LIBXKBCOMMON_TOP)/Makefile
10
11 $(LIBXKBCOMMON_CONFIGURE_TARGET): $(CONFIGURE_DEPENDENCIES)
12         cd $(LIBXKBCOMMON_TOP) && autoreconf -fiv
13         cd $(LIBXKBCOMMON_TOP) && \
14                 CC="$(CONFIGURE_CC)" \
15                 CFLAGS="$(CONFIGURE_CFLAGS)" \
16                 LD=$(TARGET_LD) \
17                 LDFLAGS="$(CONFIGURE_LDFLAGS)" \
18                 CPP=$(CONFIGURE_CPP) \
19                 CPPFLAGS="$(CONFIGURE_CPPFLAGS)" \
20                 PKG_CONFIG_LIBDIR=$(CONFIGURE_PKG_CONFIG_LIBDIR) \
21                 PKG_CONFIG_TOP_BUILD_DIR=$(PKG_CONFIG_TOP_BUILD_DIR) \
22                 ./configure --host=arm-linux-androideabi \
23                 --prefix /system \
24                 --with-xkb-config-root=/system/usr/share/xkb
25
26 $(LIBXKBCOMMON_BUILT_MAKEFILES): $(LIBXKBCOMMON_CONFIGURE_TARGET)
27         make -C $(dir $@) $(notdir $@)
28
29 .PHONY: libxkbcommon-reset libxkbcommon-clean
30
31 libxkbcommon-reset:
32         cd $(LIBXKBCOMMON_TOP) && \
33         git clean -qdxf && \
34         git reset --hard HEAD
35
36 libxkbcommon-clean:
37
38 contrib-reset: libxkbcommon-reset
39 contrib-clean: libxkbcommon-clean
40
41 CONFIGURE_PKG_CONFIG_LIBDIR := $(CONFIGURE_PKG_CONFIG_LIBDIR):$(abspath $(LIBXKBCOMMON_TOP))
42
43 include $(LIBXKBCOMMON_BUILT_MAKEFILES)
44