Move cairo-util to shared/
authorKristian Høgsberg <krh@bitplanet.net>
Wed, 16 May 2012 02:33:43 +0000 (22:33 -0400)
committerKristian Høgsberg <krh@bitplanet.net>
Wed, 16 May 2012 02:33:43 +0000 (22:33 -0400)
clients/Makefile.am
clients/desktop-shell.c
clients/dnd.c
clients/image.c
clients/tablet-shell.c
clients/window.c
configure.ac
shared/Makefile.am
shared/cairo-util.c [moved from clients/cairo-util.c with 100% similarity]
shared/cairo-util.h [moved from clients/cairo-util.h with 100% similarity]

index 2377189..2325e16 100644 (file)
@@ -57,9 +57,7 @@ noinst_LIBRARIES = libtoytoolkit.a
 
 libtoytoolkit_a_SOURCES =                      \
        window.c                                \
-       window.h                                \
-       cairo-util.c                            \
-       cairo-util.h
+       window.h
 
 toolkit_libs =                                         \
        libtoytoolkit.a                                 \
index 3643e46..7554df3 100644 (file)
@@ -33,8 +33,8 @@
 #include <linux/input.h>
 
 #include <wayland-client.h>
-#include "cairo-util.h"
 #include "window.h"
+#include "../shared/cairo-util.h"
 #include "../shared/config-parser.h"
 
 #include "desktop-shell-client-protocol.h"
index 45adc8a..b56cd59 100644 (file)
@@ -34,7 +34,7 @@
 #include <wayland-client.h>
 
 #include "window.h"
-#include "cairo-util.h"
+#include "../shared/cairo-util.h"
 
 struct dnd {
        struct window *window;
index 36ab485..83ed231 100644 (file)
@@ -35,7 +35,7 @@
 #include <wayland-client.h>
 
 #include "window.h"
-#include "cairo-util.h"
+#include "../shared/cairo-util.h"
 
 struct image {
        struct window *window;
index 3797f88..e2c49d3 100644 (file)
@@ -27,7 +27,7 @@
 #include <sys/wait.h>
 
 #include "window.h"
-#include "cairo-util.h"
+#include "../shared/cairo-util.h"
 #include "../shared/config-parser.h"
 
 #include "tablet-shell-client-protocol.h"
index 286a8ce..f3b768a 100644 (file)
@@ -59,7 +59,7 @@
 
 #include <linux/input.h>
 #include <wayland-client.h>
-#include "cairo-util.h"
+#include "../shared/cairo-util.h"
 
 #include "window.h"
 
index 748115e..f8ee2fa 100644 (file)
@@ -109,10 +109,12 @@ PKG_CHECK_MODULES(PNG, [libpng])
 PKG_CHECK_MODULES(WEBP, [libwebp], [have_webp=yes], [have_webp=no])
 AS_IF([test "x$have_webp" = "xyes"],
       [AC_DEFINE([HAVE_WEBP], [1], [Have webp])])
-IMAGE_LIBS="$PIXMAN_LIBS $PNG_LIBS $WEBP_LIBS"
-IMAGE_CFLAGS="$PIXMAN_CFLAGS $PNG_CFLAGS $WEBP_CFLAGS"
-AC_SUBST(IMAGE_LIBS)
-AC_SUBST(IMAGE_CFLAGS)
+
+PKG_CHECK_MODULES(CAIRO, [cairo])
+SHARED_LIBS="$CAIRO_LIBS $PIXMAN_LIBS $PNG_LIBS $WEBP_LIBS"
+SHARED_CFLAGS="$CAIRO_CFLAGS $PIXMAN_CFLAGS $PNG_CFLAGS $WEBP_CFLAGS"
+AC_SUBST(SHARED_LIBS)
+AC_SUBST(SHARED_CFLAGS)
 
 AC_CHECK_LIB([jpeg], [jpeg_CreateDecompress], have_jpeglib=yes)
 if test x$have_jpeglib = xyes; then
index 71816f0..79af176 100644 (file)
@@ -1,5 +1,5 @@
-libconfig_parser_la_LIBADD = $(IMAGE_LIBS)
-AM_CPPFLAGS = $(IMAGE_CFLAGS)
+libconfig_parser_la_LIBADD = $(SHARED_LIBS)
+AM_CPPFLAGS = $(SHARED_CFLAGS)
 AM_CFLAGS = $(GCC_CFLAGS)
 
 noinst_LTLIBRARIES = libconfig-parser.la
@@ -7,4 +7,6 @@ libconfig_parser_la_SOURCES =                   \
        config-parser.c                         \
        option-parser.c                         \
        image-loader.c                          \
-       config-parser.h
+       config-parser.h                         \
+       cairo-util.c                            \
+       cairo-util.h
similarity index 100%
rename from clients/cairo-util.c
rename to shared/cairo-util.c
similarity index 100%
rename from clients/cairo-util.h
rename to shared/cairo-util.h