diff options
author | Carlos Alberto Lopez Perez <clopez@igalia.com> | 2015-10-01 15:49:50 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-10-01 17:54:55 +0100 |
commit | 0516cd20604c9abec2cd13dac9e8876f985963dd (patch) | |
tree | 2b09349694a9fb6efd70708ecc2dacb2c0a5072b /meta | |
parent | dff30d290633f6682766a6e0a50c09d8c0d0d68f (diff) | |
download | poky-0516cd20604c9abec2cd13dac9e8876f985963dd.tar.gz |
webkitgtk: Add some PACKAGECONFIG options.
* Also default to enable X11/Wayland support or WebGL according
to enabled DISTRO_FEATURES.
(From OE-Core rev: e28bc10f3eacba1c77165b9dd0a7c1826b1cc47c)
Signed-off-by: Carlos Alberto Lopez Perez <clopez@igalia.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-sato/webkit/webkitgtk_2.8.5.bb | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/meta/recipes-sato/webkit/webkitgtk_2.8.5.bb b/meta/recipes-sato/webkit/webkitgtk_2.8.5.bb index e92c6b1402..f14c868b7c 100644 --- a/meta/recipes-sato/webkit/webkitgtk_2.8.5.bb +++ b/meta/recipes-sato/webkit/webkitgtk_2.8.5.bb | |||
@@ -29,14 +29,25 @@ DEPENDS = "zlib enchant libsoup-2.4 curl libxml2 cairo libxslt libxt libidn gnut | |||
29 | atk udev harfbuzz jpeg libpng pulseaudio librsvg libtheora libvorbis libxcomposite libxtst \ | 29 | atk udev harfbuzz jpeg libpng pulseaudio librsvg libtheora libvorbis libxcomposite libxtst \ |
30 | ruby-native libsecret libnotify gstreamer1.0-plugins-bad \ | 30 | ruby-native libsecret libnotify gstreamer1.0-plugins-bad \ |
31 | " | 31 | " |
32 | DEPENDS += " ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'virtual/libgl', '', d)}" | 32 | |
33 | PACKAGECONFIG ??= "${@base_contains('DISTRO_FEATURES', 'x11', 'x11', 'wayland' ,d)} \ | ||
34 | ${@base_contains('DISTRO_FEATURES', 'opengl', 'webgl', '' ,d)}" | ||
35 | |||
36 | PACKAGECONFIG[wayland] = "-DENABLE_WAYLAND_TARGET=ON,-DENABLE_WAYLAND_TARGET=OFF,wayland" | ||
37 | PACKAGECONFIG[x11] = "-DENABLE_X11_TARGET=ON,-DENABLE_X11_TARGET=OFF,virtual/libx11" | ||
38 | PACKAGECONFIG[geoclue] = "-DENABLE_GEOLOCATION=ON,-DENABLE_GEOLOCATION=OFF,geoclue" | ||
39 | PACKAGECONFIG[enchant] = "-DENABLE_SPELLCHECK=ON,-DENABLE_SPELLCHECK=OFF,enchant" | ||
40 | PACKAGECONFIG[gtk2] = "-DENABLE_PLUGIN_PROCESS_GTK2=ON,-DENABLE_PLUGIN_PROCESS_GTK2=OFF,gtk+" | ||
41 | PACKAGECONFIG[gles2] = "-DENABLE_GLES2=ON,-DENABLE_GLES2=OFF,virtual/libgles2" | ||
42 | PACKAGECONFIG[webgl] = "-DENABLE_WEBGL=ON,-DENABLE_WEBGL=OFF,virtual/libgl" | ||
43 | PACKAGECONFIG[libsecret] = "-DENABLE_CREDENTIAL_STORAGE=ON,-DENABLE_CREDENTIAL_STORAGE=OFF,libsecret" | ||
33 | 44 | ||
34 | EXTRA_OECMAKE = " \ | 45 | EXTRA_OECMAKE = " \ |
35 | -DPORT=GTK \ | 46 | -DPORT=GTK \ |
36 | -DCMAKE_BUILD_TYPE=Release \ | 47 | -DCMAKE_BUILD_TYPE=Release \ |
37 | -DENABLE_INTROSPECTION=OFF \ | 48 | -DENABLE_INTROSPECTION=OFF \ |
49 | -DENABLE_GTKDOC=OFF \ | ||
38 | -DENABLE_MINIBROWSER=ON \ | 50 | -DENABLE_MINIBROWSER=ON \ |
39 | ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', '-DENABLE_WEBGL=ON', '-DENABLE_WEBGL=OFF', d)} \ | ||
40 | " | 51 | " |
41 | 52 | ||
42 | # Javascript JIT is not supported on powerpc | 53 | # Javascript JIT is not supported on powerpc |