⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 136116 in webkit


Ignore:
Timestamp:
Nov 29, 2012, 2:56:42 AM (14 years ago)
Author:
Simon Hausmann
Message:

[Qt] Fix installation of QtWebProcess binary
​https://bugs.webkit.org/show_bug.cgi?id=101735

Patch by Andras Becsi <​andras.becsi@digia.com> on 2012-11-29
Reviewed by Simon Hausmann.

Source/WebKit2:

If available use QLibraryInfo::LibraryExecutablesPath to find
the web process and the plugin process and deploy both helper
processes to QT_INSTALL_LIBEXECS.

The effective fallback used to find the helper processes becomes:

  1. Application directory
  2. Qt library executables directory (QLibraryInfo::LibraryExecutablesPath)
  3. Qt binaries directory (QLibraryInfo::BinariesPath)
  4. No absolute path used
  • PluginProcess.pro:
  • Shared/qt/ProcessExecutablePathQt.cpp:

(WebKit::executablePath):

  • WebProcess.pro:

Tools:

Add config test to detect the availability of support
for "program executables" in Qt (libexec).

This test can be removed after the Qt5 release.

  • Tools.pro:
  • qmake/mkspecs/features/features.prf:
  • qmake/config.tests/libexecdir/libexecdir.cpp:
  • qmake/config.tests/libexecdir/libexecdir.pro:
Location:
trunk
Files:
3 added
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r136103 r136116  
     12012-11-29  Andras Becsi  <andras.becsi@digia.com>
     2
     3        [Qt] Fix installation of QtWebProcess binary
     4        https://bugs.webkit.org/show_bug.cgi?id=101735
     5
     6        Reviewed by Simon Hausmann.
     7
     8        If available use QLibraryInfo::LibraryExecutablesPath to find
     9        the web process and the plugin process and deploy both helper
     10        processes to QT_INSTALL_LIBEXECS.
     11
     12        The effective fallback used to find the helper processes becomes:
     13            1. Application directory
     14            2. Qt library executables directory (QLibraryInfo::LibraryExecutablesPath)
     15            3. Qt binaries directory (QLibraryInfo::BinariesPath)
     16            4. No absolute path used
     17
     18        * PluginProcess.pro:
     19        * Shared/qt/ProcessExecutablePathQt.cpp:
     20        (WebKit::executablePath):
     21        * WebProcess.pro:
     22
    1232012-11-28  Ryuan Choi  <ryuan.choi@gmail.com>
    224
  • trunk/Source/WebKit2/PluginProcess.pro

    r131300 r136116  
    2222
    2323isEmpty(INSTALL_BINS) {
    24     target.path = $$[QT_INSTALL_BINS]
     24    use?(libexecdir): target.path = $$[QT_INSTALL_LIBEXECS]
     25    else: target.path = $$[QT_INSTALL_BINS]
    2526} else {
    2627    target.path = $$INSTALL_BINS
  • trunk/Source/WebKit2/Shared/qt/ProcessExecutablePathQt.cpp

    r134161 r136116  
    4141        return String(expectedPath);
    4242
    43     expectedPath = QLibraryInfo::location(QLibraryInfo::BinariesPath) + QDir::separator() + baseName;
     43    QLibraryInfo::LibraryLocation location = QLibraryInfo::BinariesPath;
     44#if USE(LIBEXECDIR)
     45    location = QLibraryInfo::LibraryExecutablesPath;
     46#endif
     47
     48    expectedPath = QLibraryInfo::location(location) + QDir::separator() + baseName;
    4449    if (QFile::exists(expectedPath))
    4550        return String(expectedPath);
  • trunk/Source/WebKit2/WebProcess.pro

    r133890 r136116  
    2222
    2323isEmpty(INSTALL_BINS) {
    24     target.path = $$[QT_INSTALL_BINS]
     24    use?(libexecdir): target.path = $$[QT_INSTALL_LIBEXECS]
     25    else: target.path = $$[QT_INSTALL_BINS]
    2526} else {
    2627    target.path = $$INSTALL_BINS
  • trunk/Tools/ChangeLog

    r136106 r136116  
     12012-11-29  Andras Becsi  <andras.becsi@digia.com>
     2
     3        [Qt] Fix installation of QtWebProcess binary
     4        https://bugs.webkit.org/show_bug.cgi?id=101735
     5
     6        Reviewed by Simon Hausmann.
     7
     8        Add config test to detect the availability of support
     9        for "program executables" in Qt (libexec).
     10
     11        This test can be removed after the Qt5 release.
     12
     13        * Tools.pro:
     14        * qmake/mkspecs/features/features.prf:
     15        * qmake/config.tests/libexecdir/libexecdir.cpp:
     16        * qmake/config.tests/libexecdir/libexecdir.pro:
     17
    1182012-11-29  Eric Seidel  <eric@webkit.org>
    219
  • trunk/Tools/Tools.pro

    r132046 r136116  
    3535    qmake/config.tests/fontconfig/* \
    3636    qmake/config.tests/gccdepends/* \
     37    qmake/config.tests/libexecdir/* \
    3738    qmake/mkspecs/modules/* \
    3839    qmake/mkspecs/features/*.prf \
  • trunk/Tools/qmake/mkspecs/features/features.prf

    r134200 r136116  
    3838    haveQtModule(testlib): WEBKIT_CONFIG += have_qttestlib
    3939
     40    config_libexecdir: WEBKIT_CONFIG += use_libexecdir
    4041    config_libxml2: WEBKIT_CONFIG += use_libxml2
    4142    config_libxslt: WEBKIT_CONFIG += xslt
Note: See TracChangeset for help on using the changeset viewer.