qt: fix build with qmake
Move the package defines for GST_PLUGIN_DEFINE from the command line into the source file to avoid quoting issues (-DPACKAGE_NAME="foo" means the quotes won't actually make it to the compiler and then it no longer gets a string constant).
This commit is contained in:
parent
346474c25d
commit
be7ebefd27
@ -44,6 +44,14 @@ plugin_init (GstPlugin * plugin)
|
|||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef GST_PACKAGE_NAME
|
||||||
|
#define GST_PACKAGE_NAME "GStreamer Bad Plug-ins (qmake)"
|
||||||
|
#define GST_PACKAGE_ORIGIN "Unknown package origin"
|
||||||
|
#define GST_LICENSE "LGPL"
|
||||||
|
#define PACKAGE "gst-plugins-bad (qmake)"
|
||||||
|
#define PACKAGE_VERSION "1.13.0.1"
|
||||||
|
#endif
|
||||||
|
|
||||||
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
|
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
|
||||||
GST_VERSION_MINOR,
|
GST_VERSION_MINOR,
|
||||||
qmlgl,
|
qmlgl,
|
||||||
|
@ -13,12 +13,7 @@ PKGCONFIG = \
|
|||||||
|
|
||||||
DEFINES += \
|
DEFINES += \
|
||||||
GST_USE_UNSTABLE_API \
|
GST_USE_UNSTABLE_API \
|
||||||
HAVE_QT_WIN32 \
|
HAVE_QT_WIN32
|
||||||
'GST_PACKAGE_NAME=\"GStreamer Bad Plug-ins (qmake)\"' \
|
|
||||||
'GST_PACKAGE_ORIGIN=\"Unknown package origin\"' \
|
|
||||||
'GST_LICENSE=\"LGPL\"' \
|
|
||||||
'PACKAGE=\"gst-plugins-bad (qmake)\"' \
|
|
||||||
'PACKAGE_VERSION=\"1.9.0.1\"'
|
|
||||||
|
|
||||||
SOURCES += \
|
SOURCES += \
|
||||||
gstplugin.cc \
|
gstplugin.cc \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user