| lib_LTLIBRARIES = libstub.la |
| |
| GST_CFLAGS = -I/usr/include/gstreamer-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/lib/glib-2.0/include |
| |
| 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" |
| |
| ############################################################################## |
| # TODO: change libgstxcamsrc.la to something else, e.g. libmysomething.la # |
| ############################################################################## |
| plugin_LTLIBRARIES = libgstxcamsrc.la |
| |
| ############################################################################## |
| # TODO: for the next set of variables, name the prefix if you named the .la, # |
| # e.g. libmysomething.la => libmysomething_la_SOURCES # |
| # libmysomething_la_CFLAGS # |
| # libmysomething_la_LIBADD # |
| # libmysomething_la_LDFLAGS # |
| ############################################################################## |
| |
| # 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 = $(GST_LIBS) \ |
| $(top_builddir)/wrapper/gstreamer/libstub.la \ |
| -lgstvideo-1.0 \ |
| -lgstallocators-1.0 |
| |
| 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 |