summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHelio Chissini de Castro <helio@dhansak.collabora.co.uk>2012-09-03 19:05:55 (GMT)
committerHelio Chissini de Castro <helio@dhansak.collabora.co.uk>2012-09-03 19:05:55 (GMT)
commit3064913237b7b3b52adab745138d7d98524d7616 (patch)
treefec7ccf0d524b9fc8d29a265c02a43370beee0df
parent1c14675590d9a920bac0bdd81084b96c45b30968 (diff)
downloadgettext-3064913237b7b3b52adab745138d7d98524d7616.tar.gz
gettext-3064913237b7b3b52adab745138d7d98524d7616.tar.xz
Add initial android androgenized files.HEADmaster
-rw-r--r--Android.mk43
-rw-r--r--gettext-runtime/intl/Makefile.in15
2 files changed, 58 insertions, 0 deletions
diff --git a/Android.mk b/Android.mk
new file mode 100644
index 0000000..f0c6f54
--- /dev/null
+++ b/Android.mk
@@ -0,0 +1,43 @@
+LOCAL_PATH:= $(call my-dir)
+include $(CLEAR_VARS)
+
+GETTEXT_TOP := $(LOCAL_PATH)
+
+GETTEXT_BUILT_MAKEFILES := \
+ $(GETTEXT_TOP)/gettext-runtime/intl/Android.mk
+
+GETTEXT_CONFIGURE_TARGET := \
+ $(GETTEXT_TOP)/gettext-runtime/intl/Makefile \
+
+$(GETTEXT_CONFIGURE_TARGET): $(CONFIGURE_DEPENDENCIES) $(GETTEXT_TOP)/configure.ac
+ cd $(GETTEXT_TOP) && \
+ CC="$(CONFIGURE_CC)" \
+ CFLAGS="$(CONFIGURE_CFLAGS)" \
+ LD=$(TARGET_LD) \
+ LDFLAGS="$(CONFIGURE_LDFLAGS)" \
+ CPP=$(CONFIGURE_CPP) \
+ CPPFLAGS="$(CONFIGURE_CPPFLAGS)" \
+ ./configure \
+ --host=arm-linux-androideabi \
+ --prefix=/system \
+ --disable-builddir \
+ --disable-maintainer-mode \
+ --enable-iconv-cache=auto
+
+$(GETTEXT_BUILT_MAKEFILES): $(GETTEXT_CONFIGURE_TARGET)
+ make -C $(dir $@) $(notdir $@)
+
+.PHONY: gettext-reset gettext-clean
+
+gettext-reset:
+ cd $(GETTEXT_TOP) && \
+ git clean -qdxf && \
+ git reset --hard HEAD
+
+gettext-clean:
+
+contrib-reset: gettext-reset
+contrib-clean: gettext-clean
+
+include $(GETTEXT_BUILT_MAKEFILES)
+
diff --git a/gettext-runtime/intl/Makefile.in b/gettext-runtime/intl/Makefile.in
index 7b6623d..54302a2 100644
--- a/gettext-runtime/intl/Makefile.in
+++ b/gettext-runtime/intl/Makefile.in
@@ -656,3 +656,18 @@ Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
# Tell versions [3.59,3.63) of GNU make not to export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:
+
+Android.mk: Makefile
+ androgenizer -:PROJECT gettext -:SHARED libintl -:TAGS eng debug \
+ -:REL_TOP $(top_srcdir) -:ABS_TOP $(abs_top_srcdir) \
+ -:PASSTHROUGH LOCAL_ARM_MODE:=arm \
+ -:SOURCES $(SOURCES) \
+ -:HEADERS $(HEADERS) \
+ -:CFLAGS $(DEFS) $(CFLAGS) $(DEFAULT_INCLUDES) $(INCLUDES) \
+ $(AM_CFLAGS) \
+ -:CPPFLAGS $(CPPFLAGS) $(AM_CPPFLAGS) \
+ -:LDFLAGS $(libffi_la_LDFLAGS) \
+ -:PASSTHROUGH 'gettext-clean: clean-gettext' \
+ > $@
+
+