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

Changeset 242882 in webkit


Ignore:
Timestamp:
Mar 13, 2019, 8:33:01 AM (7 years ago)
Author:
commit-queue@webkit.org
Message:

[Flatpak] Expand submodule recursively
https://bugs.webkit.org/show_bug.cgi?id=195672

Building WPE with flatpak was impossible without that as it was raising an exception.
Also update wpebackend-fdo to match what is built in jhbuild

Patch by Thibault Saunier <tsaunier@igalia.com> on 2019-03-13
Reviewed by Philippe Normand.

  • flatpak/flatpakutils.py:

(expand_submodules_recurse):
(expand_manifest):

  • flatpak/org.webkit.WPEModules.yaml:
Location:
trunk/Tools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r242880 r242882  
     12019-03-13  Thibault Saunier  <tsaunier@igalia.com>
     2
     3        [Flatpak] Expand submodule recursively
     4        https://bugs.webkit.org/show_bug.cgi?id=195672
     5
     6        Building WPE with flatpak was impossible without that as it was raising an exception.
     7        Also update wpebackend-fdo to match what is built in jhbuild
     8
     9        Reviewed by Philippe Normand.
     10
     11        * flatpak/flatpakutils.py:
     12        (expand_submodules_recurse):
     13        (expand_manifest):
     14        * flatpak/org.webkit.WPEModules.yaml:
     15
    1162019-03-13  Aakash Jain  <aakash_jain@apple.com>
    217
  • trunk/Tools/flatpak/flatpakutils.py

    r242040 r242882  
    165165
    166166
     167def expand_submodules_recurse(modules, manifest_path, port_name, command):
     168    all_modules = []
     169    if type(modules) is str:
     170        submanifest_path = os.path.join(os.path.dirname(manifest_path), modules)
     171        submanifest = load_manifest(submanifest_path, port_name=port_name, command=command)
     172        all_modules.extend(expand_submodules_recurse(submanifest, submanifest_path, port_name, command))
     173        return all_modules
     174
     175    for module in modules:
     176        if type(module) is str:
     177            submanifest_path = os.path.join(os.path.dirname(manifest_path), module)
     178            submanifest = load_manifest(submanifest_path, port_name=port_name, command=command)
     179            all_modules.extend(expand_submodules_recurse(submanifest, submanifest_path, port_name, command))
     180        else:
     181            all_modules.append(module)
     182
     183    return all_modules
     184
    167185def expand_manifest(manifest_path, outfile, port_name, source_root, command):
    168186    """Creates the manifest file."""
     
    189207            overriden_modules = []
    190208    for modules in manifest["modules"]:
    191         submanifest_path = None
    192         if type(modules) is str:
    193             submanifest_path = os.path.join(os.path.dirname(manifest_path), modules)
    194             modules = load_manifest(submanifest_path, port_name=port_name, command=command)
     209        modules = expand_submodules_recurse(modules, manifest_path, port_name, command)
    195210
    196211        if not isinstance(modules, list):
  • trunk/Tools/flatpak/org.webkit.WPEModules.yaml

    r240141 r242882  
    88  buildsystem: cmake-ninja
    99  sources:
    10     - type: archive
    11       url: https://wpewebkit.org/releases/wpebackend-fdo-1.1.0.tar.xz
    12       sha256: f6c72130d16e50860cb83eb0f6e109c76f1826d2c6bee39025fb3651941761e7
     10    - type: git
     11      url: https://github.com/Igalia/wpebackend-fdo.git
     12      commit: fa227dac7c6a133d62b35d7a6af0332582b64d4d
Note: See TracChangeset for help on using the changeset viewer.