-
Notifications
You must be signed in to change notification settings - Fork 59
/
Copy pathbuild_ios.sh
executable file
·40 lines (31 loc) · 1.25 KB
/
build_ios.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/bin/sh
export QT_DIR=/usr/local/opt/qt5_ios
export PATH=$QT_DIR/bin:$PATH
cat > wd.gypi <<EOF
{
'variables':
{
'QT5': '1',
'QT_BIN_PATH': '${QT_DIR}/bin',
'QT_INC_PATH': '${QT_DIR}/include',
'QT_LIB_PATH': '${QT_DIR}/lib',
'WD_CONFIG_WEBKIT': '0',
'WD_CONFIG_QUICK': '1',
'WD_CONFIG_PLAYER': '1',
'WD_BUILD_MONGOOSE': '1',
},
}
EOF
python generate_wdversion.py
gyp --depth . -G output_dir=. -D platform=desktop -D mode=debug -f xcode -D OS=ios --generator-output=out/ wd.gyp
if [ "$1" == "-all" ]
then
#xcodebuild -project out/wd_test.xcodeproj -target test_ios_WD -arch i386 -sdk iphonesimulator #clean build
xcodebuild -project out/base.xcodeproj -target chromium_base -arch i386 -sdk iphonesimulator6.0 clean build
xcodebuild -project out/wd_core.xcodeproj -target WebDriver_core -arch i386 -sdk iphonesimulator6.0 clean build
xcodebuild -project out/wd_ext_qt.xcodeproj -target WebDriver_extension_qt_base -arch i386 -sdk iphonesimulator6.0 clean build
xcodebuild -project out/wd_ext_qt.xcodeproj -target WebDriver_extension_qt_quick -arch i386 -sdk iphonesimulator6.0 clean build
cd ./platform/ios/wd
qmake wd.pro -r -spec macx-ios-clang CONFIG+=x86 CONFIG+=iphonesimulator CONFIG+=release
make
fi