2012-05-14 05:33:29 -06:00
|
|
|
LOCAL_PATH:= $(call my-dir)
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
LIBXKBCOMMON_TOP := $(LOCAL_PATH)
|
|
|
|
|
|
|
|
LIBXKBCOMMON_BUILT_MAKEFILES := \
|
|
|
|
$(LIBXKBCOMMON_TOP)/Android_build.mk
|
|
|
|
|
2012-09-11 07:27:54 -06:00
|
|
|
LIBXKBCOMMON_CONFIGURE_TARGET := $(LIBXKBCOMMON_TOP)/Makefile
|
|
|
|
|
|
|
|
$(LIBXKBCOMMON_CONFIGURE_TARGET): $(CONFIGURE_DEPENDENCIES)
|
2012-05-14 05:33:29 -06:00
|
|
|
cd $(LIBXKBCOMMON_TOP) && autoreconf -fiv
|
|
|
|
cd $(LIBXKBCOMMON_TOP) && \
|
|
|
|
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) \
|
|
|
|
./configure --host=arm-linux-androideabi \
|
|
|
|
--prefix /system \
|
|
|
|
--with-xkb-config-root=/system/usr/share/xkb
|
|
|
|
|
2012-09-11 07:27:54 -06:00
|
|
|
$(LIBXKBCOMMON_BUILT_MAKEFILES): $(LIBXKBCOMMON_CONFIGURE_TARGET)
|
|
|
|
make -C $(dir $@) $(notdir $@)
|
|
|
|
|
|
|
|
.PHONY: libxkbcommon-reset libxkbcommon-clean
|
|
|
|
|
2012-05-14 05:33:29 -06:00
|
|
|
libxkbcommon-reset:
|
|
|
|
cd $(LIBXKBCOMMON_TOP) && \
|
|
|
|
git clean -qdxf && \
|
|
|
|
git reset --hard HEAD
|
|
|
|
|
|
|
|
libxkbcommon-clean:
|
|
|
|
|
2012-09-11 07:27:54 -06:00
|
|
|
contrib-reset: libxkbcommon-reset
|
|
|
|
contrib-clean: libxkbcommon-clean
|
2012-05-14 05:33:29 -06:00
|
|
|
|
2012-09-11 07:27:54 -06:00
|
|
|
CONFIGURE_PKG_CONFIG_LIBDIR := $(CONFIGURE_PKG_CONFIG_LIBDIR):$(abspath $(LIBXKBCOMMON_TOP))
|
2012-05-14 05:33:29 -06:00
|
|
|
|
2012-09-11 07:27:54 -06:00
|
|
|
include $(LIBXKBCOMMON_BUILT_MAKEFILES)
|
2012-05-14 05:33:29 -06:00
|
|
|
|