fix iOS build
@ -499,7 +499,7 @@
|
|||||||
F8E6C6721DCA405000F64426 /* mini-gmp.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = "mini-gmp.c"; path = "../../../../src/gmp/mini-gmp.c"; sourceTree = "<group>"; };
|
F8E6C6721DCA405000F64426 /* mini-gmp.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = "mini-gmp.c"; path = "../../../../src/gmp/mini-gmp.c"; sourceTree = "<group>"; };
|
||||||
F8E6C6731DCA405000F64426 /* mini-gmp.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = "mini-gmp.h"; path = "../../../../src/gmp/mini-gmp.h"; sourceTree = "<group>"; };
|
F8E6C6731DCA405000F64426 /* mini-gmp.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = "mini-gmp.h"; path = "../../../../src/gmp/mini-gmp.h"; sourceTree = "<group>"; };
|
||||||
F8E6C6761DCA407400F64426 /* json.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = json.h; path = ../../../../src/jsoncpp/json/json.h; sourceTree = "<group>"; };
|
F8E6C6761DCA407400F64426 /* json.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = json.h; path = ../../../../src/jsoncpp/json/json.h; sourceTree = "<group>"; };
|
||||||
F8E6C6771DCA407400F64426 /* jsoncpp.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = jsoncpp.cpp; path = ../../../../src/jsoncpp/json/jsoncpp.cpp; sourceTree = "<group>"; };
|
F8E6C6771DCA407400F64426 /* jsoncpp.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = jsoncpp.cpp; path = ../../../../src/jsoncpp/jsoncpp.cpp; sourceTree = "<group>"; };
|
||||||
F8E6C6D31DCA413A00F64426 /* clientopcodes.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = clientopcodes.cpp; path = ../../../../src/network/clientopcodes.cpp; sourceTree = "<group>"; };
|
F8E6C6D31DCA413A00F64426 /* clientopcodes.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = clientopcodes.cpp; path = ../../../../src/network/clientopcodes.cpp; sourceTree = "<group>"; };
|
||||||
F8E6C6D41DCA413A00F64426 /* clientopcodes.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = clientopcodes.h; path = ../../../../src/network/clientopcodes.h; sourceTree = "<group>"; };
|
F8E6C6D41DCA413A00F64426 /* clientopcodes.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = clientopcodes.h; path = ../../../../src/network/clientopcodes.h; sourceTree = "<group>"; };
|
||||||
F8E6C6D51DCA413A00F64426 /* clientpackethandler.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = clientpackethandler.cpp; path = ../../../../src/network/clientpackethandler.cpp; sourceTree = "<group>"; };
|
F8E6C6D51DCA413A00F64426 /* clientpackethandler.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = clientpackethandler.cpp; path = ../../../../src/network/clientpackethandler.cpp; sourceTree = "<group>"; };
|
||||||
@ -1694,6 +1694,7 @@
|
|||||||
baseConfigurationReference = 32528F14AAB9EA0E9CAB8526 /* Pods-MultiCraft.debug.xcconfig */;
|
baseConfigurationReference = 32528F14AAB9EA0E9CAB8526 /* Pods-MultiCraft.debug.xcconfig */;
|
||||||
buildSettings = {
|
buildSettings = {
|
||||||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||||
|
ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
|
||||||
CLANG_WARN_DOCUMENTATION_COMMENTS = NO;
|
CLANG_WARN_DOCUMENTATION_COMMENTS = NO;
|
||||||
DEVELOPMENT_TEAM = R3RLJ9TW52;
|
DEVELOPMENT_TEAM = R3RLJ9TW52;
|
||||||
ENABLE_BITCODE = NO;
|
ENABLE_BITCODE = NO;
|
||||||
@ -1761,6 +1762,7 @@
|
|||||||
baseConfigurationReference = 1E76DCA01B51A98F0CA4C480 /* Pods-MultiCraft.release.xcconfig */;
|
baseConfigurationReference = 1E76DCA01B51A98F0CA4C480 /* Pods-MultiCraft.release.xcconfig */;
|
||||||
buildSettings = {
|
buildSettings = {
|
||||||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||||
|
ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
|
||||||
CLANG_WARN_DOCUMENTATION_COMMENTS = NO;
|
CLANG_WARN_DOCUMENTATION_COMMENTS = NO;
|
||||||
DEVELOPMENT_TEAM = R3RLJ9TW52;
|
DEVELOPMENT_TEAM = R3RLJ9TW52;
|
||||||
ENABLE_BITCODE = NO;
|
ENABLE_BITCODE = NO;
|
||||||
|
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 23 KiB |
Before Width: | Height: | Size: 31 KiB After Width: | Height: | Size: 31 KiB |
Before Width: | Height: | Size: 34 KiB After Width: | Height: | Size: 34 KiB |
Before Width: | Height: | Size: 37 KiB After Width: | Height: | Size: 37 KiB |
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
@ -17,9 +17,9 @@
|
|||||||
<key>CFBundlePackageType</key>
|
<key>CFBundlePackageType</key>
|
||||||
<string>APPL</string>
|
<string>APPL</string>
|
||||||
<key>CFBundleShortVersionString</key>
|
<key>CFBundleShortVersionString</key>
|
||||||
<string>1.0.9</string>
|
<string>1.0.10</string>
|
||||||
<key>CFBundleVersion</key>
|
<key>CFBundleVersion</key>
|
||||||
<string>14</string>
|
<string>15</string>
|
||||||
<key>LSRequiresIPhoneOS</key>
|
<key>LSRequiresIPhoneOS</key>
|
||||||
<true/>
|
<true/>
|
||||||
<key>NSAppTransportSecurity</key>
|
<key>NSAppTransportSecurity</key>
|
||||||
|
@ -6,7 +6,9 @@ echo "Starting build MultiCraft for iOS..."
|
|||||||
echo
|
echo
|
||||||
echo "Build Libraries:"
|
echo "Build Libraries:"
|
||||||
|
|
||||||
|
cd deps
|
||||||
./libraries.sh
|
./libraries.sh
|
||||||
|
cd ..
|
||||||
|
|
||||||
echo
|
echo
|
||||||
echo "Creating Assets:"
|
echo "Creating Assets:"
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash -e
|
#!/bin/bash -e
|
||||||
|
|
||||||
. ../sdk.sh
|
. sdk.sh
|
||||||
|
|
||||||
if [ ! -d intl-src ]; then
|
if [ ! -d intl-src ]; then
|
||||||
wget https://github.com/j-jorge/libintl-lite/archive/master.tar.gz
|
wget https://github.com/j-jorge/libintl-lite/archive/master.tar.gz
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#!/bin/bash -e
|
#!/bin/bash -e
|
||||||
|
|
||||||
. ../sdk.sh
|
. sdk.sh
|
||||||
|
|
||||||
[ ! -d irrlicht-src ] && \
|
[ ! -d irrlicht-src ] && \
|
||||||
svn co svn://svn.code.sf.net/p/irrlicht/code/branches/ogl-es irrlicht-src
|
svn co -r 5415 svn://svn.code.sf.net/p/irrlicht/code/branches/ogl-es irrlicht-src
|
||||||
|
|
||||||
cd irrlicht-src/
|
cd irrlicht-src/
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash -e
|
#!/bin/bash -e
|
||||||
|
|
||||||
. ../sdk.sh
|
. sdk.sh
|
||||||
LEVELDB_VERSION=1.20
|
LEVELDB_VERSION=1.20
|
||||||
|
|
||||||
if [ ! -d leveldb-src ]; then
|
if [ ! -d leveldb-src ]; then
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash -e
|
#!/bin/bash -e
|
||||||
|
|
||||||
. ../sdk.sh
|
. sdk.sh
|
||||||
CURL_VERSION=7.53.1
|
CURL_VERSION=7.53.1
|
||||||
|
|
||||||
if [ ! -d libcurl-src ]; then
|
if [ ! -d libcurl-src ]; then
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash -e
|
#!/bin/bash -e
|
||||||
|
|
||||||
. ../sdk.sh
|
. sdk.sh
|
||||||
OGG_VERSION=1.3.2
|
OGG_VERSION=1.3.2
|
||||||
|
|
||||||
if [ ! -d libogg-src ]; then
|
if [ ! -d libogg-src ]; then
|
||||||
|
4
build/iOS/libraries.sh → build/iOS/deps/libraries.sh
Executable file → Normal file
@ -1,10 +1,8 @@
|
|||||||
#!/bin/bash -e
|
#!/bin/bash -e
|
||||||
|
|
||||||
cd deps
|
|
||||||
|
|
||||||
./irrlicht.sh
|
./irrlicht.sh
|
||||||
./libogg.sh
|
./libogg.sh
|
||||||
./libvorbis.sh # depends on libogg
|
./libvorbis.sh
|
||||||
./leveldb.sh
|
./leveldb.sh
|
||||||
./freetype.sh
|
./freetype.sh
|
||||||
./luajit.sh
|
./luajit.sh
|
@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash -e
|
#!/bin/bash -e
|
||||||
|
|
||||||
. ../sdk.sh
|
. sdk.sh
|
||||||
VORBIS_VERSION=1.3.5
|
VORBIS_VERSION=1.3.5
|
||||||
|
|
||||||
if [ ! -d libvorbis-src ]; then
|
if [ ! -d libvorbis-src ]; then
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash -e
|
#!/bin/bash -e
|
||||||
|
|
||||||
. ../sdk.sh
|
. sdk.sh
|
||||||
LUAJIT_VERSION=2.1
|
LUAJIT_VERSION=2.1
|
||||||
|
|
||||||
if [ ! -d luajit-src ]; then
|
if [ ! -d luajit-src ]; then
|
||||||
|
2
build/iOS/sdk.sh → build/iOS/deps/sdk.sh
Executable file → Normal file
@ -7,4 +7,4 @@ osver=8.0
|
|||||||
export IOS_COMPILER=$(xcrun --sdk $sdk --find clang)
|
export IOS_COMPILER=$(xcrun --sdk $sdk --find clang)
|
||||||
export IOS_CC=$IOS_COMPILER
|
export IOS_CC=$IOS_COMPILER
|
||||||
export IOS_CXX=$IOS_COMPILER
|
export IOS_CXX=$IOS_COMPILER
|
||||||
export IOS_FLAGS="-isysroot $(xcrun --sdk $sdk --show-sdk-path) -arch armv7 -arch arm64 -miphoneos-version-min=$osver -Ofast -fvisibility=hidden"
|
export IOS_FLAGS="-isysroot $(xcrun --sdk $sdk --show-sdk-path) -arch armv7 -arch arm64 -miphoneos-version-min=$osver -fvisibility=hidden -flto -Ofast"
|
@ -671,7 +671,6 @@ void TouchScreenGUI::translateEvent(const SEvent &event)
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
assert(event.TouchInput.Event == ETIE_MOVED);
|
assert(event.TouchInput.Event == ETIE_MOVED);
|
||||||
size_t move_idx = event.TouchInput.ID;
|
|
||||||
|
|
||||||
if (loadPointerPos(event.TouchInput.ID) ==
|
if (loadPointerPos(event.TouchInput.ID) ==
|
||||||
v2s32(event.TouchInput.X, event.TouchInput.Y)) {
|
v2s32(event.TouchInput.X, event.TouchInput.Y)) {
|
||||||
@ -701,8 +700,6 @@ void TouchScreenGUI::translateEvent(const SEvent &event)
|
|||||||
|
|
||||||
/* adapt to similar behaviour as pc screen */
|
/* adapt to similar behaviour as pc screen */
|
||||||
double d = g_settings->getFloat("mouse_sensitivity");
|
double d = g_settings->getFloat("mouse_sensitivity");
|
||||||
double old_yaw = m_camera_yaw_change;
|
|
||||||
double old_pitch = m_camera_pitch;
|
|
||||||
|
|
||||||
m_camera_yaw_change -= dx * d;
|
m_camera_yaw_change -= dx * d;
|
||||||
m_camera_pitch = MYMIN(MYMAX(m_camera_pitch + (dy * d), -180), 180);
|
m_camera_pitch = MYMIN(MYMAX(m_camera_pitch + (dy * d), -180), 180);
|
||||||
|