[rygel-gst-0-10-fullscreen-renderer/wip/plugin] Make GTK optional
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel-gst-0-10-fullscreen-renderer/wip/plugin] Make GTK optional
- Date: Thu, 14 Feb 2013 12:38:53 +0000 (UTC)
commit 01a18803e8e6ea62773e011f6f634bd44828e578
Author: Jens Georg <mail jensge org>
Date: Thu Feb 14 13:38:47 2013 +0100
Make GTK optional
configure.ac | 10 +++++++---
src/Makefile.am | 8 ++++++--
2 files changed, 13 insertions(+), 5 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 1adf9f8..ffd2ba9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -30,13 +30,16 @@ dnl Required versions of library packages
LIBRYGEL_RENDERER_GST_REQUIRED=0.17.4
GSTREAMER_REQUIRED=0.10.36
GTK_REQUIRED=3.0.0
-REQUIRED_MODULES='rygel-renderer-2.0 >= $LIBRYGEL_RENDERER_GST_REQUIRED
+REQUIRED_MODULES='gio-2.0 rygel-renderer-2.0 >= $LIBRYGEL_RENDERER_GST_REQUIRED
gstreamer-0.10 >= $GSTREAMER_REQUIRED
gstreamer-plugins-base-0.10 >= $GSTREAMER_REQUIRED
gstreamer-video-0.10 >= $GSTREAMER_REQUIRED
- gstreamer-interfaces-0.10 >= $GSTREAMER_REQUIRED
- gtk+-3.0 >= $GTK_REQUIRED'
+ gstreamer-interfaces-0.10 >= $GSTREAMER_REQUIRED'
PKG_CHECK_MODULES([DEPS], [$REQUIRED_MODULES])
+PKG_CHECK_MODULES([GTK], [gtk+-3.0 >= $GTK_REQUIRED], [have_gtk=yes],
+ [have_gtk=no])
+
+AM_CONDITIONAL([BUILD_UI], [test "x$[]have_gtk" = "xyes"])
dnl Debugging
AC_ARG_ENABLE(debug,
@@ -96,5 +99,6 @@ echo "
Source code location: ${srcdir}
Compiler: ${CC}
CFLAGS: ${CFLAGS}
+ Fullscreen renderer: ${have_gtk}
Plugin: ${enable_plugin}
"
diff --git a/src/Makefile.am b/src/Makefile.am
index c4c0c49..60dca5c 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -1,3 +1,4 @@
+if BUILD_UI
bin_PROGRAMS = fullscreen-renderer
fullscreen_renderer_SOURCES = \
@@ -8,10 +9,13 @@ fullscreen_renderer_SOURCES = \
rygel-playbin-renderer.h
fullscreen_renderer_CFLAGS = \
- $(DEPS_CFLAGS)
+ $(DEPS_CFLAGS) \
+ $(GTK_CFLAGS)
fullscreen_renderer_LDADD = \
- $(DEPS_LIBS)
+ $(DEPS_LIBS) \
+ $(GTK_LIBS)
+endif
if BUILD_PLUGIN
plugindir = $(RYGEL_PLUGIN_DIR)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]