[gtk+: 44/44] Merge branch 'gdk-backend-wayland'



commit c7514e8f0d19a833257497caff413bb4dfae6eb4
Merge: 85c1c22 fcd58b0
Author: Kristian Høgsberg <krh bitplanet net>
Date:   Tue Apr 12 09:52:44 2011 -0400

    Merge branch 'gdk-backend-wayland'
    
    Conflicts:
    	Makefile.am
    	configure.ac
    	gdk/Makefile.am
    	gtk/gtksettings.c
    	gtk/gtkwindow.c

 Makefile.am                               |    4 +-
 configure.ac                              |   21 +-
 gdk/Makefile.am                           |    6 +-
 gdk/gdkdisplaymanager.c                   |    9 +
 gdk/wayland/Makefile.am                   |   40 +
 gdk/wayland/gdkapplaunchcontext-wayland.c |   90 ++
 gdk/wayland/gdkcursor-wayland.c           |  383 ++++++++
 gdk/wayland/gdkdevice-wayland.c           |  713 +++++++++++++++
 gdk/wayland/gdkdisplay-wayland.c          |  643 +++++++++++++
 gdk/wayland/gdkdisplay-wayland.h          |  101 ++
 gdk/wayland/gdkdisplaymanager-wayland.c   |  318 +++++++
 gdk/wayland/gdkdnd-wayland.c              |  185 ++++
 gdk/wayland/gdkeventsource.c              |  177 ++++
 gdk/wayland/gdkkeys-wayland.c             |  654 +++++++++++++
 gdk/wayland/gdkprivate-wayland.h          |  153 ++++
 gdk/wayland/gdkscreen-wayland.c           |  550 +++++++++++
 gdk/wayland/gdkselection-wayland.c        |   93 ++
 gdk/wayland/gdkwayland.h                  |   38 +
 gdk/wayland/gdkwindow-wayland.c           | 1408 +++++++++++++++++++++++++++++
 gtk/gtkwindow.c                           |   18 +-
 20 files changed, 5593 insertions(+), 11 deletions(-)
---
diff --cc Makefile.am
index df52bcc,2c6e77b..050202d
--- a/Makefile.am
+++ b/Makefile.am
@@@ -55,11 -55,11 +55,11 @@@ MAINTAINERCLEANFILES = 
  
  
  ## Copy .pc files to target-specific names
- gtk+-x11-3.0.pc gtk+-win32-3.0.pc gtk+-quartz-3.0.pc gtk+-broadway-3.0.pc: gtk+-3.0.pc
 -gtk+-x11-3.0.pc gtk+-win32-3.0.pc gtk+-quartz-3.0.pc gtk+-wayland-3.0.pc: gtk+-3.0.pc
++gtk+-x11-3.0.pc gtk+-win32-3.0.pc gtk+-quartz-3.0.pc gtk+-broadway-3.0.pc gtk+-wayland-3.0.pc: gtk+-3.0.pc
  	rm -f $@ && \
  	cp gtk+-3.0.pc $@
  
- gdk-x11-3.0.pc gdk-win32-3.0.pc gdk-quartz-3.0.pc gdk-broadway-3.0.pc: gdk-3.0.pc
 -gdk-x11-3.0.pc gdk-win32-3.0.pc gdk-quartz-3.0.pc gdk-wayland-3.0.pc: gdk-3.0.pc
++gdk-x11-3.0.pc gdk-win32-3.0.pc gdk-quartz-3.0.pc gdk-broadway-3.0.pc gdk-wayland-3.0.pc: gdk-3.0.pc
  	rm -f $@ && \
  	cp gdk-3.0.pc $@
  
diff --cc configure.ac
index 61084e1,a37651a..fc6df9b
--- a/configure.ac
+++ b/configure.ac
@@@ -297,10 -297,10 +297,14 @@@ AC_ARG_ENABLE(quartz-backend
                [AS_HELP_STRING([--enable-quartz-backend],
                                [enable the quartz gdk backend])],
  			      [backend_set=yes])
 +AC_ARG_ENABLE(broadway-backend,
 +              [AC_HELP_STRING([--enable-broadway-backend],
 +                              [enable the broadway (HTML5) gdk backend])],
 +			      [backend_set=yes])
+ AC_ARG_ENABLE(wayland-backend,
+               [AC_HELP_STRING([--enable-wayland-backend],
+                               [enable the wayland gdk backend])],
+ 			      [backend_set=yes])
  
  if test -z "$backend_set"; then
    if test "$platform_win32" = yes; then
@@@ -356,19 -356,21 +360,33 @@@ els
    AM_CONDITIONAL(USE_QUARTZ, false)
  fi
  
++
 +if test "x$enable_broadway_backend" == xyes; then
 +  GDK_BACKENDS="$GDK_BACKENDS broadway"
 +  cairo_backends="$cairo_backends cairo"
 +  GDK_WINDOWING="$GDK_WINDOWING
 +#define GDK_WINDOWING_BROADWAY"
 +  GDK_EXTRA_LIBS="$GDK_EXTRA_LIBS -lz"
 +  AM_CONDITIONAL(USE_BROADWAY, true)
 +else
 +  AM_CONDITIONAL(USE_BROADWAY, false)
 +fi
 +
+ if test "x$enable_wayland_backend" == "xyes"; then
+   # Wayland uses cairo-gl
+   cairo_backends="$cairo_backends cairo-gl"
+   GDK_BACKENDS="$GDK_BACKENDS wayland"
+   GIO_PACKAGE=gio-unix-2.0
+   GDK_WINDOWING="$GDK_WINDOWING
+ #define GDK_WINDOWING_WAYLAND"
+   WAYLAND_PACKAGES="wayland-client xkbcommon wayland-egl"
+   AM_CONDITIONAL(USE_WAYLAND, true)
+ else
+   AM_CONDITIONAL(USE_WAYLAND, false)
+ fi
+ 
  # strip leading space
 -GDK_BACKENDS=${GDK_BACKENDS/# }
 +GDK_BACKENDS=${GDK_BACKENDS#* }
  
  AC_SUBST(GDK_BACKENDS)
  
diff --cc gdk/Makefile.am
index cc5346b,cfacc2a..cb1fd54
--- a/gdk/Makefile.am
+++ b/gdk/Makefile.am
@@@ -11,7 -11,7 +11,7 @@@ INTROSPECTION_COMPILER_ARGS = 
  
  SUBDIRS = $(GDK_BACKENDS) . tests
  
- DIST_SUBDIRS = win32 x11 quartz broadway tests
 -DIST_SUBDIRS = win32 x11 quartz wayland tests
++DIST_SUBDIRS = win32 x11 quartz broadway wayland tests
  
  CLEANFILES =
  
@@@ -173,10 -176,10 +173,14 @@@ libgdk_3_la_DEPENDENCIES = win32/libgdk
  libgdk_3_la_LDFLAGS += -Wl,win32/rc/gdk-win32-res.o -export-symbols $(srcdir)/gdk.def
  endif # USE_WIN32
  
 +if USE_BROADWAY
 +libgdk_3_la_LIBADD += broadway/libgdk-broadway.la
 +endif # USE_BROADWAY
 +
+ if USE_WAYLAND
+ libgdk_3_la_LIBADD += wayland/libgdk-wayland.la
+ endif
+ 
  if HAVE_INTROSPECTION
  
  introspection_files = 		\



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