From b95f543da9d56974c4db8e34ce93e6f3bf7e776c Mon Sep 17 00:00:00 2001 From: Ner'zhul Date: Sat, 24 Dec 2016 12:30:18 +0100 Subject: Add gradle wrapper (#4954) Gradle wrapper permit to use multiple gradle versions across OS versions --- build/android/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'build/android/Makefile') diff --git a/build/android/Makefile b/build/android/Makefile index 6e7a389c9..d261a0e95 100644 --- a/build/android/Makefile +++ b/build/android/Makefile @@ -781,7 +781,7 @@ apk: local.properties assets $(ICONV_LIB) $(IRRLICHT_LIB) $(CURL_LIB) $(GMP_LIB) fi; \ export VERSION_STR="${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}" && \ export BUILD_TYPE_C=$$(echo "$${BUILD_TYPE}" | sed 's/./\U&/') && \ - gradle assemble$$BUILD_TYPE_C && \ + ./gradlew assemble$$BUILD_TYPE_C && \ echo "APK stored at: build/outputs/apk/Minetest-$$BUILD_TYPE.apk" && \ echo "You can install it with \`make install_$$BUILD_TYPE\`" @@ -799,7 +799,7 @@ prep_srcdir : fi clean_apk : - gradle clean + ./gradlew clean clean_all : @$(MAKE) clean_apk; \ -- cgit v1.2.3 From 98286a24bce14627295230fd3b846abf9641c086 Mon Sep 17 00:00:00 2001 From: Loic Blot Date: Fri, 14 Apr 2017 09:26:11 +0200 Subject: Fix android build --- .gitignore | 1 + build/android/Makefile | 5 ++++- build/android/jni/Android.mk | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) (limited to 'build/android/Makefile') diff --git a/.gitignore b/.gitignore index c51cced03..ee2f0aa96 100644 --- a/.gitignore +++ b/.gitignore @@ -83,6 +83,7 @@ build/android/src/main/assets build/android/build build/android/deps build/android/libs +build/android/jni/lib build/android/jni/src build/android/src/main/jniLibs build/android/obj diff --git a/build/android/Makefile b/build/android/Makefile index d261a0e95..22700da93 100644 --- a/build/android/Makefile +++ b/build/android/Makefile @@ -795,7 +795,10 @@ install_release: prep_srcdir : @if [ ! -e ${ANDR_ROOT}/jni/src ]; then \ - ln -s ${PROJ_ROOT}/src ${ANDR_ROOT}/jni/src; \ + ln -s ${PROJ_ROOT}/src ${ANDR_ROOT}/jni/src; \ + fi; \ + if [ ! -e ${ANDR_ROOT}/jni/lib ]; then \ + ln -s ${PROJ_ROOT}/lib ${ANDR_ROOT}/jni/lib; \ fi clean_apk : diff --git a/build/android/jni/Android.mk b/build/android/jni/Android.mk index 66c61029e..fd104db06 100644 --- a/build/android/jni/Android.mk +++ b/build/android/jni/Android.mk @@ -309,6 +309,7 @@ LOCAL_SRC_FILES += \ jni/src/script/lua_api/l_inventory.cpp \ jni/src/script/lua_api/l_item.cpp \ jni/src/script/lua_api/l_itemstackmeta.cpp\ + jni/src/script/lua_api/l_localplayer.cpp \ jni/src/script/lua_api/l_mainmenu.cpp \ jni/src/script/lua_api/l_mapgen.cpp \ jni/src/script/lua_api/l_metadata.cpp \ -- cgit v1.2.3 From d17636484dedab91b820667a82ec23cf6168ac7a Mon Sep 17 00:00:00 2001 From: Nathanaël Courant Date: Sun, 16 Apr 2017 00:48:48 -0700 Subject: Disable android leveldb by default (#5596) 1) Now leveldb is brick (thanks google) 2) By default, use SQLite3, this work perfectly and NOBODY not use LevelDB on Android :) --- build/android/Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'build/android/Makefile') diff --git a/build/android/Makefile b/build/android/Makefile index 22700da93..2ee3f7dcc 100644 --- a/build/android/Makefile +++ b/build/android/Makefile @@ -35,7 +35,7 @@ TARGET_CXXFLAGS_ADDON = $(TARGET_CFLAGS_ADDON) TARGET_ARCH = armv7 CROSS_PREFIX = arm-linux-androideabi- COMPILER_VERSION = 4.9 -HAVE_LEVELDB = 1 +HAVE_LEVELDB = 0 ################################################################################ # toolchain config for little endian mips @@ -59,7 +59,7 @@ HAVE_LEVELDB = 1 #CROSS_PREFIX = i686-linux-android- #TARGET_ARCH = x86 #COMPILER_VERSION = 4.9 -#HAVE_LEVELDB = 1 +#HAVE_LEVELDB = 0 ################################################################################ ASSETS_TIMESTAMP = deps/assets_timestamp @@ -352,7 +352,7 @@ leveldb_download : fi leveldb : $(LEVELDB_LIB) - +ifeq ($(HAVE_LEVELDB),1) $(LEVELDB_LIB): $(LEVELDB_TIMESTAMP) @REFRESH=0; \ if [ ! -e ${LEVELDB_TIMESTAMP_INT} ] ; then \ @@ -384,6 +384,7 @@ $(LEVELDB_LIB): $(LEVELDB_TIMESTAMP) else \ echo "nothing to be done for leveldb"; \ fi +endif clean_leveldb : $(RM) -rf deps/leveldb -- cgit v1.2.3 From 0d4d35ab930ecb5b313f74ae430edddd0ee79d4d Mon Sep 17 00:00:00 2001 From: Loïc Blot Date: Sat, 13 May 2017 13:32:59 +0200 Subject: Android dependencies updates (#5755) * irrlicht ogles 5122 -> 5145 * openssl 1.0.2j -> 1.0.2k * curl 7.52 -> 7.54 * sqlite 3.15.2 -> 3.18.0 --- build/android/Makefile | 13 ++++++------- build/android/patches/sqlite3-readonly-fix.patch | 17 ----------------- 2 files changed, 6 insertions(+), 24 deletions(-) delete mode 100644 build/android/patches/sqlite3-readonly-fix.patch (limited to 'build/android/Makefile') diff --git a/build/android/Makefile b/build/android/Makefile index 2ee3f7dcc..d9a82da4d 100644 --- a/build/android/Makefile +++ b/build/android/Makefile @@ -84,14 +84,14 @@ OGG_TIMESTAMP = $(OGG_DIR)timestamp OGG_TIMESTAMP_INT = $(ANDR_ROOT)/deps/ogg_timestamp OGG_URL_GIT = https://github.com/vincentjames501/libvorbis-libogg-android -IRRLICHT_REVISION = 5122 +IRRLICHT_REVISION = 5145 IRRLICHT_DIR = $(ANDR_ROOT)/deps/irrlicht/ IRRLICHT_LIB = $(IRRLICHT_DIR)lib/Android/libIrrlicht.a IRRLICHT_TIMESTAMP = $(IRRLICHT_DIR)timestamp IRRLICHT_TIMESTAMP_INT = $(ANDR_ROOT)/deps/irrlicht_timestamp IRRLICHT_URL_SVN = https://svn.code.sf.net/p/irrlicht/code/branches/ogl-es@$(IRRLICHT_REVISION) -OPENSSL_VERSION = 1.0.2j +OPENSSL_VERSION = 1.0.2k OPENSSL_BASEDIR = openssl-$(OPENSSL_VERSION) OPENSSL_DIR = $(ANDR_ROOT)/deps/$(OPENSSL_BASEDIR)/ OPENSSL_LIB = $(OPENSSL_DIR)/libssl.so.1.0.0 @@ -99,7 +99,7 @@ OPENSSL_TIMESTAMP = $(OPENSSL_DIR)timestamp OPENSSL_TIMESTAMP_INT = $(ANDR_ROOT)/deps/openssl_timestamp OPENSSL_URL = https://www.openssl.org/source/openssl-$(OPENSSL_VERSION).tar.gz -CURL_VERSION = 7.52.0 +CURL_VERSION = 7.54.0 CURL_DIR = $(ANDR_ROOT)/deps/curl-$(CURL_VERSION) CURL_LIB = $(CURL_DIR)/lib/.libs/libcurl.a CURL_TIMESTAMP = $(CURL_DIR)/timestamp @@ -126,8 +126,8 @@ ICONV_TIMESTAMP = $(ICONV_DIR)timestamp ICONV_TIMESTAMP_INT = $(ANDR_ROOT)/deps/iconv_timestamp ICONV_URL_HTTP = https://ftp.gnu.org/pub/gnu/libiconv/libiconv-$(ICONV_VERSION).tar.gz -SQLITE3_FOLDER = sqlite-amalgamation-3150200 -SQLITE3_URL = https://www.sqlite.org/2016/$(SQLITE3_FOLDER).zip +SQLITE3_FOLDER = sqlite-amalgamation-3180000 +SQLITE3_URL = https://www.sqlite.org/2017/$(SQLITE3_FOLDER).zip ANDROID_SDK = $(shell grep '^sdk\.dir' local.properties | sed 's/^.*=[[:space:]]*//') ANDROID_NDK = $(shell grep '^ndk\.dir' local.properties | sed 's/^.*=[[:space:]]*//') @@ -680,8 +680,7 @@ deps/${SQLITE3_FOLDER}/sqlite3.c : wget ${SQLITE3_URL}; \ unzip ${SQLITE3_FOLDER}.zip; \ ln -s ${SQLITE3_FOLDER} sqlite; \ - cd ${SQLITE3_FOLDER}; \ - patch sqlite3.c < ${ANDR_ROOT}/patches/sqlite3-readonly-fix.patch + cd ${SQLITE3_FOLDER}; clean_sqlite3: cd deps && $(RM) -rf ${SQLITE3_FOLDER} && $(RM) -f ${SQLITE3_FOLDER}.zip && \ diff --git a/build/android/patches/sqlite3-readonly-fix.patch b/build/android/patches/sqlite3-readonly-fix.patch deleted file mode 100644 index be19055ee..000000000 --- a/build/android/patches/sqlite3-readonly-fix.patch +++ /dev/null @@ -1,17 +0,0 @@ ---- sqlite3.c 2016-11-29 02:29:24.000000000 +0000 -+++ sqlite3.c 2016-12-08 22:54:54.206465377 +0000 -@@ -30445,7 +30445,14 @@ - #if OS_VXWORKS - struct vxworksFileId *pId; /* Unique file ID for vxworks. */ - #else -- ino_t ino; /* Inode number */ -+ #ifdef ANDROID -+ // Bionic's struct stat has a 64 bit st_ino on both 32 and -+ // 64 bit architectures. ino_t remains 32 bits wide on 32 bit -+ // architectures and can lead to inode truncation. -+ unsigned long long ino; /* Inode number */ -+ #else -+ ino_t ino; /* Inode number */ -+ #endif - #endif - }; -- cgit v1.2.3