# print content
print saxutils.escape(content).encode('UTF-8')
print '</programlisting>'
-
+
main()
# really be exported, either because we're too lazy to rename them to something
# that's not exported (like the _gst_parse_* stuff) or because we had them in
# public headers at some point although they shouldn't be and so we need to
-# keep them exported now (like _gst_debug_init,
+# keep them exported now (like _gst_debug_init,
# __gst_element_factory_add_interface or
# __gst_element_factory_add_static_pad_template). We suppress them here to
# make sure they're at least not exported in the windows msvc build (they
my $class = $1 > 0 ? "perfect" : "terrible";
$_ = "<span class=\"$class\">$_</span>";
}
-
print;
}
$type = "file";
$name = $1;
$coverage{$type}->{$name} = {};
-
+
foreach my $func (@functions) {
$coverage{"function"}->{$func}->{file} = $name;
}
}
print " </entry>\n";
}
-
+
printf " <summary>\n";
printf " <lines count=\"%s\" coverage=\"%s\"/>\n", $summary{$type}->{lines}, $summary{$type}->{linesCoverage};
printf " <branches count=\"%s\" coverage=\"%s\"/>\n", $summary{$type}->{branches}, $summary{$type}->{branchesCoverage};
if wget -q -nc -O $PO_FILENAME $PO_URL; then
if [ -f "po/$d.po" ]; then
# ./po/foo.po exists, so let's check if ours matches the latest from the
- # translation project website
+ # translation project website
if diff $PO_FILENAME "po/$d.po" >/dev/null; then
echo "$d.po: up-to-date"
rm -f $PO_FILENAME
for lin in p.stdout.readlines():
match = reltagre.search (lin)
if match:
- (sha, maj, min, nano) = match.groups()
+ (sha, maj, min, nano) = match.groups()
release_refs[sha] = (maj, min, nano)
def find_start_tag():
if test ! -z "$MICRO"; then VERSION=$VERSION.$MICRO; else MICRO=0; fi
debug "major $MAJOR minor $MINOR micro $MICRO"
-
- for SUGGESTION in $PKG_PATH; do
+
+ for SUGGESTION in $PKG_PATH; do
COMMAND="$SUGGESTION"
# don't check if asked not to
}
debug "checking version with $COMMAND"
- ($COMMAND --version) < /dev/null > /dev/null 2>&1 ||
+ ($COMMAND --version) < /dev/null > /dev/null 2>&1 ||
{
echo "not found."
continue
if cp common/hooks/pre-commit.hook .git/hooks/pre-commit; then
chmod +x .git/hooks/pre-commit;
else
- echo "********** Couldn't install git $hook hook **********";
+ echo "********** Couldn't install git $hook hook **********";
fi
}
fi
print "PAD TEMPLATE", pt.name_template
paddir = ("unknown","source","sink")
padpres = ("always","sometimes","request")
-
+
d = {
'name': xmlencode(pt.name_template),
'direction': xmlencode(paddir[pt.direction]),
offset = get_offset(indent)
return offset + ("\n" + offset).join(block.split("\n"))
-
+
def output_element_factory(elf, indent=0):
print "ELEMENT", elf.get_name()
def output_plugin(plugin, indent=0):
print "PLUGIN", plugin.get_name()
version = plugin.get_version()
-
+
elements = {}
gst.debug('getting features for plugin %s' % plugin.get_name())
registry = gst.registry_get_default()
if isinstance(feature, gst.ElementFactory):
elements[feature.get_name()] = feature
#gst.debug("got features")
-
+
elementsoutput = []
keys = elements.keys()
keys.sort()
'elements': "\n".join(elementsoutput),
}
block = PLUGIN_TEMPLATE % d
-
+
offset = get_offset(indent)
return offset + ("\n" + offset).join(block.split("\n"))
# suppression for a glibc bug:
# http://valgrind.org/docs/manual/faq.html#faq.exit_errors>
{
- <Workaround for a glibc bug>
+ <Workaround for a glibc bug>
Memcheck:Free
fun:free
obj:*libc-*.so
}
# More edgy suppressions (Mike)
-{
+{
<dlopen Condition jump suppressions for Ubuntu Edgy/x86>
Memcheck:Cond
obj:/lib/ld-2.4.so
fun:dlopen@@GLIBC_2.1
}
-{
+{
<dlopen Condition jump suppressions for Ubuntu Edgy/x86>
Memcheck:Cond
obj:/lib/ld-2.4.so
fun:dlopen@@GLIBC_2.1
}
-{
+{
<dlopen Condition jump suppressions for Ubuntu Edgy/x86>
Memcheck:Cond
obj:/lib/ld-2.4.so
# This one's overly general, but there's zero other information in the stack
# trace - just these five lines!
-{
+{
<dlopen Condition jump suppressions for Ubuntu Edgy/x86>
Memcheck:Cond
obj:/lib/ld-2.4.so
obj:/usr/lib/libgconf-2.so.*
obj:/usr/lib/libgconf-2.so.*
fun:gconf_engine_get_default
-}
+}
{
<gconf internal initialisation>
Memcheck:Leak
fun:bonobo_activation_init
}
-# More GConf stuff from the FC5 buildbot, mostly variations on the
+# More GConf stuff from the FC5 buildbot, mostly variations on the
# above stack traces
{
<incompletely initialised ORBit buffer>
}
## Leak of property_list in gstffmpegcfg.c
-## This list is created in gst_ffmpegcsp_init(), called from
+## This list is created in gst_ffmpegcsp_init(), called from
## gst_ffmpegenc_register.
{
<insert a suppression name here>
'output-dir' => \$OUTPUT_DIR,
'version' => \$PRINT_VERSION,
'help' => \$PRINT_HELP);
-
+
GetOptions(\%optctl, "module=s", "source=s", "types:s", "output-dir:s", "nogtkinit", "type-init-func:s", "version", "help");
if ($NO_GTK_INIT) {
}
output_hierarchy (fp, G_TYPE_OBJECT, 0);
output_hierarchy (fp, G_TYPE_INTERFACE, 0);
-
+
for (i=0; object_types[i]; i++) {
if (!g_type_parent (object_types[i]) &&
(object_types[i] != G_TYPE_NONE) &&
rm -f html/version.entities
test "x$(HTML_IMAGES)" = "x" || for i in "" $(HTML_IMAGES) ; do \
if test "$$i" != ""; then cp $(srcdir)/$$i html ; fi; done
- @echo '-- Fixing Crossreferences'
+ @echo '-- Fixing Crossreferences'
gtkdoc-fixxref --module=$(DOC_MODULE) --module-dir=html --html-dir=$(HTML_DIR) $(FIXXREF_OPTIONS)
touch html-build.stamp
fi; \
(which gtkdoc-rebase >/dev/null && \
gtkdoc-rebase --relative --dest-dir=$(DESTDIR) --html-dir=$(DESTDIR)$(TARGET_DIR)) || true ; \
- fi)
+ fi)
uninstall-local:
if test -d $(DESTDIR)$(TARGET_DIR); then \
rm -rf $(DESTDIR)$(TARGET_DIR)/*; \
rm -f html/version.entities
test "x$(HTML_IMAGES)" = "x" || for i in "" $(HTML_IMAGES) ; do \
if test "$$i" != ""; then cp $(srcdir)/$$i html ; fi; done
- @echo '-- Fixing Crossreferences'
+ @echo '-- Fixing Crossreferences'
gtkdoc-fixxref --module=$(DOC_MODULE) --module-dir=html --html-dir=$(HTML_DIR) $(FIXXREF_OPTIONS)
touch html-build.stamp
fi; \
(which gtkdoc-rebase >/dev/null && \
gtkdoc-rebase --relative --dest-dir=$(DESTDIR) --html-dir=$(DESTDIR)$(TARGET_DIR)) || true ; \
- fi)
+ fi)
uninstall-local:
if test -d $(DESTDIR)$(TARGET_DIR); then \
rm -rf $(DESTDIR)$(TARGET_DIR)/*; \
--honour-newlines \
--tab-size8 \
--indent-level2"
-
+
echo "--Checking style--"
for file in `git-diff-index --cached --name-only HEAD --diff-filter=ACMR| grep "\.c$"` ; do
# nf is the temporary checkout. This makes sure we check against the
-All aclocal .m4 files we need are put here and cat'd to acinclude.m4 in
-the source root. Official ones (taken from the relevant devel packages)
+All aclocal .m4 files we need are put here and cat'd to acinclude.m4 in
+the source root. Official ones (taken from the relevant devel packages)
are named as-is, unofficial ones (or changed ones) get a gst-prefix.
dnl as-compiler.m4 0.1.0
-
+
dnl autostars m4 macro for detection of compiler flavor
dnl Thomas Vander Stichele <thomas at apestaart dot org>
dnl $Id: as-compiler.m4,v 1.4 2004/06/01 09:44:19 thomasvs Exp $
-
+
dnl AS_COMPILER(COMPILER)
dnl will set variable COMPILER to
dnl - gcc
dnl $Id: as-scrub-include.m4,v 1.7 2004/06/12 08:30:20 thomasvs Exp $
-dnl This macro uses output of cpp -v and expects it to contain text that
+dnl This macro uses output of cpp -v and expects it to contain text that
dnl looks a little bit like this:
dnl #include <...> search starts here:
dnl /usr/local/include
dnl - sets the variable PACKAGE_VERSION_RELEASE, which can be used
dnl for rpm release fields
dnl - executes ACTION-IF-NO-NANO or ACTION-IF-NANO
-
+
dnl example:
dnl AS_NANO(RELEASE="yes", RELEASE="no")
extra_cflags=$2
extra_libs=$3
check_lib_name=$4
-
+
CHECK_CFLAGS="$extra_cflags"
CHECK_LIBS="$extra_libs -l$check_lib_name"
printf("%s, bad version string\n", "$min_check_version");
return 1;
}
-
+
if ((CHECK_MAJOR_VERSION != check_major_version) ||
(CHECK_MINOR_VERSION != check_minor_version) ||
(CHECK_MICRO_VERSION != check_micro_version))
printf("\n*** An old version of check (%d.%d.%d) was found.\n",
check_major_version, check_minor_version, check_micro_version);
printf("*** You need a version of check being at least %d.%d.%d.\n", major, minor, micro);
- printf("***\n");
+ printf("***\n");
printf("*** If you have already installed a sufficiently new version, this error\n");
printf("*** probably means that the wrong copy of the check library and header\n");
printf("*** file is being found. Rerun configure with the --with-check=PATH option\n");
echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"],
[ echo "*** The test program failed to compile or link. See the file config.log for"
echo "*** the exact error that occured." ])
-
+
CFLAGS="$ac_save_CFLAGS"
LIBS="$ac_save_LIBS"
fi
[
AC_ARG_WITH(check,
[ --with-check=PATH prefix where check is installed [default=auto]])
-
+
AC_ARG_WITH(checklibname,
AC_HELP_STRING([--with-check-lib-name=NAME],
[name of the PIC check library (default=check)]))
-
+
min_check_version=ifelse([$1], ,0.8.2,$1)
if test x$with_check = xno; then
# Macro to add for using GNU gettext.
# Ulrich Drepper <drepper@cygnus.com>, 1995, 1996
#
-# Modified to never use included libintl.
+# Modified to never use included libintl.
# Owen Taylor <otaylor@redhat.com>, 12/15/1998
#
# Major rework to remove unused code
# Owen Taylor <otaylor@redhat.com>, 12/11/2002
#
-# Added better handling of ALL_LINGUAS from GNU gettext version
+# Added better handling of ALL_LINGUAS from GNU gettext version
# written by Bruno Haible, Owen Taylor <otaylor.redhat.com> 5/30/3002
#
# Modified to require ngettext
AC_PREREQ(2.53)
dnl
-dnl We go to great lengths to make sure that aclocal won't
+dnl We go to great lengths to make sure that aclocal won't
dnl try to pull in the installed version of these macros
dnl when running aclocal in the glib directory.
dnl
gt_cv_func_ngettext_libc=yes,
gt_cv_func_ngettext_libc=no)
])
-
+
if test "$gt_cv_func_ngettext_libc" = "yes" ; then
AC_CACHE_CHECK([for dgettext in libc], gt_cv_func_dgettext_libc,
[AC_TRY_LINK([
gt_cv_func_dgettext_libc=no)
])
fi
-
+
if test "$gt_cv_func_ngettext_libc" = "yes" ; then
AC_CHECK_FUNCS(bind_textdomain_codeset)
fi
if test "$gt_cv_func_dgettext_libc" != "yes" \
|| test "$gt_cv_func_ngettext_libc" != "yes" \
|| test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
-
+
AC_CHECK_LIB(intl, bindtextdomain,
[AC_CHECK_LIB(intl, ngettext,
[AC_CHECK_LIB(intl, dgettext,
|| test "$gt_cv_func_dgettext_libintl" = "yes"; then
gt_cv_have_gettext=yes
fi
-
+
if test "$gt_cv_func_dgettext_libintl" = "yes"; then
INTLLIBS="-lintl $libintl_extra_libs"
fi
-
+
if test "$gt_cv_have_gettext" = "yes"; then
AC_DEFINE(HAVE_GETTEXT,1,
[Define if the GNU gettext() function is already present or preinstalled.])
[test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
AC_TRY_LINK(, [extern int _nl_msg_cat_cntr;
return _nl_msg_cat_cntr],
- [CATOBJEXT=.gmo
+ [CATOBJEXT=.gmo
DATADIRNAME=share],
[case $host in
*-*-solaris*)
dnl Hence, we'd like to go with DATADIRNAME=share and
dnl and CATOBJEXT=.gmo in this case.
AC_CHECK_FUNC(bind_textdomain_codeset,
- [CATOBJEXT=.gmo
+ [CATOBJEXT=.gmo
DATADIRNAME=share],
[CATOBJEXT=.mo
DATADIRNAME=lib])
# AM_GLIB_GNU_GETTEXT
# -------------------
-# Do checks necessary for use of gettext. If a suitable implementation
+# Do checks necessary for use of gettext. If a suitable implementation
# of gettext is found in either in libintl or in the C library,
# it will set INTLLIBS to the libraries needed for use of gettext
# and AC_DEFINE() HAVE_GETTEXT and ENABLE_NLS. (The shell variable
# gt_cv_have_gettext will be set to "yes".) It will also call AC_SUBST()
-# on various variables needed by the Makefile.in.in installed by
+# on various variables needed by the Makefile.in.in installed by
# glib-gettextize.
dnl
glib_DEFUN([GLIB_GNU_GETTEXT],
[AC_REQUIRE([AC_PROG_CC])dnl
AC_REQUIRE([AC_HEADER_STDC])dnl
-
+
GLIB_LC_MESSAGES
GLIB_WITH_NLS
])dnl
# GLIB_RUN_PROG(PROGRAM, TEST-FILE, [ACTION-IF-PASS], [ACTION-IF-FAIL])
-#
+#
# Create a temporary file with TEST-FILE as its contents and pass the
# file name to PROGRAM. Perform ACTION-IF-PASS if PROGRAM exits with
# 0 and perform ACTION-IF-FAIL for any other exit status.
xi?86 | xk? | xi?86_64)
HAVE_CPU_I386=yes
AC_DEFINE(HAVE_CPU_I386, 1, [Define if the host CPU is an x86])
-
+
dnl FIXME could use some better detection
dnl (ie CPUID)
case "x${host_cpu}" in
HAVE_CPU_CRISV32=yes
AC_DEFINE(HAVE_CPU_CRISV32, 1, [Define if the host CPU is a CRISv32]) ;;
esac
-
+
dnl Determine endianness
AC_C_BIGENDIAN
-
+
AM_CONDITIONAL(HAVE_CPU_I386, test "x$HAVE_CPU_I386" = "xyes")
AM_CONDITIONAL(HAVE_CPU_PPC, test "x$HAVE_CPU_PPC" = "xyes")
AM_CONDITIONAL(HAVE_CPU_PPC64, test "x$HAVE_CPU_PPC64" = "xyes")
no) USE_PROFILING=no ;;
*) AC_MSG_ERROR(bad value ${enableval} for --enable-profiling) ;;
esac
- ],
+ ],
[USE_PROFILING=no]) dnl Default value
])
AC_DEFUN([AG_GST_ARG_WITH_PKG_CONFIG_PATH],
[
dnl possibly modify pkg-config path
- AC_ARG_WITH(pkg-config-path,
+ AC_ARG_WITH(pkg-config-path,
AC_HELP_STRING([--with-pkg-config-path],
[colon-separated list of pkg-config(1) dirs]),
[
no) AC_MSG_ERROR(bad value ${withval} for --with-package-name) ;;
*) GST_PACKAGE_NAME="${withval}" ;;
esac
- ],
+ ],
[
P=$1
if test "x$P" = "x"
then
P=$PACKAGE_NAME
fi
-
+
dnl default value
if test "x$GST_CVS" = "xyes"
then
no) AC_MSG_ERROR(bad value ${withval} for --with-package-origin) ;;
*) GST_PACKAGE_ORIGIN="${withval}" ;;
esac
- ],
+ ],
[GST_PACKAGE_ORIGIN="[Unknown package origin]"] dnl Default value
)
AC_MSG_NOTICE(Using $GST_PACKAGE_ORIGIN as package origin)
fi
if echo " [$WITHOUT_PLUGINS] " | tr , ' ' | grep -i " [$1] " > /dev/null; then
GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ [$1] / /'`
- fi
+ fi
AM_CONDITIONAL([USE_PLUGIN_]translit([$1], a-z, A-Z), echo " $GST_PLUGINS_SELECTED " | grep -i " [$1] " > /dev/null)
])
AG_GST_CHECK_MODULES(GST_BASE, gstreamer-base-[$1], [$2],
[GStreamer Base Libraries], [$3])
])
-
+
AC_DEFUN([AG_GST_CHECK_GST_GDP],
[
AG_GST_CHECK_MODULES(GST_GDP, gstreamer-dataprotocol-[$1], [$2],
[GStreamer Data Protocol Library], [$3])
])
-
+
AC_DEFUN([AG_GST_CHECK_GST_CONTROLLER],
[
AG_GST_CHECK_MODULES(GST_CONTROLLER, gstreamer-controller-[$1], [$2],
[GStreamer Controller Library], [$3])
-])
+])
AC_DEFUN([AG_GST_CHECK_GST_CHECK],
[
no) AC_MSG_ERROR(bad value ${withval} for --with-default-audiosink) ;;
*) DEFAULT_AUDIOSINK="${withval}" ;;
esac
- ],
+ ],
[
DEFAULT_AUDIOSINK="$DEFAULT_AUDIOSINK"
] dnl Default value as determined above
)
- AC_MSG_NOTICE(Using $DEFAULT_AUDIOSINK as default audio sink)
+ AC_MSG_NOTICE(Using $DEFAULT_AUDIOSINK as default audio sink)
AC_SUBST(DEFAULT_AUDIOSINK)
AC_DEFINE_UNQUOTED(DEFAULT_AUDIOSINK, "$DEFAULT_AUDIOSINK",
[Default audio sink])
no) AC_MSG_ERROR(bad value ${withval} for --with-default-audiosrc) ;;
*) DEFAULT_AUDIOSRC="${withval}" ;;
esac
- ],
+ ],
[
DEFAULT_AUDIOSRC="$DEFAULT_AUDIOSRC"
] dnl Default value as determined above
)
- AC_MSG_NOTICE(Using $DEFAULT_AUDIOSRC as default audio source)
+ AC_MSG_NOTICE(Using $DEFAULT_AUDIOSRC as default audio source)
AC_SUBST(DEFAULT_AUDIOSRC)
AC_DEFINE_UNQUOTED(DEFAULT_AUDIOSRC, "$DEFAULT_AUDIOSRC",
[Default audio source])
no) AC_MSG_ERROR(bad value ${withval} for --with-default-videosink) ;;
*) DEFAULT_VIDEOSINK="${withval}" ;;
esac
- ],
+ ],
[
DEFAULT_VIDEOSINK="$DEFAULT_VIDEOSINK"
] dnl Default value as determined above
)
- AC_MSG_NOTICE(Using $DEFAULT_VIDEOSINK as default video sink)
+ AC_MSG_NOTICE(Using $DEFAULT_VIDEOSINK as default video sink)
AC_SUBST(DEFAULT_VIDEOSINK)
AC_DEFINE_UNQUOTED(DEFAULT_VIDEOSINK, "$DEFAULT_VIDEOSINK",
[Default video sink])
no) AC_MSG_ERROR(bad value ${withval} for --with-default-videosrc) ;;
*) DEFAULT_VIDEOSRC="${withval}" ;;
esac
- ],
+ ],
[
DEFAULT_VIDEOSRC="$DEFAULT_VIDEOSRC"
] dnl Default value as determined above
)
- AC_MSG_NOTICE(Using $DEFAULT_VIDEOSRC as default video source)
+ AC_MSG_NOTICE(Using $DEFAULT_VIDEOSRC as default video source)
AC_SUBST(DEFAULT_VIDEOSRC)
AC_DEFINE_UNQUOTED(DEFAULT_VIDEOSRC, "$DEFAULT_VIDEOSRC",
[Default video source])
no) AC_MSG_ERROR(bad value ${withval} for --with-default-visualizer) ;;
*) DEFAULT_VISUALIZER="${withval}" ;;
esac
- ],
+ ],
[
DEFAULT_VISUALIZER="$DEFAULT_VISUALIZER"
] dnl Default value as determined above
)
- AC_MSG_NOTICE(Using $DEFAULT_VISUALIZER as default visualizer)
+ AC_MSG_NOTICE(Using $DEFAULT_VISUALIZER as default visualizer)
AC_SUBST(DEFAULT_VISUALIZER)
AC_DEFINE_UNQUOTED(DEFAULT_VISUALIZER, "$DEFAULT_VISUALIZER",
[Default visualizer])
dnl check if we can process docbook stuff
AS_DOCBOOK(have_docbook=yes, have_docbook=no)
-
+
dnl check for extra tools
AC_CHECK_PROG(HAVE_DVIPS, dvips, yes, no)
AC_CHECK_PROG(HAVE_XMLLINT, xmllint, yes, no)
-
+
dnl check for image conversion tools
AC_CHECK_PROG(HAVE_FIG2DEV, fig2dev, yes, no)
if test "x$HAVE_FIG2DEV" = "xno" ; then
AC_MSG_WARN([Did not find fig2dev (from xfig), images will not be generated.])
fi
-
+
dnl The following is a hack: if fig2dev doesn't display an error message
dnl for the desired type, we assume it supports it.
HAVE_FIG2DEV_EPS=no
HAVE_FIG2DEV_PDF=yes
fi
fi
-
+
AC_CHECK_PROG(HAVE_PNGTOPNM, pngtopnm, yes, no)
AC_CHECK_PROG(HAVE_PNMTOPS, pnmtops, yes, no)
AC_CHECK_PROG(HAVE_EPSTOPDF, epstopdf, yes, no)
-
+
dnl check if we can generate HTML
if test "x$HAVE_DOCBOOK2HTML" = "xyes" && \
test "x$enable_docbook" = "xyes" && \
DOC_HTML=no
AC_MSG_NOTICE(Will not output HTML documentation)
fi
-
+
dnl check if we can generate PS
if test "x$HAVE_DOCBOOK2PS" = "xyes" && \
test "x$enable_docbook" = "xyes" && \
DOC_PS=no
AC_MSG_NOTICE(Will not output PS documentation)
fi
-
+
dnl check if we can generate PDF - using only ps2pdf
if test "x$DOC_PS" = "xyes" && \
test "x$enable_docbook" = "xyes" && \
AC_REQUIRE([AC_PROG_CC])
AC_REQUIRE([AS_COMPILER_FLAG])
-
+
dnl if we support -Wall, set it unconditionally
AS_COMPILER_FLAG(-Wall,
ERROR_CFLAGS="-Wall",
ERROR_CFLAGS="")
-
+
dnl Warn if declarations after statements are used (C99 extension)
AS_COMPILER_FLAG(-Wdeclaration-after-statement,
ERROR_CFLAGS="$ERROR_CFLAGS -Wdeclaration-after-statement")
dnl try -errwarn=%all,no%E_EMPTY_DECLARATION,
dnl no%E_STATEMENT_NOT_REACHED,no%E_ARGUEMENT_MISMATCH,
dnl no%E_MACRO_REDEFINED (Sun Forte case)
- dnl For Forte we need disable "empty declaration" warning produced by un-needed semicolon
+ dnl For Forte we need disable "empty declaration" warning produced by un-needed semicolon
dnl "statement not reached" disabled because there is g_assert_not_reached () in some places
dnl "macro redefined" because of gst/gettext.h
dnl FIXME: is it really supposed to be 'ARGUEMENT' and not 'ARGUMENT'?
AC_REQUIRE([AC_PROG_CXX])
AC_REQUIRE([AS_CXX_COMPILER_FLAG])
-
+
dnl if we support -Wall, set it unconditionally
AS_CXX_COMPILER_FLAG(-Wall, [
ERROR_CXXFLAGS="-Wall"
], [
ERROR_CXXFLAGS=""
])
-
+
dnl if asked for, add -Werror if supported
if test "x$1" != "xno"
then
dnl add exceptions
AS_CXX_COMPILER_FLAG([-Wno-non-virtual-dtor], ERROR_CXXFLAGS="$ERROR_CXXFLAGS -Wno-non-virtual-dtor")
-
+
dnl Add -fno-strict-aliasing for GLib versions before 2.19.8
dnl as before G_LOCK and friends caused strict aliasing compiler
dnl warnings.
dnl try -errwarn=%all,no%E_EMPTY_DECLARATION,
dnl no%E_STATEMENT_NOT_REACHED,no%E_ARGUEMENT_MISMATCH,
dnl no%E_MACRO_REDEFINED (Sun Forte case)
- dnl For Forte we need disable "empty declaration" warning produced by un-needed semicolon
+ dnl For Forte we need disable "empty declaration" warning produced by un-needed semicolon
dnl "statement not reached" disabled because there is g_assert_not_reached () in some places
dnl "macro redefined" because of gst/gettext.h
dnl FIXME: is it really supposed to be 'ARGUEMENT' and not 'ARGUMENT'?
AC_SUBST(LIBXML2_REQ)
dnl check for libxml2
- PKG_CHECK_MODULES(XML, libxml-2.0 >= $LIBXML2_REQ,
+ PKG_CHECK_MODULES(XML, libxml-2.0 >= $LIBXML2_REQ,
HAVE_LIBXML2=yes, [
AC_MSG_RESULT(no)
HAVE_LIBXML2=no
AC_MSG_ERROR([Need libxml2 for glib2 builds -- you should be able to do without it -- this needs fixing])
fi
dnl this is for the .pc file
- LIBXML_PKG=', libxml-2.0'
+ LIBXML_PKG=', libxml-2.0'
AC_SUBST(LIBXML_PKG)
AC_SUBST(XML_LIBS)
AC_SUBST(XML_CFLAGS)
AC_TRY_LINK([
#include <libxml/tree.h>
#include <stdio.h>
-],[
+],[
/* function body */
],
AC_MSG_NOTICE([Test xml2 program linked]),
bison_version=`$BISON_PATH --version | head -n 1 | sed 's/^[[^0-9]]*//' | sed 's/[[^0-9]]*$//' | cut -d' ' -f1`
AC_MSG_CHECKING([bison version $bison_version >= $bison_min_version])
- if perl -we "exit ((v$bison_version ge v$bison_min_version) ? 0 : 1)"; then
+ if perl -we "exit ((v$bison_version ge v$bison_min_version) ? 0 : 1)"; then
AC_MSG_RESULT([yes])
- else
+ else
AC_MSG_ERROR([no])
fi
])
if test x$FLEX_PATH = xno; then
AC_MSG_ERROR(Could not find flex)
fi
-
+
dnl check flex version
dnl we need version >= 2.5.31 for the reentrancy support
- dnl in the parser.
+ dnl in the parser.
flex_min_version=2.5.31
flex_version=`$FLEX_PATH --version | head -n 1 | sed 's/^.* //' | sed 's/[[a-zA-Z]]*$//' | cut -d' ' -f1`
AC_MSG_CHECKING([flex version $flex_version >= $flex_min_version])
dnl AG_GST_PLUGIN_DOCS([MINIMUM-GTK-DOC-VERSION],[MINIMUM-PYTHON-VERSION])
-dnl
+dnl
dnl checks for prerequisites for the common/mangle-tmpl.py script
dnl used when building the plugin documentation
fi
AC_SUBST(VALGRIND_CFLAGS)
AC_SUBST(VALGRIND_LIBS)
-
+
AC_PATH_PROG(VALGRIND_PATH, valgrind, no)
AM_CONDITIONAL(HAVE_VALGRIND, test ! "x$VALGRIND_PATH" = "xno")
])
AC_SUBST(X_LIBS)
fi
AC_SUBST(HAVE_X)
-
+
CFLAGS="$ac_cflags_save"
CPPFLAGS="$ac_cppflags_save"
])
# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
-#
+#
# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
#
# This program is free software; you can redistribute it and/or modify
AC_MSG_RESULT([no])
PKG_CONFIG=""
fi
-
+
fi[]dnl
])# PKG_PROG_PKG_CONFIG
_PKG_SHORT_ERRORS_SUPPORTED
if test $_pkg_short_errors_supported = yes; then
$1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$2"`
- else
+ else
$1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
fi
# Put the nasty error message in config.log where it belongs
elements[name] = {'description': description}
return elements
-
+
def main():
if not len(sys.argv) == 3:
sys.stderr.write('Please specify the inspect/ dir and the tmpl/ dir')
version="1.0">
<xsl:output method="xml" indent="yes"
doctype-public ="-//OASIS//DTD DocBook XML V4.1.2//EN"
- doctype-system = "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd"/>
+ doctype-system = "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd"/>
<xsl:param name="module" />
<xsl:element name="refsect2">
<xsl:element name="title">Element Information</xsl:element>
<xsl:element name="variablelist">
-
+
<!-- plugin name and link -->
<xsl:element name="varlistentry">
<xsl:element name="term">plugin</xsl:element>
</xsl:element>
</xsl:element>
</xsl:element>
-
+
<xsl:element name="varlistentry">
<xsl:element name="term">author</xsl:element>
<xsl:element name="listitem">
<xsl:element name="simpara"><xsl:value-of select="author" /></xsl:element>
</xsl:element>
</xsl:element>
-
+
<xsl:element name="varlistentry">
<xsl:element name="term">class</xsl:element>
<xsl:element name="listitem">
<xsl:element name="simpara"><xsl:value-of select="class" /></xsl:element>
</xsl:element>
</xsl:element>
-
+
</xsl:element> <!-- variablelist -->
</xsl:element> <!-- refsect2 -->
-
+
<xsl:element name="refsect2">
<xsl:element name="title">Element Pads</xsl:element>
<!-- process all caps -->
<xsl:element name="simpara"><xsl:value-of select="name" /></xsl:element>
</xsl:element>
</xsl:element>
-
+
<xsl:element name="varlistentry">
<xsl:element name="term">direction</xsl:element>
<xsl:element name="listitem">
<xsl:element name="simpara"><xsl:value-of select="direction" /></xsl:element>
</xsl:element>
</xsl:element>
-
+
<xsl:element name="varlistentry">
<xsl:element name="term">presence</xsl:element>
<xsl:element name="listitem">
<xsl:element name="simpara"><xsl:value-of select="presence" /></xsl:element>
</xsl:element>
</xsl:element>
-
+
<xsl:for-each select='str:tokenize(details, ";")'>
<xsl:element name="varlistentry">
<xsl:element name="term">
</xsl:element>
</xsl:element>
</xsl:for-each>
-
+
</xsl:element> <!-- variablelist -->
-
+
<!--xsl:element name="programlisting"><xsl:value-of select="details" /></xsl:element-->
-
+
</xsl:for-each>
</xsl:element> <!-- refsect2 -->
</xsl:element> <!-- refsynopsisdiv -->
<xsl:value-of select="name"/>
</xsl:element>
</xsl:element>
-
+
<xsl:element name="refpurpose">
<xsl:value-of select="description"/>
</xsl:element>
if not overwrite and self._args.has_key(arg.name):
raise IndexError, "arg %s already in %r" % (arg.name, self)
self._args[arg.name] = arg
-
+
class Docable:
def __init__(self, **kwargs):
for key in self.attrs: