1if ENABLE_IA_AIQ
2SUBDIRS = interface
3endif
4
5plugin_LTLIBRARIES = \
6    libgstxcamsrc.la \
7    $(NULL)
8
9if HAVE_LIBCL
10plugin_LTLIBRARIES += \
11    libgstxcamfilter.la \
12    $(NULL)
13endif
14
15XCORE_DIR = $(top_srcdir)/xcore
16MODULES_DIR = $(top_srcdir)/modules
17
18XCORE_LA = $(top_builddir)/xcore/libxcam_core.la
19
20if ENABLE_IA_AIQ
21XCAM_INTERFACE_DIR = -I$(top_srcdir)/wrapper/gstreamer/interface
22XCAM_INTERFACE_LA = $(top_builddir)/wrapper/gstreamer/interface/libgstxcaminterface.la
23else
24XCAM_INTERFACE_DIR =
25XCAM_INTERFACE_LA =
26endif
27
28XCAMGST_CXXFLAGS = $(XCAM_CXXFLAGS)
29XCAMGST_LIBS = \
30    $(NULL)
31
32if HAVE_LIBDRM
33XCAMGST_CXXFLAGS += $(LIBDRM_CFLAGS)
34XCAMGST_LIBS += $(LIBDRM_LIBS)
35endif
36
37if USE_LOCAL_ATOMISP
38XCAMGST_CXXFLAGS += -I$(top_srcdir)/ext/atomisp
39endif
40
41XCAMGST_CXXFLAGS += \
42    -I$(XCORE_DIR)   \
43    -I$(MODULES_DIR) \
44    $(NULL)
45
46# Note: plugindir is set in configure
47plugindir="$(libdir)/gstreamer-1.0"
48
49# sources used to compile this plug-in
50libgstxcamsrc_la_SOURCES = \
51    gstxcambuffermeta.cpp  \
52    gstxcambufferpool.cpp  \
53    main_dev_manager.cpp   \
54    gstxcamsrc.cpp         \
55    $(NULL)
56
57# compiler and linker flags used to compile this plugin, set in configure.ac
58libgstxcamsrc_la_CXXFLAGS = \
59    $(GST_CFLAGS) $(XCAMGST_CXXFLAGS)  \
60    -I$(top_srcdir)/wrapper/gstreamer  \
61    $(XCAM_INTERFACE_DIR)              \
62    $(NULL)
63
64libgstxcamsrc_la_LIBADD = $(XCAMGST_LIBS) \
65    $(XCAM_INTERFACE_LA)              \
66    $(XCORE_LA) $(GST_ALLOCATOR_LIBS) \
67    $(GST_VIDEO_LIBS) $(GST_LIBS)     \
68    $(NULL)
69
70libgstxcamsrc_la_LDFLAGS = \
71    -module -avoid-version         \
72    $(PTHREAD_LDFLAGS) $(XCORE_LA) \
73    $(NULL)
74
75libgstxcamsrc_la_LIBTOOLFLAGS = --tag=disable-static
76
77if ENABLE_IA_AIQ
78ISP_LA = $(top_builddir)/modules/isp/libxcam_isp.la
79libgstxcamsrc_la_LIBADD += $(ISP_LA)
80libgstxcamsrc_la_LDFLAGS += $(ISP_LA)
81endif
82
83if HAVE_LIBCL
84OCL_LA = $(top_builddir)/modules/ocl/libxcam_ocl.la
85
86libgstxcamsrc_la_LIBADD += $(OCL_LA)
87libgstxcamsrc_la_LDFLAGS += $(OCL_LA)
88
89libgstxcamfilter_la_SOURCES = \
90    gstxcambuffermeta.cpp  \
91    main_pipe_manager.cpp  \
92    gstxcamfilter.cpp      \
93    $(NULL)
94
95libgstxcamfilter_la_CXXFLAGS = \
96    $(GST_CFLAGS) $(XCAMGST_CXXFLAGS) \
97    -I$(top_srcdir)/wrapper/gstreamer \
98    $(NULL)
99
100libgstxcamfilter_la_LIBADD = \
101    $(XCAMGST_LIBS)        \
102    $(XCORE_LA) $(OCL_LA)  \
103    $(GST_ALLOCATOR_LIBS)  \
104    $(GST_VIDEO_LIBS)      \
105    $(GST_LIBS)            \
106    $(NULL)
107
108libgstxcamfilter_la_LDFLAGS = \
109    -module -avoid-version    \
110    $(XCORE_LA) $(OCL_LA)     \
111    $(NULL)
112
113libgstxcamfilter_la_LIBTOOLFLAGS = --tag=disable-static
114endif
115
116# headers we need but don't want installed
117noinst_HEADERS = \
118    gst_xcam_utils.h  \
119    $(NULL)
120
121if ENABLE_IA_AIQ
122noinst_HEADERS += \
123    gstxcambufferpool.h  \
124    gstxcambuffermeta.h  \
125    main_dev_manager.h   \
126    gstxcamsrc.h         \
127    $(NULL)
128endif
129
130if HAVE_LIBCL
131noinst_HEADERS += \
132    gstxcambuffermeta.h  \
133    main_pipe_manager.h  \
134    gstxcamfilter.h      \
135    $(NULL)
136endif
137