summaryrefslogtreecommitdiff
path: root/Tools/qmake
diff options
context:
space:
mode:
authorKonstantin Tokarev <annulen@yandex.ru>2016-08-25 19:20:41 +0300
committerKonstantin Tokarev <annulen@yandex.ru>2017-02-02 12:30:55 +0000
commit6882a04fb36642862b11efe514251d32070c3d65 (patch)
treeb7959826000b061fd5ccc7512035c7478742f7b0 /Tools/qmake
parentab6df191029eeeb0b0f16f127d553265659f739e (diff)
downloadqtwebkit-6882a04fb36642862b11efe514251d32070c3d65.tar.gz
Imported QtWebKit TP3 (git b57bc6801f1876c3220d5a4bfea33d620d477443)
Change-Id: I3b1d8a2808782c9f34d50240000e20cb38d3680f Reviewed-by: Konstantin Tokarev <annulen@yandex.ru>
Diffstat (limited to 'Tools/qmake')
-rw-r--r--Tools/qmake/.qmake.cache0
-rw-r--r--Tools/qmake/.qmake.conf2
-rw-r--r--Tools/qmake/README78
-rw-r--r--Tools/qmake/config.tests/README4
-rw-r--r--Tools/qmake/config.tests/fontconfig/fontconfig.cpp31
-rw-r--r--Tools/qmake/config.tests/fontconfig/fontconfig.pro4
-rw-r--r--Tools/qmake/config.tests/gccdepends/empty.cpp0
-rw-r--r--Tools/qmake/config.tests/gccdepends/gccdepends.pro34
-rw-r--r--Tools/qmake/config.tests/glx/glx.cpp36
-rw-r--r--Tools/qmake/config.tests/glx/glx.pro4
-rw-r--r--Tools/qmake/config.tests/gnuld/gnuld.pro4
-rw-r--r--Tools/qmake/config.tests/gnuld/main.cpp5
-rw-r--r--Tools/qmake/config.tests/icu/icu.cpp46
-rw-r--r--Tools/qmake/config.tests/icu/icu.pro22
-rw-r--r--Tools/qmake/config.tests/leveldb/leveldb.cpp28
-rw-r--r--Tools/qmake/config.tests/leveldb/leveldb.pro5
-rw-r--r--Tools/qmake/config.tests/libXcomposite/libXcomposite.cpp36
-rw-r--r--Tools/qmake/config.tests/libXcomposite/libXcomposite.pro3
-rw-r--r--Tools/qmake/config.tests/libXrender/libXrender.cpp37
-rw-r--r--Tools/qmake/config.tests/libXrender/libXrender.pro3
-rw-r--r--Tools/qmake/config.tests/libsqlite3/libsqlite3.cpp34
-rw-r--r--Tools/qmake/config.tests/libsqlite3/libsqlite3.pro5
-rw-r--r--Tools/qmake/config.tests/libwebp/libwebp.cpp33
-rw-r--r--Tools/qmake/config.tests/libwebp/libwebp.pro5
-rw-r--r--Tools/qmake/config.tests/libxml2/libxml2.cpp33
-rw-r--r--Tools/qmake/config.tests/libxml2/libxml2.pro9
-rw-r--r--Tools/qmake/config.tests/libxslt/libxslt.cpp33
-rw-r--r--Tools/qmake/config.tests/libxslt/libxslt.pro9
-rw-r--r--Tools/qmake/config.tests/libzlib/libzlib.cpp32
-rw-r--r--Tools/qmake/config.tests/libzlib/libzlib.pro10
-rw-r--r--Tools/qmake/dump-features.pl27
-rw-r--r--Tools/qmake/mkspecs/features/configure.prf296
-rw-r--r--Tools/qmake/mkspecs/features/default_post.prf320
-rw-r--r--Tools/qmake/mkspecs/features/default_pre.prf113
-rw-r--r--Tools/qmake/mkspecs/features/features.prf189
-rw-r--r--Tools/qmake/mkspecs/features/features.pri129
-rw-r--r--Tools/qmake/mkspecs/features/force_static_libs_as_shared.prf22
-rw-r--r--Tools/qmake/mkspecs/features/functions.prf405
-rw-r--r--Tools/qmake/mkspecs/features/gprof.prf11
-rw-r--r--Tools/qmake/mkspecs/features/icc.prf8
-rw-r--r--Tools/qmake/mkspecs/features/mac/default_post.prf10
-rw-r--r--Tools/qmake/mkspecs/features/mac/default_pre.prf12
-rw-r--r--Tools/qmake/mkspecs/features/minimal_qt.prf32
-rw-r--r--Tools/qmake/mkspecs/features/production_build.prf17
-rw-r--r--Tools/qmake/mkspecs/features/rpath.prf25
-rw-r--r--Tools/qmake/mkspecs/features/unix/default_post.prf71
-rw-r--r--Tools/qmake/mkspecs/features/unix/default_pre.prf18
-rw-r--r--Tools/qmake/mkspecs/features/use_all_in_one_files.prf28
-rw-r--r--Tools/qmake/mkspecs/features/valgrind.prf11
-rw-r--r--Tools/qmake/mkspecs/features/webkit_modules.prf51
-rw-r--r--Tools/qmake/mkspecs/features/win32/default_post.prf45
-rw-r--r--Tools/qmake/mkspecs/features/win32/default_pre.prf10
-rw-r--r--Tools/qmake/mkspecs/modules/angle.prf9
-rw-r--r--Tools/qmake/mkspecs/modules/javascriptcore.prf10
-rw-r--r--Tools/qmake/mkspecs/modules/leveldb.prf9
-rw-r--r--Tools/qmake/mkspecs/modules/webcore.prf9
-rw-r--r--Tools/qmake/mkspecs/modules/webkit1.prf9
-rw-r--r--Tools/qmake/mkspecs/modules/webkit2.prf9
-rw-r--r--Tools/qmake/mkspecs/modules/wtf.prf9
59 files changed, 0 insertions, 2499 deletions
diff --git a/Tools/qmake/.qmake.cache b/Tools/qmake/.qmake.cache
deleted file mode 100644
index e69de29bb..000000000
--- a/Tools/qmake/.qmake.cache
+++ /dev/null
diff --git a/Tools/qmake/.qmake.conf b/Tools/qmake/.qmake.conf
deleted file mode 100644
index 2f0dc8976..000000000
--- a/Tools/qmake/.qmake.conf
+++ /dev/null
@@ -1,2 +0,0 @@
-# This file is only here to isolate the configure project
-# from the rest of the tree.
diff --git a/Tools/qmake/README b/Tools/qmake/README
deleted file mode 100644
index afc16d887..000000000
--- a/Tools/qmake/README
+++ /dev/null
@@ -1,78 +0,0 @@
-The qmake build system
-======================
-
-Basic structure
----------------
-
-The qmake build is split into three different file types:
-
- * .pro files: These files represent top level targets that can be
- built individually, or a collection of sub-targets used for
- organizing the project.
-
- * .pri files: These files are included from top level targets,
- and represent 'implementation details' of how the target is built.
-
- * .prf files: These files take care of generic build rules
- that applies to all targets, or specific 'features' that can
- be loaded on demand.
-
-The first two file types are spread throughout the source tree, while
-the .prf files are located in 'Tools/qmake/mkspecs/features' and will
-get loaded by qmake based on setting the QMAKEPATH environment variable.
-
-
-Root project file
------------------
-
-The root project file 'WebKit.pro' is handy both for loading WebKit
-in Qt Creator, and for building QtWebKit. Normally you will build
-using build-webkit, but you can also run qmake directly on the root
-project file. Just make sure to set QMAKEPATH first, so that the
-custom mkspecs are picked up.
-
-Feature files
--------------
-
-Feature files (.prf files) are used in the following ways:
-
- 1. Every time qmake parses a project file, it will first load
- a special feature file called 'defaults_pre.prf', then parse
- the project file, and then load another special feature file
- called 'defaults_post.prf'. We use these special files to set
- default options that all project files use, expose a few handy
- functions, and to post-process the build config based on what
- the project file did.
-
- 2. Dependencies on other targets (libraries) are declared by
- using CONFIG+=othertarget. This will add the correct include
- paths and linker options to use the library.
-
- 3. Optional features can be enabled by passing CONFIG+=foo on
- the command line when running qmake on the root project file,
- (or by passing --make-args="CONFIG+=foo" to build-webkit). For
- example 'CONFIG+=valgrind'.
-
-
-Derived sources
----------------
-
-Some targets (JavaScriptCore, WebCore, etc) rely on generated files,
-(aka. derived sources). These must be generated before the real target
-is built. This is achieved by splitting the target up into two sub-
-projects, one for the derived sources and one for the real target,
-and telling qmake to build them in order using CONFIG += ordered.
-
-
-The WEBKIT variable
--------------------
-
-The custom qmake variable 'WEBKIT' is used for signaling that a
-target depends in some way on other subproject of the WebKit
-project. For now this is limited to the set of intermediate
-libraries: wtf, javascriptcore, webcore, and webkit2.
-
-Adding a dependency results in additional include paths being
-available, and potentially linking to the library. This is
-decided by the build system based on conditions such as what
-kind of target is being built and the general build config.
diff --git a/Tools/qmake/config.tests/README b/Tools/qmake/config.tests/README
deleted file mode 100644
index 4a3708856..000000000
--- a/Tools/qmake/config.tests/README
+++ /dev/null
@@ -1,4 +0,0 @@
-This directory is used for configure-style checks that are run by
-syncqt during processing of configure.pro in the parent directory.
-
-Note: This feature is available in Qt 5 only.
diff --git a/Tools/qmake/config.tests/fontconfig/fontconfig.cpp b/Tools/qmake/config.tests/fontconfig/fontconfig.cpp
deleted file mode 100644
index 2d43ed149..000000000
--- a/Tools/qmake/config.tests/fontconfig/fontconfig.cpp
+++ /dev/null
@@ -1,31 +0,0 @@
-/*
- * Copyright (C) 2011 University of Szeged. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#include <fontconfig/fontconfig.h>
-
-int main(int, char**)
-{
- FcInit();
-}
diff --git a/Tools/qmake/config.tests/fontconfig/fontconfig.pro b/Tools/qmake/config.tests/fontconfig/fontconfig.pro
deleted file mode 100644
index 6306fd1e8..000000000
--- a/Tools/qmake/config.tests/fontconfig/fontconfig.pro
+++ /dev/null
@@ -1,4 +0,0 @@
-CONFIG -= qt
-SOURCES = fontconfig.cpp
-CONFIG += link_pkgconfig
-PKGCONFIG += fontconfig
diff --git a/Tools/qmake/config.tests/gccdepends/empty.cpp b/Tools/qmake/config.tests/gccdepends/empty.cpp
deleted file mode 100644
index e69de29bb..000000000
--- a/Tools/qmake/config.tests/gccdepends/empty.cpp
+++ /dev/null
diff --git a/Tools/qmake/config.tests/gccdepends/gccdepends.pro b/Tools/qmake/config.tests/gccdepends/gccdepends.pro
deleted file mode 100644
index cd0a81a32..000000000
--- a/Tools/qmake/config.tests/gccdepends/gccdepends.pro
+++ /dev/null
@@ -1,34 +0,0 @@
-TEMPLATE = aux
-OBJECTS_DIR = obj
-QMAKE_CXXFLAGS += -MD
-
-base_filename = empty
-object_file = $$OBJECTS_DIR/$${base_filename}.o
-deps_filename = $${base_filename}.d
-
-SOURCES += $${base_filename}.cpp
-
-test.commands = \
- # Earlier teambuilder and icecream versions would not
- # respect the -o argument for the .d file, so the file
- # would end up in the root build dir.
- test ! -f $${deps_filename} && \
- \
- # But it should end up in the OBJECTS_DIR
- test -f $$OBJECTS_DIR/$${deps_filename} && \
- \
- # Icecream 0.9.7 and earlier does not ensure that the
- # target rule matches the path of the .o file, since
- # the file is compiled into the current dir and then
- # moved. Verify that we don't hit that case.
- grep -q \"$${object_file}:\" $$OBJECTS_DIR/$${deps_filename} && \
- \
- # If everything is all right we mark the test as succeeded
- echo success > $$basename(PWD)
-
-test.depends = $${object_file}
-QMAKE_EXTRA_TARGETS += test
-
-default.target = all
-default.depends += test
-QMAKE_EXTRA_TARGETS += default
diff --git a/Tools/qmake/config.tests/glx/glx.cpp b/Tools/qmake/config.tests/glx/glx.cpp
deleted file mode 100644
index 9dcfd178c..000000000
--- a/Tools/qmake/config.tests/glx/glx.cpp
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#include <GL/glx.h>
-
-int main(int, char**)
-{
- Display* display = XOpenDisplay(0);
- int items = 0;
- (void)glXChooseFBConfig(display, DefaultScreen(display), 0, &items);
- XCloseDisplay(display);
-
- return 0;
-}
diff --git a/Tools/qmake/config.tests/glx/glx.pro b/Tools/qmake/config.tests/glx/glx.pro
deleted file mode 100644
index 4e8100043..000000000
--- a/Tools/qmake/config.tests/glx/glx.pro
+++ /dev/null
@@ -1,4 +0,0 @@
-SOURCES = glx.cpp
-OBJECTS_DIR = obj
-LIBS += -lX11 -lGL
-
diff --git a/Tools/qmake/config.tests/gnuld/gnuld.pro b/Tools/qmake/config.tests/gnuld/gnuld.pro
deleted file mode 100644
index c239f13e1..000000000
--- a/Tools/qmake/config.tests/gnuld/gnuld.pro
+++ /dev/null
@@ -1,4 +0,0 @@
-TEMPLATE = app
-TARGET = gnuld
-SOURCES = main.cpp
-QMAKE_LFLAGS += -Wl,--no-keep-memory
diff --git a/Tools/qmake/config.tests/gnuld/main.cpp b/Tools/qmake/config.tests/gnuld/main.cpp
deleted file mode 100644
index 31a133726..000000000
--- a/Tools/qmake/config.tests/gnuld/main.cpp
+++ /dev/null
@@ -1,5 +0,0 @@
-
-int main()
-{
- return 0;
-}
diff --git a/Tools/qmake/config.tests/icu/icu.cpp b/Tools/qmake/config.tests/icu/icu.cpp
deleted file mode 100644
index c1e6c6afa..000000000
--- a/Tools/qmake/config.tests/icu/icu.cpp
+++ /dev/null
@@ -1,46 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2015 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the config.tests of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:LGPL21$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see http://www.qt.io/terms-conditions. For further
-** information use the contact form at http://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 2.1 or version 3 as published by the Free
-** Software Foundation and appearing in the file LICENSE.LGPLv21 and
-** LICENSE.LGPLv3 included in the packaging of this file. Please review the
-** following information to ensure the GNU Lesser General Public License
-** requirements will be met: https://www.gnu.org/licenses/lgpl.html and
-** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
-**
-** As a special exception, The Qt Company gives you certain additional
-** rights. These rights are described in The Qt Company LGPL Exception
-** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#include <unicode/utypes.h>
-#include <unicode/ucol.h>
-#include <unicode/ustring.h>
-
-int main(int, char **)
-{
- UErrorCode status = U_ZERO_ERROR;
- UCollator *collator = ucol_open("ru_RU", &status);
- if (U_FAILURE(status))
- return 0;
- ucol_close(collator);
- return 0;
-}
diff --git a/Tools/qmake/config.tests/icu/icu.pro b/Tools/qmake/config.tests/icu/icu.pro
deleted file mode 100644
index ce3780a33..000000000
--- a/Tools/qmake/config.tests/icu/icu.pro
+++ /dev/null
@@ -1,22 +0,0 @@
-SOURCES = icu.cpp
-CONFIG += console
-CONFIG -= qt dylib
-
-win32 {
- CONFIG(static, static|shared) {
- LIBS += $$QMAKE_LIBS_CORE
- CONFIG(debug, debug|release) {
- LIBS += -lsicuind -lsicuucd -lsicudtd
- } else {
- LIBS += -lsicuin -lsicuuc -lsicudt
- }
- } else {
- LIBS += -licuin -licuuc -licudt
- }
-} else:!contains(QT_CONFIG,no-pkg-config):packagesExist("icu-i18n") {
- PKGCONFIG += icu-i18n
-} else {
- LIBS += -licui18n -licuuc -licudata
-}
-
-load(qt_build_config)
diff --git a/Tools/qmake/config.tests/leveldb/leveldb.cpp b/Tools/qmake/config.tests/leveldb/leveldb.cpp
deleted file mode 100644
index 503a078a2..000000000
--- a/Tools/qmake/config.tests/leveldb/leveldb.cpp
+++ /dev/null
@@ -1,28 +0,0 @@
-/*
- Copyright (C) 2015 The Qt Company Ltd
-
- This library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Library General Public
- License as published by the Free Software Foundation; either
- version 2 of the License, or (at your option) any later version.
-
- This library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Library General Public License for more details.
-
- You should have received a copy of the GNU Library General Public License
- along with this library; see the file COPYING.LIB. If not, write to
- the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
- Boston, MA 02110-1301, USA.
-*/
-
-#include <leveldb/db.h>
-#include <leveldb/env.h>
-#include <helpers/memenv/memenv.h>
-
-int main(int, char**)
-{
- leveldb::Env* inMemoryEnv = leveldb::NewMemEnv(leveldb::Env::Default());
- return !inMemoryEnv;
-}
diff --git a/Tools/qmake/config.tests/leveldb/leveldb.pro b/Tools/qmake/config.tests/leveldb/leveldb.pro
deleted file mode 100644
index f28cfd155..000000000
--- a/Tools/qmake/config.tests/leveldb/leveldb.pro
+++ /dev/null
@@ -1,5 +0,0 @@
-SOURCES = leveldb.cpp
-OBJECTS_DIR = obj
-LIBS += -lleveldb -lmemenv
-
-load(qt_build_config)
diff --git a/Tools/qmake/config.tests/libXcomposite/libXcomposite.cpp b/Tools/qmake/config.tests/libXcomposite/libXcomposite.cpp
deleted file mode 100644
index 10e1054bd..000000000
--- a/Tools/qmake/config.tests/libXcomposite/libXcomposite.cpp
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#include <X11/extensions/Xcomposite.h>
-
-int main(int, char**)
-{
- Display* display = XOpenDisplay(0);
- int majorVersion;
- int minorVersion;
- (void)XCompositeQueryVersion(display, &majorVersion, &minorVersion);
- XCloseDisplay(display);
- return 0;
-}
diff --git a/Tools/qmake/config.tests/libXcomposite/libXcomposite.pro b/Tools/qmake/config.tests/libXcomposite/libXcomposite.pro
deleted file mode 100644
index 96c5c2937..000000000
--- a/Tools/qmake/config.tests/libXcomposite/libXcomposite.pro
+++ /dev/null
@@ -1,3 +0,0 @@
-SOURCES = libXcomposite.cpp
-OBJECTS_DIR = obj
-LIBS += -lXcomposite -lX11
diff --git a/Tools/qmake/config.tests/libXrender/libXrender.cpp b/Tools/qmake/config.tests/libXrender/libXrender.cpp
deleted file mode 100644
index ae2455bd2..000000000
--- a/Tools/qmake/config.tests/libXrender/libXrender.cpp
+++ /dev/null
@@ -1,37 +0,0 @@
-/*
- * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#include <X11/extensions/Xrender.h>
-
-int main(int, char**)
-{
- Display* display = XOpenDisplay(0);
- int eventBasep;
- int errorBasep;
- if (!XRenderQueryExtension(display, &eventBasep, &errorBasep))
- return -1;
- return 0;
-}
-
diff --git a/Tools/qmake/config.tests/libXrender/libXrender.pro b/Tools/qmake/config.tests/libXrender/libXrender.pro
deleted file mode 100644
index b3cb1e4b5..000000000
--- a/Tools/qmake/config.tests/libXrender/libXrender.pro
+++ /dev/null
@@ -1,3 +0,0 @@
-SOURCES = libXrender.cpp
-OBJECTS_DIR = obj
-LIBS += -lXrender -lX11
diff --git a/Tools/qmake/config.tests/libsqlite3/libsqlite3.cpp b/Tools/qmake/config.tests/libsqlite3/libsqlite3.cpp
deleted file mode 100644
index 34434d195..000000000
--- a/Tools/qmake/config.tests/libsqlite3/libsqlite3.cpp
+++ /dev/null
@@ -1,34 +0,0 @@
-/*
- * Copyright (C) 2016 Konstantin Tokavev <annulen@yandex.ru>
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#include <sqlite3.h>
-
-int main(int, char**)
-{
- sqlite3 *db;
- sqlite3_open("data.db", &db);
- sqlite3_close(db);
- return 0;
-}
diff --git a/Tools/qmake/config.tests/libsqlite3/libsqlite3.pro b/Tools/qmake/config.tests/libsqlite3/libsqlite3.pro
deleted file mode 100644
index 2c39c5266..000000000
--- a/Tools/qmake/config.tests/libsqlite3/libsqlite3.pro
+++ /dev/null
@@ -1,5 +0,0 @@
-SOURCES = libsqlite3.cpp
-OBJECTS_DIR = obj
-LIBS += -lsqlite3
-
-load(qt_build_config)
diff --git a/Tools/qmake/config.tests/libwebp/libwebp.cpp b/Tools/qmake/config.tests/libwebp/libwebp.cpp
deleted file mode 100644
index 974603d3b..000000000
--- a/Tools/qmake/config.tests/libwebp/libwebp.cpp
+++ /dev/null
@@ -1,33 +0,0 @@
-/*
- * Copyright (C) Zoltan Horvath (zoltan@webkit.org) 2012 University of Szeged.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#include "webp/decode.h"
-
-int main(int, char**)
-{
- WebPDecoderConfig config;
- WebPInitDecoderConfig(&config);
- return 0;
-}
diff --git a/Tools/qmake/config.tests/libwebp/libwebp.pro b/Tools/qmake/config.tests/libwebp/libwebp.pro
deleted file mode 100644
index 700c44df6..000000000
--- a/Tools/qmake/config.tests/libwebp/libwebp.pro
+++ /dev/null
@@ -1,5 +0,0 @@
-SOURCES = libwebp.cpp
-OBJECTS_DIR = obj
-LIBS += -lwebp
-
-load(qt_build_config)
diff --git a/Tools/qmake/config.tests/libxml2/libxml2.cpp b/Tools/qmake/config.tests/libxml2/libxml2.cpp
deleted file mode 100644
index 2117b5b41..000000000
--- a/Tools/qmake/config.tests/libxml2/libxml2.cpp
+++ /dev/null
@@ -1,33 +0,0 @@
-/*
- * Copyright (C) 2011 University of Szeged. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#include <libxml/xmlreader.h>
-
-int main(int, char**)
-{
- xmlTextReaderSetup(0, 0, 0, 0, 0);
- return 0;
-}
-
diff --git a/Tools/qmake/config.tests/libxml2/libxml2.pro b/Tools/qmake/config.tests/libxml2/libxml2.pro
deleted file mode 100644
index ebeb1cbd6..000000000
--- a/Tools/qmake/config.tests/libxml2/libxml2.pro
+++ /dev/null
@@ -1,9 +0,0 @@
-CONFIG -= qt
-SOURCES = libxml2.cpp
-mac {
- QMAKE_CXXFLAGS += -iwithsysroot /usr/include/libxml2
- LIBS += -lxml2
-} else {
- PKGCONFIG += libxml-2.0
- CONFIG += link_pkgconfig
-}
diff --git a/Tools/qmake/config.tests/libxslt/libxslt.cpp b/Tools/qmake/config.tests/libxslt/libxslt.cpp
deleted file mode 100644
index a1dedb374..000000000
--- a/Tools/qmake/config.tests/libxslt/libxslt.cpp
+++ /dev/null
@@ -1,33 +0,0 @@
-/*
- * Copyright (C) 2011 University of Szeged. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#include <libxslt/xsltutils.h>
-
-int main(int, char**)
-{
- xslAddCall(0, 0);
- return 0;
-}
-
diff --git a/Tools/qmake/config.tests/libxslt/libxslt.pro b/Tools/qmake/config.tests/libxslt/libxslt.pro
deleted file mode 100644
index cd25f2a83..000000000
--- a/Tools/qmake/config.tests/libxslt/libxslt.pro
+++ /dev/null
@@ -1,9 +0,0 @@
-CONFIG -= qt
-SOURCES = libxslt.cpp
-mac {
- QMAKE_CXXFLAGS += -iwithsysroot /usr/include/libxslt -iwithsysroot /usr/include/libxml2
- LIBS += -lxslt
-} else {
- PKGCONFIG += libxslt
- CONFIG += link_pkgconfig
-}
diff --git a/Tools/qmake/config.tests/libzlib/libzlib.cpp b/Tools/qmake/config.tests/libzlib/libzlib.cpp
deleted file mode 100644
index 6beab57dc..000000000
--- a/Tools/qmake/config.tests/libzlib/libzlib.cpp
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#include <zlib.h>
-
-int main(int, char**)
-{
- (void)zlibVersion();
- return 0;
-}
diff --git a/Tools/qmake/config.tests/libzlib/libzlib.pro b/Tools/qmake/config.tests/libzlib/libzlib.pro
deleted file mode 100644
index 2ffc15930..000000000
--- a/Tools/qmake/config.tests/libzlib/libzlib.pro
+++ /dev/null
@@ -1,10 +0,0 @@
-SOURCES = libzlib.cpp
-OBJECTS_DIR = obj
-CONFIG += console
-if(unix|mingw):LIBS += -lz
-else {
- isEmpty(ZLIB_LIBS): LIBS += zdll.lib
- else: LIBS += $$ZLIB_LIBS
-}
-
-load(qt_build_config)
diff --git a/Tools/qmake/dump-features.pl b/Tools/qmake/dump-features.pl
deleted file mode 100644
index f026430f0..000000000
--- a/Tools/qmake/dump-features.pl
+++ /dev/null
@@ -1,27 +0,0 @@
-#!/usr/bin/perl -w
-
-use strict;
-use warnings;
-
-use FeatureList;
-
-foreach my $feature (getFeatureOptionList())
-{
- next if $feature->{'option'} eq 'system-malloc';
-
- my $desc = $feature->{'desc'};
- $desc =~ s/^Toggle\s//;
- $desc =~ s/\ssupport$//;
- $desc = ucfirst($desc);
-
- $desc .= ' ' . '.' x (30 - length($desc));
- $desc =~ s/\s/_/g;
-
- my $define = $feature->{'define'};
- $define =~ s/^ENABLE_//;
- $define = lc($define);
-
- $desc .= "=$define";
-
- print "$desc "
-}
diff --git a/Tools/qmake/mkspecs/features/configure.prf b/Tools/qmake/mkspecs/features/configure.prf
deleted file mode 100644
index b5fb2aed8..000000000
--- a/Tools/qmake/mkspecs/features/configure.prf
+++ /dev/null
@@ -1,296 +0,0 @@
-# -------------------------------------------------------------------
-# This file does basic 'configure' style checks to determine the
-# set of enable/use/have defines and their values.
-#
-# See 'Tools/qmake/README' for an overview of the build system
-# -------------------------------------------------------------------
-
-# This file is read after .qmake.cache, but before command line options,
-# which means we might have a config from a previous build.
-
-load(features)
-load(configure)
-
-WEBKIT_TOOLS_CONFIG = \
- build_drt \
- build_wtr \
- build_imagediff \
- build_test_npapi \
- build_testbrowser \
- build_minibrowser \
- build_qttestsupport
-
-defineTest(runConfigure) {
- !webkit_configured:!print_defaults {
- log($${EOL}Running configure tests...$${EOL}$${EOL})
- QMAKE_CONFIG_TESTS_DIR = $$ROOT_WEBKIT_DIR/Tools/qmake/config.tests
- CONFIG_TESTS = $$files($$QMAKE_CONFIG_TESTS_DIR/*.pro, true)
- for(test, CONFIG_TESTS) {
- test = $$basename(test)
- test ~= s/\\.pro$//
- qtCompileTest($$test)
- }
- } else {
- CONFIG += skipped_config_tests
-
- # Save and reset configuration from .qmake.cache, so that we can
- # detect changes to the configuration and abort the build.
- PREVIOUS_WEBKIT_CONFIG = $$WEBKIT_CONFIG
- unset(WEBKIT_CONFIG)
- export(PREVIOUS_WEBKIT_CONFIG)
- }
-
- # Running feature detection inside a function ensures that we only
- # export WEBKIT_CONFIG, and don not mess up any other variables.
- detectFeatures()
-
- # Set up a base list of optional things to build, which we later on
- # sanitize based on constraints of the platform.
-
- WEBKIT_CONFIG += \
- build_webkit1 \
- build_webkit2 \
- build_tests \
- $$WEBKIT_TOOLS_CONFIG
-
- # Sanatize WebKit1/WebKit2, as WebKit.pro uses these two options
- # to determine which pro-files to include. The remaining sanitazion
- # is done when finalizing configure.
-
- !qtHaveModule(widgets) {
- CONFIGURE_WARNINGS += "Missing QtWidgets module, disabling WebKit1"
- WEBKIT_CONFIG -= build_webkit1
- }
-
- # WebKit2 requires OpenGL TextureMapper, which requires 3D Graphics
- !use?(3d_graphics): WEBKIT_CONFIG -= build_webkit2
-
- export(CONFIG)
- export(WEBKIT_CONFIG)
- export(CONFIGURE_WARNINGS)
-}
-
-defineReplace(configEnabled) {
- trueValue = $$2
- isEmpty(trueValue): trueValue = yes
-
- falseValue = $$3
- isEmpty(falseValue): falseValue = no
-
- $$1: return($$trueValue)
- return($$falseValue)
-}
-
-# This is called from default_post, at which point we've also parsed
-# command line options
-defineTest(finalizeConfigure) {
-
- # Sanitize build options
- !qtHaveModule(testlib) {
- CONFIGURE_WARNINGS += "Missing QtTest module, disabling DumpRenderTree, WebKitTestRunner and tests"
- WEBKIT_CONFIG -= build_drt build_wtr build_tests
- }
-
- win32|!enable?(NETSCAPE_PLUGIN_API): WEBKIT_CONFIG -= build_test_npapi
-
- win* {
- WEBKIT_CONFIG -= build_drt
- }
-
- production_build {
- WEBKIT_CONFIG -= $$WEBKIT_TOOLS_CONFIG build_tests
- }
-
- static {
- CONFIGURE_WARNINGS += "QtWebKitQml will not be build. It is not supported with static linking"
- WEBKIT_CONFIG -= build_webkit2 build_minibrowser build_wtr
- }
-
- production_build:qnx {
- CONFIGURE_WARNINGS += "QtWebKitQml will not be build. It is not supported on QNX."
- WEBKIT_CONFIG -= build_webkit2 build_minibrowser build_wtr
- }
-
- # Sanitize clashing options
- sanitizeFeatures()
-
- print_defaults {
- log(DEFINES: $$configDefines()$${EOL})
- error(Done computing defaults)
- }
-
- # Sanity checks that would prevent us from building the whole project altogether.
- !config_icu:!osx:!use?(wchar_unicode) {
- addReasonForSkippingBuild("ICU is required.")
- }
- production_build:blackberry {
- addReasonForSkippingBuild("Build not supported on BB10.")
- }
- production_build:android {
- addReasonForSkippingBuild("Build not supported on Android.")
- }
- production_build:contains(QT_CONFIG, mirclient) {
- addReasonForSkippingBuild("Build not supported on Ubuntu Touch.")
- }
- !gnu_thin_archives:!win32-msvc2013:!mingw:contains(QT_CONFIG, static) {
- addReasonForSkippingBuild("QtWebKit cannot be built as a static library on this platform. Check your configuration in qtbase/config.summary.")
- }
- winrt: addReasonForSkippingBuild("QtWebKit is not supported on Windows Phone/Windows RT")
- requiredPrograms = gperf python perl bison ruby flex
- for(program, requiredPrograms): \
- !programExistsInPath($$program): \
- addReasonForSkippingBuild("Missing $$program from PATH")
-
- requiredModules = gui
- for(module, requiredModules): \
- !qtHaveModule($$module): \
- addReasonForSkippingBuild("QtWebKit depends on $$module for building.")
-
- # Detect changes to the configuration. Changes need a clean build.
- webkit_configured {
- added_features = $$WEBKIT_CONFIG
- added_features -= $$PREVIOUS_WEBKIT_CONFIG
-
- removed_features = $$PREVIOUS_WEBKIT_CONFIG
- removed_features -= $$WEBKIT_CONFIG
-
- !isEmpty(added_features)|!isEmpty(removed_features) {
- CONFIG += configuration_changed
- }
- }
-
- reconfigureMsg = \
- "Reconfiguration likely requires a clean build. You$${QUOTE}ve been warned!" \
- "You may execute $${QUOTE}make wipeclean$${QUOTE} to wipe the build directory."
-
- # Add target for reconfiguring the build
- reconfigure.target = reconfigure
- double_quote = $$escape_expand(\")
- reconfigure.commands = echo > .qmake.cache && $(MAKE) -f $(MAKEFILE) qmake $$EOC
- reconfigure.commands += @echo $${double_quote}WARNING: $$join(reconfigureMsg,\\n,,)\\n$${double_quote}
- QMAKE_EXTRA_TARGETS += reconfigure
- export(reconfigure.target)
- export(reconfigure.commands)
- export(QMAKE_EXTRA_TARGETS)
-
- # Add target for wiping clean the build
- wipeclean.target = wipeclean
- win_cmd_shell: wipeclean.commands = FOR /D %%p IN (*) DO rmdir "%%p" /s /q
- else: wipeclean.commands = $(COPY_FILE) $(MAKEFILE) .$(MAKEFILE) && rm -Rf * && $(MOVE) .$(MAKEFILE) $(MAKEFILE)
- QMAKE_EXTRA_TARGETS += wipeclean
- export(wipeclean.target)
- export(wipeclean.commands)
- export(QMAKE_EXTRA_TARGETS)
-
- # Print a prettified dump of the configuration, for easier debugging
- !webkit_configured|configuration_changed|buildbot {
-
- skipped_config_tests {
- log($${EOL}Skipping configure tests. Execute $${QUOTE}make reconfigure$${QUOTE} to re-run.$${EOL})
- }
-
- leftoverConfig = $$WEBKIT_CONFIG
-
- for(config, WEBKIT_CONFIG) {
- match = $$find(config, "^build_")
- !isEmpty(match) {
- build += $$replace(match, ^build_,)
- leftoverConfig -= $$config
- next()
- }
- match = $$find(config, "^have_")
- !isEmpty(match) {
- have += $$replace(match, ^have_,)
- leftoverConfig -= $$config
- next()
- }
- match = $$find(config, "^use_")
- !isEmpty(match) {
- use += $$replace(match, ^use_,)
- leftoverConfig -= $$config
- }
- }
-
- scripts_dir = $$toSystemPath($$ROOT_WEBKIT_DIR/Tools/Scripts)
- features = $$system(perl -I $${scripts_dir} -I $${scripts_dir}$${QMAKE_DIR_SEP}webkitperl $$toSystemPath($$ROOT_WEBKIT_DIR/Tools/qmake/dump-features.pl))
- for(feature, features) {
- parts = $$split(feature, =)
- desc = $$member(parts, 0, 0)
- desc ~= s/_/ /
- value = $$member(parts, 1, 1)
-
- contains(WEBKIT_CONFIG, $$value) {
- leftoverConfig -= $$value
- value = yes
- } else {
- value = no
- }
-
- featureConfiguration += "$$desc $$value$${EOL}"
- }
-
- log($${EOL}Final configuration:$${EOL}$${EOL})
-
- debug:release:debug_and_release: buildConfig = debug+release
- else: CONFIG(debug, debug|release): buildConfig = debug
- else: buildConfig = release
-
- log(Build ......................... $$build$${EOL})
- log(Configuration ................. $$buildConfig$${EOL})
- log(All-in-one files .............. $$configEnabled(use_all_in_one_files)$$EOL)
- log(GNUmake ....................... $$configEnabled(GNUmake)$$EOL)
- log(Static libs as shared ......... $$configEnabled(force_static_libs_as_shared)$$EOL)
- log(Static libs as thin archives .. $$configEnabled(gnu_thin_archives)$$EOL)
- log(Production build .............. $$configEnabled(production_build)$$EOL)
- log($$EOL)
-
- log(Have .......................... $$have$${EOL})
- log(Use ........................... $$use$${EOL})
- log(Features ...................... $${leftoverConfig}$${EOL})
- log($$EOL)
-
- for(feature, featureConfiguration) {
- log($$feature)
- }
-
- !isEmpty(CONFIGURE_WARNINGS) {
- log("$${EOL}Encountered $$size(CONFIGURE_WARNINGS) configuration warning(s):$${EOL}$${EOL}")
- for(warn, CONFIGURE_WARNINGS) {
- log(" ! $$warn$${EOL}")
- }
- }
-
- !isEmpty(skipBuildReason) {
- log("$${EOL}The WebKit build was disabled for the following reasons: $$skipBuildReason $${EOL}$${EOL}")
- SUBDIRS=
- export(SUBDIRS)
- } else {
- log("$${EOL}WebKit is now configured for building. Just run 'make'.$${EOL}$${EOL}")
- }
-
- configuration_changed {
- log(WARNING: The configuration was changed since the last build:$${EOL}$${EOL})
-
- !isEmpty(added_features): log($${TAB}Added feature(s): $${added_features}$${EOL})
- !isEmpty(removed_features): log($${TAB}Removed feature(s): $${removed_features}$${EOL})
-
- log($$join(reconfigureMsg,$${EOL},$${EOL},$${EOL}$${EOL}))
- }
- }
-
- # Cache the result for all the other project files, and for
- # the next build, so we can detect changes to the config.
- !webkit_configured|configuration_changed {
- !configuration_changed: cache(CONFIG, add, $$list(webkit_configured))
-
- msg = "$${EOL}$${LITERAL_HASH} Configuration changed $$_DATE_"
- write_file($$_QMAKE_CACHE_, msg, append)
-
- !configuration_changed {
- cache(WEBKIT_CONFIG, set, WEBKIT_CONFIG)
- } else {
- !isEmpty(added_features): cache(WEBKIT_CONFIG, add, added_features)
- !isEmpty(removed_features): cache(WEBKIT_CONFIG, sub, removed_features)
- }
- }
-}
diff --git a/Tools/qmake/mkspecs/features/default_post.prf b/Tools/qmake/mkspecs/features/default_post.prf
deleted file mode 100644
index 19313d087..000000000
--- a/Tools/qmake/mkspecs/features/default_post.prf
+++ /dev/null
@@ -1,320 +0,0 @@
-# -------------------------------------------------------------------
-# QtWebKit defaults for qmake. These rules are parsed after the
-# actual project file.
-#
-# See 'Tools/qmake/README' for an overview of the build system
-# -------------------------------------------------------------------
-
-# Flag that we're now done processing the project file. This allows
-# a feature to distinguish between being processed due to a load()
-# or include() and a CONFIG += feature.
-CONFIG += config_step
-
-# Enable dynamic instead of static libraries for development
-# Avoid it with debug_and_release, it can cause the application to load both the debug and release
-# dependent libraries when using frameworks on Mac.
-!production_build:!debug_and_release:!buildbot:!win*: CONFIG += force_static_libs_as_shared
-
-# Don't create .prl files for intermediate libraries because their contents get used when linking against
-# them, breaking "-Wl,-whole-archive -lMyIntermediateLib --Wl,-no-whole-archive"
-staticlib: CONFIG -= create_prl
-
-root_project_file: finalizeConfigure()
-
-# Sanitize build config for single-configuration builds
-!debug|!release {
- # Removing debug_and_release causes issues with lib suffixes when building debug on Windows.
- # Work around it by only removing build_all, and still create the Makefiles for both configurations.
- win32*: CONFIG -= build_all
- else: {
- CONFIG -= debug_and_release
- # Default to release
- !debug:!release: CONFIG += release
- }
-} else:debug_and_release {
- # Only build a single instance of each application
- contains(TEMPLATE, app):!force_build_all {
- CONFIG -= build_all
- }
-}
-
-# General default build tweaks
-DEFINES += \
- BUILDING_QT__=1
-
-CONFIG(release, debug|release): DEFINES *= NDEBUG
-
-DEFINES += $$configDefines()
-
-INCLUDEPATH += \
- $${ROOT_WEBKIT_DIR}/Source \
- $${ROOT_BUILD_DIR}/Source/include
-
-CONFIG -= warn_on
-
-gcc: QMAKE_CXXFLAGS += -fno-strict-aliasing
-
-!compiling_thirdparty_code:*-g++*: QMAKE_CXXFLAGS = \
- -Wall \
- -Wextra \
- -Wreturn-type \
- -Wchar-subscripts \
- -Wformat-security \
- -Wreturn-type \
- -Wno-unused-parameter \
- -Wno-sign-compare \
- -Wno-switch \
- -Wno-switch-enum \
- -Wundef \
- -Wmissing-noreturn \
- -Winit-self \
- $$QMAKE_CXXFLAGS
-
-# Template configurations
-contains(TEMPLATE, derived) {
- # A (mostly) no-op template
- TEMPLATE = aux
-
- # Trick qmake into not generating a default $(DEL_FILE) rule
- CONFIG += compile_libtool
-
- CONFIG -= debug_and_release
-
- fake_debug.target = debug
- fake_debug.depends = first
- QMAKE_EXTRA_TARGETS += fake_debug
- fake_release.target = release
- fake_release.depends = first
- QMAKE_EXTRA_TARGETS += fake_release
-
- # A lot of our code generators require GNU tools, readily available
- # on Linux and Mac OS X. On Windows we do have a convenience copy in
- # Qt5's top-level repository, so let's add that to the PATH if we can
- # find it.
- equals(QMAKE_HOST.os, Windows) {
- GNUTOOLS_DIR=$$[QT_HOST_DATA]/../gnuwin32/bin
- exists($$GNUTOOLS_DIR/gperf.exe) {
- GNUTOOLS = "(set $$escape_expand(\\\")PATH=$$toSystemPath($$GNUTOOLS_DIR);%PATH%$$escape_expand(\\\"))"
- }
- }
-
- for(generator, GENERATORS) {
- eval($${generator}.CONFIG = target_predeps no_link)
- eval($${generator}.dependency_type = TYPE_C)
-
- isEmpty($${generator}.output_function) {
- prependEach($${generator}.output, $${GENERATED_SOURCES_DESTDIR}/)
- }
-
- script = $$eval($${generator}.script)
- eval($${generator}.depends += $$script)
-
- commands = $$eval($${generator}.commands)
- !isEmpty(commands):!isEmpty(GNUTOOLS) {
- eval($${generator}.commands = $${GNUTOOLS} && $$val_escape($${generator}.commands))
- }
-
- !isEmpty($${generator}.input) {
- # Compiler-style generator
- QMAKE_EXTRA_COMPILERS += $$generator
- DEFAULT_TARGETS += compiler_$${generator}_make_all
- } else {
- # Regular target generator
- QMAKE_EXTRA_TARGETS += $$generator
- DEFAULT_TARGETS += $$generator
- }
- }
-} else {
- # Make sure the generated sources are compiled as well
- for(generator, GENERATORS) {
- prependEach($${generator}.extra_sources, $${GENERATED_SOURCES_DESTDIR}/)
- SOURCES += $$eval($${generator}.extra_sources)
-
- isEqual($${generator}.add_output_to_sources, false): next()
-
- output = $$eval($${generator}.output)
- input = $$eval($${generator}.input)
- input_files = $$eval($$input)
- output_variable = $$eval($${generator}.variable_out)
- isEmpty(output_variable): output_variable = SOURCES
-
- isEmpty($${generator}.output_function) {
- prependEach(output, $${GENERATED_SOURCES_DESTDIR}/)
-
- for(input_file, input_files) {
- base = $$basename(input_file)
- base ~= s/\\..+//
- output_file = $$replace(output,\\$\\{QMAKE_FILE_BASE\\}, $$base)
-
- eval($$output_variable += $$output_file)
- }
- } else {
- function = $$eval($${generator}.output_function)
- for(input_file, input_files) {
- eval(output_file = \$\$$$function\($$input_file\))
- eval($$output_variable += $$output_file)
- }
- }
- }
-}
-
-contains(QT, webkit)|contains(QT, webkitwidgets):!isEqual(MODULE, webkitwidgets): {
- # In addition to the main shared QtWebKit library we also
- # need to link to any intermediate shared libraries.
- force_static_libs_as_shared {
- WEBKIT += wtf javascriptcore webcore
- build?(webkit1): WEBKIT += webkit1
- build?(webkit2): WEBKIT += webkit2
- }
-
- # FIXME: Replace this with putting the intermediate libraries in the prl file
-}
-
-defineTest(needToLink) {
- # The main module dynamic library always needs to link in the intermediate libraries
- isEqual(MODULE, webkit): return(true)
-
- force_static_libs_as_shared {
- # So do the individual libraries if they are dynamic
- contains(libraries, $$TARGET): return(true)
-
- # Or anything that uses QtWebKit in this special config
- contains(QT, webkit)|contains(QT, webkitwidgets): return(true)
- }
-
- # Lastly, we allow apps (jsc) to link directly to the intermediate
- # libraries intead of using the exported symbols from QtWebKit.
- contains(TEMPLATE, app):!contains(QT, webkit):!contains(QT, webkitwidgets): return(true)
-
- # Anything else should just get include paths, etc, not link
- return(false)
-}
-
-# Make sure we have loaded the relevant modules, so the include paths,
-# etc, are correct, and we can use WEBKIT.foo.dependent_libs below.
-load(webkit_modules)
-
-# We might need to link against the WebKit intermediate libraries
-needToLink() {
- for(library, WEBKIT) {
- library_identifier = $$lower($$library)
- linkAgainstLibrary($$library, $$eval(WEBKIT.$${library_identifier}.root_source_dir))
- LIBS += $$eval(WEBKIT.$${library_identifier}.dependent_libs)
- }
- posix:!darwin: LIBS += -lpthread
-}
-
-creating_module {
- # Sanitize LIBS, as we don't want any of these libraries
- # to end up in as public API dependenices in the QtWebKit prl file.
- LIBS_PRIVATE += $$LIBS
- unset(LIBS)
- # Copy Qt module dependencies from QT to QT_PRIVATE to ensure the
- # Qt libraries are linked after the private static libraries that
- # depend on them
- QT_PRIVATE += $$QT
-}
-
-equals(_PRO_FILE_, $${ROOT_WEBKIT_DIR}/WebKit.pro):!isEmpty(OVERRIDE_SUBDIRS) {
- # The root WebKit project file is the only one that allows
- # you to pass a set of subtargets on the comand line.
- SUBDIRS = $$OVERRIDE_SUBDIRS
-}
-
-# Remove subdirs that do not exist
-for(subdir, SUBDIRS) {
- path = $$eval($${subdir}.file)
- isEmpty(path): path = $$eval($${subdir}.subdir)
- isEmpty(path): path = $${subdir}
- !exists($${_PRO_FILE_PWD_}$${QMAKE_DIR_SEP}$${path}) {
- #message(Removing invalid subtarget $${subdir} $${path})
- #SUBDIRS -= $${subdir}
- }
-}
-
-root_project_file {
- # Tweak documentation rules so that we only get documentation
- # for the QtWebKit subdir, which means we don't have to run
- # qmake_all and generate all the derived sources, just to
- # build documentation.
- previous_subdir =
- doc_targets = docs install_docs uninstall_docs prepare_docs generate_docs
- for(subdir, SUBDIRS) {
- equals(subdir, QtWebKit) {
- for(doc_target, doc_targets) {
- # Since we use CONFIG += ordered, we need to provide a fake dummy
- # doc-target for the immediate dependency of the QtWebKit target.
- dummy_target = sub-$$replace($${previous_subdir}.file, [^a-zA-Z0-9_], -)-$${doc_target}_ordered
- $${dummy_target}.target = $${dummy_target}
- QMAKE_EXTRA_TARGETS += $${dummy_target}
- }
- } else {
- previous_subdir = $$subdir # Save for later
-
- # For all the other subdirs, we disable docs the regular way
- for(doc_target, doc_targets): $${subdir}.CONFIG += no_$${doc_target}_target
- }
- }
-}
-
-incremental.target = incremental
-incremental.commands = $(MAKE) -f $(MAKEFILE) qmake_all && $(MAKE) -f $(MAKEFILE)
-QMAKE_EXTRA_TARGETS += incremental
-
-contains(TEMPLATE, lib) {
- # Triggers the right export macros for WebKit internals
- # (don't set for Qt modules; qt_module.prf does it)
- !creating_module: DEFINES += BUILDING_$${TARGET}
-
- # Triggers the right export macro for the QtWebKit API (see qwebkitglobal.h)
- !contains(QT, webkit)|equals(MODULE, webkitwidgets): DEFINES += BUILDING_WEBKIT
-
- # Prevent name clashes when building both debug and release. Qt5's module
- # system already takes care of this for the top level QtWebKit library.
- !qt_install_module:debug_and_release: TARGET = $$qtLibraryTarget($$TARGET)
-
- staticlib:gnu_thin_archives {
- # Replace the hardcoded archiver command line
- # options to use GNU ar's thin archive format.
- AR_COMMAND = $$split(QMAKE_AR, " ")
- QMAKE_AR = $$member(AR_COMMAND, 0) cruT
- }
-
- isEmpty(DESTDIR): DESTDIR = $$targetSubDir()
-
- DEFINES += QT_ASCII_CAST_WARNINGS
-
- !plugin {
- contains(QT_CONFIG, reduce_exports):CONFIG += hide_symbols
- unix:contains(QT_CONFIG, reduce_relocations):CONFIG += bsymbolic_functions
- }
-}
-
-# Remove duplicated sources
-SOURCES = $$unique(SOURCES)
-OBJECTIVE_SOURCES = $$unique(OBJECTIVE_SOURCES)
-
-# Someone might remove a header from the tree without touching
-# the corresponding project file, for example if the project
-# file never had the header in HEADERS. In that case we don't
-# want warnings from make about "No rule to make target".
-ignore_missing_headers.target = %.h
-ignore_missing_headers.commands = $${MAKEFILE_NOOP_COMMAND}
-QMAKE_EXTRA_TARGETS += ignore_missing_headers
-
-# Override default target
-build_pass:build_all:default_target.target = all
-else: default_target.target = first
-for(target, $$list($$unique(DEFAULT_TARGETS))) {
- default_target.depends += $$target
-}
-!isEmpty(default_target.depends): QMAKE_EXTRA_TARGETS += default_target
-
-# Qt's debug_and_release config will replace every occurance of
-# Release or Debug in the destination dir. This fails when the
-# desination dir is absolute and contains a static path component
-# that also contains either of those two words, so we make DESTDIR
-# relative.
-DESTDIR = $$replace(DESTDIR, ^$$re_escape($${ROOT_BUILD_DIR}), $${BUILD_ROOT_RELATIVE_TO_OUT_PWD})
-
-load(default_post) # Load Qt's defaults
diff --git a/Tools/qmake/mkspecs/features/default_pre.prf b/Tools/qmake/mkspecs/features/default_pre.prf
deleted file mode 100644
index 221937e85..000000000
--- a/Tools/qmake/mkspecs/features/default_pre.prf
+++ /dev/null
@@ -1,113 +0,0 @@
-# -------------------------------------------------------------------
-# QtWebKit defaults for qmake. These rules are parsed before the
-# actual project file.
-#
-# See 'Tools/qmake/README' for an overview of the build system
-# -------------------------------------------------------------------
-
-# Allow environment tweaks to pre-loaded .qmake.cache content
-env_cache = $$(QMAKE_CACHE_EVAL)
-eval($$env_cache)
-
-load(functions)
-
-# FIXME: In this case we probably want to exit early so that we
-# don't load all of the custom build tweaks needlessly.
-pro_file = $$_PRO_FILE_ # Checking the variable directly does not work
-isEmpty(pro_file): CONFIG += recursive_include
-
-# Resolve root directories for source and build
-ROOT_WEBKIT_DIR = $$replace(PWD, /Tools/qmake/mkspecs/features$,)
-WEBKIT_SUBDIR = $$replace(_PRO_FILE_PWD_, $$re_escape($${ROOT_WEBKIT_DIR}),)
-ROOT_BUILD_DIR = $$replace(OUT_PWD, $$re_escape($${WEBKIT_SUBDIR})$,)
-
-# Now we're ready to load default_pre from Qt
-load(default_pre)
-
-equals(OUT_PWD, $${ROOT_BUILD_DIR}) {
- !recursive_include:CONFIG += root_project_file
- BUILD_ROOT_RELATIVE_TO_OUT_PWD = .
-} else {
- subdir_parts = $$replace(OUT_PWD, ^$$re_escape($${ROOT_BUILD_DIR})/,)
- subdir_parts = $$split(subdir_parts, /)
- for(subdir, subdir_parts) {
- BUILD_ROOT_RELATIVE_TO_OUT_PWD += ..
- }
- BUILD_ROOT_RELATIVE_TO_OUT_PWD = $$join(BUILD_ROOT_RELATIVE_TO_OUT_PWD, /)
-}
-
-# Try to detect if we're running under Windows cmd.exe or not
-equals(QMAKE_DIR_SEP, \\): CONFIG += win_cmd_shell
-
-# Default location of generated sources
-GENERATED_SOURCES_DESTDIR = generated
-
-QUOTE = ""
-DOUBLE_ESCAPED_QUOTE = ""
-ESCAPE = ""
-win_cmd_shell {
- ESCAPE = "^"
-} else {
- QUOTE = "\'"
- DOUBLE_ESCAPED_QUOTE = "\\\'"
-}
-EOL = $$escape_expand(\\n)
-EOC = $$escape_expand(\\n\\t)
-TAB = $$escape_expand(\\t)
-
-MAKEFILE_NOOP_COMMAND = @echo -n
-win32-msvc*: MAKEFILE_NOOP_COMMAND = @echo >NUL
-
-# Set up a default python version
-scratchbox: PYTHON = python2.6
-else: PYTHON = python
-
-# We use private_tests to detect developer build, since the destdir will
-# always be our webkit build dir. This might change as configure changes.
-contains(QT_CONFIG, private_tests): CONFIG += qt_developer_build
-
-# By default we enable "production build", and build-webkit, which is
-# used by bots and developers, will disable it, to enable warnings etc.
-CONFIG += production_build
-
-# Run configure before making decisions that depend on the result
-root_project_file {
- load(configure)
- runConfigure()
-}
-
-unix:config_gccdepends {
- # We have a compiler that supports the -MD option (and neither
- # teambuilder nor icecream is messing up the .d file output).
- CONFIG += GNUmake gcc_MD_depends
-}
-
-# Set some defaults for specific platforms
-CONFIG += include_webinspector
-
-# Make sure we process the PKGCONFIG variable if applicable
-!mac: CONFIG += link_pkgconfig
-
-# Make sure the static libraries are compiled with the same C++11 setting
-# as the module will be linked with. This is particular important on mac
-# since otherwise the libraries can be compiled against libstdc++, but
-# linked against libc++.
-contains(QT_CONFIG, c++11): CONFIG += c++11
-
-# Limit the creation of thin archives to Linux, since only GNU's ar supports it.
-!debug_and_release:linux: CONFIG += gnu_thin_archives
-
-# The Gold linker breaks transition between JIT and LLInt due to thumb-state mismatch.
-gcc:isEqual(QT_ARCH, "arm"): CONFIG -= use_gold_linker
-
-# Pick up Qt's defaults for debug/release/debug_and_release
-if(win32|mac):!macx-xcode {
- contains(QT_CONFIG, simulator_and_device): CONFIG += simulator_and_device
- contains(QT_CONFIG, debug_and_release): CONFIG += debug_and_release
- contains(QT_CONFIG, build_all): CONFIG += build_all
-}
-
-FLEX = flex
-
-BIN_EXTENSION =
-win32: BIN_EXTENSION = .exe
diff --git a/Tools/qmake/mkspecs/features/features.prf b/Tools/qmake/mkspecs/features/features.prf
deleted file mode 100644
index 21286be2e..000000000
--- a/Tools/qmake/mkspecs/features/features.prf
+++ /dev/null
@@ -1,189 +0,0 @@
-# -------------------------------------------------------------------
-# This file does basic 'configure' style checks to determine the
-# set of enable/use/have defines and their values.
-#
-# See 'Tools/qmake/README' for an overview of the build system
-# -------------------------------------------------------------------
-
-defineTest(detectFeatures) {
-
- # -------------- Fill in static defaults --------------
-
- include(features.pri)
-
- for(feature, FEATURE_DEFAULTS) {
- enabledFeature = $$find(feature, =1$)
- !isEmpty(enabledFeature) {
- line ~= s/^.+include \"(.*)\"/\\1/
- enabledFeature ~= s/=1$//
- enabledFeature ~= s/^ENABLE_//
- WEBKIT_CONFIG += $$lower($$enabledFeature)
- }
- }
-
- WEBKIT_CONFIG += use_tiled_backing_store
- WEBKIT_CONFIG += use_cross_platform_context_menus
-
- # ------------- Prepare for feature detection -------------
-
- # ---------- Dynamically detect optional features -------------
- #
- # Please note: static feature defaults go in features.pri
- #
-
- qtHaveModule(quick): WEBKIT_CONFIG += have_qtquick
- else: CONFIGURE_WARNINGS += "QtQuick module not found, QML APIs will not be built"
-
- qtHaveModule(printsupport): WEBKIT_CONFIG += have_qtprintsupport
- qtHaveModule(widgets): WEBKIT_CONFIG += have_qstyle
- qtHaveModule(testlib): WEBKIT_CONFIG += have_qttestlib
- qtHaveModule(positioning): WEBKIT_CONFIG += have_qtpositioning
- qtHaveModule(sensors): WEBKIT_CONFIG += have_qtsensors
-
- config_libxml2: WEBKIT_CONFIG += use_libxml2
- config_libxslt: WEBKIT_CONFIG += xslt
- config_libzlib: WEBKIT_CONFIG += use_zlib
- config_libwebp: WEBKIT_CONFIG += use_webp
- config_leveldb: WEBKIT_CONFIG += use_system_leveldb
-
- # We can't use Qt's 3rdparty sources for libjpeg and libpng outside of qtbase, but if Qt
- # is using the system libraries, use them to take advantage of the WebCore image decoders as well.
- contains(QT_CONFIG, system-jpeg): WEBKIT_CONFIG += use_libjpeg
- else: CONFIGURE_WARNINGS += "Qt not configured to use system libjpeg, QImageDecoder will decode JPEG images"
-
- contains(QT_CONFIG, system-png): WEBKIT_CONFIG += use_libpng
- else: CONFIGURE_WARNINGS += "Qt not configured to use system libpng, QImageDecoder will decode PNG images"
-
- linux-* {
- config_libXcomposite: WEBKIT_CONFIG += have_xcomposite
- config_libXrender: WEBKIT_CONFIG += have_xrender
-
- config_glx:!contains(QT_CONFIG, opengles2): WEBKIT_CONFIG += have_glx
-
- # We need fontconfig to set up the test fonts for DumpRenderTree and WebKitTestRunner.
- config_fontconfig: WEBKIT_CONFIG += have_fontconfig
- }
-
- # Nescape plugins support (NPAPI)
- xlibAvailable() {
- WEBKIT_CONFIG += \
- netscape_plugin_api \
- use_plugin_backend_xlib
-
- # WebKit2
- WEBKIT_CONFIG += \
- plugin_architecture_x11 \
- plugin_process
-
- } else: mac|win32 {
- WEBKIT_CONFIG += netscape_plugin_api
- # WebKit2
- WEBKIT_CONFIG += plugin_architecture_unsupported
- } else {
- WEBKIT_CONFIG += plugin_architecture_unsupported
- }
-
- # Enable the USE(3D_GRAPHICS) flag when QtOpenGL is enabled.
- # Disable on Windows CE for now, as ANGLE won't compile.
- !wince*:contains(QT_CONFIG, opengl): WEBKIT_CONFIG += use_3d_graphics
-
- # Temporarily disable FTPDIR on Windows CE (missing functions from time.h)
- wince* {
- WEBKIT_CONFIG -= ftpdir
- }
-
- # WebGL support - only enabled if we can use 3D graphics
- use?(3d_graphics): WEBKIT_CONFIG += webgl
-
- # Both desktop and GLES2 support (only on Windows at this point)
- contains(QT_CONFIG, dynamicgl): WEBKIT_CONFIG += have_dynamicgl
-
- # HTML5 Media Support for builds with GStreamer
- unix:!mac:!contains(QT_CONFIG, no-pkg-config) {
- packagesExist("glib-2.0 gio-2.0 gstreamer-1.0 gstreamer-plugins-base-1.0") {
- WEBKIT_CONFIG += video use_gstreamer
- } else: packagesExist("glib-2.0 gio-2.0 \'gstreamer-0.10 >= 0.10.30\' \'gstreamer-plugins-base-0.10 >= 0.10.30\'") {
- WEBKIT_CONFIG += video use_gstreamer use_gstreamer010
- }
- use?(gstreamer): WEBKIT_CONFIG += use_native_fullscreen_video
- }
-
- !enable?(video):qtHaveModule(multimediawidgets) {
- WEBKIT_CONFIG += video use_qt_multimedia
- }
-
- !enable?(video) {
- CONFIGURE_WARNINGS += "Missing GStreamer or QtMultimedia, disabling HTML5 media element support"
- }
-
- # Try to use an system wide SQlite installation
- if(!contains(QT_CONFIG, no-pkg-config):packagesExist("sqlite3"))|config_libsqlite3 {
- WEBKIT_CONFIG += have_sqlite3
- } else {
- SQLITE3SRCDIR = $$(SQLITE3SRCDIR)
- isEmpty(SQLITE3SRCDIR):isEmpty(_QMAKE_SUPER_CACHE_): error("WebKit requires SQLite. Either make it available via pkg-config, set $SQLITE3SRCDIR or build WebKit under qt5.git.")
- }
-
- # Gamepad API Support (depends on udev and linux/joystick.h)
- linux:!android: WEBKIT_CONFIG += gamepad
-
- # Support for Graphics Surface
- # GraphicsSurface requires GraphicsContext3D and hence use_3d_graphics
- # FIXME: GraphicsSurface do not work with dynamicgl at this point.
- use?(3d_graphics):!have?(dynamicgl) {
- mac: WEBKIT_CONFIG += use_graphics_surface
- win32:contains(QT_CONFIG, opengles2): WEBKIT_CONFIG += use_graphics_surface
- have?(glx):have?(xcomposite):have?(xrender): WEBKIT_CONFIG += use_graphics_surface use_glx
- }
-
- # IndexedDB requires leveldb
- enable?(indexed_database): WEBKIT_CONFIG += use_leveldb
-
- export(WEBKIT_CONFIG)
- export(CONFIGURE_WARNINGS)
-}
-
-# ---------------- Sanitize features -------------------
-
-defineTest(sanitizeFeatures) {
- # If we are doing a production_build we should only enable Geolocation support if QtPositioning exists. In developer builds we can use Mock implementations.
- production_build:!have?(qtpositioning): WEBKIT_CONFIG -= geolocation
-
- # If we are doing a production_build we should only enable Orientation support if QtSensors exists. In developer builds we can use Mock implementations.
- production_build:!have?(qtsensors): WEBKIT_CONFIG -= orientation_events device_orientation
-
- # Disable SVG fonts if SVG is disabled
- !enable?(svg): WEBKIT_CONFIG -= svg_fonts
-
- # JavaScript debugger requires the inspector
- !enable?(inspector): WEBKIT_CONFIG -= javascript_debugger inspector_server
-
- # Disable animated smooth scrolling if request-animation-frame is disabled
- !enable?(request_animation_frame): WEBKIT_CONFIG -= smooth_scrolling
-
- # WK2's plugin process code requires NPAPI
- !enable?(netscape_plugin_api): WEBKIT_CONFIG -= plugin_process
-
- # Web Audio requires GStreamer.
- !use?(gstreamer): WEBKIT_CONFIG -= web_audio
-
- # GStreamer uses Glib
- use?(gstreamer): WEBKIT_CONFIG += use_glib
-
- # LevelDB is not needed without indexed_database
- !enable?(indexed_database): WEBKIT_CONFIG -= use_leveldb
-
- # VideoTrack requires video
- !enable?(video): WEBKIT_CONFIG -= video_track
-
- # QtTestBrowser and MiniBrowser must be able to query for QtTestSupport
- build?(qttestsupport): WEBKIT_CONFIG += have_qttestsupport
-
- # Accelerated 2D canvas uses 3D graphics support.
- !use?(3d_graphics): WEBKIT_CONFIG -= accelerated_2d_canvas
-
- # Touch slider requires touch events
- !enable?(touch_events): WEBKIT_CONFIG -= touch_slider
-
- export(WEBKIT_CONFIG)
-}
diff --git a/Tools/qmake/mkspecs/features/features.pri b/Tools/qmake/mkspecs/features/features.pri
deleted file mode 100644
index ba18b354d..000000000
--- a/Tools/qmake/mkspecs/features/features.pri
+++ /dev/null
@@ -1,129 +0,0 @@
-# -------------------------------------------------------------------
-# This file contains a static list of default values for all the
-# ENABLE_FOO features of WebKit.
-#
-# If a feature is enabled, it most likely does not have any detection
-# in features.prf except basic sanitazion. If a feature is disabled it
-# will have detection in features.prf, unless it's something we
-# completely disable.
-#
-# FIXME: Add warning about auto-generating when Features.py land
-#
-# See 'Tools/qmake/README' for an overview of the build system
-# -------------------------------------------------------------------
-
-FEATURE_DEFAULTS = \
- ENABLE_3D_RENDERING=1 \
- ENABLE_ACCELERATED_2D_CANVAS=1 \
- ENABLE_BATTERY_STATUS=0 \
- ENABLE_BLOB=1 \
- ENABLE_CANVAS_PATH=1 \
- ENABLE_CANVAS_PROXY=0 \
- ENABLE_CHANNEL_MESSAGING=1 \
- ENABLE_CSP_NEXT=0 \
- ENABLE_CSS_BOX_DECORATION_BREAK=1 \
- ENABLE_CSS_COMPOSITING=1 \
- ENABLE_CSS_EXCLUSIONS=1 \
- ENABLE_CSS_FILTERS=1 \
- ENABLE_CSS_GRID_LAYOUT=0 \
- ENABLE_CSS_HIERARCHIES=0 \
- ENABLE_CSS_IMAGE_ORIENTATION=0 \
- ENABLE_CSS_IMAGE_RESOLUTION=0 \
- ENABLE_CSS_IMAGE_SET=1 \
- ENABLE_CSS_REGIONS=1 \
- ENABLE_CSS_SHADERS=0 \
- ENABLE_CSS_SHAPES=1 \
- ENABLE_CSS_STICKY_POSITION=1 \
- ENABLE_CSS_TRANSFORMS_ANIMATIONS_UNPREFIXED=1 \
- ENABLE_CSS_VARIABLES=0 \
- ENABLE_CSS3_CONDITIONAL_RULES=0 \
- ENABLE_CSS3_TEXT=0 \
- ENABLE_CSS3_TEXT_LINE_BREAK=0 \
- ENABLE_DASHBOARD_SUPPORT=0 \
- ENABLE_DATAGRID=0 \
- ENABLE_DATALIST_ELEMENT=1 \
- ENABLE_DATA_TRANSFER_ITEMS=0 \
- ENABLE_DETAILS_ELEMENT=1 \
- ENABLE_DEVICE_ORIENTATION=1 \
- ENABLE_DIRECTORY_UPLOAD=0 \
- ENABLE_DOWNLOAD_ATTRIBUTE=1 \
- ENABLE_FAST_MOBILE_SCROLLING=1 \
- ENABLE_FILE_SYSTEM=0 \
- ENABLE_FILTERS=1 \
- ENABLE_FONT_LOAD_EVENTS=0 \
- ENABLE_FTPDIR=1 \
- ENABLE_FULLSCREEN_API=1 \
- ENABLE_GAMEPAD=0 \
- ENABLE_GEOLOCATION=1 \
- ENABLE_GESTURE_EVENTS=1 \
- ENABLE_HIGH_DPI_CANVAS=0 \
- ENABLE_ICONDATABASE=1 \
- ENABLE_IFRAME_SEAMLESS=1 \
- ENABLE_INDEXED_DATABASE=1 \
- ENABLE_INPUT_SPEECH=0 \
- ENABLE_INPUT_TYPE_COLOR=1 \
- ENABLE_INPUT_TYPE_DATE=0 \
- ENABLE_INPUT_TYPE_DATETIME_INCOMPLETE=0 \
- ENABLE_INPUT_TYPE_DATETIMELOCAL=0 \
- ENABLE_INPUT_TYPE_MONTH=0 \
- ENABLE_INPUT_TYPE_TIME=0 \
- ENABLE_INPUT_TYPE_WEEK=0 \
- ENABLE_INSPECTOR=1 \
- ENABLE_INSPECTOR_SERVER=1 \
- ENABLE_JAVASCRIPT_DEBUGGER=1 \
- ENABLE_LEGACY_CSS_VENDOR_PREFIXES=0 \
- ENABLE_LEGACY_NOTIFICATIONS=1 \
- ENABLE_LEGACY_VIEWPORT_ADAPTION=1 \
- ENABLE_LEGACY_VENDOR_PREFIXES=1 \
- ENABLE_LEGACY_WEB_AUDIO=1 \
- ENABLE_LINK_PREFETCH=1 \
- ENABLE_MATHML=0 \
- ENABLE_MEDIA_SOURCE=0 \
- ENABLE_MEDIA_STATISTICS=0 \
- ENABLE_MEDIA_STREAM=0 \
- ENABLE_METER_ELEMENT=1 \
- ENABLE_MHTML=1 \
- ENABLE_MICRODATA=0 \
- ENABLE_MOUSE_CURSOR_SCALE=0 \
- ENABLE_NAVIGATOR_CONTENT_UTILS=0 \
- ENABLE_NETSCAPE_PLUGIN_API=0 \
- ENABLE_NETWORK_INFO=0 \
- ENABLE_NOSNIFF=0 \
- ENABLE_NOTIFICATIONS=1 \
- ENABLE_ORIENTATION_EVENTS=1 \
- ENABLE_PAGE_VISIBILITY_API=1 \
- ENABLE_PROGRESS_ELEMENT=1 \
- ENABLE_PROXIMITY_EVENTS=0 \
- ENABLE_QUOTA=0 \
- ENABLE_RESOLUTION_MEDIA_QUERY=1 \
- ENABLE_RESOURCE_TIMING=0 \
- ENABLE_REQUEST_ANIMATION_FRAME=1 \
- ENABLE_SCRIPTED_SPEECH=0 \
- ENABLE_SECCOMP_FILTERS=0 \
- ENABLE_SHADOW_DOM=0 \
- ENABLE_SHARED_WORKERS=1 \
- ENABLE_SMOOTH_SCROLLING=1 \
- ENABLE_SQL_DATABASE=1 \
- ENABLE_STYLE_SCOPED=0 \
- ENABLE_SUBPIXEL_LAYOUT=1 \
- ENABLE_SVG=1 \
- ENABLE_SVG_FONTS=1 \
- ENABLE_TEMPLATE_ELEMENT=0 \
- ENABLE_TEXT_AUTOSIZING=0 \
- ENABLE_THREADED_HTML_PARSER=0 \
- ENABLE_TOUCH_ADJUSTMENT=1 \
- ENABLE_TOUCH_EVENTS=1 \
- ENABLE_TOUCH_ICON_LOADING=0 \
- ENABLE_TOUCH_SLIDER=1 \
- ENABLE_USER_TIMING=0 \
- ENABLE_VIBRATION=0 \
- ENABLE_VIDEO=0 \
- ENABLE_VIDEO_TRACK=1 \
- ENABLE_VIEW_MODE_CSS_MEDIA=1 \
- ENABLE_WEBGL=0 \
- ENABLE_WEB_AUDIO=0 \
- ENABLE_WEB_SOCKETS=1 \
- ENABLE_WEB_TIMING=1 \
- ENABLE_WORKERS=1 \
- ENABLE_XHR_TIMEOUT=1 \
- ENABLE_XSLT=0 \
diff --git a/Tools/qmake/mkspecs/features/force_static_libs_as_shared.prf b/Tools/qmake/mkspecs/features/force_static_libs_as_shared.prf
deleted file mode 100644
index c337cda6f..000000000
--- a/Tools/qmake/mkspecs/features/force_static_libs_as_shared.prf
+++ /dev/null
@@ -1,22 +0,0 @@
-# -------------------------------------------------------------------
-# Feature to allow speeding up link times for debug builds by avoiding
-# re-linking the static libraries into the one big shared library.
-#
-# See 'Tools/qmake/README' for an overview of the build system
-# -------------------------------------------------------------------
-
-contains(TEMPLATE, lib) {
- contains(CONFIG, staticlib) {
- CONFIG -= hide_symbols
- CONFIG -= staticlib
- CONFIG += rpath
- QMAKE_CXXFLAGS -= $$QMAKE_CXXFLAGS_HIDESYMS
- QMAKE_CFLAGS -= $$QMAKE_CFLAGS_HIDESYMS
- QMAKE_LFLAGS -= $$QMAKE_LFLAGS_HIDESYMS
- QMAKE_OBJECTIVE_CFLAGS -= $$QMAKE_OBJECTIVE_CFLAGS_HIDESYMS
- DESTDIR = $${ROOT_BUILD_DIR}/lib
-
- # Ensure the install-name of the libraries are correct on Mac OS
- macx: QMAKE_LFLAGS_SONAME = $$QMAKE_LFLAGS_SONAME$${DESTDIR}/
- }
-}
diff --git a/Tools/qmake/mkspecs/features/functions.prf b/Tools/qmake/mkspecs/features/functions.prf
deleted file mode 100644
index dc0c78f97..000000000
--- a/Tools/qmake/mkspecs/features/functions.prf
+++ /dev/null
@@ -1,405 +0,0 @@
-# -------------------------------------------------------------------
-# This file defines a few useful functions that are exposed to the
-# real project files.
-#
-# See 'Tools/qmake/README' for an overview of the build system
-# -------------------------------------------------------------------
-
-defineReplace(toSanitizedPath) {
- path = $$1
- win32-msvc*|wince* {
- components = $$split(path, :)
- count(components, 2): path = $$lower($$first(components)):$$last(components)
- return($$replace(path, \\\\, /))
- } else {
- return($$path)
- }
-}
-
-defineReplace(toSystemPath) {
- return($$replace(1, [/\\\\], $${QMAKE_DIR_SEP}))
-}
-
-defineReplace(toEvaluatablePath) {
- return($$replace(1, \\\\, \\\\\\\\))
-}
-
-defineReplace(targetSubDir) {
- # The paths to the elements of the thin archive are stored
- # relative to the archive itself, thus we have to prevent
- # qmake from moving the archive after creation.
- gnu_thin_archives: return()
- else: CONFIG(debug, debug|release): return(debug)
- else: return(release)
-}
-
-defineReplace(computeSubdirVariables) {
- unset(subdir)
- subdir = $$1
-
- scope = $$subdir
- path = $$eval($${subdir}.file)
- isEmpty(path): path = $$eval($${subdir}.subdir)
- isEmpty(path) {
- path = $${subdir}
- # We can't use scope as a variable scope, so unset it for
- # now and we'll compute a new scope based on the target.
- unset(scope)
- }
-
- # Technically this could be a directory, but we assume sane naming.
- is_file = $$find(path, \\.pr[io]$)
- isEmpty(is_file) {
- subdirectory = $$path
- } else {
- subdirectory = $$dirname(path)
- filename = $$basename(path)
- }
-
- # Make directory relative
- !isEmpty(subdirectory):subdirectory = $$replace(subdirectory, ^$$re_escape($${_PRO_FILE_PWD_})/,)
-
- !isEmpty(subdirectory) {
- subdir_command = cd $$toSystemPath($${subdirectory}$${QMAKE_DIR_SEP}) &&
- }
-
- target = $$eval($${subdir}.target)
- isEmpty(target) {
- sanitizedPath = $$toSanitizedPath($$path)
- target = sub-$$replace(sanitizedPath, [^a-zA-Z0-9_], -)
- }
-
- isEmpty(scope): scope = $$target
-
- makefile = $$eval($${subdir}.makefile)
- isEmpty(makefile) {
- !isEmpty(filename) {
- filebase = $$replace(filename, \\..*$,)
- dirbase = $$basename(subdirectory)
- !equals(filebase, $$dirbase) {
- makefile = $(MAKEFILE).$$filebase
- } else {
- makefile = $(MAKEFILE)
- }
- } else {
- makefile = $(MAKEFILE)
- }
- }
-
- subdir_command = $$toEvaluatablePath($$subdir_command)
- eval($${scope}.subdir_command = $$subdir_command)
- export($${scope}.subdir_command)
-
- eval($${scope}.target = $$target)
- export($${scope}.target)
-
- eval($${scope}.makefile = $$makefile)
- export($${scope}.makefile)
-
- return($$scope)
-}
-
-# Qmake has QMAKE_FILE_IN_PATH, but nothing for the out file
-# This allows you do do ${QMAKE_FUNC_FILE_OUT_PATH}
-defineReplace(PATH) {
- return($$dirname(1))
-}
-
-# We need both versions, in case the first one returns an empty string
-defineReplace(FILE_OUT_PATH) {
- return($$dirname(2))
-}
-
-# addStrictSubdirOrderBetween(firstSubdir, secondSubdir)
-defineTest(addStrictSubdirOrderBetween) {
- unset(firstSubdir)
- unset(secondSubdir)
-
- firstSubdir = $$1
- secondSubdir = $$2
-
- firstVariables = $$computeSubdirVariables($${firstSubdir})
- secondVariables = $$computeSubdirVariables($${secondSubdir})
-
- !contains(TEMPLATE, subdirs) {
- error("Strict subdir dependencies can only be used with subdirs template")
- }
-
- firstSubdirFile = $$eval($${firstSubdir}.file)
- secondSubdirFile = $$eval($${secondSubdir}.file)
-
- isEmpty(firstSubdirFile)|isEmpty(secondSubdirFile) {
- error("Missing subdir file ($$firstSubdirFile, $$secondSubdirFile)")
- }
-
- # Make sure the order is right
- SUBDIRS -= $$secondSubdir
- SUBDIRS += $$secondSubdir
- NO_RECURSIVE_QMAKE_SUBDIRS += $$firstSubdir $$secondSubdir
- CONFIG *= ordered
-
- first_base_target = sub-$$replace(firstSubdirFile, [^a-zA-Z0-9_], -)
- second_base_target = sub-$$replace(secondSubdirFile, [^a-zA-Z0-9_], -)
-
- # Use a custom target for making the derived sources, as the default target
- # will do 'test -f $(MAKEFILE).DerivedSources || $(QMAKE) ...', which clashes
- # with the qmake-run of the -qmake_all target, and we end up with a race
- # and potentially half-written makefiles. The custom target depends explicitly
- # on -qmake_all, to ensure that we have a makefile, and then calls make.
- derived_make_for_qmake = $${first_base_target}-make_for_qmake
- eval($${derived_make_for_qmake}.depends = $${first_base_target}-qmake_all)
- eval($${derived_make_for_qmake}.commands = $(MAKE) -f $$eval($${firstSubdir}.makefile))
- QMAKE_EXTRA_TARGETS += $${derived_make_for_qmake}
-
- # This target ensures that running "make qmake_all" will force both qmake and make
- # to be run on the derived sources before running qmake on the target, so that
- # qmake can pick up the right dependencies for the target based on the derived
- # sources that were generated.
- target_make_qmake = $${second_base_target}-qmake_all
- eval($${target_make_qmake}.depends = $${derived_make_for_qmake})
- QMAKE_EXTRA_TARGETS += $${target_make_qmake}
-
- # Make things work even if qmake -r is used.
- CONFIG += dont_recurse
-
- export(SUBDIRS)
- export(NO_RECURSIVE_QMAKE_SUBDIRS)
- export(CONFIG)
- export($${target_make_qmake}.target)
- export($${target_make_qmake}.depends)
- export($${derived_make_for_qmake}.depends)
- export($${derived_make_for_qmake}.commands)
- export(QMAKE_EXTRA_TARGETS)
- return(true)
-}
-
-# Check if we have the given Qt version. The major version needs
-# to be exact, the minor and patch version is same or higher
-defineTest(haveQt) {
- count(ARGS, 1, lessThan)|count(ARGS, 3, greaterThan) {
- error("Unexpected number of arguments: haveQt($$ARGS)")
- }
-
- !equals(QT_MAJOR_VERSION, $$1): return(false)
-
- count(ARGS, 1, greaterThan) {
- lessThan(QT_MINOR_VERSION, $$2): return(false)
- greaterThan(QT_MINOR_VERSION, $$2): return(true)
-
- count(ARGS, 2, greaterThan) {
- lessThan(QT_PATCH_VERSION, $$3): return(false)
- greaterThan(QT_PATCH_VERSION, $$3): return(true)
- }
- }
-
- return(true)
-}
-
-defineTest(programExistsInPath) {
- equals(QMAKE_HOST.os, Windows): program = $${1}.exe
- else: program = $$1
-
- PATH = "$$(PATH)"
- paths=$$split(PATH, $$QMAKE_DIRLIST_SEP)
-
- GNUTOOLS_DIR=$$[QT_HOST_DATA]/../gnuwin32/bin
- exists($$GNUTOOLS_DIR): paths += $$GNUTOOLS_DIR
-
- for(p, paths): exists($$p/$$program):return(true)
- return(false)
-}
-
-defineTest(addReasonForSkippingBuild) {
- skipBuildReason = "$$skipBuildReason$${EOL} * $$1"
- export(skipBuildReason)
-}
-
-defineTest(prependEach) {
- unset(variable)
- unset(prefix)
-
- variable = $$1
- prefix = $$2
-
- original_values = $$unique($$variable)
-
- for(value, original_values) {
- values += $${prefix}$${value}
- }
-
- eval($$variable = $$values)
- export($$variable)
-
- return(true)
-}
-
-defineReplace(resolveFinalLibraryName) {
- !debug_and_release: return($$1)
-
- original_framework_name = $$QMAKE_FRAMEWORK_BUNDLE_NAME
-
- TEMPLATE = lib # So that qtLibraryTarget works
- target = $$qtLibraryTarget($$1)
-
- # qtLibraryTarget will export QMAKE_FRAMEWORK_BUNDLE_NAME, which gets
- # exported not only to this function scope, but to our call site.
- QMAKE_FRAMEWORK_BUNDLE_NAME = $$original_framework_name
- export(QMAKE_FRAMEWORK_BUNDLE_NAME)
-
- return($$target)
-}
-
-defineTest(linkAgainstLibrary) {
- unset(target)
- target = $$1
-
- unset(source_dir)
- source_dir = $$2
-
- library = $$lower($$target)
-
- target = $$resolveFinalLibraryName($$target)
-
- path = $$replace(source_dir, $$re_escape($${ROOT_WEBKIT_DIR}), $${ROOT_BUILD_DIR})/$$targetSubDir()
-
- force_static_libs_as_shared {
- LIBS += -L$${ROOT_BUILD_DIR}/lib -l$$target
- } else {
-
- mac {
- LIBS += -Wl,-force_load,$${path}$${QMAKE_DIR_SEP}lib$${target}.a
- } else:win32-msvc*|wince*|win32-icc {
- LIBS += -l$$target
- QMAKE_LFLAGS += /OPT:REF
- } else {
- CONFIG *= no_smart_library_merge
- LIBS += -Wl,-whole-archive -l$$target -Wl,-no-whole-archive
- }
-
- LIBS += -L$$path
-
- win32-msvc*|wince*|win32-icc {
- POST_TARGETDEPS += $${path}$${QMAKE_DIR_SEP}$${target}.lib
- } else {
- POST_TARGETDEPS += $${path}$${QMAKE_DIR_SEP}lib$${target}.a
- }
- }
-
- export(LIBS)
- export(QMAKE_LIBDIR)
- export(POST_TARGETDEPS)
- export(CONFIG)
- return(true)
-}
-
-defineTest(xlibAvailable) {
- contains(QT_CONFIG, xcb-xlib) {
- return(true)
- } else {
- return(false)
- }
-}
-
-defineTest(build?) {
- contains(WEBKIT_CONFIG, build_$$lower($$1)): return(true)
- return(false)
-}
-
-defineTest(have?) {
- contains(WEBKIT_CONFIG, have_$$lower($$1)): return(true)
- return(false)
-}
-
-defineTest(use?) {
- contains(WEBKIT_CONFIG, use_$$lower($$1)): return(true)
- return(false)
-}
-
-defineTest(enable?) {
- contains(WEBKIT_CONFIG, $$lower($$1)): return(true)
- return(false)
-}
-
-# Used by configDefines below
-include(features.pri)
-
-# Turn Webkit config into defines
-defineReplace(configDefines) {
- unset(defines)
-
- args = $$split(1, |)
-
- possible_args = enable have use plugin_architecture
- !isEmpty(args) {
- for(arg, possible_args): contains(args, $$arg): CONFIG += $$arg
- } else {
- CONFIG += $$possible_args
- }
-
- for(config, WEBKIT_CONFIG) {
- match = $$find(config, "^build_")
- !isEmpty(match) {
- # We don't translate build_ to defines
- next()
- }
- match = $$find(config, "^have_")
- !isEmpty(match) {
- have: defines += $$upper($$config)=1
- next()
- }
- match = $$find(config, "^plugin_architecture_")
- !isEmpty(match) {
- plugin_architecture: defines += $$upper($$config)=1
- next()
- }
- equals(config, "use_system_malloc") {
- use: defines += $$upper($$config)=1
- next()
- }
- match = $$find(config, "^use_")
- !isEmpty(match) {
- use: defines += WTF_$$upper($$config)=1
- next()
- }
-
- enable: defines += ENABLE_$$upper($$config)=1
- }
-
- # To prevent clashes with Platform.h, we have to explicitly
- # disable features that are not enabled.
- for(define, FEATURE_DEFAULTS) {
- anyFeatureDefine = $$find(define, =.$)
- isEmpty(anyFeatureDefine): next()
-
- enabledFeature = $$replace(anyFeatureDefine, =.$, =1)
- disabledFeature = $$replace(anyFeatureDefine, =.$, =0)
-
- !contains(defines, $$enabledFeature) {
- defines += $$disabledFeature
- }
- }
-
- return($$defines)
-}
-
-defineReplace(javascriptFeatureDefines) {
- defines = LANGUAGE_JAVASCRIPT=1 $$configDefines(enable)
-
- # Omit disabled features when generating bindings to shrink the
- # generator's command line on Windows.
- disabledFeatures = $$find(defines, ^.+=0$)
- for (disabledFeature, disabledFeatures) {
- defines -= $$disabledFeature
- }
-
- return($$defines)
-}
-
-defineReplace(setEnvironmentVariable) {
- variable = $$1
- value = $$2
- win_cmd_shell {
- return((set \"$$variable=$$value\"))
- }
- return(export \"$$variable=$$value\")
-}
diff --git a/Tools/qmake/mkspecs/features/gprof.prf b/Tools/qmake/mkspecs/features/gprof.prf
deleted file mode 100644
index 51b78c3b0..000000000
--- a/Tools/qmake/mkspecs/features/gprof.prf
+++ /dev/null
@@ -1,11 +0,0 @@
-# -------------------------------------------------------------------
-# This optional feature file adds rules that make running gprof
-# on QtWebKit easier.
-#
-# See 'Tools/qmake/README' for an overview of the build system
-# -------------------------------------------------------------------
-
-build?(webkit2): error("WebKit2 is not supported with gprof")
-
-QMAKE_CXXFLAGS += -pg
-QMAKE_LFLAGS += -pg
diff --git a/Tools/qmake/mkspecs/features/icc.prf b/Tools/qmake/mkspecs/features/icc.prf
deleted file mode 100644
index e9bfddd1c..000000000
--- a/Tools/qmake/mkspecs/features/icc.prf
+++ /dev/null
@@ -1,8 +0,0 @@
-# -------------------------------------------------------------------
-# This optional feature file adds rules that compile using Intel
-# compiler easier.
-#
-# See 'Tools/qmake/README' for an overview of the build system
-# -------------------------------------------------------------------
-
-QMAKE_CXXFLAGS += -wd68,161,175,177,239,411,654,864,873,1125,2089,2196
diff --git a/Tools/qmake/mkspecs/features/mac/default_post.prf b/Tools/qmake/mkspecs/features/mac/default_post.prf
deleted file mode 100644
index 1578a7039..000000000
--- a/Tools/qmake/mkspecs/features/mac/default_post.prf
+++ /dev/null
@@ -1,10 +0,0 @@
-# -------------------------------------------------------------------
-# Mac OS X specific defaults
-#
-# See 'Tools/qmake/README' for an overview of the build system
-# -------------------------------------------------------------------
-
-# We don't want verify and other platform macros to pollute the namespace
-DEFINES += __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES=0
-
-load(default_post)
diff --git a/Tools/qmake/mkspecs/features/mac/default_pre.prf b/Tools/qmake/mkspecs/features/mac/default_pre.prf
deleted file mode 100644
index 657bbc436..000000000
--- a/Tools/qmake/mkspecs/features/mac/default_pre.prf
+++ /dev/null
@@ -1,12 +0,0 @@
-# -------------------------------------------------------------------
-# Mac OS X specific defaults
-#
-# See 'Tools/qmake/README' for an overview of the build system
-# -------------------------------------------------------------------
-
-CONFIG -= app_bundle
-
-load(default_pre)
-
-debug: CONFIG += use_all_in_one_files
-
diff --git a/Tools/qmake/mkspecs/features/minimal_qt.prf b/Tools/qmake/mkspecs/features/minimal_qt.prf
deleted file mode 100644
index 34e2d39ee..000000000
--- a/Tools/qmake/mkspecs/features/minimal_qt.prf
+++ /dev/null
@@ -1,32 +0,0 @@
-# -------------------------------------------------------------------
-# Pretend that we are building against a minimal Qt version
-#
-# See 'Tools/qmake/README' for an overview of the build system
-# -------------------------------------------------------------------
-
-DEFINES *= \
- QT_NO_ANIMATION \
- QT_NO_BEARERMANAGEMENT \
- QT_NO_CLIPBOARD \
- QT_NO_COMBOBOX \
- QT_NO_CONCURRENT \
- QT_NO_CRASHHANDLER \
- QT_NO_CURSOR \
- QT_NO_DESKTOPSERVICES \
- QT_NO_FILEDIALOG \
- QT_NO_GRAPHICSEFFECT \
- QT_NO_IM \
- QT_NO_INPUTDIALOG \
- QT_NO_LINEEDIT \
- QT_NO_MESSAGEBOX \
- QT_NO_OPENSSL \
- QT_NO_PRINTER \
- QT_NO_QUUID_STRING \
- QT_NO_SHORTCUT \
- QT_NO_STYLE_STYLESHEET \
- QT_NO_SYSTEMTRAYICON \
- QT_NO_TEMPORARYFILE \
- QT_NO_TOOLTIP \
- QT_NO_UNDOCOMMAND \
- QT_NO_UNDOSTACK \
- QT_NO_XRENDER
diff --git a/Tools/qmake/mkspecs/features/production_build.prf b/Tools/qmake/mkspecs/features/production_build.prf
deleted file mode 100644
index 903600338..000000000
--- a/Tools/qmake/mkspecs/features/production_build.prf
+++ /dev/null
@@ -1,17 +0,0 @@
-# All in one files reduce memory usage at link time. At compiler time the code
-# visibility for the compiler increases and faster more compact code can be produced,
-# so turn it on in production builds.
-CONFIG *= use_all_in_one_files
-
-# Builds with debug flags result in a huge amount of symbols with the GNU toolchain,
-# resulting in the need of several gigabytes of memory at link-time. Reduce the pressure
-# by compiling any static library like WTF or JSC with release flags instead and keep debug
-# symbols for the static libraries that implement API.
-if(linux-*:!contains(QMAKE_HOST.arch, x86_64))|mingw:if(CONFIG(debug, debug|release)|contains(QT_CONFIG,separate_debug_info)):contains(TEMPLATE, lib):staticlib {
- !equals(TARGET, WebKit2):!equals(TARGET, WebKitWidgets) {
- CONFIG += no_debug_info
- CONFIG -= separate_debug_info
- QMAKE_CFLAGS += $$QMAKE_CFLAGS_RELEASE
- QMAKE_CXXFLAGS += $$QMAKE_CXXFLAGS_RELEASE
- }
-}
diff --git a/Tools/qmake/mkspecs/features/rpath.prf b/Tools/qmake/mkspecs/features/rpath.prf
deleted file mode 100644
index 8dbc42f13..000000000
--- a/Tools/qmake/mkspecs/features/rpath.prf
+++ /dev/null
@@ -1,25 +0,0 @@
-# -------------------------------------------------------------------
-# Set rpath for the application/library we're building
-#
-# See 'Tools/qmake/README' for an overview of the build system
-# -------------------------------------------------------------------
-
-equals(ROOT_BUILD_DIR, $$dirname(DESTDIR)): RPATHDIR_RELATIVE_TO_DESTDIR = ../lib
-
-linux-*:!isEmpty(RPATHDIR_RELATIVE_TO_DESTDIR) {
- # Do the rpath by hand since it's not possible to use ORIGIN in QMAKE_RPATHDIR
- # this expands to $ORIGIN (after qmake and make), it does NOT read a qmake var.
- QMAKE_RPATHDIR = \$\$ORIGIN/$${RPATHDIR_RELATIVE_TO_DESTDIR} $${QMAKE_RPATHDIR}
- RPATH = $$join(QMAKE_RPATHDIR, ":")
-
- QMAKE_LFLAGS += -Wl,-z,origin \'-Wl,-rpath,$${RPATH}\'
- QMAKE_RPATHDIR =
-} else {
- QMAKE_RPATHDIR = $${ROOT_BUILD_DIR}/lib $${QMAKE_RPATHDIR}
-}
-
-# FIXME: For Qt5 this will only give correct rpath for the tools that come with WebKit
-# Any client application built against a developer-build of Qt + WebKit (that does
-# QT += webkit) will not get the rpath pointing to the stand-alone WebKit-build,
-# and will have to set LD_LIBRARY_PATH or do their own rpath logic. This needs
-# to be fixed on the Qt side.
diff --git a/Tools/qmake/mkspecs/features/unix/default_post.prf b/Tools/qmake/mkspecs/features/unix/default_post.prf
deleted file mode 100644
index fd66af670..000000000
--- a/Tools/qmake/mkspecs/features/unix/default_post.prf
+++ /dev/null
@@ -1,71 +0,0 @@
-# -------------------------------------------------------------------
-# Unix specific defaults
-#
-# See 'Tools/qmake/README' for an overview of the build system
-# -------------------------------------------------------------------
-
-# Disable a few warnings. The same warnings are also disabled
-# in WebKitLibraries/win/tools/vsprops/common.vsprops
-intel_icc: load(icc)
-
-# Use SSE2 floating point math on 32 bit instead of the default
-# 387 to make layout test results same on 32 and on 64 bit builds.
-# See https://bugs.webkit.org/show_bug.cgi?id=52810#c39 for details.
-linux-g++*:isEqual(QT_ARCH,i386) {
- !production_build {
- QMAKE_CFLAGS += -msse2 -mfpmath=sse
- QMAKE_CXXFLAGS += -msse2 -mfpmath=sse
- }
-}
-
-*g++* {
- # Use DWARF-4 optimally with GCC 4.8+, otherwise use STABS which uses much less memory.
- greaterThan(QT_GCC_MAJOR_VERSION, 4)|greaterThan(QT_GCC_MINOR_VERSION, 7) {
- QMAKE_CXXFLAGS_DEBUG += -fdebug-types-section
- QMAKE_CXXFLAGS_RELEASE_WITH_DEBUGINFO += -fdebug-types-section
- QMAKE_LFLAGS += -fdebug-types-section
- } else {
- # If DWARF-2 is desired -feliminate-dwarf2-dups can be used with GCC 4.7,
- # but it causes internal compiler errors in older versions of GCC.
- QMAKE_CXXFLAGS_DEBUG -= -g
- QMAKE_CXXFLAGS_DEBUG += -gstabs
- QMAKE_CXXFLAGS_RELEASE_WITH_DEBUGINFO -= -g
- QMAKE_CXXFLAGS_RELEASE_WITH_DEBUGINFO += -gstabs
- # Don't use the gold linker with stabs, it uses more memory and produces larger debug binaries.
- CONFIG -= use_gold_linker
- }
-}
-
-linux-*g++* {
- !production_build {
- # Treat warnings as errors on x86/Linux/GCC
- isEqual(QT_ARCH,x86_64)|isEqual(QT_ARCH,i386): QMAKE_CXXFLAGS += -Werror
- greaterThan(QT_GCC_MAJOR_VERSION, 4)|greaterThan(QT_GCC_MINOR_VERSION, 5) {
- # Newer versions of GCC suggests noreturn at seemingly random
- QMAKE_CXXFLAGS += -Wno-suggest-attribute=noreturn
- }
- }
-}
-
-!c++11:!intel_icc {
- # Don't warn about OVERRIDE and FINAL, since they are feature-checked anyways
- clang {
- QMAKE_CXXFLAGS += -Wno-c++11-extensions -Wno-c++0x-extensions
- QMAKE_OBJECTIVE_CFLAGS += -Wno-c++11-extensions -Wno-c++0x-extensions
- } else: gcc {
- greaterThan(QT_GCC_MAJOR_VERSION, 4)|greaterThan(QT_GCC_MINOR_VERSION, 5) {
- # We need to deactivate those warnings because some names conflicts with upcoming c++0x types (e.g.nullptr).
- QMAKE_CXXFLAGS_WARN_ON += -Wno-c++0x-compat
- QMAKE_CXXFLAGS += -Wno-c++0x-compat
- }
- }
-}
-
-contains(TEMPLATE, app): CONFIG += rpath
-
-CONFIG(debug, debug|release)|force_debug_info {
- # Make ld not cache the symbol tables of input files in memory to avoid memory exhaustion during the linking phase.
- !force_static_libs_as_shared:config_gnuld: QMAKE_LFLAGS += -Wl,--no-keep-memory
-}
-
-load(default_post)
diff --git a/Tools/qmake/mkspecs/features/unix/default_pre.prf b/Tools/qmake/mkspecs/features/unix/default_pre.prf
deleted file mode 100644
index 60de13338..000000000
--- a/Tools/qmake/mkspecs/features/unix/default_pre.prf
+++ /dev/null
@@ -1,18 +0,0 @@
-# -------------------------------------------------------------------
-# Unix specific defaults
-#
-# See 'Tools/qmake/README' for an overview of the build system
-# -------------------------------------------------------------------
-
-load(functions)
-
-CONFIG += object_parallel_to_source
-
-# Expose if we are building inside Scratchbox
-SBOX_CHECK = $$(_SBOX_DIR)
-!isEmpty(SBOX_CHECK): CONFIG += scratchbox
-
-# Reduce linking memory pressure on 32-bit debug builds on Linux
-linux-g++*:CONFIG(debug, debug|release):isEqual(QT_ARCH,i386): CONFIG += use_all_in_one_files
-
-load(default_pre)
diff --git a/Tools/qmake/mkspecs/features/use_all_in_one_files.prf b/Tools/qmake/mkspecs/features/use_all_in_one_files.prf
deleted file mode 100644
index e16dcfc5a..000000000
--- a/Tools/qmake/mkspecs/features/use_all_in_one_files.prf
+++ /dev/null
@@ -1,28 +0,0 @@
-# -------------------------------------------------------------------
-# This feature enables the use of AllInOne.cpp files by adding them
-# to SOURCES and removing the sources the corresponding files include
-# from SOURCES, to avoid duplicated compilation units.
-#
-# See 'Tools/qmake/README' for an overview of the build system
-# -------------------------------------------------------------------
-
-# Globbing all does not work yet, not all AllInOne files build reliably yet.
-# So instead we select them manually.
-#collection = $$files($$_PRO_FILE_PWD_/*AllInOne.cpp, true)
-collection = $$ALL_IN_ONE_SOURCES
-
-for(collectionFile, collection) {
- lines = $$cat($$_PRO_FILE_PWD_/$$collectionFile, lines)
- for(line, lines) {
- line = $$find(line, "^.+include \"(.*)\"")
- isEmpty(line): next()
- line ~= s/^.+include \"(.*)\"/\\1/
- source = $$dirname(collectionFile)/$$line
- contains(SOURCES, $$source) {
- SOURCES -= $$source
- tookFromSources = true
- }
- }
- !isEmpty(tookFromSources): SOURCES *= $$collectionFile
-}
-
diff --git a/Tools/qmake/mkspecs/features/valgrind.prf b/Tools/qmake/mkspecs/features/valgrind.prf
deleted file mode 100644
index b181154a9..000000000
--- a/Tools/qmake/mkspecs/features/valgrind.prf
+++ /dev/null
@@ -1,11 +0,0 @@
-# -------------------------------------------------------------------
-# This optional feature file adds rules that make running valgrind
-# on QtWebKit easier.
-#
-# See 'Tools/qmake/README' for an overview of the build system
-# -------------------------------------------------------------------
-
-QMAKE_CXXFLAGS += -g
-QMAKE_LFLAGS += -g
-DEFINES += USE_SYSTEM_MALLOC=1
-DEFINES += ENABLE_JIT=0
diff --git a/Tools/qmake/mkspecs/features/webkit_modules.prf b/Tools/qmake/mkspecs/features/webkit_modules.prf
deleted file mode 100644
index 7040cbbc3..000000000
--- a/Tools/qmake/mkspecs/features/webkit_modules.prf
+++ /dev/null
@@ -1,51 +0,0 @@
-# -------------------------------------------------------------------
-# Used for applying the content of the WEBKIT variable into the
-# effect each library/module has on variables such as LIBS and QT.
-#
-# See 'Tools/qmake/README' for an overview of the build system
-# -------------------------------------------------------------------
-
-# Reorder libraries so that the link and include order is correct,
-# and make sure the case matches the original case.
-libraries = WebKit1 WebKit2 WebCore ANGLE leveldb JavaScriptCore WTF
-for(library, libraries) {
- contains(WEBKIT, $$lower($$library)) {
- WEBKIT -= $$lower($$library)
- WEBKIT *= $$library
- }
-}
-
-# Load the .pri file for each library, to pick up LIBS, INCLUDES,
-# and other dependencies the library adds.
-for(library, WEBKIT) {
- # Juggle LIBS to keep the static link order correct
- existing_libs = $$LIBS
- unset(LIBS)
-
- # We definitly need include paths and such (this will set
- # SOURCE_DIR to the right path so we can use it below).
- library_identifier = $$lower($$library)
- include(../modules/$${library_identifier}.prf)
-
- # More juggling, so that we can add the dependent libs later
- # on if we decide that we need to link to the library.
- eval(WEBKIT.$${library_identifier}.dependent_libs = $$LIBS)
- LIBS = $$existing_libs
-
- # Anything not linking dynamically to QtWebKit should make sure to have its export
- # macros synchronized with the code that it will be linked with statically.
- CONFIG(static)|!contains(QT, webkit): DEFINES += STATICALLY_LINKED_WITH_$$library
-}
-
-creating_module {
- # Sanitize PKGCONFIG as we don't want any of these libraries
- # to end up in as public API dependenices in the QtWebKit prl file.
- PKGCONFIG_PRIVATE *= $$PKGCONFIG
- unset(PKGCONFIG)
-
- # We do have a limited subset of Qt modules as dependencies for using
- # the public QtWebKit API. The rest of the modules go into QT_PRIVATE.
- QT_PRIVATE *= $$QT
- QT = $$QT_API_DEPENDS
- QT_PRIVATE -= $$QT
-}
diff --git a/Tools/qmake/mkspecs/features/win32/default_post.prf b/Tools/qmake/mkspecs/features/win32/default_post.prf
deleted file mode 100644
index c296ae1f7..000000000
--- a/Tools/qmake/mkspecs/features/win32/default_post.prf
+++ /dev/null
@@ -1,45 +0,0 @@
-# -------------------------------------------------------------------
-# Win32 specific defaults
-#
-# See 'Tools/qmake/README' for an overview of the build system
-# -------------------------------------------------------------------
-
-# Pick up 3rdparty libraries from INCLUDE/LIB just like with MSVC
-mingw {
- TMPPATH = $$quote($$(INCLUDE))
- QMAKE_INCDIR_POST += $$split(TMPPATH,";")
- TMPPATH = $$quote($$(LIB))
- QMAKE_LIBDIR_POST += $$split(TMPPATH,";")
-}
-
-# Make sure windows.h doesn't define max() macro
-# (it screws up use like std::max and std::numeric_limits::max)
-DEFINES += NOMINMAX
-
-# Disable a few warnings. The same warnings are also disabled
-# in WebKitLibraries/win/tools/vsprops/common.vsprops
-win32-msvc*|wince*: QMAKE_CXXFLAGS += -wd4291 -wd4344 -wd4396 -wd4503 -wd4800 -wd4819 -wd4996
-intel_icl: load(icc)
-
-load(default_post)
-
-# When creating the target DLL, extract exporting linker directives from
-# all static libraries we're linking into the DLL and make sure they are
-# also exported from the DLL.
-shared:contains(TEMPLATE, lib) {
- for(target, POST_TARGETDEPS) {
- libdep = $$find(target, .*\\.lib)
- !isEmpty(libdep): LIBSWITHEXPORTS += $$libdep
- }
-}
-
-!isEmpty(LIBSWITHEXPORTS) {
- suffix =
- CONFIG(debug, debug|release): suffix = d
- forwarded_exports.target = forwarded-exports$${suffix}.cpp
- forwarded_exports.commands = python $${ROOT_WEBKIT_DIR}$${QMAKE_DIR_SEP}Tools$${QMAKE_DIR_SEP}Scripts$${QMAKE_DIR_SEP}generate-win32-export-forwards $$LIBSWITHEXPORTS $$forwarded_exports.target
- forwarded_exports.depends = $$LIBSWITHEXPORTS
- QMAKE_EXTRA_TARGETS += forwarded_exports
- GENERATED_SOURCES += $$forwarded_exports.target
-}
-
diff --git a/Tools/qmake/mkspecs/features/win32/default_pre.prf b/Tools/qmake/mkspecs/features/win32/default_pre.prf
deleted file mode 100644
index b306c3b82..000000000
--- a/Tools/qmake/mkspecs/features/win32/default_pre.prf
+++ /dev/null
@@ -1,10 +0,0 @@
-# -------------------------------------------------------------------
-# Windows specific defaults
-#
-# See 'Tools/qmake/README' for an overview of the build system
-# -------------------------------------------------------------------
-
-load(default_pre)
-
-debug: CONFIG += use_all_in_one_files
-
diff --git a/Tools/qmake/mkspecs/modules/angle.prf b/Tools/qmake/mkspecs/modules/angle.prf
deleted file mode 100644
index 18631a76a..000000000
--- a/Tools/qmake/mkspecs/modules/angle.prf
+++ /dev/null
@@ -1,9 +0,0 @@
-# -------------------------------------------------------------------
-# Module file for ANGLE, used by targets that depend on ANGLE
-#
-# See 'Tools/qmake/README' for an overview of the build system
-# -------------------------------------------------------------------
-
-WEBKIT.angle.root_source_dir = $${ROOT_WEBKIT_DIR}/Source/ThirdParty/ANGLE
-
-include($${WEBKIT.angle.root_source_dir}/ANGLE.pri)
diff --git a/Tools/qmake/mkspecs/modules/javascriptcore.prf b/Tools/qmake/mkspecs/modules/javascriptcore.prf
deleted file mode 100644
index 6d9656cc1..000000000
--- a/Tools/qmake/mkspecs/modules/javascriptcore.prf
+++ /dev/null
@@ -1,10 +0,0 @@
-# -------------------------------------------------------------------
-# Module file for JavaScriptCore, used by targets that depend on
-# JavaScriptCore
-#
-# See 'Tools/qmake/README' for an overview of the build system
-# -------------------------------------------------------------------
-
-WEBKIT.javascriptcore.root_source_dir = $${ROOT_WEBKIT_DIR}/Source/JavaScriptCore
-
-include($${WEBKIT.javascriptcore.root_source_dir}/JavaScriptCore.pri)
diff --git a/Tools/qmake/mkspecs/modules/leveldb.prf b/Tools/qmake/mkspecs/modules/leveldb.prf
deleted file mode 100644
index d06acf05e..000000000
--- a/Tools/qmake/mkspecs/modules/leveldb.prf
+++ /dev/null
@@ -1,9 +0,0 @@
-# -------------------------------------------------------------------
-# Module file for leveldb, used by targets that depend on leveldb
-#
-# See 'Tools/qmake/README' for an overview of the build system
-# -------------------------------------------------------------------
-
-WEBKIT.leveldb.root_source_dir = $${ROOT_WEBKIT_DIR}/Source/ThirdParty/leveldb
-
-include($${WEBKIT.leveldb.root_source_dir}/leveldb.pri)
diff --git a/Tools/qmake/mkspecs/modules/webcore.prf b/Tools/qmake/mkspecs/modules/webcore.prf
deleted file mode 100644
index 9bd1776a7..000000000
--- a/Tools/qmake/mkspecs/modules/webcore.prf
+++ /dev/null
@@ -1,9 +0,0 @@
-# -------------------------------------------------------------------
-# Module file for WebCore, used by targets that depend on WebCore
-#
-# See 'Tools/qmake/README' for an overview of the build system
-# -------------------------------------------------------------------
-
-WEBKIT.webcore.root_source_dir = $${ROOT_WEBKIT_DIR}/Source/WebCore
-
-include($${WEBKIT.webcore.root_source_dir}/WebCore.pri)
diff --git a/Tools/qmake/mkspecs/modules/webkit1.prf b/Tools/qmake/mkspecs/modules/webkit1.prf
deleted file mode 100644
index ffab9a7fc..000000000
--- a/Tools/qmake/mkspecs/modules/webkit1.prf
+++ /dev/null
@@ -1,9 +0,0 @@
-# -------------------------------------------------------------------
-# Module file for WebKit1, used by targets that depend on WebKit1
-#
-# See 'Tools/qmake/README' for an overview of the build system
-# -------------------------------------------------------------------
-
-WEBKIT.webkit1.root_source_dir = $${ROOT_WEBKIT_DIR}/Source/WebKit
-
-include($${WEBKIT.webkit1.root_source_dir}/WebKit1.pri)
diff --git a/Tools/qmake/mkspecs/modules/webkit2.prf b/Tools/qmake/mkspecs/modules/webkit2.prf
deleted file mode 100644
index a2502160d..000000000
--- a/Tools/qmake/mkspecs/modules/webkit2.prf
+++ /dev/null
@@ -1,9 +0,0 @@
-# -------------------------------------------------------------------
-# Module file for WebKit2, used by targets that depend on WebKit2
-#
-# See 'Tools/qmake/README' for an overview of the build system
-# -------------------------------------------------------------------
-
-WEBKIT.webkit2.root_source_dir = $${ROOT_WEBKIT_DIR}/Source/WebKit2
-
-include($${WEBKIT.webkit2.root_source_dir}/WebKit2.pri)
diff --git a/Tools/qmake/mkspecs/modules/wtf.prf b/Tools/qmake/mkspecs/modules/wtf.prf
deleted file mode 100644
index 56df7476b..000000000
--- a/Tools/qmake/mkspecs/modules/wtf.prf
+++ /dev/null
@@ -1,9 +0,0 @@
-# -------------------------------------------------------------------
-# Module file for WTF, used by targets that depend on WTF
-#
-# See 'Tools/qmake/README' for an overview of the build system
-# -------------------------------------------------------------------
-
-WEBKIT.wtf.root_source_dir = $${ROOT_WEBKIT_DIR}/Source/WTF
-
-include($${WEBKIT.wtf.root_source_dir}/WTF.pri)