haikuwebkit/Tools/buildstream/project.conf

280 lines
8.3 KiB
Plaintext
Raw Permalink Normal View History

[Flatpak SDK] Import build definitions https://bugs.webkit.org/show_bug.cgi?id=211448 Reviewed by Carlos Alberto Lopez Perez. To build the SDK, run `Tools/Scripts/webkit-flatpak-sdk --build`, this can take hours and use gigabytes of your hard-drive. To build a single recipe, use something like: `Tools/Scripts/bst-wrapper build sdk/gtk.bst` To enter the Buildstream SDK shell and debug stuff when hacking on a specific dependency, `Tools/Scripts/bst-wrapper shell sdk/gtk.bst`. To test your changes in WebKit: ```shell $ Tools/Scripts/webkit-flatpak -u --repo=Tools/buildstream/repo $ Tools/Scripts/run-minibrowser --gtk --flatpak-repo=Tools/buildstream/repo <url> ... ``` bst-wrapper has the same options as bst itself, documented on https://docs.buildstream.build/1.4.2/index.html. Internally the bst-wrapper will install Buildstream and a few other python dependencies in a local virtualenv managed by pipenv. This is all abstracted though, in theory direct access to the pipenv environment shouldn't be needed. * Scripts/bst-wrapper: Added. * Scripts/webkit-flatpak-sdk: Added. * buildstream/Makefile: Added. * buildstream/Pipfile: Added. * buildstream/Pipfile.lock: Added. * buildstream/elements/filtered-openh264.bst: Added. * buildstream/elements/filtered.bst: Added. * buildstream/elements/flatpak-platform-extensions.bst: Added. * buildstream/elements/flatpak-runtimes.bst: Added. * buildstream/elements/flatpak/platform-arch-libs-debug.bst: Added. * buildstream/elements/flatpak/platform-arch-libs.bst: Added. * buildstream/elements/flatpak/platform-image.bst: Added. * buildstream/elements/flatpak/platform-locale.bst: Added. * buildstream/elements/flatpak/platform.bst: Added. * buildstream/elements/flatpak/sdk-arch-libs-debug.bst: Added. * buildstream/elements/flatpak/sdk-arch-libs.bst: Added. * buildstream/elements/flatpak/sdk-debug.bst: Added. * buildstream/elements/flatpak/sdk-docs.bst: Added. * buildstream/elements/flatpak/sdk-image.bst: Added. * buildstream/elements/flatpak/sdk-locale.bst: Added. * buildstream/elements/flatpak/sdk.bst: Added. * buildstream/elements/freedesktop-sdk.bst: Added. * buildstream/elements/manifests/platform-manifest.bst: Added. * buildstream/elements/manifests/sdk-manifest.bst: Added. * buildstream/elements/qt5.bst: Added. * buildstream/elements/qt5/qtbase.bst: Added. * buildstream/elements/qt5/qtdeclarative.bst: Added. * buildstream/elements/qt5/qtquickcontrols.bst: Added. * buildstream/elements/qt5/qtquickcontrols2.bst: Added. * buildstream/elements/qt5/qtwayland.bst: Added. * buildstream/elements/qt5/qtx11extras.bst: Added. * buildstream/elements/sdk-build-depends/libusb.bst: Added. * buildstream/elements/sdk-build-depends/sassc.bst: Added. * buildstream/elements/sdk-build-depends/utf8proc.bst: Added. * buildstream/elements/sdk-depends/libsass.bst: Added. * buildstream/elements/sdk-platform.bst: Added. * buildstream/elements/sdk.bst: Added. * buildstream/elements/sdk/adwaita-icon-theme.bst: Added. * buildstream/elements/sdk/at-spi2-atk.bst: Added. * buildstream/elements/sdk/at-spi2-core.bst: Added. * buildstream/elements/sdk/atk.bst: Added. * buildstream/elements/sdk/brotli.bst: Added. * buildstream/elements/sdk/capnp.bst: Added. * buildstream/elements/sdk/enchant-2.bst: Added. * buildstream/elements/sdk/glib-networking.bst: Added. * buildstream/elements/sdk/glib.bst: Added. * buildstream/elements/sdk/gobject-introspection.bst: Added. * buildstream/elements/sdk/graphene.bst: Added. * buildstream/elements/sdk/graphviz.bst: Added. * buildstream/elements/sdk/gst-libav.bst: Added. * buildstream/elements/sdk/gst-plugins-bad.bst: Added. * buildstream/elements/sdk/gst-plugins-base.bst: Added. * buildstream/elements/sdk/gst-plugins-good.bst: Added. * buildstream/elements/sdk/gst-plugins-ugly.bst: Added. * buildstream/elements/sdk/gstreamer.bst: Added. * buildstream/elements/sdk/gtk+-3.bst: Added. * buildstream/elements/sdk/gtk.bst: Added. * buildstream/elements/sdk/icecc.bst: Added. * buildstream/elements/sdk/intltool.bst: Added. * buildstream/elements/sdk/krb5.bst: Added. * buildstream/elements/sdk/libcap-ng.bst: Added. * buildstream/elements/sdk/libevent.bst: Added. * buildstream/elements/sdk/libgcrypt.bst: Added. * buildstream/elements/sdk/libmanette.bst: Added. * buildstream/elements/sdk/libnotify.bst: Added. * buildstream/elements/sdk/libopenh264.bst: Added. * buildstream/elements/sdk/libsecret.bst: Added. * buildstream/elements/sdk/libsoup.bst: Added. * buildstream/elements/sdk/libsrtp2.bst: Added. * buildstream/elements/sdk/libusrsctp.bst: Added. * buildstream/elements/sdk/libwpe.bst: Added. * buildstream/elements/sdk/libzstd.bst: Added. * buildstream/elements/sdk/lzo2.bst: Added. * buildstream/elements/sdk/openjpeg.bst: Added. * buildstream/elements/sdk/openxr.bst: Added. * buildstream/elements/sdk/os-release.bst: Added. * buildstream/elements/sdk/patchelf.bst: Added. * buildstream/elements/sdk/psmisc.bst: Added. * buildstream/elements/sdk/pycairo.bst: Added. * buildstream/elements/sdk/pygobject.bst: Added. * buildstream/elements/sdk/python2-pycairo.bst: Added. * buildstream/elements/sdk/python2-pygobject.bst: Added. * buildstream/elements/sdk/python2-six.bst: Added. * buildstream/elements/sdk/python2-subprocess32.bst: Added. * buildstream/elements/sdk/python2.bst: Added. * buildstream/elements/sdk/rr.bst: Added. * buildstream/elements/sdk/sccache.bst: Added. * buildstream/elements/sdk/shared-mime-info.bst: Added. * buildstream/elements/sdk/subversion.bst: Added. * buildstream/elements/sdk/v4lutils.bst: Added. * buildstream/elements/sdk/woff2.bst: Added. * buildstream/elements/sdk/wpebackend-fdo.bst: Added. * buildstream/elements/sdk/x264.bst: Added. * buildstream/elements/sdk/xorg-server.bst: Added. * buildstream/elements/test-infra.bst: Added. * buildstream/elements/test-infra/apr-util.bst: Added. * buildstream/elements/test-infra/apr.bst: Added. * buildstream/elements/test-infra/httpd.bst: Added. * buildstream/elements/test-infra/perl-cgi-pm.bst: Added. * buildstream/elements/test-infra/perl-http-date-pm.bst: Added. * buildstream/elements/test-infra/php.bst: Added. * buildstream/elements/test-infra/webkitgtk-test-dicts.bst: Added. * buildstream/elements/test-infra/webkitgtk-test-fonts.bst: Added. * buildstream/files/krb5/krb5.conf: Added. * buildstream/files/os-release/issue.in: Added. * buildstream/files/os-release/issue.net.in: Added. * buildstream/files/os-release/org.webkit.Platform.appdata.xml.in: Added. * buildstream/files/os-release/org.webkit.Sdk.appdata.xml.in: Added. * buildstream/files/os-release/os-release.in: Added. * buildstream/patches/fdo-0001-Update-gcc-to-9.3.0.patch: Added. * buildstream/patches/fdo/0001-Add-Jack.patch: Added. * buildstream/patches/fdo/0001-components-xdg-desktop-portal.bst-Update-to-1.6.0.patch: Added. * buildstream/patches/fdo/0001-ffmpeg-Add-MS-MPEG-DivX-variants.patch: Added. * buildstream/patches/fdo/0002-Update-PipeWire-to-0.3.1.patch: Added. * buildstream/patches/fdo/0002-ffmpeg-Add-VP6-and-Sorenson-Spark-video-codecs.patch: Added. * buildstream/patches/fdo/0003-Add-Bluez.patch: Added. * buildstream/patches/fdo/0003-ffmpeg-Add-Intel-Indeo-and-Cinepak-video-support.patch: Added. * buildstream/patches/fdo/0004-ffmpeg-Add-MPEG-2-video-decoder.patch: Added. * buildstream/patches/fdo/0005-ffmpeg-Add-msmpeg4v3-support.patch: Added. * buildstream/patches/gst-libav-stop-caching-codecs.patch: Added. * buildstream/patches/gst-plugins-bad-0001-h264parse-Post-a-WARNING-when-data-is-broken.patch: Added. * buildstream/patches/gst-plugins-base-0001-glupload-Fix-fallback-from-direct-dmabuf-to-dmabuf-u.patch: Added. * buildstream/patches/gst-plugins-base-0001-playbin-Handle-error-message-with-redirection-indica.patch: Added. * buildstream/patches/gst-plugins-base-0002-glupload-fix-segfault.patch: Added. * buildstream/patches/gst-plugins-good-qtdemux-Specify-REDIRECT-information-in-error-messag.patch: Added. * buildstream/patches/gtk-meson-Bump-to-latest-version-of-the-3.24-branch.patch: Added. * buildstream/patches/httpd-0001-configure-use-pkg-config-for-PCRE-detection.patch: Added. * buildstream/patches/libav-0001-gstavviddec-Limit-default-number-of-decoder-threads.patch: Added. * buildstream/patches/libgcrypt-0001-Use-pkg-config-to-detect-gpg-error.patch: Added. * buildstream/patches/libgcrypt-use-only-dev-urandom-for-testing.patch: Added. * buildstream/patches/libsecret-b53e9876f4611525b7a8f69a3110fbec51dcede0.patch: Added. * buildstream/patches/nettle-no-debug.diff: Added. * buildstream/patches/qtbase-avoid-hardcoding-kernel-version.patch: Added. * buildstream/patches/qtbase-revert-correct-handling-for-xdg-runtime-dir.patch: Added. * buildstream/patches/qtbase-use-wayland-on-gnome.patch: Added. * buildstream/patches/qtdeclarative-use-python3.patch: Added. * buildstream/patches/qtwayland-use-gnome-platform-theme-on-gnome-based-desktops.patch: Added. * buildstream/patches/sccache-no-selenium.patch: Added. * buildstream/patches/xserver-search-for-DRI-drivers-at-LIBGL_DRIVERS_PATH-environ.patch: Added. * buildstream/project.conf: Added. * buildstream/utils/generate-version: Added. * gtk/install-dependencies: * wpe/install-dependencies: Canonical link: https://commits.webkit.org/224447@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@261274 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2020-05-07 08:33:30 +00:00
# Project name
name: webkit-sdk
# The minimum base BuildStream format
format-version: 17
# Where elements are stored
element-path: elements
fatal-warnings:
- overlaps
# Options to specify for the project, these provide
# command line switches which control the behavior of
# conditional directives in the element.bst files.
#
options:
arch:
type: arch
description: Machine architecture
variable: arch
values:
- aarch64
- x86_64
bootstrap_build_arch:
type: arch
description: Bootstrap build machine architecture
variable: bootstrap_build_arch
values:
- aarch64
- x86_64
# Source aliases.
#
# These are used in the individual element.bst files in
# place of specifying full uris.
#
# The location from where source code is downloaded can
# be changed without triggering a rebuild.
#
aliases:
[Flatpak SDK] Add libavif https://bugs.webkit.org/show_bug.cgi?id=212964 <rdar://problem/64291035> Patch by Philippe Normand <pnormand@igalia.com> on 2020-06-15 Reviewed by Žan Doberšek. Because of the ABI bump of dav1d, which ffmpeg depends on, ffmpeg needs to be rebuilt. So this is a good opportunity to include it in the SDK and not rely on the ffmpeg-full extension anymore, because it doesn't provide debug symbols. * buildstream/elements/flatpak/platform.bst: * buildstream/elements/flatpak/sdk.bst: * buildstream/elements/freedesktop-sdk.bst: * buildstream/elements/sdk-platform.bst: * buildstream/elements/sdk/ffmpeg.bst: Added. * buildstream/elements/sdk/gst-libav.bst: * buildstream/elements/sdk/libavif.bst: Added. * buildstream/elements/sdk/ruby-highline.bst: Remove the spec source, un-needed. * buildstream/patches/fdo/0001-dav1d-Bump-to-0.7.0.patch: Added. * buildstream/patches/fdo/0001-ffmpeg-Add-MS-MPEG-DivX-variants.patch: Removed. * buildstream/patches/fdo/0002-ffmpeg-Add-VP6-and-Sorenson-Spark-video-codecs.patch: Removed. * buildstream/patches/fdo/0003-ffmpeg-Add-Intel-Indeo-and-Cinepak-video-support.patch: Removed. * buildstream/patches/fdo/0004-ffmpeg-Add-MPEG-2-video-decoder.patch: Removed. * buildstream/patches/fdo/0005-ffmpeg-Add-msmpeg4v3-support.patch: Removed. * buildstream/project.conf: * flatpak/flatpakutils.py: (WebkitFlatpak._get_packages): Canonical link: https://commits.webkit.org/225965@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@263027 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2020-06-15 09:20:01 +00:00
ffmpeg: https://git.ffmpeg.org/
[Flatpak SDK] Import build definitions https://bugs.webkit.org/show_bug.cgi?id=211448 Reviewed by Carlos Alberto Lopez Perez. To build the SDK, run `Tools/Scripts/webkit-flatpak-sdk --build`, this can take hours and use gigabytes of your hard-drive. To build a single recipe, use something like: `Tools/Scripts/bst-wrapper build sdk/gtk.bst` To enter the Buildstream SDK shell and debug stuff when hacking on a specific dependency, `Tools/Scripts/bst-wrapper shell sdk/gtk.bst`. To test your changes in WebKit: ```shell $ Tools/Scripts/webkit-flatpak -u --repo=Tools/buildstream/repo $ Tools/Scripts/run-minibrowser --gtk --flatpak-repo=Tools/buildstream/repo <url> ... ``` bst-wrapper has the same options as bst itself, documented on https://docs.buildstream.build/1.4.2/index.html. Internally the bst-wrapper will install Buildstream and a few other python dependencies in a local virtualenv managed by pipenv. This is all abstracted though, in theory direct access to the pipenv environment shouldn't be needed. * Scripts/bst-wrapper: Added. * Scripts/webkit-flatpak-sdk: Added. * buildstream/Makefile: Added. * buildstream/Pipfile: Added. * buildstream/Pipfile.lock: Added. * buildstream/elements/filtered-openh264.bst: Added. * buildstream/elements/filtered.bst: Added. * buildstream/elements/flatpak-platform-extensions.bst: Added. * buildstream/elements/flatpak-runtimes.bst: Added. * buildstream/elements/flatpak/platform-arch-libs-debug.bst: Added. * buildstream/elements/flatpak/platform-arch-libs.bst: Added. * buildstream/elements/flatpak/platform-image.bst: Added. * buildstream/elements/flatpak/platform-locale.bst: Added. * buildstream/elements/flatpak/platform.bst: Added. * buildstream/elements/flatpak/sdk-arch-libs-debug.bst: Added. * buildstream/elements/flatpak/sdk-arch-libs.bst: Added. * buildstream/elements/flatpak/sdk-debug.bst: Added. * buildstream/elements/flatpak/sdk-docs.bst: Added. * buildstream/elements/flatpak/sdk-image.bst: Added. * buildstream/elements/flatpak/sdk-locale.bst: Added. * buildstream/elements/flatpak/sdk.bst: Added. * buildstream/elements/freedesktop-sdk.bst: Added. * buildstream/elements/manifests/platform-manifest.bst: Added. * buildstream/elements/manifests/sdk-manifest.bst: Added. * buildstream/elements/qt5.bst: Added. * buildstream/elements/qt5/qtbase.bst: Added. * buildstream/elements/qt5/qtdeclarative.bst: Added. * buildstream/elements/qt5/qtquickcontrols.bst: Added. * buildstream/elements/qt5/qtquickcontrols2.bst: Added. * buildstream/elements/qt5/qtwayland.bst: Added. * buildstream/elements/qt5/qtx11extras.bst: Added. * buildstream/elements/sdk-build-depends/libusb.bst: Added. * buildstream/elements/sdk-build-depends/sassc.bst: Added. * buildstream/elements/sdk-build-depends/utf8proc.bst: Added. * buildstream/elements/sdk-depends/libsass.bst: Added. * buildstream/elements/sdk-platform.bst: Added. * buildstream/elements/sdk.bst: Added. * buildstream/elements/sdk/adwaita-icon-theme.bst: Added. * buildstream/elements/sdk/at-spi2-atk.bst: Added. * buildstream/elements/sdk/at-spi2-core.bst: Added. * buildstream/elements/sdk/atk.bst: Added. * buildstream/elements/sdk/brotli.bst: Added. * buildstream/elements/sdk/capnp.bst: Added. * buildstream/elements/sdk/enchant-2.bst: Added. * buildstream/elements/sdk/glib-networking.bst: Added. * buildstream/elements/sdk/glib.bst: Added. * buildstream/elements/sdk/gobject-introspection.bst: Added. * buildstream/elements/sdk/graphene.bst: Added. * buildstream/elements/sdk/graphviz.bst: Added. * buildstream/elements/sdk/gst-libav.bst: Added. * buildstream/elements/sdk/gst-plugins-bad.bst: Added. * buildstream/elements/sdk/gst-plugins-base.bst: Added. * buildstream/elements/sdk/gst-plugins-good.bst: Added. * buildstream/elements/sdk/gst-plugins-ugly.bst: Added. * buildstream/elements/sdk/gstreamer.bst: Added. * buildstream/elements/sdk/gtk+-3.bst: Added. * buildstream/elements/sdk/gtk.bst: Added. * buildstream/elements/sdk/icecc.bst: Added. * buildstream/elements/sdk/intltool.bst: Added. * buildstream/elements/sdk/krb5.bst: Added. * buildstream/elements/sdk/libcap-ng.bst: Added. * buildstream/elements/sdk/libevent.bst: Added. * buildstream/elements/sdk/libgcrypt.bst: Added. * buildstream/elements/sdk/libmanette.bst: Added. * buildstream/elements/sdk/libnotify.bst: Added. * buildstream/elements/sdk/libopenh264.bst: Added. * buildstream/elements/sdk/libsecret.bst: Added. * buildstream/elements/sdk/libsoup.bst: Added. * buildstream/elements/sdk/libsrtp2.bst: Added. * buildstream/elements/sdk/libusrsctp.bst: Added. * buildstream/elements/sdk/libwpe.bst: Added. * buildstream/elements/sdk/libzstd.bst: Added. * buildstream/elements/sdk/lzo2.bst: Added. * buildstream/elements/sdk/openjpeg.bst: Added. * buildstream/elements/sdk/openxr.bst: Added. * buildstream/elements/sdk/os-release.bst: Added. * buildstream/elements/sdk/patchelf.bst: Added. * buildstream/elements/sdk/psmisc.bst: Added. * buildstream/elements/sdk/pycairo.bst: Added. * buildstream/elements/sdk/pygobject.bst: Added. * buildstream/elements/sdk/python2-pycairo.bst: Added. * buildstream/elements/sdk/python2-pygobject.bst: Added. * buildstream/elements/sdk/python2-six.bst: Added. * buildstream/elements/sdk/python2-subprocess32.bst: Added. * buildstream/elements/sdk/python2.bst: Added. * buildstream/elements/sdk/rr.bst: Added. * buildstream/elements/sdk/sccache.bst: Added. * buildstream/elements/sdk/shared-mime-info.bst: Added. * buildstream/elements/sdk/subversion.bst: Added. * buildstream/elements/sdk/v4lutils.bst: Added. * buildstream/elements/sdk/woff2.bst: Added. * buildstream/elements/sdk/wpebackend-fdo.bst: Added. * buildstream/elements/sdk/x264.bst: Added. * buildstream/elements/sdk/xorg-server.bst: Added. * buildstream/elements/test-infra.bst: Added. * buildstream/elements/test-infra/apr-util.bst: Added. * buildstream/elements/test-infra/apr.bst: Added. * buildstream/elements/test-infra/httpd.bst: Added. * buildstream/elements/test-infra/perl-cgi-pm.bst: Added. * buildstream/elements/test-infra/perl-http-date-pm.bst: Added. * buildstream/elements/test-infra/php.bst: Added. * buildstream/elements/test-infra/webkitgtk-test-dicts.bst: Added. * buildstream/elements/test-infra/webkitgtk-test-fonts.bst: Added. * buildstream/files/krb5/krb5.conf: Added. * buildstream/files/os-release/issue.in: Added. * buildstream/files/os-release/issue.net.in: Added. * buildstream/files/os-release/org.webkit.Platform.appdata.xml.in: Added. * buildstream/files/os-release/org.webkit.Sdk.appdata.xml.in: Added. * buildstream/files/os-release/os-release.in: Added. * buildstream/patches/fdo-0001-Update-gcc-to-9.3.0.patch: Added. * buildstream/patches/fdo/0001-Add-Jack.patch: Added. * buildstream/patches/fdo/0001-components-xdg-desktop-portal.bst-Update-to-1.6.0.patch: Added. * buildstream/patches/fdo/0001-ffmpeg-Add-MS-MPEG-DivX-variants.patch: Added. * buildstream/patches/fdo/0002-Update-PipeWire-to-0.3.1.patch: Added. * buildstream/patches/fdo/0002-ffmpeg-Add-VP6-and-Sorenson-Spark-video-codecs.patch: Added. * buildstream/patches/fdo/0003-Add-Bluez.patch: Added. * buildstream/patches/fdo/0003-ffmpeg-Add-Intel-Indeo-and-Cinepak-video-support.patch: Added. * buildstream/patches/fdo/0004-ffmpeg-Add-MPEG-2-video-decoder.patch: Added. * buildstream/patches/fdo/0005-ffmpeg-Add-msmpeg4v3-support.patch: Added. * buildstream/patches/gst-libav-stop-caching-codecs.patch: Added. * buildstream/patches/gst-plugins-bad-0001-h264parse-Post-a-WARNING-when-data-is-broken.patch: Added. * buildstream/patches/gst-plugins-base-0001-glupload-Fix-fallback-from-direct-dmabuf-to-dmabuf-u.patch: Added. * buildstream/patches/gst-plugins-base-0001-playbin-Handle-error-message-with-redirection-indica.patch: Added. * buildstream/patches/gst-plugins-base-0002-glupload-fix-segfault.patch: Added. * buildstream/patches/gst-plugins-good-qtdemux-Specify-REDIRECT-information-in-error-messag.patch: Added. * buildstream/patches/gtk-meson-Bump-to-latest-version-of-the-3.24-branch.patch: Added. * buildstream/patches/httpd-0001-configure-use-pkg-config-for-PCRE-detection.patch: Added. * buildstream/patches/libav-0001-gstavviddec-Limit-default-number-of-decoder-threads.patch: Added. * buildstream/patches/libgcrypt-0001-Use-pkg-config-to-detect-gpg-error.patch: Added. * buildstream/patches/libgcrypt-use-only-dev-urandom-for-testing.patch: Added. * buildstream/patches/libsecret-b53e9876f4611525b7a8f69a3110fbec51dcede0.patch: Added. * buildstream/patches/nettle-no-debug.diff: Added. * buildstream/patches/qtbase-avoid-hardcoding-kernel-version.patch: Added. * buildstream/patches/qtbase-revert-correct-handling-for-xdg-runtime-dir.patch: Added. * buildstream/patches/qtbase-use-wayland-on-gnome.patch: Added. * buildstream/patches/qtdeclarative-use-python3.patch: Added. * buildstream/patches/qtwayland-use-gnome-platform-theme-on-gnome-based-desktops.patch: Added. * buildstream/patches/sccache-no-selenium.patch: Added. * buildstream/patches/xserver-search-for-DRI-drivers-at-LIBGL_DRIVERS_PATH-environ.patch: Added. * buildstream/project.conf: Added. * buildstream/utils/generate-version: Added. * gtk/install-dependencies: * wpe/install-dependencies: Canonical link: https://commits.webkit.org/224447@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@261274 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2020-05-07 08:33:30 +00:00
gitlab_freedesktop_org: https://gitlab.freedesktop.org/
github_com: https://github.com/
#(github_files is an alias for the same url as github, but doesn't use the same mirror)
github_files: https://github.com/
[Flatpak SDK] Import build definitions https://bugs.webkit.org/show_bug.cgi?id=211448 Reviewed by Carlos Alberto Lopez Perez. To build the SDK, run `Tools/Scripts/webkit-flatpak-sdk --build`, this can take hours and use gigabytes of your hard-drive. To build a single recipe, use something like: `Tools/Scripts/bst-wrapper build sdk/gtk.bst` To enter the Buildstream SDK shell and debug stuff when hacking on a specific dependency, `Tools/Scripts/bst-wrapper shell sdk/gtk.bst`. To test your changes in WebKit: ```shell $ Tools/Scripts/webkit-flatpak -u --repo=Tools/buildstream/repo $ Tools/Scripts/run-minibrowser --gtk --flatpak-repo=Tools/buildstream/repo <url> ... ``` bst-wrapper has the same options as bst itself, documented on https://docs.buildstream.build/1.4.2/index.html. Internally the bst-wrapper will install Buildstream and a few other python dependencies in a local virtualenv managed by pipenv. This is all abstracted though, in theory direct access to the pipenv environment shouldn't be needed. * Scripts/bst-wrapper: Added. * Scripts/webkit-flatpak-sdk: Added. * buildstream/Makefile: Added. * buildstream/Pipfile: Added. * buildstream/Pipfile.lock: Added. * buildstream/elements/filtered-openh264.bst: Added. * buildstream/elements/filtered.bst: Added. * buildstream/elements/flatpak-platform-extensions.bst: Added. * buildstream/elements/flatpak-runtimes.bst: Added. * buildstream/elements/flatpak/platform-arch-libs-debug.bst: Added. * buildstream/elements/flatpak/platform-arch-libs.bst: Added. * buildstream/elements/flatpak/platform-image.bst: Added. * buildstream/elements/flatpak/platform-locale.bst: Added. * buildstream/elements/flatpak/platform.bst: Added. * buildstream/elements/flatpak/sdk-arch-libs-debug.bst: Added. * buildstream/elements/flatpak/sdk-arch-libs.bst: Added. * buildstream/elements/flatpak/sdk-debug.bst: Added. * buildstream/elements/flatpak/sdk-docs.bst: Added. * buildstream/elements/flatpak/sdk-image.bst: Added. * buildstream/elements/flatpak/sdk-locale.bst: Added. * buildstream/elements/flatpak/sdk.bst: Added. * buildstream/elements/freedesktop-sdk.bst: Added. * buildstream/elements/manifests/platform-manifest.bst: Added. * buildstream/elements/manifests/sdk-manifest.bst: Added. * buildstream/elements/qt5.bst: Added. * buildstream/elements/qt5/qtbase.bst: Added. * buildstream/elements/qt5/qtdeclarative.bst: Added. * buildstream/elements/qt5/qtquickcontrols.bst: Added. * buildstream/elements/qt5/qtquickcontrols2.bst: Added. * buildstream/elements/qt5/qtwayland.bst: Added. * buildstream/elements/qt5/qtx11extras.bst: Added. * buildstream/elements/sdk-build-depends/libusb.bst: Added. * buildstream/elements/sdk-build-depends/sassc.bst: Added. * buildstream/elements/sdk-build-depends/utf8proc.bst: Added. * buildstream/elements/sdk-depends/libsass.bst: Added. * buildstream/elements/sdk-platform.bst: Added. * buildstream/elements/sdk.bst: Added. * buildstream/elements/sdk/adwaita-icon-theme.bst: Added. * buildstream/elements/sdk/at-spi2-atk.bst: Added. * buildstream/elements/sdk/at-spi2-core.bst: Added. * buildstream/elements/sdk/atk.bst: Added. * buildstream/elements/sdk/brotli.bst: Added. * buildstream/elements/sdk/capnp.bst: Added. * buildstream/elements/sdk/enchant-2.bst: Added. * buildstream/elements/sdk/glib-networking.bst: Added. * buildstream/elements/sdk/glib.bst: Added. * buildstream/elements/sdk/gobject-introspection.bst: Added. * buildstream/elements/sdk/graphene.bst: Added. * buildstream/elements/sdk/graphviz.bst: Added. * buildstream/elements/sdk/gst-libav.bst: Added. * buildstream/elements/sdk/gst-plugins-bad.bst: Added. * buildstream/elements/sdk/gst-plugins-base.bst: Added. * buildstream/elements/sdk/gst-plugins-good.bst: Added. * buildstream/elements/sdk/gst-plugins-ugly.bst: Added. * buildstream/elements/sdk/gstreamer.bst: Added. * buildstream/elements/sdk/gtk+-3.bst: Added. * buildstream/elements/sdk/gtk.bst: Added. * buildstream/elements/sdk/icecc.bst: Added. * buildstream/elements/sdk/intltool.bst: Added. * buildstream/elements/sdk/krb5.bst: Added. * buildstream/elements/sdk/libcap-ng.bst: Added. * buildstream/elements/sdk/libevent.bst: Added. * buildstream/elements/sdk/libgcrypt.bst: Added. * buildstream/elements/sdk/libmanette.bst: Added. * buildstream/elements/sdk/libnotify.bst: Added. * buildstream/elements/sdk/libopenh264.bst: Added. * buildstream/elements/sdk/libsecret.bst: Added. * buildstream/elements/sdk/libsoup.bst: Added. * buildstream/elements/sdk/libsrtp2.bst: Added. * buildstream/elements/sdk/libusrsctp.bst: Added. * buildstream/elements/sdk/libwpe.bst: Added. * buildstream/elements/sdk/libzstd.bst: Added. * buildstream/elements/sdk/lzo2.bst: Added. * buildstream/elements/sdk/openjpeg.bst: Added. * buildstream/elements/sdk/openxr.bst: Added. * buildstream/elements/sdk/os-release.bst: Added. * buildstream/elements/sdk/patchelf.bst: Added. * buildstream/elements/sdk/psmisc.bst: Added. * buildstream/elements/sdk/pycairo.bst: Added. * buildstream/elements/sdk/pygobject.bst: Added. * buildstream/elements/sdk/python2-pycairo.bst: Added. * buildstream/elements/sdk/python2-pygobject.bst: Added. * buildstream/elements/sdk/python2-six.bst: Added. * buildstream/elements/sdk/python2-subprocess32.bst: Added. * buildstream/elements/sdk/python2.bst: Added. * buildstream/elements/sdk/rr.bst: Added. * buildstream/elements/sdk/sccache.bst: Added. * buildstream/elements/sdk/shared-mime-info.bst: Added. * buildstream/elements/sdk/subversion.bst: Added. * buildstream/elements/sdk/v4lutils.bst: Added. * buildstream/elements/sdk/woff2.bst: Added. * buildstream/elements/sdk/wpebackend-fdo.bst: Added. * buildstream/elements/sdk/x264.bst: Added. * buildstream/elements/sdk/xorg-server.bst: Added. * buildstream/elements/test-infra.bst: Added. * buildstream/elements/test-infra/apr-util.bst: Added. * buildstream/elements/test-infra/apr.bst: Added. * buildstream/elements/test-infra/httpd.bst: Added. * buildstream/elements/test-infra/perl-cgi-pm.bst: Added. * buildstream/elements/test-infra/perl-http-date-pm.bst: Added. * buildstream/elements/test-infra/php.bst: Added. * buildstream/elements/test-infra/webkitgtk-test-dicts.bst: Added. * buildstream/elements/test-infra/webkitgtk-test-fonts.bst: Added. * buildstream/files/krb5/krb5.conf: Added. * buildstream/files/os-release/issue.in: Added. * buildstream/files/os-release/issue.net.in: Added. * buildstream/files/os-release/org.webkit.Platform.appdata.xml.in: Added. * buildstream/files/os-release/org.webkit.Sdk.appdata.xml.in: Added. * buildstream/files/os-release/os-release.in: Added. * buildstream/patches/fdo-0001-Update-gcc-to-9.3.0.patch: Added. * buildstream/patches/fdo/0001-Add-Jack.patch: Added. * buildstream/patches/fdo/0001-components-xdg-desktop-portal.bst-Update-to-1.6.0.patch: Added. * buildstream/patches/fdo/0001-ffmpeg-Add-MS-MPEG-DivX-variants.patch: Added. * buildstream/patches/fdo/0002-Update-PipeWire-to-0.3.1.patch: Added. * buildstream/patches/fdo/0002-ffmpeg-Add-VP6-and-Sorenson-Spark-video-codecs.patch: Added. * buildstream/patches/fdo/0003-Add-Bluez.patch: Added. * buildstream/patches/fdo/0003-ffmpeg-Add-Intel-Indeo-and-Cinepak-video-support.patch: Added. * buildstream/patches/fdo/0004-ffmpeg-Add-MPEG-2-video-decoder.patch: Added. * buildstream/patches/fdo/0005-ffmpeg-Add-msmpeg4v3-support.patch: Added. * buildstream/patches/gst-libav-stop-caching-codecs.patch: Added. * buildstream/patches/gst-plugins-bad-0001-h264parse-Post-a-WARNING-when-data-is-broken.patch: Added. * buildstream/patches/gst-plugins-base-0001-glupload-Fix-fallback-from-direct-dmabuf-to-dmabuf-u.patch: Added. * buildstream/patches/gst-plugins-base-0001-playbin-Handle-error-message-with-redirection-indica.patch: Added. * buildstream/patches/gst-plugins-base-0002-glupload-fix-segfault.patch: Added. * buildstream/patches/gst-plugins-good-qtdemux-Specify-REDIRECT-information-in-error-messag.patch: Added. * buildstream/patches/gtk-meson-Bump-to-latest-version-of-the-3.24-branch.patch: Added. * buildstream/patches/httpd-0001-configure-use-pkg-config-for-PCRE-detection.patch: Added. * buildstream/patches/libav-0001-gstavviddec-Limit-default-number-of-decoder-threads.patch: Added. * buildstream/patches/libgcrypt-0001-Use-pkg-config-to-detect-gpg-error.patch: Added. * buildstream/patches/libgcrypt-use-only-dev-urandom-for-testing.patch: Added. * buildstream/patches/libsecret-b53e9876f4611525b7a8f69a3110fbec51dcede0.patch: Added. * buildstream/patches/nettle-no-debug.diff: Added. * buildstream/patches/qtbase-avoid-hardcoding-kernel-version.patch: Added. * buildstream/patches/qtbase-revert-correct-handling-for-xdg-runtime-dir.patch: Added. * buildstream/patches/qtbase-use-wayland-on-gnome.patch: Added. * buildstream/patches/qtdeclarative-use-python3.patch: Added. * buildstream/patches/qtwayland-use-gnome-platform-theme-on-gnome-based-desktops.patch: Added. * buildstream/patches/sccache-no-selenium.patch: Added. * buildstream/patches/xserver-search-for-DRI-drivers-at-LIBGL_DRIVERS_PATH-environ.patch: Added. * buildstream/project.conf: Added. * buildstream/utils/generate-version: Added. * gtk/install-dependencies: * wpe/install-dependencies: Canonical link: https://commits.webkit.org/224447@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@261274 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2020-05-07 08:33:30 +00:00
gitlab_com: https://gitlab.com/
gitlab_gnome_org: https://gitlab.gnome.org/
raw_githubusercontent_com: https://raw.githubusercontent.com/
gnome_downloads: https://download.gnome.org/sources/
gst_downloads: https://gstreamer.freedesktop.org/src/
ruby_gems: https://rubygems.org/downloads/
2021-07-28 08:34:54 +00:00
kde: https://invent.kde.org/qt/qt/
pypi: https://files.pythonhosted.org/packages/
2021-07-28 08:34:54 +00:00
vlc: https://code.videolan.org/
[Flatpak SDK] Import build definitions https://bugs.webkit.org/show_bug.cgi?id=211448 Reviewed by Carlos Alberto Lopez Perez. To build the SDK, run `Tools/Scripts/webkit-flatpak-sdk --build`, this can take hours and use gigabytes of your hard-drive. To build a single recipe, use something like: `Tools/Scripts/bst-wrapper build sdk/gtk.bst` To enter the Buildstream SDK shell and debug stuff when hacking on a specific dependency, `Tools/Scripts/bst-wrapper shell sdk/gtk.bst`. To test your changes in WebKit: ```shell $ Tools/Scripts/webkit-flatpak -u --repo=Tools/buildstream/repo $ Tools/Scripts/run-minibrowser --gtk --flatpak-repo=Tools/buildstream/repo <url> ... ``` bst-wrapper has the same options as bst itself, documented on https://docs.buildstream.build/1.4.2/index.html. Internally the bst-wrapper will install Buildstream and a few other python dependencies in a local virtualenv managed by pipenv. This is all abstracted though, in theory direct access to the pipenv environment shouldn't be needed. * Scripts/bst-wrapper: Added. * Scripts/webkit-flatpak-sdk: Added. * buildstream/Makefile: Added. * buildstream/Pipfile: Added. * buildstream/Pipfile.lock: Added. * buildstream/elements/filtered-openh264.bst: Added. * buildstream/elements/filtered.bst: Added. * buildstream/elements/flatpak-platform-extensions.bst: Added. * buildstream/elements/flatpak-runtimes.bst: Added. * buildstream/elements/flatpak/platform-arch-libs-debug.bst: Added. * buildstream/elements/flatpak/platform-arch-libs.bst: Added. * buildstream/elements/flatpak/platform-image.bst: Added. * buildstream/elements/flatpak/platform-locale.bst: Added. * buildstream/elements/flatpak/platform.bst: Added. * buildstream/elements/flatpak/sdk-arch-libs-debug.bst: Added. * buildstream/elements/flatpak/sdk-arch-libs.bst: Added. * buildstream/elements/flatpak/sdk-debug.bst: Added. * buildstream/elements/flatpak/sdk-docs.bst: Added. * buildstream/elements/flatpak/sdk-image.bst: Added. * buildstream/elements/flatpak/sdk-locale.bst: Added. * buildstream/elements/flatpak/sdk.bst: Added. * buildstream/elements/freedesktop-sdk.bst: Added. * buildstream/elements/manifests/platform-manifest.bst: Added. * buildstream/elements/manifests/sdk-manifest.bst: Added. * buildstream/elements/qt5.bst: Added. * buildstream/elements/qt5/qtbase.bst: Added. * buildstream/elements/qt5/qtdeclarative.bst: Added. * buildstream/elements/qt5/qtquickcontrols.bst: Added. * buildstream/elements/qt5/qtquickcontrols2.bst: Added. * buildstream/elements/qt5/qtwayland.bst: Added. * buildstream/elements/qt5/qtx11extras.bst: Added. * buildstream/elements/sdk-build-depends/libusb.bst: Added. * buildstream/elements/sdk-build-depends/sassc.bst: Added. * buildstream/elements/sdk-build-depends/utf8proc.bst: Added. * buildstream/elements/sdk-depends/libsass.bst: Added. * buildstream/elements/sdk-platform.bst: Added. * buildstream/elements/sdk.bst: Added. * buildstream/elements/sdk/adwaita-icon-theme.bst: Added. * buildstream/elements/sdk/at-spi2-atk.bst: Added. * buildstream/elements/sdk/at-spi2-core.bst: Added. * buildstream/elements/sdk/atk.bst: Added. * buildstream/elements/sdk/brotli.bst: Added. * buildstream/elements/sdk/capnp.bst: Added. * buildstream/elements/sdk/enchant-2.bst: Added. * buildstream/elements/sdk/glib-networking.bst: Added. * buildstream/elements/sdk/glib.bst: Added. * buildstream/elements/sdk/gobject-introspection.bst: Added. * buildstream/elements/sdk/graphene.bst: Added. * buildstream/elements/sdk/graphviz.bst: Added. * buildstream/elements/sdk/gst-libav.bst: Added. * buildstream/elements/sdk/gst-plugins-bad.bst: Added. * buildstream/elements/sdk/gst-plugins-base.bst: Added. * buildstream/elements/sdk/gst-plugins-good.bst: Added. * buildstream/elements/sdk/gst-plugins-ugly.bst: Added. * buildstream/elements/sdk/gstreamer.bst: Added. * buildstream/elements/sdk/gtk+-3.bst: Added. * buildstream/elements/sdk/gtk.bst: Added. * buildstream/elements/sdk/icecc.bst: Added. * buildstream/elements/sdk/intltool.bst: Added. * buildstream/elements/sdk/krb5.bst: Added. * buildstream/elements/sdk/libcap-ng.bst: Added. * buildstream/elements/sdk/libevent.bst: Added. * buildstream/elements/sdk/libgcrypt.bst: Added. * buildstream/elements/sdk/libmanette.bst: Added. * buildstream/elements/sdk/libnotify.bst: Added. * buildstream/elements/sdk/libopenh264.bst: Added. * buildstream/elements/sdk/libsecret.bst: Added. * buildstream/elements/sdk/libsoup.bst: Added. * buildstream/elements/sdk/libsrtp2.bst: Added. * buildstream/elements/sdk/libusrsctp.bst: Added. * buildstream/elements/sdk/libwpe.bst: Added. * buildstream/elements/sdk/libzstd.bst: Added. * buildstream/elements/sdk/lzo2.bst: Added. * buildstream/elements/sdk/openjpeg.bst: Added. * buildstream/elements/sdk/openxr.bst: Added. * buildstream/elements/sdk/os-release.bst: Added. * buildstream/elements/sdk/patchelf.bst: Added. * buildstream/elements/sdk/psmisc.bst: Added. * buildstream/elements/sdk/pycairo.bst: Added. * buildstream/elements/sdk/pygobject.bst: Added. * buildstream/elements/sdk/python2-pycairo.bst: Added. * buildstream/elements/sdk/python2-pygobject.bst: Added. * buildstream/elements/sdk/python2-six.bst: Added. * buildstream/elements/sdk/python2-subprocess32.bst: Added. * buildstream/elements/sdk/python2.bst: Added. * buildstream/elements/sdk/rr.bst: Added. * buildstream/elements/sdk/sccache.bst: Added. * buildstream/elements/sdk/shared-mime-info.bst: Added. * buildstream/elements/sdk/subversion.bst: Added. * buildstream/elements/sdk/v4lutils.bst: Added. * buildstream/elements/sdk/woff2.bst: Added. * buildstream/elements/sdk/wpebackend-fdo.bst: Added. * buildstream/elements/sdk/x264.bst: Added. * buildstream/elements/sdk/xorg-server.bst: Added. * buildstream/elements/test-infra.bst: Added. * buildstream/elements/test-infra/apr-util.bst: Added. * buildstream/elements/test-infra/apr.bst: Added. * buildstream/elements/test-infra/httpd.bst: Added. * buildstream/elements/test-infra/perl-cgi-pm.bst: Added. * buildstream/elements/test-infra/perl-http-date-pm.bst: Added. * buildstream/elements/test-infra/php.bst: Added. * buildstream/elements/test-infra/webkitgtk-test-dicts.bst: Added. * buildstream/elements/test-infra/webkitgtk-test-fonts.bst: Added. * buildstream/files/krb5/krb5.conf: Added. * buildstream/files/os-release/issue.in: Added. * buildstream/files/os-release/issue.net.in: Added. * buildstream/files/os-release/org.webkit.Platform.appdata.xml.in: Added. * buildstream/files/os-release/org.webkit.Sdk.appdata.xml.in: Added. * buildstream/files/os-release/os-release.in: Added. * buildstream/patches/fdo-0001-Update-gcc-to-9.3.0.patch: Added. * buildstream/patches/fdo/0001-Add-Jack.patch: Added. * buildstream/patches/fdo/0001-components-xdg-desktop-portal.bst-Update-to-1.6.0.patch: Added. * buildstream/patches/fdo/0001-ffmpeg-Add-MS-MPEG-DivX-variants.patch: Added. * buildstream/patches/fdo/0002-Update-PipeWire-to-0.3.1.patch: Added. * buildstream/patches/fdo/0002-ffmpeg-Add-VP6-and-Sorenson-Spark-video-codecs.patch: Added. * buildstream/patches/fdo/0003-Add-Bluez.patch: Added. * buildstream/patches/fdo/0003-ffmpeg-Add-Intel-Indeo-and-Cinepak-video-support.patch: Added. * buildstream/patches/fdo/0004-ffmpeg-Add-MPEG-2-video-decoder.patch: Added. * buildstream/patches/fdo/0005-ffmpeg-Add-msmpeg4v3-support.patch: Added. * buildstream/patches/gst-libav-stop-caching-codecs.patch: Added. * buildstream/patches/gst-plugins-bad-0001-h264parse-Post-a-WARNING-when-data-is-broken.patch: Added. * buildstream/patches/gst-plugins-base-0001-glupload-Fix-fallback-from-direct-dmabuf-to-dmabuf-u.patch: Added. * buildstream/patches/gst-plugins-base-0001-playbin-Handle-error-message-with-redirection-indica.patch: Added. * buildstream/patches/gst-plugins-base-0002-glupload-fix-segfault.patch: Added. * buildstream/patches/gst-plugins-good-qtdemux-Specify-REDIRECT-information-in-error-messag.patch: Added. * buildstream/patches/gtk-meson-Bump-to-latest-version-of-the-3.24-branch.patch: Added. * buildstream/patches/httpd-0001-configure-use-pkg-config-for-PCRE-detection.patch: Added. * buildstream/patches/libav-0001-gstavviddec-Limit-default-number-of-decoder-threads.patch: Added. * buildstream/patches/libgcrypt-0001-Use-pkg-config-to-detect-gpg-error.patch: Added. * buildstream/patches/libgcrypt-use-only-dev-urandom-for-testing.patch: Added. * buildstream/patches/libsecret-b53e9876f4611525b7a8f69a3110fbec51dcede0.patch: Added. * buildstream/patches/nettle-no-debug.diff: Added. * buildstream/patches/qtbase-avoid-hardcoding-kernel-version.patch: Added. * buildstream/patches/qtbase-revert-correct-handling-for-xdg-runtime-dir.patch: Added. * buildstream/patches/qtbase-use-wayland-on-gnome.patch: Added. * buildstream/patches/qtdeclarative-use-python3.patch: Added. * buildstream/patches/qtwayland-use-gnome-platform-theme-on-gnome-based-desktops.patch: Added. * buildstream/patches/sccache-no-selenium.patch: Added. * buildstream/patches/xserver-search-for-DRI-drivers-at-LIBGL_DRIVERS_PATH-environ.patch: Added. * buildstream/project.conf: Added. * buildstream/utils/generate-version: Added. * gtk/install-dependencies: * wpe/install-dependencies: Canonical link: https://commits.webkit.org/224447@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@261274 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2020-05-07 08:33:30 +00:00
# Some overrides to the default sandbox execution environment
#
environment:
LC_ALL: en_US.UTF-8
LD_LIBRARY_PATH: '%{libdir}'
PATH: /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
PKG_CONFIG_PATH: /usr/local/lib/pkgconfig:%{libdir}/pkgconfig
(?):
- arch == "x86_64":
CFLAGS: "%{flags_x86_64}"
CXXFLAGS: "%{flags_x86_64}"
LDFLAGS: "%{ldflags_defaults}"
- arch == "aarch64":
CFLAGS: "%{flags_aarch64}"
CXXFLAGS: "%{flags_aarch64}"
LDFLAGS: "%{ldflags_defaults}"
# Some overrides to element configuration based on type
#
# Here we can set a project wide options for various build systems,
# e.g. we can add --disable-gtk-doc to every `./configure` line.
elements:
autotools:
variables:
conf-global: --disable-static --disable-Werror --host=%{triplet} --build=%{triplet}
# Temporary workaround to avoid regenerating existing
# configure scripts when building tarballs.
#
# We can remove this after addressing the upstream issue:
#
# https://gitlab.com/BuildStream/buildstream/issues/256
#
# XXX: updating config.{sub,guess} would be still useful in that case
# to fix compilation on recent architectures such as aarch64.
autogen: |
export NOCONFIGURE=1
if [ -x %{conf-cmd} ]; then cp -f /usr/share/automake*/config.{sub,guess} %{conf-aux}
elif [ -x autogen ]; then ./autogen
elif [ -x autogen.sh ]; then ./autogen.sh
elif [ -x bootstrap ]; then ./bootstrap
elif [ -x bootstrap.sh ]; then ./bootstrap.sh
else autoreconf -ivf
fi
# the directory where config.sub and config.guess are stored
conf-aux: .
cmake:
variables:
cmake-global: -DCMAKE_BUILD_TYPE=RelWithDebInfo
generator: Ninja
distutils:
variables:
prefix: /usr/local
python-install: '%{python} setup.py install --root "%{install-root}"'
fix-pyc-timestamps: ''
config:
install-commands:
(>):
# There's no way to get the setup.py to install this in the right place.
- |
if [ -d '%{install-root}/usr/lib/pkgconfig/' ]; then
mkdir -p %{install-root}/usr/%{lib}/
mv -f %{install-root}/usr/lib/pkgconfig/ %{install-root}/usr/%{lib}/
fi
meson:
variables:
meson-global: --buildtype=plain --auto-features=enabled
pip:
variables:
pip: pip3
fix-pyc-timestamps: "true"
config:
install-commands:
- |
%{pip} install --no-build-isolation --no-deps --root=%{install-root} --prefix=%{prefix} .
filter:
config:
include-orphans: true
sources:
git_tag:
config:
checkout-submodules: false
track-tags: false
split-rules:
devel:
(>):
- '%{libdir}/cmake'
- '%{libdir}/cmake/**'
- '%{libdir}/cmake/**'
- '%{datadir}/gir-1.0/**'
vm:
- '%{datadir}/dbus-1/**'
# Define some behavior for `bst shell`
#
shell:
# Default command for `bst shell`, we prefer bash, and disable
# parsing of profile and rc files so that the prompt BuildStream
# sets is not overwritten.
command: ['bash', '--noprofile', '--norc', '-i']
# Some environment variables to inherit from the host environment
environment:
LANG: '$LANG'
DISPLAY: '$DISPLAY'
DBUS_SESSION_BUS_ADDRESS: '$DBUS_SESSION_BUS_ADDRESS'
XDG_RUNTIME_DIR: '$XDG_RUNTIME_DIR'
# Inform applications which use pulseaudio of the server socket
PULSE_SERVER: 'unix:${XDG_RUNTIME_DIR}/pulse/native'
# Some things to mount into the sandbox
host-files:
# Understand user inherited uid/gid
- '/etc/passwd'
- '/etc/group'
# Allow network resolution
- '/etc/resolv.conf'
# Allow access to plausible video devices,
# declare these optional to avoid meaningless warnings
- path: '/dev/dri'
optional: true
- path: '/dev/mali'
optional: true
- path: '/dev/mali0'
optional: true
- path: '/dev/umplock'
optional: true
- path: '/dev/nvidiactl'
optional: true
- path: '/dev/nvidia0'
optional: true
- path: '/dev/nvidia-modeset'
optional: true
# Allow access to sysfs, needed for local device discovery
- '/sys'
# Allow access to the user runtime directory, this
# will include the pulseaudio socket along with some
# other things.
- '${XDG_RUNTIME_DIR}'
variables:
[Flatpak SDK] Update to FDO 20.08 https://bugs.webkit.org/show_bug.cgi?id=215763 Reviewed by Žan Doberšek. .: * .gitignore: Ignore buildstream local Flatpak repository. This is created only when manually building the SDK. Tools: Highlights: - ICU 67 (see bug 215327) - gcc update from 9.3.0 to 10.0 - clang update from 8.0 to 10.0 - perf is now included - usable pipewire (host needs a working daemon and recent enough xdg-desktop-portal though) - Mesa is no longer loaded from the flathub GL extension, but included in our downstream SDK, with debug symbols This patch only includes the build definitions updates, bumping the SDK branch to 0.3. The actual migration will be landed in a follow-up patch. * buildstream/elements/flatpak-platform-extensions.bst: * buildstream/elements/flatpak-runtimes.bst: * buildstream/elements/flatpak/platform.bst: * buildstream/elements/flatpak/sdk.bst: * buildstream/elements/freedesktop-sdk.bst: * buildstream/elements/sdk-build-depends/swig.bst: * buildstream/elements/sdk-platform.bst: * buildstream/elements/sdk.bst: * buildstream/elements/sdk/at-spi2-atk.bst: Removed. * buildstream/elements/sdk/at-spi2-core.bst: Removed. * buildstream/elements/sdk/atk.bst: Removed. * buildstream/elements/sdk/brotli.bst: Removed. * buildstream/elements/sdk/glib.bst: * buildstream/elements/sdk/gobject-introspection.bst: Removed. * buildstream/elements/sdk/graphene.bst: * buildstream/elements/sdk/gst-plugins-bad.bst: * buildstream/elements/sdk/gst-plugins-good.bst: * buildstream/elements/sdk/gstreamer.bst: * buildstream/elements/sdk/gtk+-3.bst: * buildstream/elements/sdk/gtk.bst: * buildstream/elements/sdk/libdrm.bst: Added. * buildstream/elements/sdk/libgcrypt.bst: * buildstream/elements/sdk/libsecret.bst: * buildstream/elements/sdk/libsoup.bst: * buildstream/elements/sdk/libsrtp2.bst: Removed. * buildstream/elements/sdk/mesa.bst: Added. * buildstream/elements/sdk/pygobject.bst: * buildstream/elements/sdk/python2-pygobject.bst: * buildstream/elements/sdk/rr.bst: * buildstream/elements/sdk/shared-mime-info.bst: * buildstream/elements/sdk/v4lutils.bst: Removed. * buildstream/elements/sdk/woff2.bst: * buildstream/elements/sdk/xorg-server.bst: * buildstream/elements/test-infra/httpd.bst: * buildstream/patches/fdo/0001-Pango-Bump-to-1.45-master.patch: Removed. * buildstream/patches/fdo/0001-dav1d-Bump-to-0.7.0.patch: Removed. * buildstream/patches/gtk-meson-Bump-to-latest-version-of-the-3.24-branch.patch: Removed. * buildstream/patches/libsecret-b53e9876f4611525b7a8f69a3110fbec51dcede0.patch: Removed. * buildstream/patches/mesa/mesa_libdrm_deps.patch: Added. * buildstream/patches/xserver-search-for-DRI-drivers-at-LIBGL_DRIVERS_PATH-environ.patch: Removed because a variant was landed upstream 2 years ago: https://gitlab.freedesktop.org/xorg/xserver/-/commit/319af6f471912160ab3eb6395ef50f9950063d43 * buildstream/project.conf: * flatpak/flatpakutils.py: (WebkitFlatpak.run_in_sandbox): White-list a few Mesa environment variables. Canonical link: https://commits.webkit.org/228860@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@266455 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2020-09-02 13:29:55 +00:00
sdk-branch: "0.3"
[Flatpak SDK] Import build definitions https://bugs.webkit.org/show_bug.cgi?id=211448 Reviewed by Carlos Alberto Lopez Perez. To build the SDK, run `Tools/Scripts/webkit-flatpak-sdk --build`, this can take hours and use gigabytes of your hard-drive. To build a single recipe, use something like: `Tools/Scripts/bst-wrapper build sdk/gtk.bst` To enter the Buildstream SDK shell and debug stuff when hacking on a specific dependency, `Tools/Scripts/bst-wrapper shell sdk/gtk.bst`. To test your changes in WebKit: ```shell $ Tools/Scripts/webkit-flatpak -u --repo=Tools/buildstream/repo $ Tools/Scripts/run-minibrowser --gtk --flatpak-repo=Tools/buildstream/repo <url> ... ``` bst-wrapper has the same options as bst itself, documented on https://docs.buildstream.build/1.4.2/index.html. Internally the bst-wrapper will install Buildstream and a few other python dependencies in a local virtualenv managed by pipenv. This is all abstracted though, in theory direct access to the pipenv environment shouldn't be needed. * Scripts/bst-wrapper: Added. * Scripts/webkit-flatpak-sdk: Added. * buildstream/Makefile: Added. * buildstream/Pipfile: Added. * buildstream/Pipfile.lock: Added. * buildstream/elements/filtered-openh264.bst: Added. * buildstream/elements/filtered.bst: Added. * buildstream/elements/flatpak-platform-extensions.bst: Added. * buildstream/elements/flatpak-runtimes.bst: Added. * buildstream/elements/flatpak/platform-arch-libs-debug.bst: Added. * buildstream/elements/flatpak/platform-arch-libs.bst: Added. * buildstream/elements/flatpak/platform-image.bst: Added. * buildstream/elements/flatpak/platform-locale.bst: Added. * buildstream/elements/flatpak/platform.bst: Added. * buildstream/elements/flatpak/sdk-arch-libs-debug.bst: Added. * buildstream/elements/flatpak/sdk-arch-libs.bst: Added. * buildstream/elements/flatpak/sdk-debug.bst: Added. * buildstream/elements/flatpak/sdk-docs.bst: Added. * buildstream/elements/flatpak/sdk-image.bst: Added. * buildstream/elements/flatpak/sdk-locale.bst: Added. * buildstream/elements/flatpak/sdk.bst: Added. * buildstream/elements/freedesktop-sdk.bst: Added. * buildstream/elements/manifests/platform-manifest.bst: Added. * buildstream/elements/manifests/sdk-manifest.bst: Added. * buildstream/elements/qt5.bst: Added. * buildstream/elements/qt5/qtbase.bst: Added. * buildstream/elements/qt5/qtdeclarative.bst: Added. * buildstream/elements/qt5/qtquickcontrols.bst: Added. * buildstream/elements/qt5/qtquickcontrols2.bst: Added. * buildstream/elements/qt5/qtwayland.bst: Added. * buildstream/elements/qt5/qtx11extras.bst: Added. * buildstream/elements/sdk-build-depends/libusb.bst: Added. * buildstream/elements/sdk-build-depends/sassc.bst: Added. * buildstream/elements/sdk-build-depends/utf8proc.bst: Added. * buildstream/elements/sdk-depends/libsass.bst: Added. * buildstream/elements/sdk-platform.bst: Added. * buildstream/elements/sdk.bst: Added. * buildstream/elements/sdk/adwaita-icon-theme.bst: Added. * buildstream/elements/sdk/at-spi2-atk.bst: Added. * buildstream/elements/sdk/at-spi2-core.bst: Added. * buildstream/elements/sdk/atk.bst: Added. * buildstream/elements/sdk/brotli.bst: Added. * buildstream/elements/sdk/capnp.bst: Added. * buildstream/elements/sdk/enchant-2.bst: Added. * buildstream/elements/sdk/glib-networking.bst: Added. * buildstream/elements/sdk/glib.bst: Added. * buildstream/elements/sdk/gobject-introspection.bst: Added. * buildstream/elements/sdk/graphene.bst: Added. * buildstream/elements/sdk/graphviz.bst: Added. * buildstream/elements/sdk/gst-libav.bst: Added. * buildstream/elements/sdk/gst-plugins-bad.bst: Added. * buildstream/elements/sdk/gst-plugins-base.bst: Added. * buildstream/elements/sdk/gst-plugins-good.bst: Added. * buildstream/elements/sdk/gst-plugins-ugly.bst: Added. * buildstream/elements/sdk/gstreamer.bst: Added. * buildstream/elements/sdk/gtk+-3.bst: Added. * buildstream/elements/sdk/gtk.bst: Added. * buildstream/elements/sdk/icecc.bst: Added. * buildstream/elements/sdk/intltool.bst: Added. * buildstream/elements/sdk/krb5.bst: Added. * buildstream/elements/sdk/libcap-ng.bst: Added. * buildstream/elements/sdk/libevent.bst: Added. * buildstream/elements/sdk/libgcrypt.bst: Added. * buildstream/elements/sdk/libmanette.bst: Added. * buildstream/elements/sdk/libnotify.bst: Added. * buildstream/elements/sdk/libopenh264.bst: Added. * buildstream/elements/sdk/libsecret.bst: Added. * buildstream/elements/sdk/libsoup.bst: Added. * buildstream/elements/sdk/libsrtp2.bst: Added. * buildstream/elements/sdk/libusrsctp.bst: Added. * buildstream/elements/sdk/libwpe.bst: Added. * buildstream/elements/sdk/libzstd.bst: Added. * buildstream/elements/sdk/lzo2.bst: Added. * buildstream/elements/sdk/openjpeg.bst: Added. * buildstream/elements/sdk/openxr.bst: Added. * buildstream/elements/sdk/os-release.bst: Added. * buildstream/elements/sdk/patchelf.bst: Added. * buildstream/elements/sdk/psmisc.bst: Added. * buildstream/elements/sdk/pycairo.bst: Added. * buildstream/elements/sdk/pygobject.bst: Added. * buildstream/elements/sdk/python2-pycairo.bst: Added. * buildstream/elements/sdk/python2-pygobject.bst: Added. * buildstream/elements/sdk/python2-six.bst: Added. * buildstream/elements/sdk/python2-subprocess32.bst: Added. * buildstream/elements/sdk/python2.bst: Added. * buildstream/elements/sdk/rr.bst: Added. * buildstream/elements/sdk/sccache.bst: Added. * buildstream/elements/sdk/shared-mime-info.bst: Added. * buildstream/elements/sdk/subversion.bst: Added. * buildstream/elements/sdk/v4lutils.bst: Added. * buildstream/elements/sdk/woff2.bst: Added. * buildstream/elements/sdk/wpebackend-fdo.bst: Added. * buildstream/elements/sdk/x264.bst: Added. * buildstream/elements/sdk/xorg-server.bst: Added. * buildstream/elements/test-infra.bst: Added. * buildstream/elements/test-infra/apr-util.bst: Added. * buildstream/elements/test-infra/apr.bst: Added. * buildstream/elements/test-infra/httpd.bst: Added. * buildstream/elements/test-infra/perl-cgi-pm.bst: Added. * buildstream/elements/test-infra/perl-http-date-pm.bst: Added. * buildstream/elements/test-infra/php.bst: Added. * buildstream/elements/test-infra/webkitgtk-test-dicts.bst: Added. * buildstream/elements/test-infra/webkitgtk-test-fonts.bst: Added. * buildstream/files/krb5/krb5.conf: Added. * buildstream/files/os-release/issue.in: Added. * buildstream/files/os-release/issue.net.in: Added. * buildstream/files/os-release/org.webkit.Platform.appdata.xml.in: Added. * buildstream/files/os-release/org.webkit.Sdk.appdata.xml.in: Added. * buildstream/files/os-release/os-release.in: Added. * buildstream/patches/fdo-0001-Update-gcc-to-9.3.0.patch: Added. * buildstream/patches/fdo/0001-Add-Jack.patch: Added. * buildstream/patches/fdo/0001-components-xdg-desktop-portal.bst-Update-to-1.6.0.patch: Added. * buildstream/patches/fdo/0001-ffmpeg-Add-MS-MPEG-DivX-variants.patch: Added. * buildstream/patches/fdo/0002-Update-PipeWire-to-0.3.1.patch: Added. * buildstream/patches/fdo/0002-ffmpeg-Add-VP6-and-Sorenson-Spark-video-codecs.patch: Added. * buildstream/patches/fdo/0003-Add-Bluez.patch: Added. * buildstream/patches/fdo/0003-ffmpeg-Add-Intel-Indeo-and-Cinepak-video-support.patch: Added. * buildstream/patches/fdo/0004-ffmpeg-Add-MPEG-2-video-decoder.patch: Added. * buildstream/patches/fdo/0005-ffmpeg-Add-msmpeg4v3-support.patch: Added. * buildstream/patches/gst-libav-stop-caching-codecs.patch: Added. * buildstream/patches/gst-plugins-bad-0001-h264parse-Post-a-WARNING-when-data-is-broken.patch: Added. * buildstream/patches/gst-plugins-base-0001-glupload-Fix-fallback-from-direct-dmabuf-to-dmabuf-u.patch: Added. * buildstream/patches/gst-plugins-base-0001-playbin-Handle-error-message-with-redirection-indica.patch: Added. * buildstream/patches/gst-plugins-base-0002-glupload-fix-segfault.patch: Added. * buildstream/patches/gst-plugins-good-qtdemux-Specify-REDIRECT-information-in-error-messag.patch: Added. * buildstream/patches/gtk-meson-Bump-to-latest-version-of-the-3.24-branch.patch: Added. * buildstream/patches/httpd-0001-configure-use-pkg-config-for-PCRE-detection.patch: Added. * buildstream/patches/libav-0001-gstavviddec-Limit-default-number-of-decoder-threads.patch: Added. * buildstream/patches/libgcrypt-0001-Use-pkg-config-to-detect-gpg-error.patch: Added. * buildstream/patches/libgcrypt-use-only-dev-urandom-for-testing.patch: Added. * buildstream/patches/libsecret-b53e9876f4611525b7a8f69a3110fbec51dcede0.patch: Added. * buildstream/patches/nettle-no-debug.diff: Added. * buildstream/patches/qtbase-avoid-hardcoding-kernel-version.patch: Added. * buildstream/patches/qtbase-revert-correct-handling-for-xdg-runtime-dir.patch: Added. * buildstream/patches/qtbase-use-wayland-on-gnome.patch: Added. * buildstream/patches/qtdeclarative-use-python3.patch: Added. * buildstream/patches/qtwayland-use-gnome-platform-theme-on-gnome-based-desktops.patch: Added. * buildstream/patches/sccache-no-selenium.patch: Added. * buildstream/patches/xserver-search-for-DRI-drivers-at-LIBGL_DRIVERS_PATH-environ.patch: Added. * buildstream/project.conf: Added. * buildstream/utils/generate-version: Added. * gtk/install-dependencies: * wpe/install-dependencies: Canonical link: https://commits.webkit.org/224447@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@261274 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2020-05-07 08:33:30 +00:00
gcc_arch: "%{arch}"
abi: "gnu"
gcc_triplet: "%{gcc_arch}-linux-%{abi}"
triplet: "%{arch}-unknown-linux-%{abi}"
lib: "lib/%{gcc_triplet}"
sbindir: "%{bindir}"
sysconfdir: "/etc"
localstatedir: "/var"
indep-libdir: "%{prefix}/lib"
debugdir: "%{indep-libdir}/debug"
common_flags: "-O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions\
\ -fstack-protector-strong -grecord-gcc-switches"
flags_x86_64: "-march=x86-64 -mtune=generic %{common_flags} -fasynchronous-unwind-tables\
\ -fstack-clash-protection -fcf-protection"
flags_aarch64: "%{common_flags} -fasynchronous-unwind-tables -fstack-clash-protection"
ldflags_defaults: "-Wl,-z,relro,-z,now -Wl,--as-needed -L%{libdir}"
# This should eventually done with buildstream includes
strip-binaries: |
touch source-files
find "%{install-root}" -type f \
'(' -perm -111 -o -name '*.so*' \
-o -name '*.cmxs' -o -name '*.node' ')' \
-print0 | while read -r -d $'\0' file; do
read -n4 hdr <"${file}" || continue # check for elf header
if [ "$hdr" != "$(printf \\x7fELF)" ]; then
continue
fi
if objdump -j .gnu_debuglink -s "${file}" &>/dev/null; then
continue
fi
case "${file}" in
"%{install-root}%{debugdir}/"*)
continue
;;
*)
;;
esac
realpath="$(realpath -s --relative-to="%{install-root}" "${file}")"
debugfile="%{install-root}%{debugdir}/${realpath}.debug"
mkdir -p "$(dirname "$debugfile")"
debugedit -i --list-file=source-files.part --base-dir="%{build-root}" --dest-dir="%{debugdir}/source/%{element-name}" "${file}"
cat source-files.part >>source-files
objcopy %{objcopy-extract-args} "${file}" "$debugfile"
chmod 644 "$debugfile"
mode="$(stat -c 0%a "${file}")"
[ -w "${file}" ] || chmod +w "${file}"
strip %{strip-args} "${file}"
objcopy %{objcopy-link-args} "$debugfile" "${file}"
chmod "${mode}" "${file}"
done
sort -zu <source-files | while read -r -d $'\0' source; do
dst="%{install-root}%{debugdir}/source/%{element-name}/${source}"
src="%{build-root}/${source}"
if [ -d "${src}" ]; then
install -m0755 -d "${dst}"
continue
fi
[ -f "${src}" ] || continue
install -m0644 -D "${src}" "${dst}"
done
plugins:
- origin: pip
package-name: buildstream-external
elements:
flatpak_image: 0
flatpak_repo: 0
collect_manifest: 0
sources:
cargo: 0
git_tag: 1