Skip to content

Commit

Permalink
build: Don't build gegl-video when gexiv2 is absent
Browse files Browse the repository at this point in the history
  • Loading branch information
debarshiray authored and hodefoting committed Nov 21, 2015
1 parent b4c4983 commit 6cbedbc
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions examples/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -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) \
Expand All @@ -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

0 comments on commit 6cbedbc

Please sign in to comment.