qt: Tidy up makefile a bit more
[platform/upstream/gst-plugins-good.git] / ext / qt / Makefile.am
1 plugin_LTLIBRARIES = libqtsink.la
2
3 noinst_HEADERS = \
4         gstqsgtexture.h \
5         gstqtsink.h \
6         qtitem.h
7
8 moc_generated = \
9         moc_qtitem.cc \
10         moc_gstqsgtexture.cc
11
12 #anything generated by the Qt tools...
13 BUILT_SOURCES = $(moc_generated)
14 CLEANFILES = $(moc_generated)
15
16 libqtsink_la_SOURCES = \
17         gstqsgtexture.cc \
18         qtitem.cc \
19         gstqtsink.cc \
20         gstqtsink.h \
21         gstplugin.cc
22
23 libqtsink_la_CXXFLAGS = \
24         -I$(top_srcdir)/gst-libs \
25         -I$(top_builddir)/gst-libs \
26         $(GST_CXXFLAGS) \
27         $(GST_BASE_CFLAGS) \
28         $(GST_PLUGINS_BASE_CFLAGS) \
29         $(QT_CFLAGS)
30
31 libqtsink_la_LIBADD = \
32         $(GST_BASE_LIBS) \
33         $(GST_PLUGINS_BASE_LIBS) \
34         $(QT_LIBS) \
35         $(top_builddir)/gst-libs/gst/gl/libgstgl-$(GST_API_VERSION).la \
36         -lgstvideo-$(GST_API_VERSION)
37
38 libqtsink_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
39 libqtsink_la_LIBTOOLFLAGS = $(GST_PLUGIN_LIBTOOLFLAGS)
40
41
42 $(moc_generated): moc_%.cc: %.h
43         @MOC@ -o $@ $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(MOC_CPPFLAGS) $<
44
45 ui-%.h: %.ui
46         @UIC@ -o $@ $<
47
48 qrc-%.cc: %.qrc
49         @RCC@ -o $@ $<