Skip to content

Commit e161418

Browse files
author
Mykola Tryshnivskyy
committed
Port iOS WD on Qt 5.2.0
1 parent b032887 commit e161418

File tree

15 files changed

+67
-630
lines changed

15 files changed

+67
-630
lines changed

build_ios.sh

Lines changed: 24 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,38 @@
33
export QT_DIR=/usr/local/opt/qt5_ios
44
export PATH=$QT_DIR/bin:$PATH
55

6+
cat > wd.gypi <<EOF
7+
{
8+
'variables':
9+
{
10+
'QT5': '1',
11+
'QT_BIN_PATH': '${QT_DIR}/bin',
12+
'QT_INC_PATH': '${QT_DIR}/include',
13+
'QT_LIB_PATH': '${QT_DIR}/lib',
14+
'WD_CONFIG_WEBKIT': '0',
15+
'WD_CONFIG_QUICK': '1',
16+
'WD_CONFIG_PLAYER': '1',
17+
'WD_BUILD_MONGOOSE': '1',
18+
},
19+
}
20+
EOF
21+
622
python generate_wdversion.py
723

824
gyp --depth . -G output_dir=. -D platform=desktop -D mode=debug -f xcode -D OS=ios --generator-output=out/ wd.gyp
925

1026
if [ "$1" == "-all" ]
1127
then
1228

13-
xcodebuild -project out/wd_test.xcodeproj -target test_ios_WD -arch i386 -sdk iphonesimulator clean build
14-
15-
cd ./platform/ios/wd
16-
qmake wd.pro -r -spec unsupported/macx-iossimulator-clang CONFIG+=x86
17-
make -release
29+
#xcodebuild -project out/wd_test.xcodeproj -target test_ios_WD -arch i386 -sdk iphonesimulator #clean build
30+
xcodebuild -project out/base.xcodeproj -target chromium_base -arch i386 -sdk iphonesimulator clean build
31+
xcodebuild -project out/wd_core.xcodeproj -target WebDriver_core -arch i386 -sdk iphonesimulator clean build
32+
xcodebuild -project out/wd_ext_qt.xcodeproj -target WebDriver_extension_qt_base -arch i386 -sdk iphonesimulator clean build
33+
xcodebuild -project out/wd_ext_qt.xcodeproj -target WebDriver_extension_qt_quick -arch i386 -sdk iphonesimulator clean build
1834

19-
cd ../wd_test
2035

21-
xcodebuild -project wd_test.xcodeproj -alltargets -arch i386 -sdk iphonesimulator -configuration Debug ONLY_ACTIVE_ARCH=NO VALID_ARCHS="armv7 i386" clean build
36+
cd ./platform/ios/wd
37+
qmake wd.pro -r -spec macx-ios-clang CONFIG+=x86 CONFIG+=iphonesimulator CONFIG+=release
38+
make
2239

2340
fi

platform/ios/wd/wd.pro

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
QT += core gui network
1+
QT += core gui network widgets qml xml multimedia multimediawidgets quick
22

33
SOURCES += \
44
../../../src/Test/shutdown_command.cc \
@@ -20,10 +20,9 @@ SOURCES += \
2020
../../../src/Test/ClickScrollingTest.cc \
2121
../../../src/Test/BasicMouseInterfaceTest.cc \
2222
../../../src/Test/BasicKeyboardInterfaceTest.cc \
23-
../../../src/Test/VideoTest.cc \
2423
../../../src/Test/TouchTest.cc \
2524
../../../src/Test/MenuTest.cc \
26-
../../../src/Test/WindowWithDeclarativeViewTest.cc
25+
#../../../src/Test/VideoTest.cc
2726

2827
HEADERS += \
2928
../../../src/Test/shutdown_command.h \
@@ -45,14 +44,12 @@ HEADERS += \
4544
../../../src/Test/ClickScrollingTest.h \
4645
../../../src/Test/BasicMouseInterfaceTest.h \
4746
../../../src/Test/BasicKeyboardInterfaceTest.h \
48-
../../../src/Test/WindowWithDeclarativeViewTest.h \
49-
../../../src/Test/VideoTest.h \
5047
../../../src/Test/TouchTest.h \
5148
../../../src/Test/TestVariables.h \
52-
../../../src/Test/MenuTest.h
49+
../../../src/Test/MenuTest.h \
50+
#../../../src/Test/VideoTest.h
5351

5452
INCLUDEPATH += ../../../inc
55-
INCLUDEPATH += ../../../mocs
5653

5754
FORMS += \
5855
../../../src/Test/ElementSelectingTest.ui \
@@ -63,7 +60,17 @@ DESTDIR = build
6360
OBJECTS_DIR = build
6461
MOC_DIR = build
6562

66-
ios: include($$[QT_HOST_DATA/get]/mkspecs/common/ios/qiosapp.conf)
63+
INCLUDEPATH += $$PWD/../../../build/Default-iphonesimulator
64+
DEPENDPATH += $$PWD/../../../build/Default-iphonesimulator
6765

66+
LIBS += -L$$PWD/../../../build/Default-iphonesimulator/ -lchromium_base
67+
PRE_TARGETDEPS += $$PWD/../../../build/Default-iphonesimulator/libchromium_base.a
6868

69+
LIBS += -L$$PWD/../../../build/Default-iphonesimulator/ -lWebDriver_core
70+
PRE_TARGETDEPS += $$PWD/../../../build/Default-iphonesimulator/libWebDriver_core.a
6971

72+
LIBS += -L$$PWD/../../../build/Default-iphonesimulator/ -lWebDriver_extension_qt_base
73+
PRE_TARGETDEPS += $$PWD/../../../build/Default-iphonesimulator/libWebDriver_extension_qt_base.a
74+
75+
LIBS += -L$$PWD/../../../build/Default-iphonesimulator/ -lWebDriver_extension_qt_quick
76+
PRE_TARGETDEPS += $$PWD/../../../build/Default-iphonesimulator/libWebDriver_extension_qt_quick.a

platform/ios/wd_qt5.gypi

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
{
2-
'variables': {
3-
'QT5': '1', # change to '1' for enabling Qt5
2+
'variables':
3+
{
4+
'QT5': '1',
5+
'QT_BIN_PATH': '/usr/local/opt/qt5_ios/bin',
6+
'QT_INC_PATH': '/usr/local/opt/qt5_ios/include',
7+
'QT_LIB_PATH': '/usr/local/opt/qt5_ios/lib',
8+
'WD_CONFIG_WEBKIT': '0',
9+
'WD_CONFIG_QUICK': '1',
10+
'WD_CONFIG_PLAYER': '1',
411
'WD_BUILD_MONGOOSE': '1',
5-
'WD_CONFIG_PLAYER': '0',
6-
'QT_INC_PATH': '/usr/local/opt/qt5_ios/include',
7-
'QT_LIB_PATH': '/usr/local/opt/qt5_ios/lib',
8-
'QT_BIN_PATH': '/usr/local/opt/qt5_ios/bin',
9-
'INTERMEDIATE_DIR': 'mocs',
1012
},
1113
}

platform/ios/wd_qt5_64.gypi

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)