summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorKonstantin Tokarev <annulen@yandex.ru>2016-11-22 08:08:05 +0300
committerKonstantin Tokarev <annulen@yandex.ru>2017-02-02 12:31:16 +0000
commit1c8f056531c65706b85c44c2db657ea891be868d (patch)
tree29c2cd2bf06230e9e76945990ef9c0e70cfb483e /Tools
parent8f2cfe80a5fb6632b4bbb9181db28f0505058128 (diff)
Imported WebKit commit a16099e901e36e6d298dd30c0694a2130052d70e
Change-Id: I484731400983d1d964bdcf4afc4007f41ca1bb8a Reviewed-by: Konstantin Tokarev <annulen@yandex.ru>
Diffstat (limited to 'Tools')
-rw-r--r--Tools/PlatformQt.cmake12
-rw-r--r--Tools/qmake/projects/run_cmake.pro29
2 files changed, 29 insertions, 12 deletions
diff --git a/Tools/PlatformQt.cmake b/Tools/PlatformQt.cmake
index 4894e4b69..5b1783887 100644
--- a/Tools/PlatformQt.cmake
+++ b/Tools/PlatformQt.cmake
@@ -1,6 +1,10 @@
-add_subdirectory(DumpRenderTree)
-add_subdirectory(ImageDiff)
-if (ENABLE_TEST_SUPPORT)
+add_subdirectory(QtTestBrowser)
+
+if (ENABLE_API_TESTS)
add_subdirectory(TestWebKitAPI)
- add_subdirectory(QtTestBrowser)
+endif ()
+
+if (ENABLE_TEST_SUPPORT)
+ add_subdirectory(DumpRenderTree)
+ add_subdirectory(ImageDiff)
endif ()
diff --git a/Tools/qmake/projects/run_cmake.pro b/Tools/qmake/projects/run_cmake.pro
index d564ad262..55e4ccc17 100644
--- a/Tools/qmake/projects/run_cmake.pro
+++ b/Tools/qmake/projects/run_cmake.pro
@@ -20,38 +20,51 @@ build_pass|!debug_and_release {
CMAKE_TOOLCHAIN_FILE=$$toolchain_file \
CMAKE_PREFIX_PATH=\"$$[QT_INSTALL_PREFIX];$$ROOT_QT_BUILD_DIR/qtbase;$$ROOT_QT_BUILD_DIR/qtlocation;$$ROOT_QT_BUILD_DIR/qtsensors\" \
CMAKE_INSTALL_PREFIX=\"$$[QT_INSTALL_PREFIX]\" \
- KDE_INSTALL_LIBDIR=\"$$relative_path($$[QT_INSTALL_LIBS], $$[QT_INSTALL_PREFIX])\" \
+ ENABLE_TEST_SUPPORT=OFF \
USE_LIBHYPHEN=OFF
QT_FOR_CONFIG += gui-private
!qtConfig(system-jpeg):exists($$QTBASE_DIR) {
CMAKE_CONFIG += \
QT_BUNDLED_JPEG=1 \
- JPEG_INCLUDE_DIR=$$system_path($$QTBASE_DIR/src/3rdparty/libjpeg) \
- JPEG_LIBRARIES=$$system_path($$ROOT_BUILD_DIR/lib/libqtjpeg.$$QMAKE_EXTENSION_STATICLIB)
+ JPEG_INCLUDE_DIR=$$QTBASE_DIR/src/3rdparty/libjpeg \
+ JPEG_LIBRARIES=$$ROOT_BUILD_DIR/lib/$${QMAKE_PREFIX_STATICLIB}qtjpeg.$$QMAKE_EXTENSION_STATICLIB
}
!qtConfig(system-png):qtConfig(png):exists($$QTBASE_DIR) {
CMAKE_CONFIG += \
QT_BUNDLED_PNG=1 \
- PNG_INCLUDE_DIRS=$$system_path($$QTBASE_DIR/src/3rdparty/libpng) \
- PNG_LIBRARIES=$$system_path($$ROOT_BUILD_DIR/lib/libqtpng.$$QMAKE_EXTENSION_STATICLIB)
+ PNG_INCLUDE_DIRS=$$QTBASE_DIR/src/3rdparty/libpng \
+ PNG_LIBRARIES=$$ROOT_BUILD_DIR/lib/$${QMAKE_PREFIX_STATICLIB}qtpng.$$QMAKE_EXTENSION_STATICLIB
}
!qtConfig(system-zlib):exists($$QTBASE_DIR) {
CMAKE_CONFIG += \
QT_BUNDLED_ZLIB=1 \
- ZLIB_INCLUDE_DIRS=$$system_path($$QTBASE_DIR/src/3rdparty/zlib)
+ ZLIB_INCLUDE_DIRS=$$QTBASE_DIR/src/3rdparty/zlib
}
- equals(QMAKE_HOST.os, Windows): cmake_args += "-G \"NMake Makefiles JOM\""
+ equals(QMAKE_HOST.os, Windows) {
+ if(equals(MAKEFILE_GENERATOR, MSVC.NET)|equals(MAKEFILE_GENERATOR, MSBUILD)) {
+ cmake_generator = "NMake Makefiles JOM"
+ } else: if(equals(MAKEFILE_GENERATOR, MINGW)) {
+ cmake_generator = "MinGW Makefiles"
+ } else {
+ cmake_generator = "Unix Makefiles"
+ }
+ cmake_args += "-G \"$$cmake_generator\""
+ }
!silent: make_args += "VERBOSE=1"
# Append additional platform options defined in CMAKE_CONFIG
for (config, CMAKE_CONFIG): cmake_args += "-D$$config"
- cmake_cmd_base = "$$QMAKE_MKDIR $$cmake_build_dir && cd $$cmake_build_dir &&"
+ !exists($$cmake_build_dir) {
+ !system("$$QMAKE_MKDIR $$cmake_build_dir"): error("Failed to create cmake build directory")
+ }
+
+ cmake_cmd_base = "cd $$cmake_build_dir &&"
log("$${EOL}Running $$cmake_env cmake $$ROOT_WEBKIT_DIR $$cmake_args $${EOL}$${EOL}")
!system("$$cmake_cmd_base $$cmake_env cmake $$ROOT_WEBKIT_DIR $$cmake_args"): error("Running cmake failed")