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