mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-12 02:15:31 +00:00
Check for and define ERROR_CXXFLAGS and GST_CXXFLAGS and use them when building C++ code (#516509).
Original commit message from CVS: * configure.ac: * ext/sidplay/Makefile.am: Check for and define ERROR_CXXFLAGS and GST_CXXFLAGS and use them when building C++ code (#516509).
This commit is contained in:
parent
ec18a61d72
commit
6d86239ade
4 changed files with 19 additions and 4 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
2008-02-23 Tim-Philipp Müller <tim at centricular dot net>
|
||||||
|
|
||||||
|
* configure.ac:
|
||||||
|
* ext/sidplay/Makefile.am:
|
||||||
|
Check for and define ERROR_CXXFLAGS and GST_CXXFLAGS and use them
|
||||||
|
when building C++ code (#516509).
|
||||||
|
|
||||||
2008-02-22 Tim-Philipp Müller <tim at centricular dot net>
|
2008-02-22 Tim-Philipp Müller <tim at centricular dot net>
|
||||||
|
|
||||||
* ext/lame/gstlame.c: (gst_lame_sink_setcaps):
|
* ext/lame/gstlame.c: (gst_lame_sink_setcaps):
|
||||||
|
|
2
common
2
common
|
@ -1 +1 @@
|
||||||
Subproject commit bd6ec57040fe3fa93e21ca440dfe494e3ee18555
|
Subproject commit ce296a6e04ac824523dbf7bf836f91e14012ab9d
|
10
configure.ac
10
configure.ac
|
@ -201,6 +201,9 @@ AG_GST_SET_PLUGINDIR
|
||||||
dnl define an ERROR_CFLAGS Makefile variable
|
dnl define an ERROR_CFLAGS Makefile variable
|
||||||
AG_GST_SET_ERROR_CFLAGS($GST_CVS)
|
AG_GST_SET_ERROR_CFLAGS($GST_CVS)
|
||||||
|
|
||||||
|
dnl define an ERROR_CXXFLAGS Makefile variable
|
||||||
|
AG_GST_SET_ERROR_CXXFLAGS($GST_CVS)
|
||||||
|
|
||||||
dnl define correct level for debugging messages
|
dnl define correct level for debugging messages
|
||||||
AG_GST_SET_LEVEL_DEFAULT($GST_CVS)
|
AG_GST_SET_LEVEL_DEFAULT($GST_CVS)
|
||||||
|
|
||||||
|
@ -385,16 +388,21 @@ else
|
||||||
fi
|
fi
|
||||||
AC_SUBST(DEPRECATED_CFLAGS)
|
AC_SUBST(DEPRECATED_CFLAGS)
|
||||||
|
|
||||||
dnl every flag in GST_OPTION_CFLAGS can be overridden at make time
|
dnl every flag in GST_OPTION_CFLAGS and GST_OPTION_CXXFLAGS can be overridden
|
||||||
|
dnl at make time with e.g. make ERROR_CFLAGS=""
|
||||||
GST_OPTION_CFLAGS="\$(ERROR_CFLAGS) \$(DEBUG_CFLAGS) \$(PROFILE_CFLAGS) \$(GCOV_CFLAGS) \$(OPT_CFLAGS) \$(DEPRECATED_CFLAGS)"
|
GST_OPTION_CFLAGS="\$(ERROR_CFLAGS) \$(DEBUG_CFLAGS) \$(PROFILE_CFLAGS) \$(GCOV_CFLAGS) \$(OPT_CFLAGS) \$(DEPRECATED_CFLAGS)"
|
||||||
|
GST_OPTION_CXXFLAGS="\$(ERROR_CXXFLAGS) \$(DEBUG_CFLAGS) \$(PROFILE_CFLAGS) \$(GCOV_CFLAGS) \$(OPT_CFLAGS) \$(DEPRECATED_CFLAGS)"
|
||||||
AC_SUBST(GST_OPTION_CFLAGS)
|
AC_SUBST(GST_OPTION_CFLAGS)
|
||||||
|
AC_SUBST(GST_OPTION_CXXFLAGS)
|
||||||
|
|
||||||
dnl FIXME: do we want to rename to GST_ALL_* ?
|
dnl FIXME: do we want to rename to GST_ALL_* ?
|
||||||
dnl prefer internal headers to already installed ones
|
dnl prefer internal headers to already installed ones
|
||||||
dnl also add builddir include for enumtypes and marshal
|
dnl also add builddir include for enumtypes and marshal
|
||||||
dnl add GST_OPTION_CFLAGS, but overridable
|
dnl add GST_OPTION_CFLAGS, but overridable
|
||||||
GST_CFLAGS="-I\$(top_srcdir)/gst-libs -I\$(top_builddir)/gst-libs $GST_CFLAGS \$(GST_OPTION_CFLAGS)"
|
GST_CFLAGS="-I\$(top_srcdir)/gst-libs -I\$(top_builddir)/gst-libs $GST_CFLAGS \$(GST_OPTION_CFLAGS)"
|
||||||
|
GST_CXXFLAGS="-I\$(top_srcdir)/gst-libs -I\$(top_builddir)/gst-libs $GST_CFLAGS \$(GST_OPTION_CXXFLAGS)"
|
||||||
AC_SUBST(GST_CFLAGS)
|
AC_SUBST(GST_CFLAGS)
|
||||||
|
AC_SUBST(GST_CXXFLAGS)
|
||||||
AC_SUBST(GST_LIBS)
|
AC_SUBST(GST_LIBS)
|
||||||
|
|
||||||
dnl LDFLAGS really should only contain flags, not libs - they get added before
|
dnl LDFLAGS really should only contain flags, not libs - they get added before
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
plugin_LTLIBRARIES = libgstsid.la
|
plugin_LTLIBRARIES = libgstsid.la
|
||||||
|
|
||||||
libgstsid_la_SOURCES = gstsiddec.cc
|
libgstsid_la_SOURCES = gstsiddec.cc
|
||||||
libgstsid_la_CXXFLAGS = $(GST_CFLAGS) $(SIDPLAY_CFLAGS)
|
libgstsid_la_CXXFLAGS = $(GST_CXXFLAGS) $(SIDPLAY_CFLAGS)
|
||||||
libgstsid_la_LIBADD = $(GST_PLUGINS_BASE_LIBS) $(SIDPLAY_LIBS)
|
libgstsid_la_LIBADD = $(GST_LIBS) $(SIDPLAY_LIBS)
|
||||||
libgstsid_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
|
libgstsid_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
|
||||||
|
|
||||||
noinst_HEADERS = gstsiddec.h
|
noinst_HEADERS = gstsiddec.h
|
||||||
|
|
Loading…
Reference in a new issue