[gegl] build: Don't build gegl-video when gexiv2 is absent
- From: Øyvind Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] build: Don't build gegl-video when gexiv2 is absent
- Date: Sat, 21 Nov 2015 19:00:46 +0000 (UTC)
commit 6cbedbc3c28a4acce11273108c0c6d2d5fe86855
Author: Debarshi Ray <debarshir gnome org>
Date: Sat Nov 21 19:24:48 2015 +0100
build: Don't build gegl-video when gexiv2 is absent
https://bugzilla.gnome.org/show_bug.cgi?id=758465
examples/Makefile.am | 12 +++++++++---
1 files changed, 9 insertions(+), 3 deletions(-)
---
diff --git a/examples/Makefile.am b/examples/Makefile.am
index b09a0a6..315f4cf 100644
--- a/examples/Makefile.am
+++ b/examples/Makefile.am
@@ -22,11 +22,10 @@ AM_CPPFLAGS = \
-I$(top_builddir)/gegl/property-types \
-I$(top_srcdir)/gegl/property-types
-AM_CFLAGS = $(DEP_CFLAGS) $(BABL_CFLAGS) $(GEXIV2_CFLAGS) $(SDL_CFLAGS)
+AM_CFLAGS = $(DEP_CFLAGS) $(BABL_CFLAGS) $(SDL_CFLAGS)
AM_LDFLAGS = \
$(top_builddir)/gegl/libgegl-$(GEGL_API_VERSION).la \
- $(GEXIV2_LIBS) \
$(BABL_LIBS) \
$(DEP_LIBS) \
$(SDL_LIBS) \
@@ -52,9 +51,16 @@ geglbuffer_clock_SOURCES = geglbuffer-clock.c
hello_world_SOURCES = hello-world.c
if HAVE_SDL
-bin_PROGRAMS += sdl-draw gegl-video
+bin_PROGRAMS += sdl-draw
sdl_draw_SOURCES = sdl-draw.c
sdl_draw_LDADD = $(SDL_LIBS)
sdl_draw_CFLAGS = $(AM_CFLAGS) $(SDL_CFLAGS)
+
+if HAVE_GEXIV2
+bin_PROGRAMS += gegl-video
+gegl_video_SOURCES = gegl-video.c
+gegl_video_LDADD = $(GEXIV2_LIBS) $(SDL_LIBS)
+gegl_video_CFLAGS = $(AM_CFLAGS) $(GEXIV2_CFLAGS) $(SDL_CFLAGS)
+endif
endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]