Skip to content

Commit 9081f30

Browse files
author
Mykola Tryshnivskyy
committed
Updated WD for QT 5.1.0
1 parent b0eedfc commit 9081f30

File tree

2 files changed

+21
-8
lines changed

2 files changed

+21
-8
lines changed

src/chrome/test/webdriver/webdriver_server.cc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,8 +359,12 @@ int RunChromeDriver() {
359359
}
360360

361361
#if defined(OS_WIN)
362+
#if (QT_VERSION == QT_VERSION_CHECK(5, 1, 0))
363+
system("qtenv2.bat vsvars");
364+
#else //QT_VERSION
362365
system("qtvars.bat vsvars");
363-
#endif
366+
#endif //QT_VERSION
367+
#endif //OS_WIN
364368

365369
#if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0))
366370
// set default output mode

wd.gyp

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,21 @@
7171
],
7272
} ],
7373
[ 'OS=="win"', {
74-
#TODO: set here Qt5 libs
7574
'libraries': [
76-
'-l<(QT_LIB_PATH)/QtWebKit4',
77-
'-l<(QT_LIB_PATH)/QtNetwork4',
78-
'-l<(QT_LIB_PATH)/QtXml4',
79-
'-l<(QT_LIB_PATH)/QtGui4',
80-
'-l<(QT_LIB_PATH)/QtCore4',
75+
'-l<(QT_LIB_PATH)/Qt5WebKitWidgets',
76+
'-l<(QT_LIB_PATH)/Qt5WebKit',
77+
'-l<(QT_LIB_PATH)/Qt5Network',
78+
'-l<(QT_LIB_PATH)/Qt5Xml',
79+
'-l<(QT_LIB_PATH)/Qt5Gui',
80+
'-l<(QT_LIB_PATH)/Qt5Core',
81+
'-l<(QT_LIB_PATH)/Qt5Widgets',
82+
'-luser32.lib',
83+
'-lws2_32.lib',
84+
'-lshell32.lib',
85+
'-ladvapi32.lib',
86+
'-lpsapi.lib',
87+
'-lkernel32.lib',
88+
'-luserenv.lib',
8189
],
8290
} ],
8391
],
@@ -133,7 +141,7 @@
133141

134142
[ 'platform != "desktop"', {
135143
'variables': {
136-
'QT_BIN_PATH': '<(CISCO_QT_BIN_PATH)',
144+
'QT_BIN_PATH': '<(CISCO_QT_BIN_PATH)',
137145
'QT_INC_PATH': '<(CISCO_QT_INC_PATH)',
138146
'QT_LIB_PATH': '<(CISCO_QT_LIB_PATH)',
139147
'MONGOOSE_INC_PATH': '<(CISCO_MONGOOSE_INC_PATH)',
@@ -157,6 +165,7 @@
157165
'QT_GUI_LIB',
158166
'QT_CORE_LIB',
159167
'QT_SHARED',
168+
'QT_NO_OPENGL',
160169
],
161170

162171
'conditions': [

0 commit comments

Comments
 (0)