summaryrefslogtreecommitdiff
path: root/tests/examples/camerabin/Makefile.am
blob: aa9f23f7bd79478ae9eb828a41a29e56e889c725 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
GST_CAMERABIN_UI_FILES = gst-camera.ui

if HAVE_GTK

GST_CAMERABIN_GTK_EXAMPLES = gst-camera

gst_camera_SOURCES = gst-camera.h gst-camera.c
gst_camera_CFLAGS  = \
        $(GST_PLUGINS_BAD_CFLAGS) \
        $(GST_PLUGINS_BASE_CFLAGS) $(GST_CFLAGS) \
	$(GTK_CFLAGS) \
	$(GMODULE_EXPORT_CFLAGS) \
        -DGST_USE_UNSTABLE_API
gst_camera_LDADD   = \
        $(top_builddir)/gst-libs/gst/interfaces/libgstphotography-@GST_MAJORMINOR@.la \
        $(GST_PLUGINS_BASE_LIBS) \
        -lgstinterfaces-@GST_MAJORMINOR@ \
        -lgstvideo-@GST_MAJORMINOR@ \
        $(GST_LIBS) \
	$(GTK_LIBS) \
	$(GMODULE_EXPORT_LIBS)

noinst_DATA = $(GST_CAMERABIN_UI_FILES)

INCLUDES = -DCAMERA_APPS_UIDIR=\""$(srcdir)"\"

else
GST_CAMERABIN_GTK_EXAMPLES =
endif

gst_camera_perf_SOURCES = gst-camera-perf.c
gst_camera_perf_CFLAGS  = $(GST_CFLAGS)
gst_camera_perf_LDADD = $(GST_LIBS)

if HAVE_X11

GST_CAMERABIN_X11_EXAMPLES = gst-camerabin-test

gst_camerabin_test_SOURCES = gst-camerabin-test.c
gst_camerabin_test_CFLAGS  = $(GST_CFLAGS) $(GST_PLUGINS_BASE_CFLAGS) $(GST_PLUGINS_BAD_CFLAGS)
gst_camerabin_test_LDADD   = \
	$(top_builddir)/gst-libs/gst/interfaces/libgstphotography-@GST_MAJORMINOR@.la \
	-lgstinterfaces-@GST_MAJORMINOR@ \
        -lgstvideo-@GST_MAJORMINOR@ \
	$(GST_LIBS) \
	$(GST_PLUGINS_BASE_LIBS) \
	$(X11_LIBS)

else
GST_CAMERABIN_X11_EXAMPLES =
endif

noinst_PROGRAMS = gst-camera-perf $(GST_CAMERABIN_X11_EXAMPLES) $(GST_CAMERABIN_GTK_EXAMPLES)

EXTRA_DIST = $(GST_CAMERABIN_UI_FILES)