Skip to content

Commit 93a0539

Browse files
buildbuild
authored andcommitted
Update iOS configuration
1 parent 2659bd2 commit 93a0539

File tree

4 files changed

+19
-26
lines changed

4 files changed

+19
-26
lines changed

build_ios.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/sh
22

3-
export QT_DIR=/Developer/Qt4iOS/qt-everywhere-ios-5.1.0
3+
export QT_DIR=/usr/local/opt/qt5_ios
44
export PATH=$QT_DIR/bin:$PATH
55

66
python generate_wdversion.py
@@ -14,9 +14,9 @@ xcodebuild -project out/wd_test.xcodeproj -target test_ios_WD -arch i386 -sdk ip
1414

1515
cd ./platform/ios/wd
1616
qmake wd.pro -r -spec unsupported/macx-iossimulator-clang CONFIG+=x86
17-
make -release
18-
19-
cd ../wd_test
17+
make -release
18+
19+
cd ../wd_test
2020

2121
xcodebuild -project wd_test.xcodeproj -alltargets -arch i386 -sdk iphonesimulator -configuration Debug ONLY_ACTIVE_ARCH=NO VALID_ARCHS="armv7 i386" clean build
2222

platform/ios/wd_qt5.gypi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
{
22
'variables': {
33
'QT5': '1', # change to '1' for enabling Qt5
4+
'WD_BUILD_MONGOOSE': '1',
5+
'WD_CONFIG_PLAYER': '0',
46
'QT_INC_PATH': '/usr/local/opt/qt5_ios/include',
57
'QT_LIB_PATH': '/usr/local/opt/qt5_ios/lib',
68
'QT_BIN_PATH': '/usr/local/opt/qt5_ios/bin',

wd_build_options.gypi

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
'-g',
2929
],
3030
} ],
31-
31+
3232
[ 'mode == "release"', {
3333
'cflags': [
3434
'-O3',
@@ -79,7 +79,7 @@
7979
'--sysroot=<!(/bin/echo -n $ANDROID_NDK_ROOT)/platforms/android-9/arch-<!(/bin/echo -n $ANDROID_ARCH)',
8080
],
8181
} ],
82-
82+
8383
[ 'OS == "win"', {
8484
'defines': [
8585
'_WIN32',
@@ -105,12 +105,12 @@
105105
'outputs': [],
106106
'action': ['mkdir', '-p', '<(INTERMEDIATE_DIR)'],
107107
} ],
108-
109-
'defines': [
108+
109+
'defines': [
110110
'OS_POSIX',
111111
],
112112

113-
'xcode_settings': {
113+
'xcode_settings': {
114114
'GCC_SYMBOLS_PRIVATE_EXTERN': 'YES',
115115
},
116116
} ],

wd_test.gyp

Lines changed: 8 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,10 @@
8282
'$(SDKROOT)/System/Library/Frameworks/ApplicationServices.framework',
8383
'$(SDKROOT)/System/Library/Frameworks/Security.framework',
8484
],
85-
},
86-
} ],
85+
},
86+
} ],
8787
['OS=="android"', {
88-
'libraries': [
88+
'libraries': [
8989
'-L<(QT_LIB_PATH)',
9090
'-lQt5Widgets',
9191
'-lQt5Network',
@@ -107,36 +107,27 @@
107107
'<(QT_LIB_PATH)/libQt5Gui.a',
108108
'<(QT_LIB_PATH)/libQt5Core.a',
109109
'<(QT_LIB_PATH)/libQt5Widgets.a',
110-
# Quick2 isn't supported in QT for iOS
111-
#'<(QT_LIB_PATH)/libQt5Qml.a',
112-
#'<(QT_LIB_PATH)/libQt5Quick.a',
110+
'<(QT_LIB_PATH)/libQt5Qml.a',
111+
'<(QT_LIB_PATH)/libQt5Quick.a',
113112
'<(QT_LIB_PATH)/libQt5Xml.a',
114-
#'<(QT_LIB_PATH)/libQt5MultimediaWidgets.a',
115-
#'<(QT_LIB_PATH)/libQt5Multimedia.a',
116-
#'<(QT_LIB_PATH)/libQt5V8.a',
117-
#'<(QT_LIB_PATH)/libQt5XmlPatterns.a',
118-
#'<(QT_LIB_PATH)/libQt5OpenGL.a',
119-
#'<(QT_LIB_PATH)/libQt5OpenGLExtensions.a',
120113
'<(QT_LIB_PATH)/libQt5PlatformSupport.a',
121114
'$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
122115
'$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework',
123116
'$(SDKROOT)/System/Library/Frameworks/CoreGraphics.framework',
124117
'$(SDKROOT)/System/Library/Frameworks/CoreText.framework',
125118
'$(SDKROOT)/System/Library/Frameworks/UIKit.framework',
126-
#'$(SDKROOT)/System/Library/Frameworks/OpenGLES.framework',
127-
#'$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework',
128119
'libz.dylib',
129120
],
130-
},
131-
121+
},
122+
132123
'xcode_settings': {
133124
'TARGETED_DEVICE_FAMILY': '1,2',
134125
'CODE_SIGN_IDENTITY': 'iPhone Developer',
135126
'IPHONEOS_DEPLOYMENT_TARGET': '6.1',
136127
'ARCHS': '$(ARCHS_STANDARD_32_BIT)',
137128
'CLANG_WARN_CXX0X_EXTENSIONS': 'NO',
138129
},
139-
} ],
130+
} ],
140131
],
141132
}, {
142133
'conditions': [

0 commit comments

Comments
 (0)