blob: eb48f0de95197474eec64306094ef73bf753a51a [file] [log] [blame]
John Yee94eb962015-03-17 15:34:03 +08001lib_LTLIBRARIES = libstub.la
2
John Yee94eb962015-03-17 15:34:03 +08003PTHREAD_LDFLAGS = -pthread
4
5STUB_CXXFLAGS = -fPIC -std=c++11
6STUB_LIBS = \
7 $(NULL)
8
9if HAVE_LIBDRM
10STUB_CXXFLAGS += $(LIBDRM_CFLAGS)
11STUB_LIBS += $(LIBDRM_LIBS)
12endif
13
14libstub_la_SOURCES = stub.cpp bufmap.cpp v4l2dev.cpp fmt.cpp
15
16libstub_la_CXXFLAGS = -I$(top_builddir)/xcore -I$(top_builddir)/xcore/base \
17 $(GST_CFLAGS) \
18 $(STUB_CXXFLAGS) \
19 $(NULL)
20libstub_la_LDFLAGS = \
21 -no-undefined \
22 $(PTHREAD_LDFLAGS) \
23 $(NULL)
24
25libstub_la_LIBADD = $(top_builddir)/xcore/libxcam_core.la \
26 $(STUB_LIBS) \
27 -lpthread \
28 $(NULL)
29
30noinst_HEADERS = stub.h bufmap.h v4l2dev.h fmt.h
31
32# Note: plugindir is set in configure
33plugindir="\$(libdir)/gstreamer-1.0"
34
John Yee94eb962015-03-17 15:34:03 +080035plugin_LTLIBRARIES = libgstxcamsrc.la
36
John Yee94eb962015-03-17 15:34:03 +080037# sources used to compile this plug-in
38libgstxcamsrc_la_SOURCES = gstxcambufferpool.c \
39 gstxcamsrc.c
40
41# compiler and linker flags used to compile this plugin, set in configure.ac
42libgstxcamsrc_la_CFLAGS = $(GST_CFLAGS) \
43 -I$(top_builddir)/xcore -I$(top_builddir)/xcore/base \
44 -I$(top_builddir)/wrapper/gstreamer
45
John Ye3fc8fc42015-03-19 14:41:01 +080046libgstxcamsrc_la_LIBADD = \
John Yee94eb962015-03-17 15:34:03 +080047 $(top_builddir)/wrapper/gstreamer/libstub.la \
John Ye3fc8fc42015-03-19 14:41:01 +080048 $(GST_ALLOCATOR_LIBS) \
49 $(GST_VIDEO_LIBS) \
50 $(GST_LIBS)
John Yee94eb962015-03-17 15:34:03 +080051
52libgstxcamsrc_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
53libgstxcamsrc_la_LIBTOOLFLAGS = --tag=disable-static
54
55# headers we need but don't want installed
John Ye3fc8fc42015-03-19 14:41:01 +080056noinst_HEADERS += gstxcambufferpool.h \
John Yee94eb962015-03-17 15:34:03 +080057 gstxcamsrc.h