Fix WindowsApp build, change global version: 1.1.10
This commit is contained in:
parent
8a47a25bbb
commit
359e7472bf
|
@ -15,11 +15,11 @@ set(CMAKE_CXX_STANDARD 11)
|
|||
# Also remember to set PROTOCOL_VERSION in network/networkprotocol.h when releasing
|
||||
set(VERSION_MAJOR 1)
|
||||
set(VERSION_MINOR 1)
|
||||
set(VERSION_PATCH 8)
|
||||
set(VERSION_PATCH 10)
|
||||
set(VERSION_EXTRA "" CACHE STRING "Stuff to append to version string")
|
||||
|
||||
# Change to false for releases
|
||||
set(DEVELOPMENT_BUILD TRUE)
|
||||
set(DEVELOPMENT_BUILD FALSE)
|
||||
|
||||
set(VERSION_STRING "${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}")
|
||||
if(VERSION_EXTRA)
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash -e
|
||||
|
||||
bit=32
|
||||
#bit=64
|
||||
#bit=32
|
||||
bit=64
|
||||
|
||||
mingw=/tmp/mingw${bit}
|
||||
if [ ! -d $mingw ]; then
|
||||
|
|
|
@ -137,6 +137,6 @@ cmake .. \
|
|||
-DLEVELDB_LIBRARY=$libdir/leveldb/lib/libleveldb.dll.a \
|
||||
-DLEVELDB_DLL=$libdir/leveldb/bin/libleveldb.dll
|
||||
|
||||
make package -j2
|
||||
make package -j $(nproc)
|
||||
|
||||
# EOF
|
||||
|
|
|
@ -85,7 +85,7 @@ cmake .. \
|
|||
\
|
||||
-DENABLE_SOUND=1 \
|
||||
-DENABLE_CURL=1 \
|
||||
-DENABLE_GETTEXT=1 \
|
||||
-DENABLE_GETTEXT=0 \
|
||||
-DENABLE_FREETYPE=1 \
|
||||
-DENABLE_LEVELDB=1 \
|
||||
\
|
||||
|
@ -137,6 +137,6 @@ cmake .. \
|
|||
-DLEVELDB_LIBRARY=$libdir/leveldb/lib/libleveldb.dll.a \
|
||||
-DLEVELDB_DLL=$libdir/leveldb/bin/libleveldb.dll
|
||||
|
||||
make package -j2
|
||||
make package -j $(nproc)
|
||||
|
||||
# EOF
|
||||
|
|
|
@ -7,7 +7,7 @@ SHELL := /bin/bash
|
|||
# GPROF = 1
|
||||
|
||||
# build for build platform
|
||||
API = 19
|
||||
API = 16
|
||||
APP_PLATFORM = android-$(API)
|
||||
COMPILER_VERSION = 4.9
|
||||
|
||||
|
@ -84,7 +84,7 @@ CURL_TIMESTAMP = $(CURL_DIR)/timestamp
|
|||
CURL_TIMESTAMP_INT = $(ANDR_ROOT)/deps/curl_timestamp
|
||||
CURL_URL_HTTP = http://dl.uxnr.de/mirror/curl/curl-${CURL_VERSION}.tar.bz2
|
||||
|
||||
FREETYPE_VERSION = 2.9
|
||||
FREETYPE_VERSION = 2.9.1
|
||||
FREETYPE_DIR = $(ANDR_ROOT)/deps/freetype
|
||||
FREETYPE_LIB = $(FREETYPE_DIR)/objs/.libs/libfreetype.a
|
||||
FREETYPE_TIMESTAMP = $(FREETYPE_DIR)/timestamp
|
||||
|
@ -95,8 +95,8 @@ ICONV_VERSION = 1.15
|
|||
ICONV_DIR = $(ANDR_ROOT)/deps/libiconv
|
||||
ICONV_URL_HTTP = https://ftp.gnu.org/pub/gnu/libiconv/libiconv-$(ICONV_VERSION).tar.gz
|
||||
|
||||
INTL_DIR = $(ANDR_ROOT)/deps/libintl/
|
||||
INTL_URL_HTTP = https://github.com/j-jorge/libintl-lite/archive/master.tar.gz
|
||||
INTL_DIR = $(ANDR_ROOT)/deps/libintl
|
||||
INTL_URL_GIT = https://github.com/j-jorge/libintl-lite.git
|
||||
|
||||
SQLITE3_VERSION = 3230100
|
||||
SQLITE3_DIR = $(ANDR_ROOT)/deps/sqlite
|
||||
|
@ -174,7 +174,7 @@ openal_download :
|
|||
openal : $(OPENAL_LIB)
|
||||
|
||||
$(OPENAL_LIB): $(OPENAL_TIMESTAMP)
|
||||
+ @REFRESH=0; \
|
||||
+@REFRESH=0; \
|
||||
if [ ! -e ${OPENAL_TIMESTAMP_INT} ] ; then \
|
||||
REFRESH=1; \
|
||||
fi; \
|
||||
|
@ -223,7 +223,7 @@ vorbis_download :
|
|||
vorbis : $(VORBIS_LIB)
|
||||
|
||||
$(VORBIS_LIB): $(VORBIS_TIMESTAMP)
|
||||
+ @REFRESH=0; \
|
||||
+@REFRESH=0; \
|
||||
if [ ! -e ${VORBIS_TIMESTAMP_INT} ] ; then \
|
||||
echo "${VORBIS_TIMESTAMP_INT} doesn't exist"; \
|
||||
REFRESH=1; \
|
||||
|
@ -317,7 +317,7 @@ freetype_download :
|
|||
freetype : $(FREETYPE_LIB)
|
||||
|
||||
$(FREETYPE_LIB) : $(FREETYPE_TIMESTAMP)
|
||||
+ @REFRESH=0; \
|
||||
+@REFRESH=0; \
|
||||
if [ ! -e ${FREETYPE_TIMESTAMP_INT} ] ; then \
|
||||
REFRESH=1; \
|
||||
fi; \
|
||||
|
@ -383,10 +383,7 @@ intl_download :
|
|||
echo "libintl sources missing, downloading..."; \
|
||||
mkdir -p ${ANDR_ROOT}/deps; \
|
||||
cd ${ANDR_ROOT}/deps; \
|
||||
wget ${INTL_URL_HTTP} -O libintl.tar.gz || exit 1; \
|
||||
tar -xzf libintl.tar.gz || exit 1; \
|
||||
rm libintl.tar.gz; \
|
||||
mv libintl-lite-master libintl; \
|
||||
git clone ${INTL_URL_GIT} libintl || exit 1; \
|
||||
fi
|
||||
|
||||
clean_intl :
|
||||
|
@ -424,7 +421,7 @@ $(IRRLICHT_TIMESTAMP) : irrlicht_download
|
|||
irrlicht : $(IRRLICHT_LIB)
|
||||
|
||||
$(IRRLICHT_LIB): $(IRRLICHT_TIMESTAMP) $(FREETYPE_LIB)
|
||||
+ @REFRESH=0; \
|
||||
+@REFRESH=0; \
|
||||
if [ ! -e ${IRRLICHT_TIMESTAMP_INT} ] ; then \
|
||||
REFRESH=1; \
|
||||
fi; \
|
||||
|
@ -666,13 +663,13 @@ clean_assets :
|
|||
apk: local.properties $(IRRLICHT_LIB) $(CURL_LIB) $(LEVELDB_LIB) $(LUAJIT_LIB) \
|
||||
$(OPENAL_LIB) $(VORBIS_LIB) prep_srcdir $(ANDR_ROOT)/jni/src/android_version.h \
|
||||
$(ANDR_ROOT)/jni/src/android_version_githash.h sqlite3_download intl_download iconv_download assets
|
||||
+ ${ANDROID_NDK}/ndk-build \
|
||||
+@${ANDROID_NDK}/ndk-build \
|
||||
TARGET_LIBDIR=${TARGET_LIBDIR} \
|
||||
APP_PLATFORM=${APP_PLATFORM} TARGET_ABI=${TARGET_ABI} || exit 1; \
|
||||
if [ ! -e ${APP_ROOT}/jniLibs ]; then \
|
||||
ln -s ${ANDR_ROOT}/libs ${APP_ROOT}/jniLibs || exit 1; \
|
||||
fi; \
|
||||
export VERSION_STR="${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}" && \
|
||||
export VERSION_STR="${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}" &&\
|
||||
export BUILD_TYPE_C=$$(echo "$${BUILD_TYPE}" | sed 's/./\U&/') && \
|
||||
# gradle assemble$$BUILD_TYPE_C && \
|
||||
echo "APK stored at: build/outputs/apk/MultiCraft-$$BUILD_TYPE.apk" && \
|
||||
|
@ -713,7 +710,7 @@ $(ANDR_ROOT)/jni/src/android_version_githash.h : prep_srcdir
|
|||
echo "#ifndef ANDROID_MT_VERSION_GITHASH_H"; \
|
||||
echo "#define ANDROID_MT_VERSION_GITHASH_H"; \
|
||||
export GITHASH=$$(git rev-parse --short=8 HEAD); \
|
||||
export VERSION_STR="${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}"; \
|
||||
export VERSION_STR="${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}";\
|
||||
echo "#define VERSION_GITHASH \"$$VERSION_STR-$$GITHASH-Android\""; \
|
||||
echo "#endif"; \
|
||||
} > "$${VERSION_FILE_NEW}"; \
|
||||
|
@ -734,7 +731,7 @@ $(ANDR_ROOT)/jni/src/android_version.h : prep_srcdir
|
|||
echo "#define VERSION_MAJOR ${VERSION_MAJOR}"; \
|
||||
echo "#define VERSION_MINOR ${VERSION_MINOR}"; \
|
||||
echo "#define VERSION_PATCH ${VERSION_PATCH}"; \
|
||||
echo "#define VERSION_STRING STR(VERSION_MAJOR) \".\" STR(VERSION_MINOR) \
|
||||
echo "#define VERSION_STRING STR(VERSION_MAJOR) \".\" STR(VERSION_MINOR)\
|
||||
\".\" STR(VERSION_PATCH)"; \
|
||||
echo "#endif"; \
|
||||
} > $${VERSION_FILE_NEW}; \
|
||||
|
|
|
@ -28,8 +28,8 @@
|
|||
#define STATIC_SHAREDIR ""
|
||||
#define VERSION_MAJOR 1
|
||||
#define VERSION_MINOR 1
|
||||
#define VERSION_PATCH 5
|
||||
#define VERSION_STRING "1.1.5"
|
||||
#define VERSION_PATCH 10
|
||||
#define VERSION_STRING "1.1.10"
|
||||
#ifdef NDEBUG
|
||||
#define BUILD_TYPE "Release"
|
||||
#else
|
||||
|
|
Loading…
Reference in New Issue