[jhbuild/wip/conditions: 3/4] 3.12: use wayland condition flag



commit f8c87a66d76466e38aced56159f0144c7908124d
Author: Ryan Lortie <desrt desrt ca>
Date:   Mon Mar 3 13:26:06 2014 -0500

    3.12: use wayland condition flag
    
    Add some <if> to conditionalise wayland dependency.

 modulesets/gnome-suites-core-3.12.modules      |    4 ++-
 modulesets/gnome-suites-core-deps-3.12.modules |   35 +++++++++++++++++-------
 2 files changed, 28 insertions(+), 11 deletions(-)
---
diff --git a/modulesets/gnome-suites-core-3.12.modules b/modulesets/gnome-suites-core-3.12.modules
index 96bce43..499ce20 100644
--- a/modulesets/gnome-suites-core-3.12.modules
+++ b/modulesets/gnome-suites-core-3.12.modules
@@ -331,7 +331,9 @@
     <suggests>
       <dep package="gstreamer"/>
       <dep package="gst-plugins-base"/>
-      <dep package="mutter-wayland"/>
+      <if condition-set="wayland">
+        <dep package="mutter-wayland"/>
+      </if>
     </suggests>
     <after>
       <dep package="librsvg"/>
diff --git a/modulesets/gnome-suites-core-deps-3.12.modules b/modulesets/gnome-suites-core-deps-3.12.modules
index ce0c9f3..24e38ae 100644
--- a/modulesets/gnome-suites-core-deps-3.12.modules
+++ b/modulesets/gnome-suites-core-deps-3.12.modules
@@ -306,7 +306,10 @@
     </dependencies>
   </autotools>
 
-  <autotools id="cogl" autogenargs="--enable-wayland-egl-platform --enable-wayland-egl-server 
--enable-kms-egl-platform --enable-xlib-egl-platform --enable-cogl-gst">
+  <autotools id="cogl" autogenargs="--enable-xlib-egl-platform --enable-cogl-gst">
+    <if condition-set="wayland">
+      <autogenargs value="--enable-wayland-egl-platform --enable-wayland-egl-server 
--enable-kms-egl-platform"/>
+    </if>
     <pkg-config>cogl-1.0.pc</pkg-config>
     <branch revision="cogl-1.18"/>
     <dependencies>
@@ -317,17 +320,22 @@
       <dep package="libXcomposite"/>
       <dep package="xcb-dri2" />
       <dep package="pango"/>
-      <dep package="wayland"/>
-      <dep package="wayland-egl"/>
       <dep package="gstreamer"/>
       <dep package="gst-plugins-base"/>
+      <if condition-set="wayland">
+        <dep package="wayland"/>
+        <dep package="wayland-egl"/>
+      </if>
     </dependencies>
     <suggests>
       <dep package="gobject-introspection"/>
     </suggests>
   </autotools>
 
-  <autotools id="clutter" autogenargs="--enable-installed-tests --enable-wayland-backend 
--enable-wayland-compositor --enable-evdev-input --enable-egl-backend">
+  <autotools id="clutter" autogenargs="--enable-installed-tests --enable-egl-backend">
+    <if condition-set="wayland">
+      <autogenargs value="--enable-wayland-backend --enable-wayland-compositor --enable-evdev-input"/>
+    </if>
     <branch revision="clutter-1.18"/>
     <dependencies>
       <dep package="cogl"/>
@@ -336,9 +344,11 @@
       <dep package="cairo"/>
       <dep package="json-glib"/>
       <dep package="gobject-introspection"/>
-      <dep package="wayland"/>
-      <dep package="libxkbcommon"/>
-      <dep package="libinput"/>
+      <if condition-set="wayland">
+        <dep package="wayland"/>
+        <dep package="libxkbcommon"/>
+        <dep package="libinput"/>
+      </if>
     </dependencies>
     <suggests>
       <dep package="gdk-pixbuf"/>
@@ -376,7 +386,10 @@
     </after>
   </autotools>
 
-  <autotools id="gtk+" autogenargs="--enable-x11-backend --enable-wayland-backend --enable-broadway-backend 
--enable-installed-tests">
+  <autotools id="gtk+" autogenargs="--enable-x11-backend --enable-broadway-backend --enable-installed-tests">
+    <if condition-set="wayland">
+      <autogenargs value="--enable-wayland-backend"/>
+    </if>
     <branch/>
     <dependencies>
       <dep package="atk"/>
@@ -387,8 +400,10 @@
       <dep package="gtk-doc"/>
       <dep package="gobject-introspection"/>
       <dep package="at-spi2-atk"/>
-      <dep package="libxkbcommon"/>
-      <dep package="wayland"/>
+      <if condition-set="wayland">
+        <dep package="libxkbcommon"/>
+        <dep package="wayland"/>
+      </if>
     </dependencies>
     <suggests>
       <dep package="shared-mime-info"/>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]