qt: Tidy up makefile a bit more

Separate generated files, from disted files
This commit is contained in:
Edward Hervey 2015-07-22 08:05:04 +02:00
parent f8f9c72cc5
commit 5f8633b6f3

View file

@ -1,29 +1,24 @@
# preamble
NULL =
plugin_LTLIBRARIES = libqtsink.la
moc_headers = \
qtitem.h \
noinst_HEADERS = \
gstqsgtexture.h \
$(NULL)
gstqtsink.h \
qtitem.h
moc_generated = \
moc_qtitem.cc \
moc_gstqsgtexture.cc \
$(NULL)
moc_gstqsgtexture.cc
#anything generated by the Qt tools...
BUILT_SOURCES = $(moc_generated)
CLEANFILES = $(moc_generated)
sources = \
libqtsink_la_SOURCES = \
gstqsgtexture.cc \
qtitem.cc \
gstqtsink.cc \
gstqtsink.h \
gstplugin.cc \
$(moc_headers) \
$(moc_generated) \
$(NULL)
gstplugin.cc
libqtsink_la_CXXFLAGS = \
-I$(top_srcdir)/gst-libs \
@ -32,6 +27,7 @@ libqtsink_la_CXXFLAGS = \
$(GST_BASE_CFLAGS) \
$(GST_PLUGINS_BASE_CFLAGS) \
$(QT_CFLAGS)
libqtsink_la_LIBADD = \
$(GST_BASE_LIBS) \
$(GST_PLUGINS_BASE_LIBS) \
@ -39,17 +35,15 @@ libqtsink_la_LIBADD = \
$(top_builddir)/gst-libs/gst/gl/libgstgl-$(GST_API_VERSION).la \
-lgstvideo-$(GST_API_VERSION)
libqtsink_la_SOURCES = $(sources)
libqtsink_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
libqtsink_la_LIBTOOLFLAGS = $(GST_PLUGIN_LIBTOOLFLAGS)
plugin_LTLIBRARIES = libqtsink.la
$(moc_generated): moc_%.cc: %.h
@@MOC@ -o$@ $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(MOC_CPPFLAGS) $<
@MOC@ -o $@ $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(MOC_CPPFLAGS) $<
ui-%.h: %.ui
@@UIC@ -o $@ $<
@UIC@ -o $@ $<
qrc-%.cc: %.qrc
@@RCC@ -o $@ $<
@RCC@ -o $@ $<