qt: don't use CPPFLAGS for tools that cannot use them
authorMatthew Waters <matthew@centricular.com>
Wed, 2 Sep 2015 13:40:31 +0000 (23:40 +1000)
committerMatthew Waters <matthew@centricular.com>
Mon, 28 Sep 2015 06:47:00 +0000 (16:47 +1000)
For example moc will bail out when given arguments it does not
know about.  The moc specific MOC_CPPFLAGS can still be used
to pass flags to moc.

https://bugzilla.gnome.org/show_bug.cgi?id=754466

ext/qt/Makefile.am

index eb0b79d..053a83f 100644 (file)
@@ -42,7 +42,7 @@ libgstqtsink_la_LIBTOOLFLAGS = $(GST_PLUGIN_LIBTOOLFLAGS)
 
 
 $(moc_generated): moc_%.cc: %.h
-       @MOC@ -o $@ $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(MOC_CPPFLAGS) $<
+       @MOC@ -o $@ $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(MOC_CPPFLAGS) $<
 
 ui-%.h: %.ui
        @UIC@ -o $@ $<