aboutsummaryrefslogtreecommitdiff
path: root/build/android/libiconv_android_mk.patch
diff options
context:
space:
mode:
authorest31 <MTest31@outlook.com>2015-06-10 00:35:21 +0200
committerest31 <MTest31@outlook.com>2015-06-13 19:49:55 +0200
commit572990dcd3f43386860b5b14015ad722fb96ea83 (patch)
treef1f1f57b612aec58e226bf43ad1e2a78441cdc4f /build/android/libiconv_android_mk.patch
parentaa13baa30a45b0f834c23bd5c0407895eb8ec0ee (diff)
downloadminetest-572990dcd3f43386860b5b14015ad722fb96ea83.tar.gz
minetest-572990dcd3f43386860b5b14015ad722fb96ea83.tar.bz2
minetest-572990dcd3f43386860b5b14015ad722fb96ea83.zip
Add utf-8 conversion utilities and re-add intlGUIEditBox
Diffstat (limited to 'build/android/libiconv_android_mk.patch')
-rw-r--r--build/android/libiconv_android_mk.patch51
1 files changed, 51 insertions, 0 deletions
diff --git a/build/android/libiconv_android_mk.patch b/build/android/libiconv_android_mk.patch
new file mode 100644
index 000000000..9eb7a1915
--- /dev/null
+++ b/build/android/libiconv_android_mk.patch
@@ -0,0 +1,51 @@
+From fe27aae178d65b06d5f4104158343b0d2d33e3f0 Mon Sep 17 00:00:00 2001
+From: Pierre Zurek <pierrezurek@gmail.com>
+Date: Sat, 2 Apr 2011 23:11:57 +0200
+Subject: [PATCH] Added Android.mk.
+
+This makefile first executes the configure script, that will
+generate the config.h files necessary to build iconv.
+---
+ Android.mk | 29 +++++++++++++++++++++++++++++
+ 1 file changed, 29 insertions(+)
+ create mode 100644 Android.mk
+
+diff --git a/jni/Android.mk b/jni/Android.mk
+new file mode 100644
+index 0000000..799b22d
+--- /dev/null
++++ b/jni/Android.mk
+@@ -0,0 +1,32 @@
++LOCAL_PATH := $(call my-dir)
++include $(CLEAR_VARS)
++
++LOCAL_ARM_MODE := arm
++
++LOCAL_SRC_FILES := src/lib/iconv.c \
++ src/libcharset/lib/localcharset.c \
++ src/lib/relocatable.c
++
++LOCAL_C_INCLUDES += $(LOCAL_PATH)/src/include \
++ $(LOCAL_PATH)/src/libcharset \
++ $(LOCAL_PATH)/src/libcharset/include
++
++LOCAL_CFLAGS := \
++ -DLIBDIR="\"c\"" \
++ -D_ANDROID \
++ -DBUILDING_LIBCHARSET \
++ -DBUILDING_LIBICONV \
++ -DBUILDING_LIBICONV \
++ -DIN_LIBRARY
++
++LOCAL_MODULE:= iconv
++
++$(info Configuring iconv...)
++COMMAND := $(shell \
++ export PATH=$(TOOLCHAIN_INSTALL_DIR)/bin:$$PATH; \
++ cd $(LOCAL_PATH); \
++ make distclean; \
++ ./configure --host="arm-linux-androideabi")
++$(info iconv configured.)
++
++include $(BUILD_STATIC_LIBRARY)
++