Fix mo create
This commit is contained in:
parent
2fc7468f78
commit
b30cbda468
|
@ -1,6 +1,7 @@
|
|||
################################################################################
|
||||
|
||||
OS := $(shell uname)
|
||||
SHELL := /bin/bash
|
||||
|
||||
# compile with GPROF
|
||||
# GPROF = 1
|
||||
|
@ -144,7 +145,7 @@ NDK_MODULE_PATH = $(ANDROID_NDK)/toolchains
|
|||
.PHONY : debug release reconfig delconfig \
|
||||
leveldb_download clean_leveldb leveldb\
|
||||
irrlicht_download clean_irrlicht irrlicht \
|
||||
clean_assets assets sqlite3_download \
|
||||
clean_assets assets \
|
||||
freetype_download clean_freetype freetype \
|
||||
luajit_download clean_luajit luajit \
|
||||
apk clean_apk \
|
||||
|
@ -523,7 +524,7 @@ intl_download :
|
|||
wget ${INTL_URL_HTTP} -O libintl.tar.gz || exit 1; \
|
||||
tar -xzf libintl.tar.gz || exit 1; \
|
||||
rm libintl.tar.gz; \
|
||||
ln -s libintl-lite-master libintl; \
|
||||
mv libintl-lite-master libintl; \
|
||||
fi
|
||||
|
||||
intl : $(INTL_LIB)
|
||||
|
@ -543,13 +544,16 @@ $(INTL_LIB) : $(INTL_TIMESTAMP)
|
|||
mkdir -p ${INTL_DIR}; \
|
||||
echo "changed timestamp for intl detected building..."; \
|
||||
cd ${INTL_DIR}; \
|
||||
\
|
||||
export TOOLCHAIN=/tmp/ndk-${TARGET_HOST}-intl; \
|
||||
${ANDROID_NDK}/build/tools/make-standalone-toolchain.sh \
|
||||
--toolchain=${TARGET_TOOLCHAIN}-${COMPILER_VERSION} \
|
||||
--platform=${APP_PLATFORM} --install-dir=$${TOOLCHAIN}; \
|
||||
export PATH="$${TOOLCHAIN}/bin:$${PATH}"; \
|
||||
cd internal; \
|
||||
export TARGET_OS=OS_ANDROID_CROSSCOMPILE; \
|
||||
export CPPFLAGS="$${CPPFLAGS} ${TARGET_CXXFLAGS_ADDON}"; \
|
||||
export CFLAGS="$${CFLAGS} ${TARGET_CFLAGS_ADDON}"; \
|
||||
export LDFLAGS="$${LDFLAGS} ${TARGET_LDFLAGS_ADDON}"; \
|
||||
${CROSS_PREFIX}g++ -O3 -c libintl.cpp -o libintl.o || exit 1; \
|
||||
${CROSS_PREFIX}ar rs ../libintl.a libintl.o || exit 1; \
|
||||
cd ..; \
|
||||
|
@ -735,21 +739,6 @@ $(MPIR_LIB): $(MPIR_TIMESTAMP)
|
|||
clean_mpir:
|
||||
$(RM) -R deps/mpir
|
||||
|
||||
sqlite3_download: deps/sqlite/sqlite3.c
|
||||
|
||||
deps/sqlite/sqlite3.c :
|
||||
mkdir -p ${ANDR_ROOT}/deps; \
|
||||
cd ${ANDR_ROOT}/deps; \
|
||||
rm -R sqlite; \
|
||||
wget ${SQLITE3_URL}; \
|
||||
unzip sqlite-amalgamation-$(SQLITE3_VERSION).zip || exit 1; \
|
||||
rm sqlite-amalgamation-$(SQLITE3_VERSION).zip; \
|
||||
mv sqlite-amalgamation-$(SQLITE3_VERSION) sqlite; \
|
||||
fi
|
||||
|
||||
clean_sqlite3:
|
||||
$(RM) -R sqlite
|
||||
|
||||
$(ASSETS_TIMESTAMP) : $(IRRLICHT_LIB)
|
||||
@mkdir -p ${ANDR_ROOT}/deps; \
|
||||
for DIRNAME in {builtin,client,doc,fonts,games,po,textures}; do \
|
||||
|
@ -887,8 +876,15 @@ clean_assets :
|
|||
# $(MPIR_LIB)
|
||||
apk: local.properties $(ICONV_LIB) $(IRRLICHT_LIB) $(CURL_LIB) $(LEVELDB_LIB) $(LUAJIT_LIB) \
|
||||
$(OPENAL_LIB) $(VORBIS_LIB) $(INTL_LIB) prep_srcdir $(ANDR_ROOT)/jni/src/android_version.h \
|
||||
$(ANDR_ROOT)/jni/src/android_version_githash.h sqlite3_download assets
|
||||
+ @${ANDROID_NDK}/ndk-build NDK_MODULE_PATH=${NDK_MODULE_PATH} \
|
||||
$(ANDR_ROOT)/jni/src/android_version_githash.h assets
|
||||
+@cd ${ANDR_ROOT}/deps; \
|
||||
rm -R sqlite; \
|
||||
wget ${SQLITE3_URL}; \
|
||||
unzip sqlite-amalgamation-$(SQLITE3_VERSION).zip || exit 1; \
|
||||
rm sqlite-amalgamation-$(SQLITE3_VERSION).zip; \
|
||||
mv sqlite-amalgamation-$(SQLITE3_VERSION) sqlite; \
|
||||
cd ..; \
|
||||
${ANDROID_NDK}/ndk-build NDK_MODULE_PATH=${NDK_MODULE_PATH} \
|
||||
GPROF=${GPROF} APP_ABI=${TARGET_ABI} \
|
||||
APP_PLATFORM=${APP_PLATFORM} \
|
||||
NDK_TOOLCHAIN_VERSION=${COMPILER_VERSION} \
|
||||
|
@ -898,7 +894,7 @@ apk: local.properties $(ICONV_LIB) $(IRRLICHT_LIB) $(CURL_LIB) $(LEVELDB_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 && \
|
||||
# gradle assemble$$BUILD_TYPE_C && \
|
||||
echo "APK stored at: build/outputs/apk/MultiCraft-$$BUILD_TYPE.apk" && \
|
||||
echo "You can install it with \`make install_$$BUILD_TYPE\`"
|
||||
|
||||
|
@ -916,7 +912,7 @@ prep_srcdir :
|
|||
fi
|
||||
|
||||
clean_apk :
|
||||
gradle clean
|
||||
# gradle clean
|
||||
|
||||
clean_all :
|
||||
@$(MAKE) clean_apk; \
|
||||
|
|
12
src/game.cpp
12
src/game.cpp
|
@ -1171,21 +1171,21 @@ static void show_pause_menu(GUIFormSpecMenu **cur_formspec,
|
|||
|
||||
os << FORMSPEC_VERSION_STRING << SIZE_TAG
|
||||
<< "bgcolor[#00000060;true]"
|
||||
<< "button_exit[4," << (ypos++) << ";3,0.5;btn_continue;"
|
||||
<< "button_exit[3.5," << (ypos++) << ";4,0.5;btn_continue;"
|
||||
<< strgettext("Continue") << "]";
|
||||
#ifndef __ANDROID__
|
||||
if (!singleplayermode) {
|
||||
os << "button_exit[4," << (ypos++) << ";3,0.5;btn_change_password;"
|
||||
os << "button_exit[3.5," << (ypos++) << ";4,0.5;btn_change_password;"
|
||||
<< strgettext("Change Password") << "]";
|
||||
}
|
||||
os << "button_exit[4," << (ypos++) << ";3,0.5;btn_sound;"
|
||||
os << "button_exit[3.5," << (ypos++) << ";4,0.5;btn_sound;"
|
||||
<< strgettext("Sound Volume") << "]";
|
||||
os << "button_exit[4," << (ypos++) << ";3,0.5;btn_key_config;"
|
||||
os << "button_exit[3.5," << (ypos++) << ";4,0.5;btn_key_config;"
|
||||
<< strgettext("Change Keys") << "]";
|
||||
#endif
|
||||
os << "button_exit[4," << (ypos++) << ";3,0.5;btn_exit_menu;"
|
||||
os << "button_exit[3.5," << (ypos++) << ";4,0.5;btn_exit_menu;"
|
||||
<< strgettext("Save and Exit") << "]";
|
||||
os << "button_exit[4," << (ypos++) << ";3,0.5;btn_exit_os;"
|
||||
os << "button_exit[3.5," << (ypos++) << ";4,0.5;btn_exit_os;"
|
||||
<< strgettext("Close game") << "]"
|
||||
<< "\n;]";
|
||||
|
||||
|
|
Loading…
Reference in New Issue