blob: eb48f0de95197474eec64306094ef73bf753a51a [file] [log] [blame]
lib_LTLIBRARIES = libstub.la
PTHREAD_LDFLAGS = -pthread
STUB_CXXFLAGS = -fPIC -std=c++11
STUB_LIBS = \
$(NULL)
if HAVE_LIBDRM
STUB_CXXFLAGS += $(LIBDRM_CFLAGS)
STUB_LIBS += $(LIBDRM_LIBS)
endif
libstub_la_SOURCES = stub.cpp bufmap.cpp v4l2dev.cpp fmt.cpp
libstub_la_CXXFLAGS = -I$(top_builddir)/xcore -I$(top_builddir)/xcore/base \
$(GST_CFLAGS) \
$(STUB_CXXFLAGS) \
$(NULL)
libstub_la_LDFLAGS = \
-no-undefined \
$(PTHREAD_LDFLAGS) \
$(NULL)
libstub_la_LIBADD = $(top_builddir)/xcore/libxcam_core.la \
$(STUB_LIBS) \
-lpthread \
$(NULL)
noinst_HEADERS = stub.h bufmap.h v4l2dev.h fmt.h
# Note: plugindir is set in configure
plugindir="\$(libdir)/gstreamer-1.0"
plugin_LTLIBRARIES = libgstxcamsrc.la
# sources used to compile this plug-in
libgstxcamsrc_la_SOURCES = gstxcambufferpool.c \
gstxcamsrc.c
# compiler and linker flags used to compile this plugin, set in configure.ac
libgstxcamsrc_la_CFLAGS = $(GST_CFLAGS) \
-I$(top_builddir)/xcore -I$(top_builddir)/xcore/base \
-I$(top_builddir)/wrapper/gstreamer
libgstxcamsrc_la_LIBADD = \
$(top_builddir)/wrapper/gstreamer/libstub.la \
$(GST_ALLOCATOR_LIBS) \
$(GST_VIDEO_LIBS) \
$(GST_LIBS)
libgstxcamsrc_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
libgstxcamsrc_la_LIBTOOLFLAGS = --tag=disable-static
# headers we need but don't want installed
noinst_HEADERS += gstxcambufferpool.h \
gstxcamsrc.h