[-]
[+]
|
Changed |
_service:tar_git:gstreamer1.0-droid.changes
|
|
[-]
[+]
|
Changed |
_service:tar_git:gst-droid.spec
^
|
|
[-]
[+]
|
Changed |
_service
^
|
@@ -2,7 +2,7 @@
<service name="tar_git">
<param name="url">https://github.com/sailfishos/gst-droid.git</param>
<param name="branch">master</param>
- <param name="revision">0.20210304.0</param>
+ <param name="revision">0.20210518.1</param>
<param name="token"/>
<param name="debian">N</param>
<param name="dumb">N</param>
|
[-]
[+]
|
Deleted |
_service:tar_git:gstreamer1.0-droid-0.20210304.0.tar.gz/.gitmodules
^
|
@@ -1,3 +0,0 @@
-[submodule "common"]
- path = common
- url = https://git.sailfishos.org/mirror/gstreamer-common.git
|
[-]
[+]
|
Deleted |
_service:tar_git:gstreamer1.0-droid-0.20210304.0.tar.gz/Makefile.am
^
|
@@ -1,8 +0,0 @@
-SUBDIRS = common gst-libs gst tools
-
-EXTRA_DIST = autogen.sh \
- gstreamer-droid-1.0.pc.in \
- gstreamer-droid-1.0.pc
-
-pkgconfigdir = $(libdir)/pkgconfig
-pkgconfig_DATA = gstreamer-droid-1.0.pc
|
[-]
[+]
|
Deleted |
_service:tar_git:gstreamer1.0-droid-0.20210304.0.tar.gz/autogen.sh
^
|
@@ -1,127 +0,0 @@
-#!/bin/sh
-#
-# gst-droid autogen.sh
-#
-# Run this to generate all the initial makefiles, etc.
-#
-# This file has been generated from common/autogen.sh.in via common/update-autogen
-
-
-test -n "$srcdir" || srcdir=`dirname "$0"`
-test -n "$srcdir" || srcdir=.
-
-olddir=`pwd`
-cd "$srcdir"
-
-DIE=0
-package=gst-droid
-srcfile=gst-droid.doap
-
-# Make sure we have common
-if test ! -f common/gst-autogen.sh;
-then
- echo "+ Setting up common submodule"
- git submodule init
-fi
-git submodule update
-
-# source helper functions
-if test ! -f common/gst-autogen.sh;
-then
- echo There is something wrong with your source tree.
- echo You are missing common/gst-autogen.sh
- exit 1
-fi
-. common/gst-autogen.sh
-
-# install pre-commit hook for doing clean commits
-if test ! \( -x .git/hooks/pre-commit -a -L .git/hooks/pre-commit \);
-then
- rm -f .git/hooks/pre-commit
- ln -s ../../common/hooks/pre-commit.hook .git/hooks/pre-commit
-fi
-
-# GNU gettext automake support doesn't get along with git.
-# https://bugzilla.gnome.org/show_bug.cgi?id=661128
-if test -d po ; then
- touch -t 200001010000 po/gst-droid-1.0.pot
-fi
-
-CONFIGURE_DEF_OPT='--enable-maintainer-mode --enable-gtk-doc'
-
-if test "x$package" = "xgstreamer"; then
- CONFIGURE_DEF_OPT="$CONFIGURE_DEF_OPT --enable-docbook --enable-failing-tests --enable-poisoning"
-fi
-
-autogen_options $@
-
-printf "+ check for build tools"
-if test ! -z "$NOCHECK"; then echo ": skipped version checks"; else echo; fi
-version_check "autoconf" "$AUTOCONF autoconf autoconf270 autoconf269 autoconf268 " \
- "ftp://ftp.gnu.org/pub/gnu/autoconf/" 2 68 || DIE=1
-version_check "automake" "$AUTOMAKE automake automake-1.11" \
- "ftp://ftp.gnu.org/pub/gnu/automake/" 1 11 || DIE=1
-version_check "autopoint" "autopoint" \
- "ftp://ftp.gnu.org/pub/gnu/gettext/" 0 17 || DIE=1
-version_check "libtoolize" "$LIBTOOLIZE libtoolize glibtoolize" \
- "ftp://ftp.gnu.org/pub/gnu/libtool/" 2 2 6 || DIE=1
-version_check "pkg-config" "" \
- "http://www.freedesktop.org/software/pkgconfig" 0 8 0 || DIE=1
-
-die_check $DIE
-
-aclocal_check || DIE=1
-autoheader_check || DIE=1
-
-die_check $DIE
-
-# if no arguments specified then this will be printed
-if test -z "$*" && test -z "$NOCONFIGURE"; then
- echo "+ checking for autogen.sh options"
- echo " This autogen script will automatically run ./configure as:"
- echo " ./configure $CONFIGURE_DEF_OPT"
- echo " To pass any additional options, please specify them on the $0"
- echo " command line."
-fi
-
-toplevel_check $srcfile
-
-# autopoint
-if test -d po ; then
- tool_run "$autopoint" "--force"
-fi
-
-# aclocal
-if test -f acinclude.m4; then rm acinclude.m4; fi
-
-tool_run "$libtoolize" "--copy --force"
-tool_run "$aclocal" "-I m4 -I common/m4 $ACLOCAL_FLAGS"
-tool_run "$autoheader"
-
-# touch the stamp-h.in build stamp so we don't re-run autoheader in maintainer mode
-echo timestamp > stamp-h.in 2> /dev/null
-
-tool_run "$autoconf"
-debug "automake: $automake"
-tool_run "$automake" "--add-missing --copy"
-
-test -n "$NOCONFIGURE" && {
- echo "+ skipping configure stage for package $package, as requested."
- echo "+ autogen.sh done."
- exit 0
-}
-
-cd "$olddir"
-
-echo "+ running configure ... "
-test ! -z "$CONFIGURE_DEF_OPT" && echo " default flags: $CONFIGURE_DEF_OPT"
-test ! -z "$CONFIGURE_EXT_OPT" && echo " external flags: $CONFIGURE_EXT_OPT"
-echo
-
-echo "$srcdir/configure" $CONFIGURE_DEF_OPT $CONFIGURE_EXT_OPT
-"$srcdir/configure" $CONFIGURE_DEF_OPT $CONFIGURE_EXT_OPT || {
- echo " configure failed"
- exit 1
-}
-
-echo "Now type 'make' to compile $package."
|
[-]
[+]
|
Deleted |
_service:tar_git:gstreamer1.0-droid-0.20210304.0.tar.gz/common
^
|
-(directory)
|
[-]
[+]
|
Deleted |
_service:tar_git:gstreamer1.0-droid-0.20210304.0.tar.gz/common/.gitignore
^
|
@@ -1,4 +0,0 @@
-Makefile
-Makefile.in
-*~
-/common-update-*
|
[-]
[+]
|
Deleted |
_service:tar_git:gstreamer1.0-droid-0.20210304.0.tar.gz/common/ChangeLog
^
|
@@ -1,1712 +0,0 @@
-2008-12-17 Edward Hervey <bilboed@gmail.com>
-
- * gst.supp:
- And yet another variation of the GstAudioFilter leak.
-
-2008-12-15 Sebastian Dröge <sebastian.droege@collabora.co.uk>
-
- Patch by: Roland Illig <roland dot illig at gmx dot de>
-
- * m4/gst-parser.m4:
- Fix AG_GST_BISON_CHECK to handle version numbers with more than
- two components (i.e. 2.4.1). Fixes bug #564507.
-
-2008-12-14 Edward Hervey <bilboed@gmail.com>
-
- * gst.supp:
- And yet another variant of the GstAudioFilter leak.
-
-2008-12-13 Edward Hervey <edward.hervey@collabora.co.uk>
-
- * gst.supp:
- Added variants of leaks of dynamic pad templates created in
- GstAudioFilter.
- Add conditional jump triggered by getaddrinfo (maybe glibc-2.9).
-
-2008-12-12 Edward Hervey <edward.hervey@collabora.co.uk>
-
- * gst.supp:
- Fix leak in GIO called by gnomevfs. Nothing we can do about this.
-
-2008-12-12 Edward Hervey <edward.hervey@collabora.co.uk>
-
- * gst.supp:
- Added another suppression for dynamic pad templates, in this case
- GstAudioFilter.
- Added suppression for PangoLanguage which can never be freed
- according to the Pango API.
-
-2008-12-12 Edward Hervey <edward.hervey@collabora.co.uk>
-
- * gst.supp:
- A whole bunch of suppressions detected on latest gentoo ~amd64.
- Make some existing suppressions more generic (for subtle dependecy
- code changes).
- Added suppressions for glibc-2.9.
- Added suppressions for new variants of ALSA leaks.
- Added suppressions for a series of leaks in plugins registrations due
- to some pad templates' caps calculated at runtime.
- Added suppressions for variants of some leaks in pango/fontconfig.
- Added suppressions for leak in gstffmpegcsp.c (nothing we can do
- about it, but will only exist once).
-
-2008-12-04 Sebastian Dröge <sebastian.droege@collabora.co.uk>
-
- * m4/gst-plugin-docs.m4:
- Remove the check if $have_gtk_doc equals yes as it's not defined
- and $enable_gtk_doc should be good enough.
- Also this restores the build of the plugin documentation.
-
-2008-12-01 Mark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
-
- * gst.supp:
- Add suppression variant for Ubuntu Hardy x86/64bit.
-
-2008-12-01 Stefan Kost <ensonic@users.sf.net>
-
- * gtk-doc-plugins.mak:
- * gtk-doc.mak:
- Simplily uninstall rule. Its closer to upstream and fixes #150331.
-
-2008-11-29 Sebastian Dröge <sebastian.droege@collabora.co.uk>
-
- * m4/glib-gettext.m4:
- Update glib-gettext.m4 from latest stable GLib release.
-
-2008-11-29 Sebastian Dröge <sebastian.droege@collabora.co.uk>
-
- Patch by: Cygwin Ports maintainer
- <yselkowitz at users dot sourceforge dot net>
-
- * gettext.patch:
- Update the gettext patch for use with gettext 0.17 which is
- required to build with libtool 2.2 because of conflicts.
- First part of bug #556091.
-
-2008-11-29 Sebastian Dröge <sebastian.droege@collabora.co.uk>
-
- * m4/gtk-doc.m4:
- * m4/pkg.m4:
- Update gtk-doc and pkg-config m4 macros from their latest releases.
-
-2008-11-20 Michael Smith <msmith@songbirdnest.com>
-
- * m4/as-objc.m4:
- Fix objective C test macro when none of the compilers are found at all.
-
-2008-10-30 Stefan Kost <ensonic@users.sf.net>
-
- * gtk-doc.mak:
- Also cp the entities here to all xinlcude based docs (workaround for
- not being able to set up a search path).
-
-2008-10-17 Jan Schmidt <jan.schmidt@sun.com>
-
- * gtk-doc.mak:
- Don't clobber the real registry cache file when
- building docs.
-
-2008-10-07 Jan Schmidt - Sun Microsystems <jan.schmidt@sun.com>
-
- * m4/gst-error.m4:
- Also disable the bogus "loop not entered at top" warnings appearing on Sparc Forte builds.
-
-2008-10-06 Stefan Kost <ensonic@users.sf.net>
-
- * gtk-doc.mak:
- Apply the same fix as below to gtk-doc.mak. Somehow did not end up in
- CVS.
-
-2008-09-05 David Schleef <ds@schleef.org>
-
- * gtk-doc-plugins.mak: Fix the check for gtkdoc-rebase: don't
- pass the 'which' error back to make. This fix is more specific
- than what is in upstream.
-
-2008-09-05 David Schleef <ds@schleef.org>
-
- * gtk-doc.mak: Fix the check for gtkdoc-rebase: don't pass the
- 'which' error back to make. This fix is more specific than
- what is in upstream.
-
-2008-09-04 Stefan Kost <ensonic@users.sf.net>
-
- * gtk-doc-plugins.mak:
- * gtk-doc.mak:
- Get closer to upstream makefiles. Don't install index.sgml twice. Call
- gtkdoc-rebase (if exists).
-
-2008-08-21 Stefan Kost <ensonic@users.sf.net>
-
- * gtk-doc-plugins.mak:
- Revert $(top_builddir) -> $(builddir) change of rev. 1.39 as there is
- no variable called builddir.
-
-2008-07-31 Mark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
-
- * gst.supp:
- Add suppressions for Ubunty Hardy x86/64bit, similar to earlier
- versions and 32bit variant.
-
-2008-07-31 Sebastian Dröge <sebastian.droege@collabora.co.uk>
-
- * m4/gst-feature.m4:
- Remove GST_DISABLE_(ENUMTYPES|INDEX|URI).
-
-2008-07-21 Tim-Philipp Müller <tim.muller at collabora co uk>
-
- * m4/gst-error.m4::
- When checking for GST_ERROR_CXXFLAGS, check each compiler flag
- individually, not all together.
-
-2008-07-20 Tim-Philipp Müller <tim.muller at collabora co uk>
-
- * m4/gst-parser.m4::
- Fix bison version number detection for older --version
- output format (as bison 1.28 on OSX 10.4 outputs).
- Fixes #543853.
-
-2008-07-12 Stefan Kost <ensonic@users.sf.net>
-
- * plugins.xsl:
- Split refsect2 also here to make "Element Pads" subtitle visible.
-
-2008-07-08 Sebastian Dröge <sebastian.droege@collabora.co.uk>
-
- * m4/gst-error.m4:
- Add compiler flags to warn if declarations after statements or
- variable length arrays are used. These are C99/GCC extensions and
- are not supported by some compilers we want to support.
-
-2008-07-02 Mark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
-
- * gtk-doc-plugins.mak:
- Only clean doc maintainer stamps in maintainer-clean. Fixes #539977.
-
-2008-06-20 Sebastian Dröge <slomo@circular-chaos.org>
-
- * gstdoc-scangobj:
- Always use format strings for printf-like functions, even if they just
- print a string. Fixes bug #536981.
-
-2008-06-20 Sebastian Dröge <slomo@circular-chaos.org>
-
- * gtk-doc-plugins.mak:
- * gtk-doc.mak:
- Include CFLAGS and LDFLAGS in GTKDOC_CFLAGS and GTKDOC_LDFLAGS,
- otherwise the values passed to configure are ignored.
- Fixes bug #536978.
-
|
[-]
[+]
|
Deleted |
_service:tar_git:gstreamer1.0-droid-0.20210304.0.tar.gz/common/MAINTAINERS
^
|
@@ -1,12 +0,0 @@
-GStreamer is currently maintained by the consensus of a number
-of people, including, but not limited to:
-
- Jan Schmidt <thaytan@noraisin.net>
- Wim Taymans <wim.taymans@gmail.com>
- David Schleef <ds@schleef.org>
- Tim-Philipp Müller <tim centricular net>
- Sebastian Dröge <slomo circular-chaos org>
-
-Maintainer-related issues should be addressed to:
-
- gstreamer-devel@lists.freedesktop.org
|
[-]
[+]
|
Deleted |
_service:tar_git:gstreamer1.0-droid-0.20210304.0.tar.gz/common/Makefile.am
^
|
@@ -1,22 +0,0 @@
-SUBDIRS = m4
-
-EXTRA_DIST = \
- ChangeLog \
- gettext.patch \
- glib-gen.mak gtk-doc.mak upload-doc.mak \
- cruft.mak release.mak win32.mak po.mak \
- parallel-subdirs.mak \
- gst-autogen.sh \
- check-exports \
- c-to-xml.py mangle-tmpl.py scangobj-merge.py \
- gtk-doc-plugins.mak \
- plugins.xsl gstdoc-scangobj \
- gst.supp check.mak \
- coverage/lcov.mak \
- coverage/coverage-report.pl \
- coverage/coverage-report.xsl \
- coverage/coverage-report-entry.pl \
- download-translations \
- extract-release-date-from-doap-file \
- gst-indent \
- orc.mak
|
[-]
[+]
|
Deleted |
_service:tar_git:gstreamer1.0-droid-0.20210304.0.tar.gz/common/README
^
|
@@ -1,255 +0,0 @@
-GStreamer @SERIES_VERSION@
-
-WHAT IT IS
-----------
-
-This is GStreamer, a framework for streaming media.
-
-WHERE TO START
---------------
-
-We have a website at
-http://gstreamer.freedesktop.org/
-
-You should start by going through our FAQ at
-http://gstreamer.freedesktop.org/data/doc/gstreamer/head/faq/html/
-
-There is more documentation; go to
-http://gstreamer.freedesktop.org/documentation
-
-You can subscribe to our mailing lists; see the website for details.
-
-We track bugs in GNOME's bugzilla; see the website for details.
-
-You can join us on IRC - #gstreamer on irc.freenode.org
-
-GStreamer 1.0 series
---------------------
-
-Starring
-
- GSTREAMER
-
-The core around which all other modules revolve. Base functionality and
-libraries, some essential elements, documentation, and testing.
-
- BASE
-
-A well-groomed and well-maintained collection of GStreamer plug-ins and
-elements, spanning the range of possible types of elements one would want
-to write for GStreamer.
-
-And introducing, for the first time ever, on the development screen ...
-
- THE GOOD
-
- --- "Such ingratitude. After all the times I've saved your life."
-
-A collection of plug-ins you'd want to have right next to you on the
-battlefield. Shooting sharp and making no mistakes, these plug-ins have it
-all: good looks, good code, and good licensing. Documented and dressed up
-in tests. If you're looking for a role model to base your own plug-in on,
-here it is.
-
-If you find a plot hole or a badly lip-synced line of code in them,
-let us know - it is a matter of honour for us to ensure Blondie doesn't look
-like he's been walking 100 miles through the desert without water.
-
- THE UGLY
-
- --- "When you have to shoot, shoot. Don't talk."
-
-There are times when the world needs a color between black and white.
-Quality code to match the good's, but two-timing, backstabbing and ready to
-sell your freedom down the river. These plug-ins might have a patent noose
-around their neck, or a lock-up license, or any other problem that makes you
-think twice about shipping them.
-
-We don't call them ugly because we like them less. Does a mother love her
-son less because he's not as pretty as the other ones ? No - she commends
-him on his great personality. These plug-ins are the life of the party.
-And we'll still step in and set them straight if you report any unacceptable
-behaviour - because there are two kinds of people in the world, my friend:
-those with a rope around their neck and the people who do the cutting.
-
- THE BAD
-
- --- "That an accusation?"
-
-No perfectly groomed moustache or any amount of fine clothing is going to
-cover up the truth - these plug-ins are Bad with a capital B.
-They look fine on the outside, and might even appear to get the job done, but
-at the end of the day they're a black sheep. Without a golden-haired angel
-to watch over them, they'll probably land in an unmarked grave at the final
-showdown.
-
-Don't bug us about their quality - exercise your Free Software rights,
-patch up the offender and send us the patch on the fastest steed you can
-steal from the Confederates. Because you see, in this world, there's two
-kinds of people, my friend: those with loaded guns and those who dig.
-You dig.
-
-The Lowdown
------------
-
- --- "I've never seen so many plug-ins wasted so badly."
-
-GStreamer Plug-ins has grown so big that it's hard to separate the wheat from
-the chaff. Also, distributors have brought up issues about the legal status
-of some of the plug-ins we ship. To remedy this, we've divided the previous
-set of available plug-ins into four modules:
-
-- gst-plugins-base: a small and fixed set of plug-ins, covering a wide range
- of possible types of elements; these are continuously kept up-to-date
- with any core changes during the development series.
-
- - We believe distributors can safely ship these plug-ins.
- - People writing elements should base their code on these elements.
- - These elements come with examples, documentation, and regression tests.
-
-- gst-plugins-good: a set of plug-ins that we consider to have good quality
- code, correct functionality, our preferred license (LGPL for the plug-in
- code, LGPL or LGPL-compatible for the supporting library).
-
- - We believe distributors can safely ship these plug-ins.
- - People writing elements should base their code on these elements.
-
-- gst-plugins-ugly: a set of plug-ins that have good quality and correct
- functionality, but distributing them might pose problems. The license
- on either the plug-ins or the supporting libraries might not be how we'd
- like. The code might be widely known to present patent problems.
-
- - Distributors should check if they want/can ship these plug-ins.
- - People writing elements should base their code on these elements.
-
-- gst-plugins-bad: a set of plug-ins that aren't up to par compared to the
- rest. They might be close to being good quality, but they're missing
- something - be it a good code review, some documentation, a set of tests,
- a real live maintainer, or some actual wide use.
- If the blanks are filled in they might be upgraded to become part of
- either gst-plugins-good or gst-plugins-ugly, depending on the other factors.
-
- - If the plug-ins break, you can't complain - instead, you can fix the
- problem and send us a patch, or bribe someone into fixing them for you.
- - New contributors can start here for things to work on.
-
-PLATFORMS
----------
-
-- Linux is of course fully supported
-- FreeBSD is reported to work; other BSDs should work too
-- Solaris is reported to work; a specific sunaudiosink plugin has been written
-- MacOSX works, binary 1.x packages can be built using the cerbero build tool
-- Windows works; binary 1.x packages can be built using the cerbero build tool
- - MSys/MinGW builds
- - Microsoft Visual Studio builds are not yet available or supported
-- Android works, binary 1.x packages can be built using the cerbero build tool
-- iOS works
-
-INSTALLING FROM PACKAGES
-------------------------
-
-You should always prefer installing from packages first. GStreamer is
-well-maintained for a number of distributions, including Fedora, Debian,
-Ubuntu, Mandrake, Gentoo, ...
-
-Only in cases where you:
-- want to hack on GStreamer
-- want to verify that a bug has been fixed
-- do not have a sane distribution
-should you choose to build from source tarballs or git.
-
-Find more information about the various packages at
-http://gstreamer.freedesktop.org/download/
-
-COMPILING FROM SOURCE TARBALLS
-------------------------------
-
-- again, make sure that you really need to install from source !
- If GStreamer is one of your first projects ever that you build from source,
- consider taking on an easier project.
-
-- check output of ./configure --help to see if any options apply to you
-- run
- ./configure
- make
-
- to build GStreamer.
-- if you want to install it (not required, but what you usually want to do), run
- make install
-
-- try out a simple test:
- gst-launch -v fakesrc num_buffers=5 ! fakesink
- (If you didn't install GStreamer, prefix gst-launch with tools/)
-
- If it outputs a bunch of messages from fakesrc and fakesink, everything is
- ok.
-
- If it did not work, keep in mind that you might need to adjust the
- PATH and/or LD_LIBRARY_PATH environment variables to make the system
- find GStreamer in the prefix where you installed (by default that is /usr/local).
-
-- After this, you're ready to install gst-plugins, which will provide the
- functionality you're probably looking for by now, so go on and read
- that README.
-
-COMPILING FROM GIT
-------------------
-
-When building from git sources, you will need to run autogen.sh to generate
|
[-]
[+]
|
Deleted |
_service:tar_git:gstreamer1.0-droid-0.20210304.0.tar.gz/common/README.static-linking
^
|
@@ -1,174 +0,0 @@
-=================================
- GStreamer Static Linking README
-=================================
-
-DRAFT, April 2013
-
-
- I. INTRODUCTION
-
-It is possible to link GStreamer libraries, plugins and applications
-statically, both in case of free/libre/open-source software applications
-and proprietary applications. On some platforms static linking may even
-be required.
-
-However, distributing statically linked binaries using GStreamer usually
-requires additional effort to stay compliant with the GNU LGPL v2.1 license.
-
-The purpose of this document is to draw attention to this fact, and to
-summarise in layman's terms what we believe is required from anyone
-distributing statically linked GStreamer binaries. Most of this also
-applies to dynamically linked GStreamer binaries.
-
-
- II. DISCLAIMER
-
-This document is not legal advice, nor is it comprehensive. It may use
-words in ways that do not match the definition or use in the license
-text. It may even be outright wrong. Read the license text for all the
-details, it is the only legally binding document in this respect.
-
-This document is primarily concerned with the implications for the
-distribution of binaries based on LGPL-licensed software as imposed by
-the LGPL license, but there may be other restrictions to the distribution
-of such binaries, such as terms and conditions of distribution channels
-(e.g. "app stores").
-
-
- III. THE SPIRIT OF THE LGPL LICENSE
-
-The GNU LGPL v2.1 license allows use of such-licensed software by
-proprietary applications, but still aims to ensure that at least the
-LGPL-licensed software parts remain free under all circumstances. This
-means any changes to LGPL-licensed source code must be documented and
-be made available on request to those who received binaries of the
-software. It also means that it must be possible to make changes to the
-LGPL-licensed software parts and make the application use those, as far
-as that is possible. And that recipients of an application using
-LGPL-licensed software are made aware of their rights according to the
-LGPL license.
-
-In an environment where GStreamer libraries and plugins are used as
-dynamically-loaded shared objects (DLL/.so/.dyn files), this is usually
-not a big problem, because it is fairly easy to compile a modified version
-of the GStreamer libraries or LGPL plugins, and the application will/should
-just pick up and use the modified version automatically. All that is needed
-is for the original, LGPL-licensed source code and source code modifications
-to be made available, and for a way to build the libraries or plugins for
-the platform required (usually that will be using the build system scripts
-that come with GStreamer, and using the typical build environment on the
-system in question, but where that is not the case the needed build scripts
-and/or tools would need to be provided as well).
-
-
- IV. THINGS YOU NEED TO DO
-
- * You must tell users of your application that you are using LGPL-licensed
- software, which LGPL-licensed software exactly, and you must provide them
- with a copy of the license so they know their rights under the LGPL.
-
- * You must provide (on request) all the source code and all the changes
- or additions you have made to the LGPL-licensed software you are using.
-
- For GStreamer code we would recommend that the changes be provided either
- in form of a branch in a git repository, or as a set of "git format-patch"-
- style patches against a GStreamer release or a snapshot of a GStreamer git
- repository. The patches should ideally say what was changed and why it
- was changed, and there should ideally be separate patches for independent
- changes.
-
- * You must provide a way for users of your application to make changes to
- the LGPL-licensed parts of the code, and re-create a full application
- binary with the changes (using the standard toolchain and tools of the
- target platform; if you are using a custom toolchain or custom tools
- you must provide these and document how to use them to create a new
- application binary).
-
- Note that this of course does not mean that the user is allowed to
- re-distribute the changed application. Nor does it mean that you have
- to provide your proprietary source code - it is sufficient to provide a
- ready-made compiled object file that can be relinked into an application
- binary with the re-compiled LGPL components.
-
-
- V. THINGS TO LOOK OUT FOR
-
-While most GStreamer plugins and the libraries they depend on are licensed
-under the LGPL or even more permissive licenses, that is not the case for
-all plugins and libraries used, esp. those in the gst-plugins-ugly or
-some of those in the gst-plugins-bad set of plugins.
-
-When statically linking proprietary code, care must be taken not to
-statically link plugins or libraries that are licensed under less permissive
-terms than the LGPL, such as e.g. GPL-licensed libraries.
-
-
- VI. SPECIAL CONSIDERATIONS FOR SPECIFIC USE-CASES
-
-
- 1. Proprietary GStreamer/GLib-based Application On iOS
-
-Let's assume an individual or a company wants to distribute a proprietary
-iOS application that is built on top of GStreamer and GLib through
-Apple's App Store. At the time of writing the Apple iPhone developer
-agreement didn’t allow the bundling of shared libraries, so distributing
-a proprietary iOS application with shared libraries is only possible using
-distribution mechanisms outside of the App Store and/or only to jailbroken
-devices, a prospect that may not appeal to our individual or company. So the
-only alternative then is to link everything statically, which means the
-obligations mentioned above come into play.
-
-
- 2. Example: Jabber on iOS
-
-Tandberg (now Cisco) created a Jabber application for iOS, based on GStreamer.
-On request they provided an LGPL compliance bundle in form of a zip file, with
-roughly the following contents:
-
-buildapp.sh
-readme.txt
-Jabber/Jabber-Info.plist
-Jabber/libip.a [236MB binary with proprietary code]
-Jabber/main.mm
-Jabber/xcconfig/Application.xcconfig
-Jabber/xcconfig/Debug.xcconfig
-Jabber/xcconfig/Release.xcconfig
-Jabber/xcconfig/Shared.xcconfig
-Jabber/Resources/*.lproj/Localizable.strings
-Jabber/Resources/{Images,Audio,Sounds,IB,Message Styles,Emoticons,Fonts}/*
-Jabber/Resources/*
-Jabber.xcodeproj/project.pbxproj
-Jabber.xcodeproj/project.xcworkspace/contents.xcworkspacedata
-opensource/build/config.site
-opensource/build/m4/movi.m4
-opensource/build/scripts/clean-deps.sh
-opensource/build/scripts/fixup-makefile.sh
-opensource/build/scripts/MoviMaker.py
-opensource/build.sh
-opensource/env.sh
-opensource/Makefile
-opensource/external/glib/*
-opensource/external/gstreamer/{gstreamer,gst-plugins-*}/*
-opensource/external/openssl/*
-opensource/external/proxy-libintl/*
-opensource/toolchain/darwin-x86/bin/{misc autotoools,m4,glib-mkenums,glib-genmarshal,libtool,pkg-config,etc.}
-opensource/toolchain/darwin-x86/share/{aclocal,aclocal-1.11,autoconf,automake-1.11,libtool}/*
-opensource/toolchain/darwin-x86/share/Config.pm
-opensource/toolchain/darwin-x86/share/Config.pm.movi.in
-patches/glib/glib.patch
-patches/gst-plugins-bad/gst-plugins-bad.patch
-patches/gst-plugins-base/gst-plugins-base.patch
-patches/gst-plugins-good/gst-plugins-good.patch
-patches/gstreamer/gstreamer.patch
-patches/openssl/openssl.patch
-
-readme.txt starts with "This Readme file describes how to build the Cisco
-Jabber for iPad application. You need to install Xcode, but the final package
-is built by running buildapp.sh." and describes how to build project,
-prerequisites, the procedure in detail, and a "How to Include Provisioning
-Profile Manually / Alternate Code Signing Instructions" section.
-
-
- 3. Random Links Which May Be Of Interest
-
-[0] http://multinc.com/2009/08/24/compatibility-between-the-iphone-app-store-and-the-lgpl/
|
[-]
[+]
|
Deleted |
_service:tar_git:gstreamer1.0-droid-0.20210304.0.tar.gz/common/autogen.sh.in
^
|
@@ -1,118 +0,0 @@
-test -n "$srcdir" || srcdir=`dirname "$0"`
-test -n "$srcdir" || srcdir=.
-
-olddir=`pwd`
-cd "$srcdir"
-
-DIE=0
-package=@PACKAGE@
-srcfile=@SRCFILE@
-
-# Make sure we have common
-if test ! -f common/gst-autogen.sh;
-then
- echo "+ Setting up common submodule"
- git submodule init
-fi
-git submodule update
-
-# source helper functions
-if test ! -f common/gst-autogen.sh;
-then
- echo There is something wrong with your source tree.
- echo You are missing common/gst-autogen.sh
- exit 1
-fi
-. common/gst-autogen.sh
-
-# install pre-commit hook for doing clean commits
-if test ! \( -x .git/hooks/pre-commit -a -L .git/hooks/pre-commit \);
-then
- rm -f .git/hooks/pre-commit
- ln -s ../../common/hooks/pre-commit.hook .git/hooks/pre-commit
-fi
-
-# GNU gettext automake support doesn't get along with git.
-# https://bugzilla.gnome.org/show_bug.cgi?id=661128
-if test -d po ; then
- touch -t 200001010000 po/@PACKAGE@-@API_VERSION@.pot
-fi
-
-CONFIGURE_DEF_OPT='--enable-maintainer-mode --enable-gtk-doc'
-
-if test "x$package" = "xgstreamer"; then
- CONFIGURE_DEF_OPT="$CONFIGURE_DEF_OPT --enable-docbook --enable-failing-tests --enable-poisoning"
-fi
-
-autogen_options $@
-
-printf "+ check for build tools"
-if test ! -z "$NOCHECK"; then echo ": skipped version checks"; else echo; fi
-version_check "autoconf" "$AUTOCONF autoconf autoconf270 autoconf269 autoconf268 " \
- "ftp://ftp.gnu.org/pub/gnu/autoconf/" 2 68 || DIE=1
-version_check "automake" "$AUTOMAKE automake automake-1.11" \
- "ftp://ftp.gnu.org/pub/gnu/automake/" 1 11 || DIE=1
-version_check "autopoint" "autopoint" \
- "ftp://ftp.gnu.org/pub/gnu/gettext/" 0 17 || DIE=1
-version_check "libtoolize" "$LIBTOOLIZE libtoolize glibtoolize" \
- "ftp://ftp.gnu.org/pub/gnu/libtool/" 2 2 6 || DIE=1
-version_check "pkg-config" "" \
- "http://www.freedesktop.org/software/pkgconfig" 0 8 0 || DIE=1
-
-die_check $DIE
-
-aclocal_check || DIE=1
-autoheader_check || DIE=1
-
-die_check $DIE
-
-# if no arguments specified then this will be printed
-if test -z "$*" && test -z "$NOCONFIGURE"; then
- echo "+ checking for autogen.sh options"
- echo " This autogen script will automatically run ./configure as:"
- echo " ./configure $CONFIGURE_DEF_OPT"
- echo " To pass any additional options, please specify them on the $0"
- echo " command line."
-fi
-
-toplevel_check $srcfile
-
-# autopoint
-if test -d po ; then
- tool_run "$autopoint" "--force"
-fi
-
-# aclocal
-if test -f acinclude.m4; then rm acinclude.m4; fi
-
-tool_run "$libtoolize" "--copy --force"
-tool_run "$aclocal" "-I m4 -I common/m4 $ACLOCAL_FLAGS"
-tool_run "$autoheader"
-
-# touch the stamp-h.in build stamp so we don't re-run autoheader in maintainer mode
-echo timestamp > stamp-h.in 2> /dev/null
-
-tool_run "$autoconf"
-debug "automake: $automake"
-tool_run "$automake" "--add-missing --copy"
-
-test -n "$NOCONFIGURE" && {
- echo "+ skipping configure stage for package $package, as requested."
- echo "+ autogen.sh done."
- exit 0
-}
-
-cd "$olddir"
-
-echo "+ running configure ... "
-test ! -z "$CONFIGURE_DEF_OPT" && echo " default flags: $CONFIGURE_DEF_OPT"
-test ! -z "$CONFIGURE_EXT_OPT" && echo " external flags: $CONFIGURE_EXT_OPT"
-echo
-
-echo "$srcdir/configure" $CONFIGURE_DEF_OPT $CONFIGURE_EXT_OPT
-"$srcdir/configure" $CONFIGURE_DEF_OPT $CONFIGURE_EXT_OPT || {
- echo " configure failed"
- exit 1
-}
-
-echo "Now type 'make' to compile $package."
|
[-]
[+]
|
Deleted |
_service:tar_git:gstreamer1.0-droid-0.20210304.0.tar.gz/common/c-to-xml.py
^
|
@@ -1,36 +0,0 @@
-# -*- Mode: Python -*-
-# vi:si:et:sw=4:sts=4:ts=4
-
-"""
-Convert a C program to valid XML to be included in docbook
-"""
-
-from __future__ import print_function, unicode_literals
-
-import sys
-import os
-from xml.sax import saxutils
-
-def main():
- if len(sys.argv) == 1:
- sys.stderr.write("Please specify a source file to convert")
- sys.exit(1)
- source = sys.argv[1]
-
- if not os.path.exists(source):
- sys.stderr.write("%s does not exist.\n" % source)
- sys.exit(1)
-
- content = open(source, "r").read()
-
- # print header
- print ('<?xml version="1.0"?>')
- print ('<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">')
- print ()
- print ('<programlisting>')
-
- # print content
- print (saxutils.escape(content))
- print ('</programlisting>')
-
-main()
|
[-]
[+]
|
Deleted |
_service:tar_git:gstreamer1.0-droid-0.20210304.0.tar.gz/common/check-exports
^
|
@@ -1,54 +0,0 @@
-#!/bin/sh
-# check-exports
-#
-# quick'n'dirty script that retrieves the list of exported symbols of a given
-# library using 'nm', and compares that against the list of symbols-to-export
-# of our win32/common/libfoo.def files.
-
-if [ $# -ne 2 ]; then
- echo "Usage: $0 library.def library.so"
- exit 1
-fi
-
-def_path="$1"
-def_name="$(basename $def_path)"
-lib_path="$2"
-
-lib_result="`mktemp /tmp/defname.XXXXXX`"
-
-LC_ALL=C
-export LC_ALL
-
-# On Solaris, add -p to get the correct output format
-NMARGS=
-if nm -V 2>&1 |grep Solaris > /dev/null; then
- NMARGS=-p
-fi
-
-# _end is special cased because for some reason it is reported as an exported
-# BSS symbol, unlike on linux where it's a local absolute symbol.
-nm $NMARGS $lib_path | awk \
- '{
- if ($3 ~ /^[_]?(gst_|Gst|GST_).*/)
- {
- if ($2 ~ /^[BSDG]$/)
- print "\t" $3 " DATA"
- else if ($2 == "T")
- print "\t" $3
- }
- }' | sort | awk '{ if (NR == 1) print "EXPORTS"; print $0; }' \
- > $lib_result
-
-diffoutput=`diff -u $def_path $lib_result`
-diffresult=$?
-
-rm $lib_result
-
-if test "$diffresult" -eq 0; then
- exit 0;
-else
- echo -n "$diffoutput" >&2
- echo >&2
- exit 1;
-fi
-
|
[-]
[+]
|
Deleted |
_service:tar_git:gstreamer1.0-droid-0.20210304.0.tar.gz/common/check.mak
^
|
@@ -1,252 +0,0 @@
-# keep target around, since it's referenced in the modules' Makefiles
-clean-local-check:
- @echo
-
-if HAVE_VALGRIND
-# hangs spectacularly on some machines, so let's not do this by default yet
-check-valgrind:
- $(MAKE) valgrind
-else
-check-valgrind:
- @true
-endif
-
-LOOPS ?= 10
-
-# run any given test by running make test.check
-# if the test fails, run it again at at least debug level 2
-%.check: %
- @$(TESTS_ENVIRONMENT) \
- CK_DEFAULT_TIMEOUT=20 \
- $* || \
- $(TESTS_ENVIRONMENT) \
- GST_DEBUG=$$GST_DEBUG,*:2 \
- CK_DEFAULT_TIMEOUT=20 \
- $*
-
-# just like 'check', but don't run it again if it fails (useful for debugging)
-%.check-norepeat: %
- @$(TESTS_ENVIRONMENT) \
- CK_DEFAULT_TIMEOUT=20 \
- $*
-
-# run any given test in a loop
-%.torture: %
- @for i in `seq 1 $(LOOPS)`; do \
- $(TESTS_ENVIRONMENT) \
- CK_DEFAULT_TIMEOUT=20 \
- $*; done
-
-# run any given test in an infinite loop
-%.forever: %
- @while true; do \
- $(TESTS_ENVIRONMENT) \
- CK_DEFAULT_TIMEOUT=20 \
- $* || break; done
-
-# valgrind any given test by running make test.valgrind
-%.valgrind: %
- @$(TESTS_ENVIRONMENT) \
- CK_DEFAULT_TIMEOUT=360 \
- G_SLICE=always-malloc \
- $(LIBTOOL) --mode=execute \
- $(VALGRIND_PATH) -q \
- $(foreach s,$(SUPPRESSIONS),--suppressions=$(s)) \
- --tool=memcheck --leak-check=full --trace-children=yes \
- --show-possibly-lost=no \
- --leak-resolution=high --num-callers=20 \
- ./$* 2>&1 | tee valgrind.log
- @if grep "==" valgrind.log > /dev/null 2>&1; then \
- rm valgrind.log; \
- exit 1; \
- fi
- @rm valgrind.log
-
-# valgrind any given test and generate suppressions for it
-%.valgrind.gen-suppressions: %
- @$(TESTS_ENVIRONMENT) \
- CK_DEFAULT_TIMEOUT=360 \
- G_SLICE=always-malloc \
- $(LIBTOOL) --mode=execute \
- $(VALGRIND_PATH) -q \
- $(foreach s,$(SUPPRESSIONS),--suppressions=$(s)) \
- --tool=memcheck --leak-check=full --trace-children=yes \
- --show-possibly-lost=no \
- --leak-resolution=high --num-callers=20 \
- --gen-suppressions=all \
- ./$* 2>&1 | tee suppressions.log
-
-# valgrind torture any given test
-%.valgrind-torture: %
- @for i in `seq 1 $(LOOPS)`; do \
- $(MAKE) $*.valgrind || \
- (echo "Failure after $$i runs"; exit 1) || \
- exit 1; \
- done
- @banner="All $(LOOPS) loops passed"; \
- dashes=`echo "$$banner" | sed s/./=/g`; \
- echo $$dashes; echo $$banner; echo $$dashes
-
-# valgrind any given test until failure by running make test.valgrind-forever
-%.valgrind-forever: %
- @while $(MAKE) $*.valgrind; do \
- true; done
-
-# gdb any given test by running make test.gdb
-%.gdb: %
- @$(TESTS_ENVIRONMENT) \
- CK_FORK=no \
- $(LIBTOOL) --mode=execute \
- gdb $*
-
-%.lcov-reset:
- $(MAKE) $*.lcov-run
- $(MAKE) $*.lcov-report
-
-%.lcov: %
- $(MAKE) $*.lcov-reset
-
-if GST_GCOV_ENABLED
-%.lcov-clean:
- $(MAKE) -C $(top_builddir) lcov-clean
-
-%.lcov-run:
- $(MAKE) $*.lcov-clean
- $(MAKE) $*.check
-
-%.lcov-report:
- $(MAKE) -C $(top_builddir) lcov-report
-else
-%.lcov-run:
- echo "Need to reconfigure with --enable-gcov"
-
-%.lcov-report:
- echo "Need to reconfigure with --enable-gcov"
-endif
-
-# torture tests
-torture: $(TESTS)
- -rm test-registry.*
- @echo "Torturing tests ..."
- @for i in `seq 1 $(LOOPS)`; do \
- $(MAKE) check || \
- (echo "Failure after $$i runs"; exit 1) || \
- exit 1; \
- done
- @banner="All $(LOOPS) loops passed"; \
- dashes=`echo "$$banner" | sed s/./=/g`; \
- echo $$dashes; echo $$banner; echo $$dashes
-
-# forever tests
-forever: $(TESTS)
- -rm test-registry.*
- @echo "Forever tests ..."
- @while true; do \
- $(MAKE) check || \
- (echo "Failure"; exit 1) || \
- exit 1; \
- done
-
-# valgrind all tests
-valgrind: $(TESTS)
- @echo "Valgrinding tests ..."
- @failed=0; \
- for t in $(filter-out $(VALGRIND_TESTS_DISABLE),$(TESTS)); do \
- $(MAKE) $$t.valgrind; \
- if test "$$?" -ne 0; then \
- echo "Valgrind error for test $$t"; \
- failed=`expr $$failed + 1`; \
- whicht="$$whicht $$t"; \
- fi; \
- done; \
- if test "$$failed" -ne 0; then \
- echo "$$failed tests had leaks or errors under valgrind:"; \
- echo "$$whicht"; \
- false; \
- fi
-
-# valgrind all tests until failure
-valgrind-forever: $(TESTS)
- -rm test-registry.*
- @echo "Forever valgrinding tests ..."
- @while true; do \
- $(MAKE) valgrind || \
- (echo "Failure"; exit 1) || \
- exit 1; \
- done
-
-# valgrind torture all tests
-valgrind-torture: $(TESTS)
- -rm test-registry.*
- @echo "Torturing and valgrinding tests ..."
- @for i in `seq 1 $(LOOPS)`; do \
- $(MAKE) valgrind || \
- (echo "Failure after $$i runs"; exit 1) || \
- exit 1; \
- done
- @banner="All $(LOOPS) loops passed"; \
- dashes=`echo "$$banner" | sed s/./=/g`; \
- echo $$dashes; echo $$banner; echo $$dashes
-
-# valgrind all tests and generate suppressions
-valgrind.gen-suppressions: $(TESTS)
- @echo "Valgrinding tests ..."
- @failed=0; \
- for t in $(filter-out $(VALGRIND_TESTS_DISABLE),$(TESTS)); do \
- $(MAKE) $$t.valgrind.gen-suppressions; \
- if test "$$?" -ne 0; then \
- echo "Valgrind error for test $$t"; \
- failed=`expr $$failed + 1`; \
|
[-]
[+]
|
Deleted |
_service:tar_git:gstreamer1.0-droid-0.20210304.0.tar.gz/common/coverage/coverage-report-entry.pl
^
|
@@ -1,69 +0,0 @@
-#!/usr/bin/perl
-#
-# Copyright (C) 2006 Daniel Berrange
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-
-print <<EOF;
-<html>
-<head>
-<title>Coverage report for $ARGV[0]</title>
-<style type="text/css">
- span.perfect {
- background: rgb(0,255,0);
- }
- span.terrible {
- background: rgb(255,0,0);
- }
-</style>
-</head>
-<body>
-<h1>Coverage report for $ARGV[0]</h1>
-
-<pre>
-EOF
-
-
-while (<>) {
- s/&/&/g;
- s/</</g;
- s/>/>/g;
-
- if (/^\s*function (\S+) called (\d+) returned \d+% blocks executed \d+%/) {
- my $class = $2 > 0 ? "perfect" : "terrible";
- $_ = "<span class=\"$class\" id=\"" . $1 . "\">$_</span>";
- } elsif (/^\s*branch\s+\d+\s+taken\s+(\d+)%\s+.*$/) {
- my $class = $1 > 0 ? "perfect" : "terrible";
- $_ = "<span class=\"$class\">$_</span>";
- } elsif (/^\s*branch\s+\d+\s+never executed.*$/) {
- my $class = "terrible";
- $_ = "<span class=\"$class\">$_</span>";
- } elsif (/^\s*call\s+\d+\s+never executed.*$/) {
- my $class = "terrible";
- $_ = "<span class=\"$class\">$_</span>";
- } elsif (/^\s*call\s+\d+\s+returned\s+(\d+)%.*$/) {
- my $class = $1 > 0 ? "perfect" : "terrible";
- $_ = "<span class=\"$class\">$_</span>";
- }
-
- print;
-}
-
-print <<EOF;
-</pre>
-</body>
-</html>
-EOF
|
[-]
[+]
|
Deleted |
_service:tar_git:gstreamer1.0-droid-0.20210304.0.tar.gz/common/coverage/coverage-report.pl
^
|
@@ -1,125 +0,0 @@
-#!/usr/bin/perl
-#
-# Copyright (C) 2006 Daniel Berrange
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-use warnings;
-use strict;
-
-my %coverage = ( functions => {}, files => {} );
-
-my %filemap;
-
-my $type;
-my $name;
-
-my @functions;
-
-while (<>) {
- if (/^Function '(.*)'\s*$/) {
- $type = "function";
- $name = $1;
- $coverage{$type}->{$name} = {};
- push @functions, $name;
- } elsif (/^File '(.*?)'\s*$/) {
- $type = "file";
- $name = $1;
- $coverage{$type}->{$name} = {};
-
- foreach my $func (@functions) {
- $coverage{"function"}->{$func}->{file} = $name;
- }
- @functions = ();
- } elsif (/^Lines executed:(.*)%\s*of\s*(\d+)\s*$/) {
- $coverage{$type}->{$name}->{lines} = $2;
- $coverage{$type}->{$name}->{linesCoverage} = $1;
- } elsif (/^Branches executed:(.*)%\s*of\s*(\d+)\s*$/) {
- $coverage{$type}->{$name}->{branches} = $2;
- $coverage{$type}->{$name}->{branchesCoverage} = $1;
- } elsif (/^Taken at least once:(.*)%\s*of\s*(\d+)\s*$/) {
- $coverage{$type}->{$name}->{conds} = $2;
- $coverage{$type}->{$name}->{condsCoverage} = $1;
- } elsif (/^Calls executed:(.*)%\s*of\s*(\d+)\s*$/) {
- $coverage{$type}->{$name}->{calls} = $2;
- $coverage{$type}->{$name}->{callsCoverage} = $1;
- } elsif (/^No branches$/) {
- $coverage{$type}->{$name}->{branches} = 0;
- $coverage{$type}->{$name}->{branchesCoverage} = "100.00";
- $coverage{$type}->{$name}->{conds} = 0;
- $coverage{$type}->{$name}->{condsCoverage} = "100.00";
- } elsif (/^No calls$/) {
- $coverage{$type}->{$name}->{calls} = 0;
- $coverage{$type}->{$name}->{callsCoverage} = "100.00";
- } elsif (/^\s*(.*):creating '(.*)'\s*$/) {
- $filemap{$1} = $2;
- } elsif (/^\s*$/) {
- # nada
- } else {
- warn "Shit [$_]\n";
- }
-}
-
-my %summary;
-foreach my $type ("function", "file") {
- $summary{$type} = {};
- foreach my $m ("lines", "branches", "conds", "calls") {
- my $totalGot = 0;
- my $totalMiss = 0;
- my $count = 0;
- foreach my $func (keys %{$coverage{function}}) {
- $count++;
- my $got = $coverage{function}->{$func}->{$m};
- $totalGot += $got;
- my $miss = $got * $coverage{function}->{$func}->{$m ."Coverage"} / 100;
- $totalMiss += $miss;
- }
- $summary{$type}->{$m} = sprintf("%d", $totalGot);
- $summary{$type}->{$m . "Coverage"} = sprintf("%.2f", $totalMiss / $totalGot * 100);
- }
-}
-
-
-
-print "<coverage>\n";
-
-foreach my $type ("function", "file") {
- printf "<%ss>\n", $type;
- foreach my $name (sort { $a cmp $b } keys %{$coverage{$type}}) {
- my $rec = $coverage{$type}->{$name};
- printf " <entry name=\"%s\" details=\"%s\">\n", $name, ($type eq "file" ? $filemap{$name} : $filemap{$rec->{file}});
- printf " <lines count=\"%s\" coverage=\"%s\"/>\n", $rec->{lines}, $rec->{linesCoverage};
- if (exists $rec->{branches}) {
- printf " <branches count=\"%s\" coverage=\"%s\"/>\n", $rec->{branches}, $rec->{branchesCoverage};
- }
- if (exists $rec->{conds}) {
- printf " <conditions count=\"%s\" coverage=\"%s\"/>\n", $rec->{conds}, $rec->{condsCoverage};
- }
- if (exists $rec->{calls}) {
- printf " <calls count=\"%s\" coverage=\"%s\"/>\n", $rec->{calls}, $rec->{callsCoverage};
- }
- 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};
- printf " <conditions count=\"%s\" coverage=\"%s\"/>\n", $summary{$type}->{conds}, $summary{$type}->{condsCoverage};
- printf " <calls count=\"%s\" coverage=\"%s\"/>\n", $summary{$type}->{calls}, $summary{$type}->{callsCoverage};
- printf " </summary>\n";
- printf "</%ss>\n", $type;
-}
-
-print "</coverage>\n";
|
[-]
[+]
|
Deleted |
_service:tar_git:gstreamer1.0-droid-0.20210304.0.tar.gz/common/coverage/coverage-report.xsl
^
|
@@ -1,235 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
-#
-# Copyright (C) 2006 Daniel Berrange
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--->
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- version="1.0">
-
- <xsl:output method="html"/>
-
- <xsl:template match="coverage">
- <html>
- <head>
- <title>Coverage report</title>
- <style type="text/css">
- tbody tr.odd td.label {
- border-top: 1px solid rgb(128,128,128);
- border-bottom: 1px solid rgb(128,128,128);
- }
- tbody tr.odd td.label {
- background: rgb(200,200,200);
- }
-
- thead, tfoot {
- background: rgb(60,60,60);
- color: white;
- font-weight: bold;
- }
-
- tr td.perfect {
- background: rgb(0,255,0);
- color: black;
- }
- tr td.excellant {
- background: rgb(140,255,140);
- color: black;
- }
- tr td.good {
- background: rgb(160,255,0);
- color: black;
- }
- tr td.poor {
- background: rgb(255,160,0);
- color: black;
- }
- tr td.bad {
- background: rgb(255,140,140);
- color: black;
- }
- tr td.terrible {
- background: rgb(255,0,0);
- color: black;
- }
- </style>
- </head>
- <body>
- <h1>Coverage report</h1>
- <xsl:apply-templates/>
- </body>
- </html>
- </xsl:template>
-
- <xsl:template match="functions">
- <h2>Function coverage</h2>
- <xsl:call-template name="content">
- <xsl:with-param name="type" select="'function'"/>
- </xsl:call-template>
- </xsl:template>
-
-
- <xsl:template match="files">
- <h2>File coverage</h2>
- <xsl:call-template name="content">
- <xsl:with-param name="type" select="'file'"/>
- </xsl:call-template>
- </xsl:template>
-
- <xsl:template name="content">
- <xsl:param name="type"/>
- <table>
- <thead>
- <tr>
- <th>Name</th>
- <th>Lines</th>
- <th>Branches</th>
- <th>Conditions</th>
- <th>Calls</th>
- </tr>
- </thead>
- <tbody>
- <xsl:for-each select="entry">
- <xsl:call-template name="entry">
- <xsl:with-param name="type" select="$type"/>
- <xsl:with-param name="class">
- <xsl:choose>
- <xsl:when test="position() mod 2">
- <xsl:text>odd</xsl:text>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text>even</xsl:text>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:for-each>
- </tbody>
- <tfoot>
- <xsl:for-each select="summary">
- <xsl:call-template name="entry">
- <xsl:with-param name="type" select="'summary'"/>
- <xsl:with-param name="class">
- <xsl:choose>
- <xsl:when test="position() mod 2">
- <xsl:text>odd</xsl:text>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text>even</xsl:text>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:for-each>
- </tfoot>
- </table>
- </xsl:template>
-
- <xsl:template name="entry">
- <xsl:param name="type"/>
- <xsl:param name="class"/>
- <tr class="{$class}">
- <xsl:choose>
- <xsl:when test="$type = 'function'">
- <td class="label"><a href="{@details}.html#{@name}"><xsl:value-of select="@name"/></a></td>
- </xsl:when>
- <xsl:when test="$type = 'file'">
- <td class="label"><a href="{@details}.html"><xsl:value-of select="@name"/></a></td>
- </xsl:when>
- <xsl:otherwise>
- <td class="label">Summary</td>
- </xsl:otherwise>
- </xsl:choose>
-
- <xsl:if test="count(lines)">
- <xsl:apply-templates select="lines"/>
- </xsl:if>
- <xsl:if test="not(count(lines))">
- <xsl:call-template name="missing"/>
- </xsl:if>
-
- <xsl:if test="count(branches)">
- <xsl:apply-templates select="branches"/>
- </xsl:if>
- <xsl:if test="not(count(branches))">
- <xsl:call-template name="missing"/>
- </xsl:if>
-
- <xsl:if test="count(conditions)">
- <xsl:apply-templates select="conditions"/>
- </xsl:if>
- <xsl:if test="not(count(conditions))">
- <xsl:call-template name="missing"/>
- </xsl:if>
-
- <xsl:if test="count(calls)">
- <xsl:apply-templates select="calls"/>
- </xsl:if>
- <xsl:if test="not(count(calls))">
- <xsl:call-template name="missing"/>
- </xsl:if>
-
- </tr>
- </xsl:template>
-
- <xsl:template match="lines">
- <xsl:call-template name="row"/>
- </xsl:template>
-
- <xsl:template match="branches">
- <xsl:call-template name="row"/>
- </xsl:template>
-
- <xsl:template match="conditions">
- <xsl:call-template name="row"/>
- </xsl:template>
-
|
[-]
[+]
|
Deleted |
_service:tar_git:gstreamer1.0-droid-0.20210304.0.tar.gz/common/coverage/lcov.mak
^
|
@@ -1,47 +0,0 @@
-## .PHONY so it always rebuilds it
-.PHONY: lcov-reset lcov lcov-run lcov-report lcov-upload lcov-clean
-
-# run lcov from scratch, always
-lcov-reset:
- $(MAKE) lcov-run
- $(MAKE) lcov-report
-
-# run lcov from scratch if the dir is not there
-lcov:
- $(MAKE) lcov-reset
-
-if GST_GCOV_ENABLED
-# reset lcov stats
-lcov-clean:
- @-rm -rf lcov
- lcov --directory . --zerocounters
-
-# reset run coverage tests
-lcov-run:
- -$(MAKE) lcov-clean
- -if test -d tests/check; then $(MAKE) -C tests/check inspect; fi
- -$(MAKE) check
-
-# generate report based on current coverage data
-lcov-report:
- mkdir lcov
- lcov --compat-libtool --directory . --capture --output-file lcov/lcov.info
- lcov --list-full-path -l lcov/lcov.info | grep -v "`cd $(top_srcdir) && pwd`" | cut -d\| -f1 > lcov/remove
- lcov --list-full-path -l lcov/lcov.info | grep "tests/check/" | cut -d\| -f1 >> lcov/remove
- lcov --list-full-path -l lcov/lcov.info | grep "docs/plugins/" | cut -d\| -f1 >> lcov/remove
- lcov -r lcov/lcov.info `cat lcov/remove` > lcov/lcov.cleaned.info
- rm lcov/remove
- mv lcov/lcov.cleaned.info lcov/lcov.info
- genhtml -t "$(PACKAGE_STRING)" -o lcov --num-spaces 2 lcov/lcov.info
-
-lcov-upload: lcov
- rsync -rvz -e ssh --delete lcov/* gstreamer.freedesktop.org:/srv/gstreamer.freedesktop.org/www/data/coverage/lcov/$(PACKAGE)
-
-else
-lcov-run:
- echo "Need to reconfigure with --enable-gcov"
-
-lcov-report:
- echo "Need to reconfigure with --enable-gcov"
-endif
-
|
[-]
[+]
|
Deleted |
_service:tar_git:gstreamer1.0-droid-0.20210304.0.tar.gz/common/cruft.mak
^
|
@@ -1,56 +0,0 @@
-# checks for left-over files in the (usually uninstalled) tree, ie. for
-# stuff that best be deleted to avoid problems like having old plugin binaries
-# lying around.
-#
-# set CRUFT_FILES and/or CRUFT_DIRS in your Makefile.am when you include this
-
-check-cruft:
- @cruft_files=""; cruft_dirs=""; \
- for f in $(CRUFT_FILES); do \
- if test -e $$f; then \
- cruft_files="$$cruft_files $$f"; \
- fi \
- done; \
- for d in $(CRUFT_DIRS); do \
- if test -e $$d; then \
- cruft_dirs="$$cruft_dirs $$d"; \
- fi \
- done; \
- if test "x$$cruft_files$$cruft_dirs" != x; then \
- echo; \
- echo "**** CRUFT ALERT *****"; \
- echo; \
- echo "The following files and directories may not be needed any "; \
- echo "longer (usually because a plugin has been merged into "; \
- echo "another plugin, moved to a different module, or been "; \
- echo "renamed), and you probably want to clean them up if you "; \
- echo "don't have local changes: "; \
- echo; \
- for f in $$cruft_files; do echo "file $$f"; done; \
- echo; \
- for d in $$cruft_dirs; do echo "directory $$d"; done; \
- echo; \
- echo "'make clean-cruft' will remove these for you."; \
- echo; \
- fi
-
-clean-cruft-dirs:
- @for d in $(CRUFT_DIRS); do \
- if test -e $$d; then \
- rm -r "$$d" && echo "Removed directory $$d"; \
- fi \
- done
-
-clean-cruft-files:
- @for f in $(CRUFT_FILES); do \
- if test -e $$f; then \
- rm "$$f" && echo "Removed file $$f"; \
- fi \
- done
-
-clean-cruft: clean-cruft-dirs clean-cruft-files
-
-# also might want to add this to your Makefile.am:
-#
-# all-local: check-cruft
-
|
[-]
[+]
|
Deleted |
_service:tar_git:gstreamer1.0-droid-0.20210304.0.tar.gz/common/download-translations
^
|
@@ -1,152 +0,0 @@
-#!/bin/sh
-# Shell script to download the latest translations for a given GStreamer
-# package from translationproject.org
-
-
-# DOMAINS based on http://translationproject.org/extra/matrix.html
-# We need to check all domains, not only po/LINGUAS, since there might be
-# new translations
-DOMAINS=\
-"af am ar az be bg pt_BR bs ca zh_CN cs cy da de el eo es et eu fa fi fr "\
-"ga en_GB gl gu he hi zh_HK hr hu id is it ja ko ku ky lg lt lv mk mn ms "\
-"mt nb ne nl nn or pa pl pt rm ro ru rw sk sl sq sr sv ta tq th tk "\
-"tr zh_TW uk ven vi wa xh zu"
-
-# for testing/debugging:
-#DOMAINS="es fr hu sv pl xx"
-
-# check for 'diff' program
-diff --version 2>/dev/null >/dev/null
-if [ ! $? ]; then
- echo "==== You must have the 'diff' program installed for this script ===="
- exit 1
-fi
-
-# check for 'wget' program
-wget --version 2>/dev/null >/dev/null
-if [ ! $? ]; then
- echo "==== You must have the 'wget' program installed for this script ===="
- exit 1
-fi
-
-# make sure we're in the top-level directory
-if [ ! -d ./po ]; then
- echo "==== No ./po directory in the current working directory ===="
- exit 1
-fi
-
-# make sure a package argument was passed to us
-if [ -z "$1" ]; then
- echo "Usage: $0 PACKAGE, e.g. $0 gst-plugins-good"
- exit 1
-fi
-
-if test "$1" != "gstreamer" -a \
- "$1" != "gst-plugins-base" -a \
- "$1" != "gst-plugins-good" -a \
- "$1" != "gst-plugins-ugly" -a \
- "$1" != "gst-plugins-bad"; then
- echo "Unexpected package '$1' ?!"
- exit 1
-fi
-
-PACKAGE="$1"
-
-DOMAINS_TO_ADD=""
-DOMAINS_UPDATED=""
-DOMAINS_NOT_IN_LINGUAS=""
-
-echo "Downloading latest translation files for package $PACKAGE ..."
-echo
-
-for d in $DOMAINS
-do
- PACKAGE_PO_URL_BASE="http://translationproject.org/latest/$PACKAGE"
- PO_URL="$PACKAGE_PO_URL_BASE/$d.po"
- PO_FILENAME="$PACKAGE.$d.po"
- if wget -q -nc -O $PO_FILENAME $PO_URL; then
- # we want all .po files in UTF-8 format really, so convert if needed..
- CHARSET=`grep Content-Type $PO_FILENAME | sed -e 's/.*charset=\(.*\)\\\\n.*/\1/'`
- if test "x$CHARSET" != "xUTF-8" -a "x$CHARSET" != "xutf-8"; then
- # note: things like the bugs address will be added back by make update-po
- if msguniq $PO_FILENAME --no-location \
- --output-file=$PO_FILENAME.utf8 \
- --to-code=UTF-8; then
- mv $PO_FILENAME.utf8 $PO_FILENAME
- else
- echo "**** $d: conversion from $CHARSET to UTF-8 failed ****"
- fi
- fi
- if [ -f "po/$d.po" ]; then
- # ./po/foo.po exists, so let's check if ours matches the latest from the
- # translation project website
- REVDATE_NEW=`grep PO-Revision-Date $PO_FILENAME`;
- REVDATE_OLD=`grep PO-Revision-Date po/$d.po`;
- CHARSET_OLD=`grep Content-Type po/$d.po | sed -e 's/.*charset=\(.*\)\\\\n.*/\1/'`
- if test "x$REVDATE_NEW" = "x$REVDATE_OLD" -a "x$CHARSET_OLD" = "xUTF-8"; then
- # note: source code line markers will be removed later by make upload-po
- echo "$d.po: up-to-date"
- rm -f $PO_FILENAME
- else
- mv $PO_FILENAME "po/$d.po"
- if test "x$CHARSET_OLD" != "xUTF-8" -a "x$CHARSET_OLD" != "xutf-8"; then
- echo "$d.po: update (and charset converted from $CHARSET_OLD to UTF-8)"
- else
- echo "$d.po: updated"
- fi
- DOMAINS_UPDATED="$DOMAINS_UPDATED $d"
- fi
- # make sure domain is listed in LINGUAS
- if ! grep $d "po/LINGUAS" >/dev/null 2>/dev/null; then
- DOMAINS_NOT_IN_LINGUAS="$DOMAINS_NOT_IN_LINGUAS $d"
- fi
- else
- # ./po/foo.po doesn't exist, but foo.po exists on the translation project
- # website, so it's probably a new translation
- echo "$d.po: new language"
- mv $PO_FILENAME "po/$d.po"
- DOMAINS_UPDATED="$DOMAINS_UPDATED $d"
- DOMAINS_TO_ADD="$DOMAINS_TO_ADD $d"
- fi
- else
- rm -f $PO_FILENAME
- echo "$d.po: failure (does probably not exist)"
- fi
-done
-
-if [ -n "$DOMAINS_UPDATED" ]; then
- echo "===================================================================="
- echo
- echo "Language domains updated :$DOMAINS_UPDATED"
- echo "Language domains to git add :$DOMAINS_TO_ADD"
- echo
- echo "Source: http://translationproject.org/latest/$PACKAGE/"
- echo
- if [ -n "$DOMAINS_TO_ADD" ]; then
- CMD_STRING="git add"
- for d in $DOMAINS_TO_ADD; do
- CMD_STRING="$CMD_STRING po/$d.po"
- done
- echo "Please run"
- echo
- echo " $CMD_STRING"
- echo
- echo "now and add the following domains to the po/LINGUAS file:"
- echo
- echo " $DOMAINS_TO_ADD"
- echo
- echo
- fi
- echo "===================================================================="
-fi
-
-if [ -n "$DOMAINS_NOT_IN_LINGUAS" ]; then
- echo
- echo "Existing domains missing from the po/LINGUAS file:"
- echo
- echo " $DOMAINS_NOT_IN_LINGUAS"
- echo
- echo
-fi
-
-
|
[-]
[+]
|
Deleted |
_service:tar_git:gstreamer1.0-droid-0.20210304.0.tar.gz/common/gen-changelog.py
^
|
@@ -1,99 +0,0 @@
-#!/usr/bin/env python
-
-import sys
-import subprocess
-import re
-
-# Makes a GNU-Style ChangeLog from a git repository
-# Handles git-svn repositories also
-
-# Arguments : same as for git log
-release_refs={}
-
-def process_commit(lines, files):
- # DATE NAME
- # BLANK LINE
- # Subject
- # BLANK LINE
- # ...
- # FILES
- fileincommit = False
- lines = [x.strip() for x in lines if x.strip() and not x.startswith('git-svn-id')]
- files = [x.strip() for x in files if x.strip()]
- for l in lines:
- if l.startswith('* ') and ':' in l:
- fileincommit = True
- break
-
- top_line = lines[0]
- print top_line.strip()
- print
- if not fileincommit:
- for f in files:
- print '\t* %s:' % f
- for l in lines[1:]:
- print '\t ', l
- print
-
-def output_commits():
- cmd = ['git', 'log', '--pretty=format:--START-COMMIT--%H%n%ai %an <%ae>%n%n%s%n%b%n--END-COMMIT--',
- '--date=short', '--name-only']
-
- start_tag = find_start_tag()
-
- if start_tag is None:
- cmd.extend(sys.argv[1:])
- else:
- cmd.extend(["%s..HEAD" % (start_tag)])
-
- p = subprocess.Popen(args=cmd, shell=False, stdout=subprocess.PIPE)
- buf = []
- files = []
- filemode = False
- for lin in p.stdout.readlines():
- if lin.startswith("--START-COMMIT--"):
- if buf != []:
- process_commit(buf, files)
- hash = lin[16:].strip()
- try:
- rel = release_refs[hash]
- print "=== release %d.%d.%d ===\n" % (int(rel[0]), int(rel[1]), int(rel[2]))
- except:
- pass
- buf = []
- files = []
- filemode = False
- elif lin.startswith("--END-COMMIT--"):
- filemode = True
- elif filemode == True:
- files.append(lin)
- else:
- buf.append(lin)
- if buf != []:
- process_commit(buf, files)
-
-def get_rel_tags():
- # Populate the release_refs dict with the tags for previous releases
- reltagre = re.compile("^([a-z0-9]{40}) refs\/tags\/[RELEASE-]*([0-9]+)[-_.]([0-9]+)[-_.]([0-9]+)")
-
- cmd = ['git', 'show-ref', '--tags', '--dereference']
- p = subprocess.Popen(args=cmd, shell=False, stdout=subprocess.PIPE)
- for lin in p.stdout.readlines():
- match = reltagre.search (lin)
- if match:
- (sha, maj, min, nano) = match.groups()
- release_refs[sha] = (maj, min, nano)
-
-def find_start_tag():
- starttagre = re.compile("^([a-z0-9]{40}) refs\/tags\/CHANGELOG_START")
- cmd = ['git', 'show-ref', '--tags']
- p = subprocess.Popen(args=cmd, shell=False, stdout=subprocess.PIPE)
- for lin in p.stdout.readlines():
- match = starttagre.search (lin)
- if match:
- return match.group(1)
- return None
-
-if __name__ == "__main__":
- get_rel_tags()
- output_commits()
|
[-]
[+]
|
Deleted |
_service:tar_git:gstreamer1.0-droid-0.20210304.0.tar.gz/common/gettext.patch
^
|
@@ -1,12 +0,0 @@
---- po/Makefile.in.in.orig 2006-01-07 12:03:45.000000000 +0100
-+++ po/Makefile.in.in 2006-01-07 12:04:23.000000000 +0100
-@@ -11,6 +11,9 @@
- PACKAGE = @PACKAGE@
- VERSION = @VERSION@
-
-+# thomas: add GETTEXT_PACKAGE substitution as used in Makevars
-+GETTEXT_PACKAGE = @GETTEXT_PACKAGE@
-+
- SHELL = /bin/sh
- @SET_MAKE@
-
|
[-]
[+]
|
Deleted |
_service:tar_git:gstreamer1.0-droid-0.20210304.0.tar.gz/common/glib-gen.mak
^
|
@@ -1,44 +0,0 @@
-# these are the variables your Makefile.am should set
-# the example is based on the colorbalance interface
-
-#glib_enum_headers=$(colorbalance_headers)
-#glib_enum_define=GST_COLOR_BALANCE
-#glib_enum_prefix=gst_color_balance
-
-enum_headers=$(foreach h,$(glib_enum_headers),\n\#include \"$(h)\")
-
-# these are all the rules generating the relevant files
-%-marshal.h: %-marshal.list
- $(AM_V_GEN)glib-genmarshal --header --prefix=$(glib_enum_prefix)_marshal $^ > $*-marshal.h.tmp && \
- mv $*-marshal.h.tmp $*-marshal.h
-
-%-marshal.c: %-marshal.list
- $(AM_V_GEN)echo "#include \"$*-marshal.h\"" >> $*-marshal.c.tmp && \
- glib-genmarshal --body --prefix=$(glib_enum_prefix)_marshal $^ >> $*-marshal.c.tmp && \
- mv $*-marshal.c.tmp $*-marshal.c
-
-%-enumtypes.h: $(glib_enum_headers)
- $(AM_V_GEN)glib-mkenums \
- --fhead "#ifndef __$(glib_enum_define)_ENUM_TYPES_H__\n#define __$(glib_enum_define)_ENUM_TYPES_H__\n\n#include <glib-object.h>\n\nG_BEGIN_DECLS\n" \
- --fprod "\n/* enumerations from \"@filename@\" */\n" \
- --vhead "GType @enum_name@_get_type (void);\n#define GST_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n" \
- --ftail "G_END_DECLS\n\n#endif /* __$(glib_enum_define)_ENUM_TYPES_H__ */" \
- $^ > $@
-
-%-enumtypes.c: $(glib_enum_headers)
- @if test "x$(glib_enum_headers)" = "x"; then echo "ERROR: glib_enum_headers is empty, please fix Makefile"; exit 1; fi
- $(AM_V_GEN)glib-mkenums \
- --fhead "#include \"$*-enumtypes.h\"\n$(enum_headers)" \
- --fprod "\n/* enumerations from \"@filename@\" */" \
- --vhead "GType\n@enum_name@_get_type (void)\n{\n static volatile gsize g_define_type_id__volatile = 0;\n if (g_once_init_enter (&g_define_type_id__volatile)) {\n static const G@Type@Value values[] = {" \
- --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
- --vtail " { 0, NULL, NULL }\n };\n GType g_define_type_id = g_@type@_register_static (\"@EnumName@\", values);\n g_once_init_leave (&g_define_type_id__volatile, g_define_type_id);\n }\n return g_define_type_id__volatile;\n}\n" \
- $^ > $@
-
-# a hack rule to make sure .Plo files exist because they get include'd
-# from Makefile's
-.deps/%-marshal.Plo:
- @touch $@
-
-.deps/%-enumtypes.Plo:
- @touch $@
|
[-]
[+]
|
Deleted |
_service:tar_git:gstreamer1.0-droid-0.20210304.0.tar.gz/common/gst-autogen.sh
^
|
@@ -1,344 +0,0 @@
-# a silly hack that generates autoregen.sh but it's handy
-# Remove the old autoregen.sh first to create a new file,
-# as the current one may be being read by the shell executing
-# this script.
-if [ -f "autoregen.sh" ]; then
- rm autoregen.sh
-fi
-echo "#!/bin/sh" > autoregen.sh
-echo "./autogen.sh $@ \$@" >> autoregen.sh
-chmod +x autoregen.sh
-
-# helper functions for autogen.sh
-
-debug ()
-# print out a debug message if DEBUG is a defined variable
-{
- if test ! -z "$DEBUG"
- then
- echo "DEBUG: $1"
- fi
-}
-
-version_get ()
-# based on the command's version output, set variables
-# _MAJOR, _MINOR, _MICRO, _VERSION, using the given prefix as variable prefix
-#
-# arg 1: command binary name
-# arg 2: (uppercased) variable name prefix
-{
- COMMAND=$1
- VARPREFIX=`echo $2 | tr .,- _`
-
- # strip everything that's not a digit, then use cut to get the first field
- pkg_version=`$COMMAND --version|head -n 1|sed 's/^.*)[^0-9]*//'|cut -d' ' -f1`
- debug "pkg_version $pkg_version"
- # remove any non-digit characters from the version numbers to permit numeric
- # comparison
- pkg_major=`echo $pkg_version | cut -d. -f1 | sed s/[a-zA-Z\-].*//g`
- pkg_minor=`echo $pkg_version | cut -d. -f2 | sed s/[a-zA-Z\-].*//g`
- pkg_micro=`echo $pkg_version | cut -d. -f3 | sed s/[a-zA-Z\-].*//g`
- test -z "$pkg_major" && pkg_major=0
- test -z "$pkg_minor" && pkg_minor=0
- test -z "$pkg_micro" && pkg_micro=0
- debug "found major $pkg_major minor $pkg_minor micro $pkg_micro"
- eval ${VARPREFIX}_MAJOR=$pkg_major
- eval ${VARPREFIX}_MINOR=$pkg_minor
- eval ${VARPREFIX}_MICRO=$pkg_micro
- eval ${VARPREFIX}_VERSION=$pkg_version
-}
-
-version_compare ()
-# Checks whether the version of VARPREFIX is equal to or
-# newer than the requested version
-# arg1: VARPREFIX
-# arg2: MAJOR
-# arg3: MINOR
-# arg4: MICRO
-{
- VARPREFIX=`echo $1 | tr .,- _`
- MAJOR=$2
- MINOR=$3
- MICRO=$4
-
- eval pkg_major=\$${VARPREFIX}_MAJOR;
- eval pkg_minor=\$${VARPREFIX}_MINOR;
- eval pkg_micro=\$${VARPREFIX}_MICRO;
-
- #start checking the version
- debug "version_compare: $VARPREFIX against $MAJOR.$MINOR.$MICRO"
-
- # reset check
- WRONG=
-
- if [ ! "$pkg_major" -gt "$MAJOR" ]; then
- debug "major: $pkg_major <= $MAJOR"
- if [ "$pkg_major" -lt "$MAJOR" ]; then
- debug "major: $pkg_major < $MAJOR"
- WRONG=1
- elif [ ! "$pkg_minor" -gt "$MINOR" ]; then
- debug "minor: $pkg_minor <= $MINOR"
- if [ "$pkg_minor" -lt "$MINOR" ]; then
- debug "minor: $pkg_minor < $MINOR"
- WRONG=1
- elif [ "$pkg_micro" -lt "$MICRO" ]; then
- debug "micro: $pkg_micro < $MICRO"
- WRONG=1
- fi
- fi
- fi
- if test ! -z "$WRONG"; then
- debug "version_compare: $VARPREFIX older than $MAJOR.$MINOR.$MICRO"
- return 1
- fi
- debug "version_compare: $VARPREFIX equal to/newer than $MAJOR.$MINOR.$MICRO"
- return 0
-}
-
-
-version_check ()
-# check the version of a package
-# first argument : package name (executable)
-# second argument : optional path where to look for it instead
-# third argument : source download url
-# rest of arguments : major, minor, micro version
-# all consecutive ones : suggestions for binaries to use
-# (if not specified in second argument)
-{
- PACKAGE=$1
- PKG_PATH=$2
- URL=$3
- MAJOR=$4
- MINOR=$5
- MICRO=$6
-
- # for backwards compatibility, we let PKG_PATH=PACKAGE when PKG_PATH null
- if test -z "$PKG_PATH"; then PKG_PATH=$PACKAGE; fi
- debug "major $MAJOR minor $MINOR micro $MICRO"
- VERSION=$MAJOR
- if test ! -z "$MINOR"; then VERSION=$VERSION.$MINOR; else MINOR=0; fi
- 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
- COMMAND="$SUGGESTION"
-
- # don't check if asked not to
- test -z "$NOCHECK" && {
- printf " checking for $COMMAND >= $VERSION ... "
- } || {
- # we set a var with the same name as the package, but stripped of
- # unwanted chars
- VAR=`echo $PACKAGE | sed 's/-//g'`
- debug "setting $VAR"
- eval $VAR="$COMMAND"
- return 0
- }
-
- which $COMMAND > /dev/null 2>&1
- if test $? -eq 1;
- then
- debug "$COMMAND not found"
- continue
- fi
-
- VARPREFIX=`echo $COMMAND | sed 's/-//g' | tr [:lower:] [:upper:]`
- version_get $COMMAND $VARPREFIX
-
- version_compare $VARPREFIX $MAJOR $MINOR $MICRO
- if test $? -ne 0; then
- echo "found $pkg_version, not ok !"
- continue
- else
- echo "found $pkg_version, ok."
- # we set a var with the same name as the package, but stripped of
- # unwanted chars
- VAR=`echo $PACKAGE | sed 's/-//g'`
- debug "setting $VAR"
- eval $VAR="$COMMAND"
- return 0
- fi
- done
-
- echo "$PACKAGE not found !"
- echo "You must have $PACKAGE installed to compile $package."
- echo "Download the appropriate package for your distribution,"
- echo "or get the source tarball at $URL"
- return 1;
-}
-
-aclocal_check ()
-{
- # normally aclocal is part of automake
- # so we expect it to be in the same place as automake
- # so if a different automake is supplied, we need to adapt as well
- # so how's about replacing automake with aclocal in the set var,
- # and saving that in $aclocal ?
- # note, this will fail if the actual automake isn't called automake*
- # or if part of the path before it contains it
- if [ -z "$automake" ]; then
- echo "Error: no automake variable set !"
- return 1
- else
- aclocal=`echo $automake | sed s/automake/aclocal/`
- debug "aclocal: $aclocal"
- if [ "$aclocal" != "aclocal" ];
- then
- CONFIGURE_DEF_OPT="$CONFIGURE_DEF_OPT --with-aclocal=$aclocal"
- fi
- if [ ! -x `which $aclocal` ]; then
- echo "Error: cannot execute $aclocal !"
- return 1
- fi
- fi
-}
-
-autoheader_check ()
-{
- # same here - autoheader is part of autoconf
|
[-]
[+]
|
Deleted |
_service:tar_git:gstreamer1.0-droid-0.20210304.0.tar.gz/common/gst-glib-gen.mak
^
|
@@ -1,45 +0,0 @@
-# these are the variables your Makefile.am should set
-# the example is based on the colorbalance interface
-
-#glib_enum_headers=$(colorbalance_headers)
-#glib_enum_define=GST_COLOR_BALANCE
-#glib_gen_prefix=gst_color_balance
-#glib_gen_basename=colorbalance
-
-enum_headers=$(foreach h,$(glib_enum_headers),\n\#include \"$(h)\")
-
-# these are all the rules generating the relevant files
-$(glib_gen_basename)-marshal.h: $(glib_gen_basename)-marshal.list
- $(AM_V_GEN)$(GLIB_GENMARSHAL) --header --prefix=$(glib_gen_prefix)_marshal $^ > $(glib_gen_basename)-marshal.h.tmp && \
- mv $(glib_gen_basename)-marshal.h.tmp $(glib_gen_basename)-marshal.h
-
-$(glib_gen_basename)-marshal.c: $(glib_gen_basename)-marshal.list
- $(AM_V_GEN)echo "#include \"$(glib_gen_basename)-marshal.h\"" >> $(glib_gen_basename)-marshal.c.tmp && \
- $(GLIB_GENMARSHAL) --body --prefix=$(glib_gen_prefix)_marshal $^ >> $(glib_gen_basename)-marshal.c.tmp && \
- mv $(glib_gen_basename)-marshal.c.tmp $(glib_gen_basename)-marshal.c
-
-$(glib_gen_basename)-enumtypes.h: $(glib_enum_headers)
- $(AM_V_GEN)$(GLIB_MKENUMS) \
- --fhead "#ifndef __$(glib_enum_define)_ENUM_TYPES_H__\n#define __$(glib_enum_define)_ENUM_TYPES_H__\n\n#include <glib-object.h>\n\nG_BEGIN_DECLS\n" \
- --fprod "\n/* enumerations from \"@filename@\" */\n" \
- --vhead "GType @enum_name@_get_type (void);\n#define GST_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n" \
- --ftail "G_END_DECLS\n\n#endif /* __$(glib_enum_define)_ENUM_TYPES_H__ */" \
- $^ > $@
-
-$(glib_gen_basename)-enumtypes.c: $(glib_enum_headers)
- @if test "x$(glib_enum_headers)" = "x"; then echo "ERROR: glib_enum_headers is empty, please fix Makefile"; exit 1; fi
- $(AM_V_GEN)$(GLIB_MKENUMS) \
- --fhead "#include \"$(glib_gen_basename)-enumtypes.h\"\n$(enum_headers)" \
- --fprod "\n/* enumerations from \"@filename@\" */" \
- --vhead "GType\n@enum_name@_get_type (void)\n{\n static volatile gsize g_define_type_id__volatile = 0;\n if (g_once_init_enter (&g_define_type_id__volatile)) {\n static const G@Type@Value values[] = {" \
- --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
- --vtail " { 0, NULL, NULL }\n };\n GType g_define_type_id = g_@type@_register_static (\"@EnumName@\", values);\n g_once_init_leave (&g_define_type_id__volatile, g_define_type_id);\n }\n return g_define_type_id__volatile;\n}\n" \
- $^ > $@
-
-# a hack rule to make sure .Plo files exist because they get include'd
-# from Makefile's
-.deps/%-marshal.Plo:
- @touch $@
-
-.deps/%-enumtypes.Plo:
- @touch $@
|
[-]
[+]
|
Deleted |
_service:tar_git:gstreamer1.0-droid-0.20210304.0.tar.gz/common/gst-indent
^
|
@@ -1,49 +0,0 @@
-#!/bin/sh
-#
-# Check that the code follows a consistant code style
-#
-
-# Check for existence of indent, and error out if not present.
-# On some *bsd systems the binary seems to be called gnunindent,
-# so check for that first.
-
-version=`gnuindent --version 2>/dev/null`
-if test "x$version" = "x"; then
- version=`indent --version 2>/dev/null`
- if test "x$version" = "x"; then
- echo "GStreamer git pre-commit hook:"
- echo "Did not find GNU indent, please install it before continuing."
- exit 1
- fi
- INDENT=indent
-else
- INDENT=gnuindent
-fi
-
-case `$INDENT --version` in
- GNU*)
- ;;
- default)
- echo "GStreamer git pre-commit hook:"
- echo "Did not find GNU indent, please install it before continuing."
- echo "(Found $INDENT, but it doesn't seem to be GNU indent)"
- exit 1
- ;;
-esac
-
-INDENT_PARAMETERS="--braces-on-if-line \
- --case-brace-indentation0 \
- --case-indentation2 \
- --braces-after-struct-decl-line \
- --line-length80 \
- --no-tabs \
- --cuddle-else \
- --dont-line-up-parentheses \
- --continuation-indentation4 \
- --honour-newlines \
- --tab-size8 \
- --indent-level2 \
- --leave-preprocessor-space"
-
-$INDENT ${INDENT_PARAMETERS} $@
-
|
[-]
[+]
|
Deleted |
_service:tar_git:gstreamer1.0-droid-0.20210304.0.tar.gz/common/gst.supp
^
|
@@ -1,3958 +0,0 @@
-### this file contains suppressions for valgrind when running
-### the gstreamer unit tests
-### it might be useful for wider use as well
-
-### syscall suppressions
-
-{
- <clone on Wim's Debian>
- Memcheck:Param
- clone(parent_tidptr)
- fun:clone
- fun:clone
-}
-
-{
- <clone on Wim's Debian>
- Memcheck:Param
- clone(child_tidptr)
- fun:clone
- fun:clone
-}
-
-{
- <clone on Wim's Debian>
- Memcheck:Param
- clone(tlsinfo)
- fun:clone
- fun:clone
-}
-
-### glibc suppressions
-
-{
- <conditional jump on wim's debian 2/2/06>
- Memcheck:Cond
- obj:/lib/ld-2.*.so
- fun:dl_open_worker
- obj:/lib/ld-2.*.so
- fun:_dl_open
- fun:dlopen_doit
- obj:/lib/ld-2.*.so
- fun:_dlerror_run
- fun:dlopen
- fun:g_module_open
- fun:gst_plugin_load_file
-}
-
-{
- <Conditional jump>
- Memcheck:Cond
- fun:strlen
- fun:fillin_rpath
- fun:_dl_init_paths
- fun:dl_main
- fun:_dl_sysdep_start
- fun:_dl_start
- obj:/lib64/ld-2.*.so
- obj:*
- obj:*
-}
-
-{
- <Conditional jump>
- Memcheck:Cond
- fun:_dl_relocate_object
- fun:dl_main
- fun:_dl_sysdep_start
- fun:_dl_start
-}
-
-{
- <insert a suppression name here>
- Memcheck:Cond
- fun:*
- fun:dl_open_worker
- fun:_dl_catch_error
- fun:_dl_open
- fun:dlopen_doit
- fun:_dl_catch_error
- fun:_dlerror_run
- fun:dlopen@@GLIBC_2.2.5
-}
-
-# glibc does not deallocate thread-local storage
-
-{
- <tls>
- Memcheck:Leak
- fun:calloc
- fun:_dl_allocate_tls
- fun:pthread_create@@*
-}
-
-{
- <tls>
- Memcheck:Leak
- fun:calloc
- fun:allocate_dtv
- fun:_dl_allocate_tls
-}
-
-# I get an extra stack entry on x86/dapper
-{
- <tls>
- Memcheck:Leak
- fun:calloc
- obj:/lib/ld-2.3.*.so
- fun:_dl_allocate_tls
- fun:pthread_create@@*
-}
-
-
-{
- <pthread strstr>
- Memcheck:Cond
- fun:strstr
- fun:__pthread_initialize_minimal
- obj:/lib/libpthread-*.so
- obj:/lib/libpthread-*.so
- fun:call_init
- fun:_dl_init
- obj:/lib/ld-*.so
-}
-
-# a thread-related free problem in glibc from Edgard
-{
- __libc_freeres_rw_acess
- Memcheck:Addr4
- obj:*
- obj:*
- obj:*
- obj:*
- obj:*
- fun:__libc_freeres
-}
-
-{
- <a conditional jump on wim's debian>
- Memcheck:Cond
- obj:/lib/ld-2.3.*.so
- obj:/lib/ld-2.3.*.so
- obj:/lib/ld-2.3.*.so
- obj:/lib/ld-2.3.*.so
- obj:/lib/ld-2.3.*.so
-}
-
-# g_module_open-related problems
-{
- <started showing up on fc4-quick>
- Memcheck:Addr2
- fun:memcpy
- fun:_dl_map_object_deps
- fun:dl_open_worker
- fun:_dl_catch_error
- fun:_dl_open
- fun:dlopen_doit
- fun:_dl_catch_error
- fun:_dlerror_run
- fun:dlopen@@GLIBC_2.1
- fun:g_module_open
- fun:gst_plugin_load_file
- fun:gst_registry_scan_path_level
- fun:gst_registry_scan_path_level
- fun:gst_registry_scan_path_level
- fun:init_post
- fun:g_option_context_parse
- fun:gst_init_check
- fun:gst_init
- fun:gst_check_init
- fun:main
-}
-
-{
- <started showing up on fc4-quick>
- Memcheck:Addr4
- fun:memcpy
- fun:_dl_map_object_deps
- fun:dl_open_worker
- fun:_dl_catch_error
- fun:_dl_open
- fun:dlopen_doit
- fun:_dl_catch_error
- fun:_dlerror_run
- fun:dlopen@@GLIBC_2.1
- fun:g_module_open
- fun:gst_plugin_load_file
- fun:gst_registry_scan_path_level
- fun:gst_registry_scan_path_level
- fun:gst_registry_scan_path_level
- fun:init_post
- fun:g_option_context_parse
- fun:gst_init_check
- fun:gst_init
- fun:gst_check_init
- fun:main
-}
-
-{
- <g_module_open on wim's debian>
|
[-]
[+]
|
Deleted |
_service:tar_git:gstreamer1.0-droid-0.20210304.0.tar.gz/common/gstdoc-scangobj
^
|
@@ -1,1617 +0,0 @@
-#!/usr/bin/env perl
-# -*- cperl -*-
-#
-# gtk-doc - GTK DocBook documentation generator.
-# Copyright (C) 1998 Damon Chaplin
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
-#
-
-#
-# This gets information about object hierarchies and signals
-# by compiling a small C program. CFLAGS and LDFLAGS must be
-# set appropriately before running this script.
-#
-
-use Getopt::Long;
-
-my $GTK_DOC_PREFIX=`pkg-config --variable prefix gtk-doc`;
-if ($GTK_DOC_PREFIX) {
- chomp $GTK_DOC_PREFIX;
- #print "Adding $GTK_DOC_PREFIX/share/gtk-doc/data to \@INC\n";
- unshift @INC, "$GTK_DOC_PREFIX/share/gtk-doc/data";
-} else {
- unshift @INC, '/usr/share/gtk-doc/data';
-}
-require "gtkdoc-common.pl";
-
-# Options
-
-# name of documentation module
-my $MODULE;
-my $OUTPUT_DIR;
-my $INSPECT_DIR;
-my $VERBOSE;
-my $PRINT_VERSION;
-my $PRINT_HELP;
-my $TYPE_INIT_FUNC="g_type_init ()";
-
-# --nogtkinit is deprecated, as it is the default now anyway.
-%optctl = (module => \$MODULE,
- source => \$SOURCE,
- types => \$TYPES_FILE,
- nogtkinit => \$NO_GTK_INIT,
- 'type-init-func' => \$TYPE_INIT_FUNC,
- 'output-dir' => \$OUTPUT_DIR,
- 'inspect-dir' => \$INSPECT_DIR,
- 'verbose' => \$VERBOSE,
- 'version' => \$PRINT_VERSION,
- 'help' => \$PRINT_HELP);
-
-GetOptions(\%optctl, "module=s", "source=s", "types:s", "output-dir:s", "inspect-dir:s", "nogtkinit", "type-init-func:s", "verbose", "version", "help");
-
-if ($NO_GTK_INIT) {
- # Do nothing. This just avoids a warning.
- # the option is not used anymore
-}
-
-if ($PRINT_VERSION) {
- print "1.5\n";
- exit 0;
-}
-
-if (!$MODULE) {
- $PRINT_HELP = 1;
-}
-
-if ($PRINT_HELP) {
- print <<EOF;
-gstdoc-scangobj version 1.5 - introspect gstreamer-plugins
-
---module=MODULE_NAME Name of the doc module being parsed
---source=SOURCE_NAME Name of the source module for plugins
---types=FILE The name of the file to store the types in
---type-init-func=FUNC The init function to call instead of g_type_init()
---output-dir=DIRNAME The directory where the results are stored
---inspect-dir=DIRNAME The directory where the plugin inspect data is stored
---verbose Print extra output while processing
---version Print the version of this program
---help Print this help
-EOF
- exit 0;
-}
-
-$OUTPUT_DIR = $OUTPUT_DIR ? $OUTPUT_DIR : ".";
-
-$TYPES_FILE = $TYPES_FILE ? $TYPES_FILE : "$OUTPUT_DIR/$MODULE.types";
-
-open (TYPES, $TYPES_FILE) || die "Cannot open $TYPES_FILE: $!\n";
-open (OUTPUT, ">$MODULE-scan.c") || die "Cannot open $MODULE-scan.c: $!\n";
-
-my $old_signals_filename = "$OUTPUT_DIR/$MODULE.signals";
-my $new_signals_filename = "$OUTPUT_DIR/$MODULE.signals.new";
-my $old_hierarchy_filename = "$OUTPUT_DIR/$MODULE.hierarchy";
-my $new_hierarchy_filename = "$OUTPUT_DIR/$MODULE.hierarchy.new";
-my $old_interfaces_filename = "$OUTPUT_DIR/$MODULE.interfaces";
-my $new_interfaces_filename = "$OUTPUT_DIR/$MODULE.interfaces.new";
-my $old_prerequisites_filename = "$OUTPUT_DIR/$MODULE.prerequisites";
-my $new_prerequisites_filename = "$OUTPUT_DIR/$MODULE.prerequisites.new";
-my $old_args_filename = "$OUTPUT_DIR/$MODULE.args";
-my $new_args_filename = "$OUTPUT_DIR/$MODULE.args.new";
-
-my $debug_log="g_message";
-if (!defined($VERBOSE) or $VERBOSE eq "0") {
- $debug_log="//$debug_log";
-}
-
-# write a C program to scan the types
-
-$includes = "";
-@types = ();
-@impl_types = ();
-
-for (<TYPES>) {
- if (/^#include/) {
- $includes .= $_;
- } elsif (/^%/) {
- next;
- } elsif (/^\s*$/) {
- next;
- } elsif (/^type:(.*)$/) {
- $t = $1;
- chomp $t;
- push @impl_types, $t;
- } else {
- chomp;
- push @types, $_;
- }
-}
-
-$ntypes = @types + @impl_types + 1;
-
-print OUTPUT <<EOT;
-
-/* file generated by common/gstdoc-scangobj */
-
-#include <string.h>
-#include <stdlib.h>
-#include <stdio.h>
-#include <errno.h>
-
-#include <gst/gst.h>
-EOT
-
-if ($includes) {
- print OUTPUT $includes;
-} else {
- for (@types) {
- print OUTPUT "extern GType $_ (void);\n";
- }
-}
-
-print OUTPUT <<EOT;
-
-#ifdef GTK_IS_WIDGET_CLASS
-#include <gtk/gtkversion.h>
-#endif
-
-static GType *object_types = NULL;
-
-static GString *xmlstr = NULL;
-
-static const gchar*
-xmlprint (gint indent, const gchar *tag, const gchar *data)
-{
- const gchar indent_str[] = " ";
-
- /* reset */
- g_string_truncate (xmlstr, 0);
- g_string_append_len (xmlstr, indent_str, MIN (indent, strlen (indent_str)));
- g_string_append_printf (xmlstr, "<%s>", tag);
-
- if (data) {
- gchar *s;
-
- s = g_markup_escape_text (data, -1);
- g_string_append (xmlstr, s);
- g_free (s);
- }
-
- g_string_append_printf (xmlstr, "</%s>\\n", tag);
- return xmlstr->str;
-}
-
-static gint
-gst_feature_sort_compare (gconstpointer a, gconstpointer b)
-{
- const gchar *name_a = gst_plugin_feature_get_name ((GstPluginFeature *) a);
|
[-]
[+]
|
Deleted |
_service:tar_git:gstreamer1.0-droid-0.20210304.0.tar.gz/common/gtk-doc-plugins.mak
^
|
@@ -1,382 +0,0 @@
-# This is an include file specifically tuned for building documentation
-# for GStreamer plug-ins
-
-help:
- @echo
- @echo "If you are a doc maintainer, run 'make update' to update"
- @echo "the documentation files maintained in git"
- @echo
- @echo Other useful make targets:
- @echo
- @echo check-inspected-versions: make sure the inspected plugin info
- @echo is up to date before a release
- @echo
-
-# update the stuff maintained by doc maintainers
-update: scanobj-update
- $(MAKE) check-outdated-docs
-
-# We set GPATH here; this gives us semantics for GNU make
-# which are more like other make's VPATH, when it comes to
-# whether a source that is a target of one rule is then
-# searched for in VPATH/GPATH.
-#
-GPATH = $(srcdir)
-
-# thomas: make docs parallel installable
-TARGET_DIR=$(HTML_DIR)/$(DOC_MODULE)-@GST_API_VERSION@
-
-MAINTAINER_DOC_STAMPS = \
- scanobj-build.stamp
-
-EXTRA_DIST = \
- $(MAINTAINER_DOC_STAMPS) \
- $(srcdir)/inspect/*.xml \
- $(SCANOBJ_FILES) \
- $(content_files) \
- $(extra_files) \
- $(HTML_IMAGES) \
- $(DOC_MAIN_SGML_FILE) \
- $(DOC_OVERRIDES) \
- $(DOC_MODULE)-sections.txt
-
-# we don't add scanobj-build.stamp here since they are built manually by docs
-# maintainers and result is commited to git
-DOC_STAMPS = \
- scan-build.stamp \
- tmpl-build.stamp \
- sgml-build.stamp \
- html-build.stamp \
- scan.stamp \
- tmpl.stamp \
- sgml.stamp \
- html.stamp
-
-# files generated/updated by gtkdoc-scangobj
-SCANOBJ_FILES = \
- $(DOC_MODULE).args \
- $(DOC_MODULE).hierarchy \
- $(DOC_MODULE).interfaces \
- $(DOC_MODULE).prerequisites \
- $(DOC_MODULE).signals \
- $(DOC_MODULE).types
-
-SCANOBJ_FILES_O = \
- .libs/$(DOC_MODULE)-scan.o
-
-# files generated/updated by gtkdoc-scan
-SCAN_FILES = \
- $(DOC_MODULE)-sections.txt \
- $(DOC_MODULE)-overrides.txt \
- $(DOC_MODULE)-decl.txt \
- $(DOC_MODULE)-decl-list.txt
-
-
-REPORT_FILES = \
- $(DOC_MODULE)-undocumented.txt \
- $(DOC_MODULE)-undeclared.txt \
- $(DOC_MODULE)-unused.txt
-
-CLEANFILES = \
- $(SCANOBJ_FILES_O) \
- $(REPORT_FILES) \
- $(DOC_STAMPS) \
- inspect-registry.xml
-
-INSPECT_DIR = inspect
-
-if ENABLE_GTK_DOC
-all-local: html-build.stamp
-
-### inspect GStreamer plug-ins; done by documentation maintainer ###
-
-# only look at the plugins in this module when building inspect .xml stuff
-INSPECT_REGISTRY=$(top_builddir)/docs/plugins/inspect-registry.xml
-INSPECT_ENVIRONMENT=\
- LC_ALL=C \
- GST_PLUGIN_SYSTEM_PATH_1_0= \
- GST_PLUGIN_PATH_1_0=$(top_builddir)/gst:$(top_builddir)/sys:$(top_builddir)/ext:$(top_builddir)/plugins:$(top_builddir)/src:$(top_builddir)/gnl \
- GST_REGISTRY_1_0=$(INSPECT_REGISTRY) \
- PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" \
- $(INSPECT_EXTRA_ENVIRONMENT)
-
-#### scan gobjects; done by documentation maintainer ####
-scanobj-update:
- -rm scanobj-build.stamp
- $(MAKE) scanobj-build.stamp
-
-# gstdoc-scanobj produces 5 output files (.new)
-# scangobj-merge.py merges them into the file which we commit later
-# TODO: also merge the hierarchy
-scanobj-build.stamp: $(SCANOBJ_DEPS) $(basefiles)
- @echo " DOC Introspecting gobjects"
- @if test x"$(srcdir)" != x. ; then \
- for f in $(SCANOBJ_FILES) $(SCAN_FILES); \
- do \
- if test -e $(srcdir)/$$f; then cp -u $(srcdir)/$$f . ; fi; \
- done; \
- fi; \
- mkdir -p $(INSPECT_DIR); \
- scanobj_options=""; \
- if test "x$(V)" = "x1"; then \
- scanobj_options="--verbose"; \
- fi; \
- $(INSPECT_ENVIRONMENT) \
- CC="$(GTKDOC_CC)" LD="$(GTKDOC_LD)" \
- CFLAGS="$(GTKDOC_CFLAGS) $(CFLAGS) $(WARNING_CFLAGS)" \
- LDFLAGS="$(GTKDOC_LIBS) $(LDFLAGS)" \
- $(GST_DOC_SCANOBJ) $$scanobj_options --type-init-func="gst_init(NULL,NULL)" \
- --module=$(DOC_MODULE) --source=$(PACKAGE) --inspect-dir=$(INSPECT_DIR) && \
- echo " DOC Merging introspection data" && \
- $(PYTHON) \
- $(top_srcdir)/common/scangobj-merge.py $(DOC_MODULE) || exit 1; \
- if test x"$(srcdir)" != x. ; then \
- for f in $(SCANOBJ_FILES); \
- do \
- cmp -s ./$$f $(srcdir)/$$f || cp ./$$f $(srcdir)/ ; \
- done; \
- fi; \
- touch scanobj-build.stamp
-
-$(DOC_MODULE)-decl.txt $(SCANOBJ_FILES) $(SCANOBJ_FILES_O): scan-build.stamp
- @true
-
-### scan headers; done on every build ###
-scan-build.stamp: $(HFILE_GLOB) $(EXTRA_HFILES) $(basefiles) scanobj-build.stamp
- @echo ' DOC Scanning header files'
- @if test x"$(srcdir)" != x. ; then \
- for f in $(SCANOBJ_FILES) $(SCAN_FILES); \
- do \
- if test -e $(srcdir)/$$f; then cp -u $(srcdir)/$$f . ; fi; \
- done; \
- fi
- @_source_dir='' ; \
- for i in $(DOC_SOURCE_DIR) ; do \
- _source_dir="$${_source_dir} --source-dir=$$i" ; \
- done ; \
- gtkdoc-scan \
- $(SCAN_OPTIONS) $(EXTRA_HFILES) \
- --module=$(DOC_MODULE) \
- $${_source_dir} \
- --ignore-headers="$(IGNORE_HFILES)"; \
- touch scan-build.stamp
-
-#### update templates; done on every build ####
-
-# in a non-srcdir build, we need to copy files from the previous step
-# and the files from previous runs of this step
-tmpl-build.stamp: $(DOC_MODULE)-decl.txt $(SCANOBJ_FILES) $(DOC_MODULE)-sections.txt $(DOC_OVERRIDES)
- @echo ' DOC Rebuilding template files'
- @if test x"$(srcdir)" != x. ; then \
- for f in $(SCANOBJ_FILES) $(SCAN_FILES); \
- do \
- if test -e $(srcdir)/$$f; then cp -u $(srcdir)/$$f . ; fi; \
- done; \
- fi
- @gtkdoc-mktmpl --module=$(DOC_MODULE)
- @$(PYTHON) \
- $(top_srcdir)/common/mangle-tmpl.py $(srcdir)/$(INSPECT_DIR) tmpl
- @touch tmpl-build.stamp
-
-tmpl.stamp: tmpl-build.stamp
- @true
-
-#### xml ####
-
-sgml-build.stamp: tmpl.stamp scan-build.stamp $(CFILE_GLOB) $(top_srcdir)/common/plugins.xsl $(expand_content_files)
- @echo ' DOC Building XML'
- @-mkdir -p xml
- @for a in $(srcdir)/$(INSPECT_DIR)/*.xml; do \
- xsltproc --stringparam module $(MODULE) \
- $(top_srcdir)/common/plugins.xsl $$a > xml/`basename $$a`; done
- @for f in $(EXAMPLE_CFILES); do \
- $(PYTHON) $(top_srcdir)/common/c-to-xml.py $$f > xml/element-`basename $$f .c`.xml; done
- @gtkdoc-mkdb \
- --module=$(DOC_MODULE) \
- --source-dir=$(DOC_SOURCE_DIR) \
- --expand-content-files="$(expand_content_files)" \
- --main-sgml-file=$(srcdir)/$(DOC_MAIN_SGML_FILE) \
- --output-format=xml \
|
[-]
[+]
|
Deleted |
_service:tar_git:gstreamer1.0-droid-0.20210304.0.tar.gz/common/gtk-doc.mak
^
|
@@ -1,227 +0,0 @@
-###########################################################################
-# Everything below here is generic and you shouldn't need to change it.
-###########################################################################
-# thomas: except of course that we did
-
-# thomas: copied from glib-2
-# We set GPATH here; this gives us semantics for GNU make
-# which are more like other make's VPATH, when it comes to
-# whether a source that is a target of one rule is then
-# searched for in VPATH/GPATH.
-#
-GPATH = $(srcdir)
-
-# thomas: make docs parallel installable
-TARGET_DIR=$(HTML_DIR)/$(DOC_MODULE)-@GST_API_VERSION@
-
-EXTRA_DIST = \
- $(content_files) \
- $(extra_files) \
- $(HTML_IMAGES) \
- $(DOC_MAIN_SGML_FILE) \
- $(DOC_MODULE).types \
- $(DOC_OVERRIDES) \
- $(DOC_MODULE)-sections.txt
-
-DOC_STAMPS = \
- setup-build.stamp \
- scan-build.stamp \
- sgml-build.stamp \
- html-build.stamp \
- sgml.stamp \
- html.stamp
-
-SCANOBJ_FILES = \
- $(DOC_MODULE).args \
- $(DOC_MODULE).hierarchy \
- $(DOC_MODULE).interfaces \
- $(DOC_MODULE).prerequisites \
- $(DOC_MODULE).signals \
- .libs/$(DOC_MODULE)-scan.o
-
-REPORT_FILES = \
- $(DOC_MODULE)-undocumented.txt \
- $(DOC_MODULE)-undeclared.txt \
- $(DOC_MODULE)-unused.txt
-
-CLEANFILES = $(SCANOBJ_FILES) $(REPORT_FILES) $(DOC_STAMPS) doc-registry.xml
-
-if ENABLE_GTK_DOC
-all-local: html-build.stamp
-
-#### setup ####
-
-setup-build.stamp: $(content_files)
- -@if test "$(abs_srcdir)" != "$(abs_builddir)" ; then \
- echo ' DOC Preparing build'; \
- files=`echo $(DOC_MAIN_SGML_FILE) $(DOC_OVERRIDES) $(DOC_MODULE)-sections.txt $(DOC_MODULE).types $(content_files)`; \
- if test "x$$files" != "x" ; then \
- for file in $$files ; do \
- test -f $(abs_srcdir)/$$file && \
- cp -pu $(abs_srcdir)/$$file $(abs_builddir)/ || true; \
- done; \
- fi; \
- fi
- @touch setup-build.stamp
-
-#### scan ####
-
-# in the case of non-srcdir builds, the built gst directory gets added
-# to gtk-doc scanning; but only then, to avoid duplicates
-scan-build.stamp: $(HFILE_GLOB) $(CFILE_GLOB)
- @echo ' DOC Scanning header files'
- @_source_dir='' ; \
- for i in $(DOC_SOURCE_DIR) ; do \
- _source_dir="$${_source_dir} --source-dir=$$i" ; \
- done ; \
- gtkdoc-scan \
- $(SCAN_OPTIONS) $(EXTRA_HFILES) \
- --module=$(DOC_MODULE) \
- $${_source_dir} \
- --ignore-headers="$(IGNORE_HFILES)"
- @if grep -l '^..*$$' $(DOC_MODULE).types > /dev/null; then \
- echo " DOC Introspecting gobjects"; \
- GST_PLUGIN_SYSTEM_PATH_1_0=`cd $(top_builddir) && pwd` \
- GST_PLUGIN_PATH_1_0= \
- GST_REGISTRY_1_0=doc-registry.xml \
- $(GTKDOC_EXTRA_ENVIRONMENT) \
- CC="$(GTKDOC_CC)" LD="$(GTKDOC_LD)" \
- CFLAGS="$(GTKDOC_CFLAGS) $(CFLAGS)" \
- LDFLAGS="$(GTKDOC_LIBS) $(LDFLAGS)" \
- gtkdoc-scangobj --type-init-func="gst_init(NULL,NULL)" \
- --module=$(DOC_MODULE) ; \
- else \
- for i in $(SCANOBJ_FILES) ; do \
- test -f $$i || touch $$i ; \
- done \
- fi
- @touch scan-build.stamp
-
-$(DOC_MODULE)-decl.txt $(SCANOBJ_FILES) $(DOC_MODULE)-sections.txt $(DOC_MODULE)-overrides.txt: scan-build.stamp
- @true
-
-#### xml ####
-
-sgml-build.stamp: setup-build.stamp $(DOC_MODULE)-decl.txt $(SCANOBJ_FILES) $(DOC_MODULE)-sections.txt $(expand_content_files)
- @echo ' DOC Building XML'
- @gtkdoc-mkdb --module=$(DOC_MODULE) --source-dir=$(DOC_SOURCE_DIR) --expand-content-files="$(expand_content_files)" --main-sgml-file=$(DOC_MAIN_SGML_FILE) --output-format=xml $(MKDB_OPTIONS)
- @cp ../version.entities xml
- @touch sgml-build.stamp
-
-sgml.stamp: sgml-build.stamp
- @true
-
-#### html ####
-
-html-build.stamp: sgml.stamp $(DOC_MAIN_SGML_FILE) $(content_files)
- @echo ' DOC Building HTML'
- @rm -rf html
- @mkdir html
- @cp -pr xml html
- @cp ../version.entities ./
- @mkhtml_options=""; \
- gtkdoc-mkhtml 2>&1 --help | grep >/dev/null "\-\-verbose"; \
- if test "$(?)" = "0"; then \
- if test "x$(V)" = "x1"; then \
- mkhtml_options="$$mkhtml_options --verbose"; \
- fi; \
- fi; \
- @gtkdoc-mkhtml 2>&1 --help | grep >/dev/null "\-\-path"; \
- if test "$(?)" = "0"; then \
- mkhtml_options=--path="$(abs_srcdir)"; \
- fi; \
- cd html && gtkdoc-mkhtml $$mkhtml_options $(MKHTML_OPTIONS) $(DOC_MODULE)-@GST_API_VERSION@ ../$(DOC_MAIN_SGML_FILE)
- @rm -rf html/xml
- @rm -f version.entities
- @test "x$(HTML_IMAGES)" = "x" || ( cd $(srcdir) && cp $(HTML_IMAGES) $(abs_builddir)/html )
- @echo ' DOC Fixing cross-references'
- @gtkdoc-fixxref --module=$(DOC_MODULE) --module-dir=html --html-dir=$(HTML_DIR) $(FIXXREF_OPTIONS)
- @touch html-build.stamp
-
-clean-local-gtkdoc:
- @rm -rf xml tmpl html
-# clean files copied for nonsrcdir templates build
- @if test x"$(srcdir)" != x. ; then \
- rm -rf $(DOC_MODULE).types; \
- fi
-else
-all-local:
-clean-local-gtkdoc:
-endif
-
-clean-local: clean-local-gtkdoc
- @rm -f *~ *.bak
- @rm -rf .libs
-
-distclean-local:
- @rm -f $(REPORT_FILES) \
- $(DOC_MODULE)-decl-list.txt $(DOC_MODULE)-decl.txt
- @rm -rf tmpl/*.sgml.bak
- @rm -f $(DOC_MODULE).hierarchy
- @rm -f *.stamp || true
- @if test "$(abs_srcdir)" != "$(abs_builddir)" ; then \
- rm -f $(DOC_MAIN_SGML_FILE) ; \
- rm -f $(DOC_OVERRIDES) ; \
- rm -f $(DOC_MODULE).types ; \
- rm -f $(DOC_MODULE).interfaces ; \
- rm -f $(DOC_MODULE).prerequisites ; \
- rm -f $(DOC_MODULE)-sections.txt ; \
- rm -f $(content_files) ; \
- rm -rf tmpl/*.sgml ; \
- fi
- @rm -rf *.o
-
-maintainer-clean-local: clean
- @cd $(srcdir) && rm -rf html \
- xml $(DOC_MODULE)-decl-list.txt $(DOC_MODULE)-decl.txt
-
-# thomas: make docs parallel installable; devhelp requires majorminor too
-install-data-local:
- (installfiles=`echo $(builddir)/html/*.sgml $(builddir)/html/*.html $(builddir)/html/*.png $(builddir)/html/*.css`; \
- if test "$$installfiles" = '$(builddir)/html/*.sgml $(builddir)/html/*.html $(builddir)/html/*.png $(builddir)/html/*.css'; \
- then echo '-- Nothing to install' ; \
- else \
- $(mkinstalldirs) $(DESTDIR)$(TARGET_DIR); \
- for i in $$installfiles; do \
- echo '-- Installing '$$i ; \
- $(INSTALL_DATA) $$i $(DESTDIR)$(TARGET_DIR); \
- done; \
- echo '-- Installing $(builddir)/html/$(DOC_MODULE)-@GST_API_VERSION@.devhelp2' ; \
- if test -e $(builddir)/html/$(DOC_MODULE)-@GST_API_VERSION@.devhelp2; then \
- $(INSTALL_DATA) $(builddir)/html/$(DOC_MODULE)-@GST_API_VERSION@.devhelp2 \
- $(DESTDIR)$(TARGET_DIR)/$(DOC_MODULE)-@GST_API_VERSION@.devhelp2; \
- fi; \
- $(GTKDOC_REBASE) --relative --dest-dir=$(DESTDIR) --html-dir=$(DESTDIR)$(TARGET_DIR) || true ; \
- fi)
-uninstall-local:
- if test -d $(DESTDIR)$(TARGET_DIR); then \
- rm -rf $(DESTDIR)$(TARGET_DIR)/*; \
- rmdir -p $(DESTDIR)$(TARGET_DIR) 2>/dev/null || true; \
|
[-]
[+]
|
Deleted |
_service:tar_git:gstreamer1.0-droid-0.20210304.0.tar.gz/common/hooks/install-hooks
^
|
@@ -1,97 +0,0 @@
-#!/bin/bash
-#
-# install-hooks
-#
-# install hooks on git server
-#
-# usage: install-hooks [GIT_REPOSITORY_DIR]
-
-set -e
-
-HOOKS="update post-receive"
-
-# if directory where git repositories are is specified, change into that
-if ! test -z $1 ; then
- cd $1;
-fi
-
-# save it
-gitrepodir=`pwd`
-
-# make backup of previous hooks
-timestamp=`date +%F-%H%M%S`
-for hook in $HOOKS; do
- if [ -e $hook ]; then
- cp $hook $hook.backup-$timestamp
- fi
-done
-
-# now check out the common module with the latest hooks
-tmpdir=`mktemp -d`
-if test -z $tmpdir; then
- echo "Failed to create temp dir"
- exit 1;
-fi
-
-pushd $tmpdir >/dev/null
-git clone --branch=master $gitrepodir/common
-
-# copy over latest hooks into directory with git repositories
-for hook in $HOOKS; do
- cp -v common/hooks/$hook.hook $gitrepodir/$hook
-done
-
-# now switch back to directory where the git repositories are
-popd >/dev/null
-
-# clean up temp checkout of common dir
-rm -rf $tmpdir
-
-# remove backup again if it is identical to the new one
-for hook in $HOOKS; do
- if cmp $hook $hook.backup-$timestamp; then
- rm $hook.backup-$timestamp
- fi
-done
-
-# sanity check if there are any git repositories in here
-if ! ls *.git */*.git 2>/dev/null >&2 ; then
- echo "No git repositories in $(pwd) ?!"
- exit;
-fi
-
-echo "git repository base dir: $gitrepodir"
-
-for repo in *.git */*.git ; do
- if test "$repo" = "sdk/glib.git"; then
- echo "Skipping $repo"
- continue
- fi
- echo "Updating hooks in $repo"
- for hook in $HOOKS; do
- # make sure target hook script actually exists
- if ! test -e $hook ; then
- echo "Hook '$hook' does not exist in $gitrepodir. Aborting.";
- exit 1;
- fi
- # create new hook
- rm -f $repo/hooks/$hook.new
- pushd $repo/hooks >/dev/null
- if [ -e "../../$hook" ] ; then
- ln -s "../../$hook" $hook.new
- elif [ -e "../../../$hook" ] ; then
- ln -s "../../../$hook" $hook.new
- else
- echo "could not find hook script in parent directories ?!"
- exit 1
- fi
- # put new hook in place atomically
- #echo "installing $repo/hooks/$hook"
- mv $hook.new $hook
- # test it to make sure all is good
- cat $hook >/dev/null
- popd >/dev/null
- done
-done
-
-echo "Done"
|
[-]
[+]
|
Deleted |
_service:tar_git:gstreamer1.0-droid-0.20210304.0.tar.gz/common/hooks/post-receive.hook
^
|
@@ -1,293 +0,0 @@
-#!/usr/bin/perl -w
-#
-# Copyright 2005 Alexandre Julliard
-#
-# This program is free software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License as
-# published by the Free Software Foundation; either version 2 of
-# the License, or (at your option) any later version.
-
-use strict;
-use open ':utf8';
-use Encode 'encode';
-use Cwd 'realpath';
-
-binmode STDIN, ':utf8';
-binmode STDOUT, ':utf8';
-
-sub git_config($);
-sub get_repos_name();
-
-# some parameters you may want to change
-
-# set this to something that takes "-s"
-my $mailer = "/usr/bin/mail";
-
-# debug mode
-my $debug = 0;
-
-# configuration parameters
-
-my $project_name = 'gstreamer';
-
-# base URL of the gitweb repository browser
-my $gitweb_url = "http://cgit.freedesktop.org/$project_name";
-
-
-# default repository name
-my $repos_name = get_repos_name();
-
-# max size of diffs in bytes
-my $max_diff_size = 10000;
-
-# address for mail notices
-my $commitlist_address = 'gstreamer-commits@lists.freedesktop.org';
-#my $commitlist_address = 'tpm';
-
-# max number of individual notices before falling back to a single global notice
-my $max_individual_notices = 100;
-
-# format an integer date + timezone as string
-# algorithm taken from git's date.c
-sub format_date($$)
-{
- my ($time,$tz) = @_;
-
- if ($tz < 0)
- {
- my $minutes = (-$tz / 100) * 60 + (-$tz % 100);
- $time -= $minutes * 60;
- }
- else
- {
- my $minutes = ($tz / 100) * 60 + ($tz % 100);
- $time += $minutes * 60;
- }
- return gmtime($time) . sprintf " %+05d", $tz;
-}
-
-# fetch a parameter from the git config file
-sub git_config($)
-{
- my ($param) = @_;
-
- open CONFIG, "-|" or exec "git", "config", $param;
- my $ret = <CONFIG>;
- chomp $ret if $ret;
- close CONFIG or $ret = undef;
- return $ret;
-}
-
-# send an email notification
-sub mail_notification($$$@)
-{
- my ($name, $subject, $content_type, @text) = @_;
- $subject = encode("MIME-Q",$subject);
- if ($debug)
- {
- print "---------------------\n";
- print "To: $name\n";
- print "Subject: $subject\n";
- print "Content-Type: $content_type\n";
- print "\n", join("\n", @text), "\n";
- }
- else
- {
- my $pid = open MAIL, "|-";
- return unless defined $pid;
- if (!$pid)
- {
- exec $mailer, "-s", $subject, $name, or die "Cannot exec $mailer";
- }
- print MAIL join("\n", @text), "\n";
- close MAIL;
- }
-}
-
-# get the default repository name (includes subdirectory, if any)
-sub get_repos_name()
-{
- my $dir = `git rev-parse --git-dir`;
- chomp $dir;
- my $repos = realpath($dir);
- $repos =~ s/(.*?)((\.git\/)?\.git)$/$1/;
- $repos =~ s%(.*\/$project_name)/([^/]+/?[^/]*)/?$%$2%;
- return $repos;
-}
-
-# extract the information from a commit or tag object and return a hash containing the various fields
-sub get_object_info($)
-{
- my $obj = shift;
- my %info = ();
- my @log = ();
- my $do_log = 0;
-
- open TYPE, "-|" or exec "git", "cat-file", "-t", $obj or die "cannot run git-cat-file";
- my $type = <TYPE>;
- chomp $type;
- close TYPE;
-
- open OBJ, "-|" or exec "git", "cat-file", $type, $obj or die "cannot run git-cat-file";
- while (<OBJ>)
- {
- chomp;
- if ($do_log)
- {
- last if /^-----BEGIN PGP SIGNATURE-----/;
- push @log, $_;
- }
- elsif (/^(author|committer|tagger) ((.*)(<.*>)) (\d+) ([+-]\d+)$/)
- {
- $info{$1} = $2;
- $info{$1 . "_name"} = $3;
- $info{$1 . "_email"} = $4;
- $info{$1 . "_date"} = $5;
- $info{$1 . "_tz"} = $6;
- }
- elsif (/^tag (.*)$/)
- {
- $info{"tag"} = $1;
- }
- elsif (/^$/) { $do_log = 1; }
- }
- close OBJ;
-
- $info{"type"} = $type;
- $info{"log"} = \@log;
- return %info;
-}
-
-# send a commit notice to a mailing list
-sub send_commit_notice($$)
-{
- my ($ref,$obj) = @_;
- my %info = get_object_info($obj);
- my @notice = ();
- my $subject;
-
- printf "sending e-mail for $obj\n";
-
- # TODO normal tags are not identified
- if ($info{"type"} eq "tag")
- {
- push @notice,
- "Module: $repos_name",
- "Branch: $ref",
- "Tag: $obj",
- $gitweb_url ? "URL: $gitweb_url/tag/?id=$obj\n" : "",
- "Tagger: " . $info{"tagger"},
- "Date: " . format_date($info{"tagger_date"},$info{"tagger_tz"}),
- "",
- join "\n", @{$info{"log"}};
- $subject = "Tag " . $info{"tag"} . ": " . ${$info{"log"}}[0];
- }
- else
- {
- push @notice,
- "Module: $repos_name",
- "Branch: $ref",
- "Commit: $obj",
- $gitweb_url ? "URL: $gitweb_url/commit/?id=$obj\n" : "",
- "Author: " . $info{"author"},
- "Date: " . format_date($info{"author_date"},$info{"author_tz"}),
- "",
- join "\n", @{$info{"log"}},
- "",
- "---",
- "";
-
|
[-]
[+]
|
Deleted |
_service:tar_git:gstreamer1.0-droid-0.20210304.0.tar.gz/common/hooks/pre-commit.hook
^
|
@@ -1,77 +0,0 @@
-#!/bin/sh
-#
-# Check that the code follows a consistant code style
-#
-
-# Check for existence of indent, and error out if not present.
-# On some *bsd systems the binary seems to be called gnunindent,
-# so check for that first.
-
-version=`gnuindent --version 2>/dev/null`
-if test "x$version" = "x"; then
- version=`indent --version 2>/dev/null`
- if test "x$version" = "x"; then
- echo "GStreamer git pre-commit hook:"
- echo "Did not find GNU indent, please install it before continuing."
- exit 1
- fi
- INDENT=indent
-else
- INDENT=gnuindent
-fi
-
-case `$INDENT --version` in
- GNU*)
- ;;
- default)
- echo "GStreamer git pre-commit hook:"
- echo "Did not find GNU indent, please install it before continuing."
- echo "(Found $INDENT, but it doesn't seem to be GNU indent)"
- exit 1
- ;;
-esac
-
-INDENT_PARAMETERS="--braces-on-if-line \
- --case-brace-indentation0 \
- --case-indentation2 \
- --braces-after-struct-decl-line \
- --line-length80 \
- --no-tabs \
- --cuddle-else \
- --dont-line-up-parentheses \
- --continuation-indentation4 \
- --honour-newlines \
- --tab-size8 \
- --indent-level2 \
- --leave-preprocessor-space"
-
-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
- # revision in the index (and not the checked out version).
- nf=`git checkout-index --temp ${file} | cut -f 1`
- newfile=`mktemp /tmp/${nf}.XXXXXX` || exit 1
- $INDENT ${INDENT_PARAMETERS} \
- $nf -o $newfile 2>> /dev/null
- # FIXME: Call indent twice as it tends to do line-breaks
- # different for every second call.
- $INDENT ${INDENT_PARAMETERS} \
- $newfile 2>> /dev/null
- diff -u -p "${nf}" "${newfile}"
- r=$?
- rm "${newfile}"
- rm "${nf}"
- if [ $r != 0 ] ; then
-echo "================================================================================================="
-echo " Code style error in: $file "
-echo " "
-echo " Please fix before committing. Don't forget to run git add before trying to commit again. "
-echo " If the whole file is to be committed, this should work (run from the top-level directory): "
-echo " "
-echo " gst-indent $file; git add $file; git commit"
-echo " "
-echo "================================================================================================="
- exit 1
- fi
-done
-echo "--Checking style pass--"
|
[-]
[+]
|
Deleted |
_service:tar_git:gstreamer1.0-droid-0.20210304.0.tar.gz/common/hooks/pre-receive.hook
^
|
@@ -1,190 +0,0 @@
-#!/usr/bin/env python
-import sys
-import os
-import subprocess
-
-# This server-side pre-receive hook is to be put and activated in all modules
-# that depend on the common submodule.
-#
-# It will check whether any modifications to the common 'submodule file' has a
-# a valid commit SHA1 that exists in the common module.
-
-def commit_exists(sha1, gitdir):
- """Returns True if the sha1 is a valid commit in the given
- git directory"""
- # FIXME: We're using 'git show' for the time being, but there's a small
- # risk that there might be a valid SHA1 for a non-commit object.
- env = os.environ.copy()
- env["GIT_DIR"] = gitdir
- sub = subprocess.Popen(["git", "show", sha1], env=env,
- stdout=subprocess.PIPE,
- stderr=subprocess.PIPE)
- while True:
- res = sub.poll()
- if res != None:
- return res == 0
-
-# location of the common git module
-COMMON_GIT_DIR = "/git/gstreamer/common.git"
-
-# checks whether the push contains a change to the common submodule,
-# and if so checks that it is changing it to a valid *EXISTING* common
-# commit
-def has_valid_common_change(old, new, ref):
- # 1. Get the latest change to common (if there was any changes)
- sub = subprocess.Popen(["git", "diff", "%s..%s" % (old, new, ), "--", "common"],
- stdout=subprocess.PIPE)
- stdout, stderr = sub.communicate()
-
- print "=> Checking for integrity of common submodule changes"
-
- if stdout != "":
- # Format of submodule special files
- # Subproject commit <SHA1>
-
- # we get a diff, therefore only grab the last line
- lastline = stdout.strip().rsplit('\n',1)[-1]
- if not lastline.startswith("+Subproject commit"):
- # this is bad, it means the diff has changed to something completely
- # different
- return False
- subsha1 = lastline.rsplit(' ', 1)[-1]
- print " Pack wants common to point to", subsha1
- if not commit_exists(subsha1, COMMON_GIT_DIR):
- print
- print " /!\\ Commit does not exist in common git module /!\\"
- print " /!\\ for ref", ref
- print
- print " Attempting to push commits containing modifications to common"
- print " that have not been commited to the actuall common module."
- print
- print " First push your changes to common/ before pushing the changes"
- print " to the module using it."
- print
- return False
-
- print " [OK]"
- print
- return True
-
-def commit_in_valid_branch(sha):
- sub = subprocess.Popen(["git", "branch", "--contains", sha],
- stdout=subprocess.PIPE)
- stdout, stderr = sub.communicate()
- r = stdout.strip()
- return r != ""
-
-# checks whether the push contains merge commits and if so, makes sure that
-# the merge is only between branches present on the repository.
-def contains_valid_merge(old, new, ref):
- sub = subprocess.Popen(["git", "rev-list", "--parents", "%s..%s" % (old, new, )],
- stdout=subprocess.PIPE)
- stdout, stderr = sub.communicate()
-
- res = True
-
- print "=> Checking for merge commits"
-
- for line in stdout.split('\n'):
- if res == False:
- break
- splits = line.strip().split()
- if len(splits) > 2:
- # the commit has more than one parent => it's a merge
- commit = splits[0]
- for parent in splits[1:]:
- if not commit_in_valid_branch(parent):
- print
- print " /!\\ Commit %s" % commit
- print " /!\\ is a merge commit from/to a branch not"
- print " /!\\ present on this repository"
- print
- print " Make sure you are not attempting to push a merge"
- print " from a 3rd party repository"
- print
- print " Make sure you have properly rebased your commits against"
- print " the current official branches"
- print
- res = False
- break
-
- if res:
- print " [OK]"
- print
- return res
-
-# checks whether the first line of any commit message contains a marker
-# that indicates that it's work-in-progress that shouldn't be pushed
-def contains_wip_commits(old, new):
- # Get the commit message header
- sub = subprocess.Popen(["git", "log", "--format=%s", "%s..%s" % (old, new, )], stdout=subprocess.PIPE)
- stdout, stderr = sub.communicate()
- if stdout != "":
- for line in stdout.strip().rsplit('\n',1):
- if line.startswith("!"):
- return True
- if line.startswith("WIP:") or line.startswith("wip:"):
- return True
- return False
-
-pushvalid = True
-error_badcommon = False
-error_badcommit = False
-
-openbranches = ["1.2", "1.0", "master"]
-
-def branch_closed(ref):
- # We only care about branches
- if not ref.startswith("refs/heads/"):
- return False
-
- # Check if it's in the allowed branches
- brname = ref.rsplit("/", 1)[-1].strip()
- if brname in openbranches:
- return False
-
- # Else it's not allowed
- return True
-
-for line in sys.stdin.readlines():
- # ref is the ref to be modified
- # old is the old commit it was pointing to
- # new is the new commit it was pointing to
- old, new, ref = line.split(' ', 2)
-
- pushvalid = has_valid_common_change(old, new, ref)
- if pushvalid == False:
- break
- if branch_closed(ref):
- print ">>>> Attempting to push to", ref
- print ">>>> BRANCH READ-ONLY OR FORBIDDEN"
- print ">>>> PUSH DENIED"
- print
- pushvalid = False
- break
- pushvalid = contains_valid_merge(old, new, ref)
- if pushvalid == False:
- break
- if contains_wip_commits(old, new):
- error_badcommit = True
- pushvalid = False
- break
-
-if pushvalid:
- print " Incoming packet valid, proceeding to actual commit"
- print
- sys.exit(0)
-else:
- if error_badcommit:
- print " Attempting to push commits with commit messages that start"
- print " with '!' or 'WIP:'. Such commit messages are reserved for"
- print " private branches and work in progress to prevent the commits"
- print " from accidentally being pushed to the main repository."
- if error_badcommon:
- print " Attempting to push commits containing modifications to common"
- print " that have not been commited to the actuall common module."
- print
- print " First push your changes to common/ before pushing the changes"
- print " to the module using it."
- sys.exit(-1)
-
|
[-]
[+]
|
Deleted |
_service:tar_git:gstreamer1.0-droid-0.20210304.0.tar.gz/common/hooks/update.hook
^
|
@@ -1,128 +0,0 @@
-#!/bin/sh
-#
-# An example hook script to blocks unannotated tags from entering.
-# Called by "git receive-pack" with arguments: refname sha1-old sha1-new
-#
-# To enable this hook, rename this file to "update".
-#
-# Config
-# ------
-# hooks.allowunannotated
-# This boolean sets whether unannotated tags will be allowed into the
-# repository. By default they won't be.
-# hooks.allowdeletetag
-# This boolean sets whether deleting tags will be allowed in the
-# repository. By default they won't be.
-# hooks.allowmodifytag
-# This boolean sets whether a tag may be modified after creation. By default
-# it won't be.
-# hooks.allowdeletebranch
-# This boolean sets whether deleting branches will be allowed in the
-# repository. By default they won't be.
-# hooks.denycreatebranch
-# This boolean sets whether remotely creating branches will be denied
-# in the repository. By default this is allowed.
-#
-
-# --- Command line
-refname="$1"
-oldrev="$2"
-newrev="$3"
-
-# --- Safety check
-if [ -z "$GIT_DIR" ]; then
- echo "Don't run this script from the command line." >&2
- echo " (if you want, you could supply GIT_DIR then run" >&2
- echo " $0 <ref> <oldrev> <newrev>)" >&2
- exit 1
-fi
-
-if [ -z "$refname" -o -z "$oldrev" -o -z "$newrev" ]; then
- echo "Usage: $0 <ref> <oldrev> <newrev>" >&2
- exit 1
-fi
-
-# --- Config
-allowunannotated=false #$(git config --bool hooks.allowunannotated)
-allowdeletebranch=false #$(git config --bool hooks.allowdeletebranch)
-denycreatebranch=false #$(git config --bool hooks.denycreatebranch)
-allowdeletetag=false #$(git config --bool hooks.allowdeletetag)
-allowmodifytag=true #$(git config --bool hooks.allowmodifytag)
-
-# check for no description
-projectdesc=$(sed -e '1q' "$GIT_DIR/description")
-case "$projectdesc" in
-"Unnamed repository"* | "")
- echo "*** Project description file hasn't been set" >&2
- exit 1
- ;;
-esac
-
-# --- Check types
-# if $newrev is 0000...0000, it's a commit to delete a ref.
-zero="0000000000000000000000000000000000000000"
-if [ "$newrev" = "$zero" ]; then
- newrev_type=delete
-else
- newrev_type=$(git cat-file -t $newrev)
-fi
-
-case "$refname","$newrev_type" in
- refs/tags/*,commit)
- # un-annotated tag
- short_refname=${refname##refs/tags/}
- if [ "$allowunannotated" != "true" ]; then
- echo "*** The un-annotated tag, $short_refname, is not allowed in this repository" >&2
- echo "*** Use 'git tag [ -a | -s ]' for tags you want to propagate." >&2
- exit 1
- fi
- ;;
- refs/tags/*,delete)
- # delete tag
- if [ "$allowdeletetag" != "true" ]; then
- echo "*** Deleting a tag is not allowed in this repository" >&2
- exit 1
- fi
- ;;
- refs/tags/*,tag)
- # annotated tag
- if [ "$allowmodifytag" != "true" ] && git rev-parse $refname > /dev/null 2>&1
- then
- echo "*** Tag '$refname' already exists." >&2
- echo "*** Modifying a tag is not allowed in this repository." >&2
- exit 1
- fi
- ;;
- refs/heads/*,commit)
- # branch
- if [ "$oldrev" = "$zero" -a "$denycreatebranch" = "true" ]; then
- echo "*** Creating a branch is not allowed in this repository" >&2
- exit 1
- fi
- ;;
- refs/heads/*,delete)
- # delete branch
- if [ "$allowdeletebranch" != "true" ]; then
- echo "*** Deleting a branch is not allowed in this repository" >&2
- exit 1
- fi
- ;;
- refs/remotes/*,commit)
- # tracking branch
- ;;
- refs/remotes/*,delete)
- # delete tracking branch
- if [ "$allowdeletebranch" != "true" ]; then
- echo "*** Deleting a tracking branch is not allowed in this repository" >&2
- exit 1
- fi
- ;;
- *)
- # Anything else (is there anything else?)
- echo "*** Update hook: unknown type of update to ref $refname of type $newrev_type" >&2
- exit 1
- ;;
-esac
-
-# --- Finished
-exit 0
|
[-]
[+]
|
Deleted |
_service:tar_git:gstreamer1.0-droid-0.20210304.0.tar.gz/common/m4/.gitignore
^
|
@@ -1,23 +0,0 @@
-codeset.m4
-gettext.m4
-glibc21.m4
-iconv.m4
-intdiv0.m4
-inttypes-pri.m4
-inttypes.m4
-inttypes_h.m4
-isc-posix.m4
-lcmessage.m4
-lib-ld.m4
-lib-link.m4
-lib-prefix.m4
-progtest.m4
-stdint_h.m4
-uintmax_t.m4
-ulonglong.m4
-
-libtool.m4
-ltoptions.m4
-ltsugar.m4
-ltversion.m4
-
|
[-]
[+]
|
Deleted |
_service:tar_git:gstreamer1.0-droid-0.20210304.0.tar.gz/common/m4/Makefile.am
^
|
@@ -1,40 +0,0 @@
-EXTRA_DIST = \
- README \
- as-ac-expand.m4 \
- as-auto-alt.m4 \
- as-compiler-flag.m4 \
- as-compiler.m4 \
- as-docbook.m4 \
- as-gcc-inline-assembly.m4 \
- as-libtool.m4 \
- as-libtool-tags.m4 \
- as-python.m4 \
- as-version.m4 \
- ax_create_stdint_h.m4 \
- glib-gettext.m4 \
- gst-arch.m4 \
- gst-args.m4 \
- gst-check.m4 \
- gst-debuginfo.m4 \
- gst-default.m4 \
- gst-doc.m4 \
- gst-dowhile.m4 \
- gst-error.m4 \
- gst-feature.m4 \
- gst-function.m4 \
- gst-gettext.m4 \
- gst-glib2.m4 \
- gst-libxml2.m4 \
- gst-parser.m4 \
- gst-package-release-datetime.m4 \
- gst-platform.m4 \
- gst-plugindir.m4 \
- gst-plugin-docs.m4 \
- gst-valgrind.m4 \
- gst-x11.m4 \
- gst.m4 \
- gtk-doc.m4 \
- introspection.m4 \
- pkg.m4 \
- check.m4 \
- orc.m4
|
[-]
[+]
|
Deleted |
_service:tar_git:gstreamer1.0-droid-0.20210304.0.tar.gz/common/m4/README
^
|
@@ -1,3 +0,0 @@
-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.
|
[-]
[+]
|
Deleted |
_service:tar_git:gstreamer1.0-droid-0.20210304.0.tar.gz/common/m4/as-ac-expand.m4
^
|
@@ -1,43 +0,0 @@
-dnl as-ac-expand.m4 0.2.0
-dnl autostars m4 macro for expanding directories using configure's prefix
-dnl thomas@apestaart.org
-
-dnl AS_AC_EXPAND(VAR, CONFIGURE_VAR)
-dnl example
-dnl AS_AC_EXPAND(SYSCONFDIR, $sysconfdir)
-dnl will set SYSCONFDIR to /usr/local/etc if prefix=/usr/local
-
-AC_DEFUN([AS_AC_EXPAND],
-[
- EXP_VAR=[$1]
- FROM_VAR=[$2]
-
- dnl first expand prefix and exec_prefix if necessary
- prefix_save=$prefix
- exec_prefix_save=$exec_prefix
-
- dnl if no prefix given, then use /usr/local, the default prefix
- if test "x$prefix" = "xNONE"; then
- prefix="$ac_default_prefix"
- fi
- dnl if no exec_prefix given, then use prefix
- if test "x$exec_prefix" = "xNONE"; then
- exec_prefix=$prefix
- fi
-
- full_var="$FROM_VAR"
- dnl loop until it doesn't change anymore
- while true; do
- new_full_var="`eval echo $full_var`"
- if test "x$new_full_var" = "x$full_var"; then break; fi
- full_var=$new_full_var
- done
-
- dnl clean up
- full_var=$new_full_var
- AC_SUBST([$1], "$full_var")
-
- dnl restore prefix and exec_prefix
- prefix=$prefix_save
- exec_prefix=$exec_prefix_save
-])
|
[-]
[+]
|
Deleted |
_service:tar_git:gstreamer1.0-droid-0.20210304.0.tar.gz/common/m4/as-auto-alt.m4
^
|
@@ -1,50 +0,0 @@
-dnl as-auto-alt.m4 0.0.2
-dnl autostars m4 macro for supplying alternate autotools versions to configure
-dnl thomas@apestaart.org
-dnl
-dnl AS_AUTOTOOLS_ALTERNATE()
-dnl
-dnl supplies --with arguments for autoconf, autoheader, automake, aclocal
-
-AC_DEFUN([AS_AUTOTOOLS_ALTERNATE],
-[
- dnl allow for different autoconf version
- AC_ARG_WITH(autoconf,
- AC_HELP_STRING([--with-autoconf],
- [use a different autoconf for regeneration of Makefiles]),
- [
- unset AUTOCONF
- AM_MISSING_PROG(AUTOCONF, ${withval})
- AC_MSG_NOTICE([Using $AUTOCONF as autoconf])
- ])
-
- dnl allow for different autoheader version
- AC_ARG_WITH(autoheader,
- AC_HELP_STRING([--with-autoheader],
- [use a different autoheader for regeneration of Makefiles]),
- [
- unset AUTOHEADER
- AM_MISSING_PROG(AUTOHEADER, ${withval})
- AC_MSG_NOTICE([Using $AUTOHEADER as autoheader])
- ])
-
- dnl allow for different automake version
- AC_ARG_WITH(automake,
- AC_HELP_STRING([--with-automake],
- [use a different automake for regeneration of Makefiles]),
- [
- unset AUTOMAKE
- AM_MISSING_PROG(AUTOMAKE, ${withval})
- AC_MSG_NOTICE([Using $AUTOMAKE as automake])
- ])
-
- dnl allow for different aclocal version
- AC_ARG_WITH(aclocal,
- AC_HELP_STRING([--with-aclocal],
- [use a different aclocal for regeneration of Makefiles]),
- [
- unset ACLOCAL
- AM_MISSING_PROG(ACLOCAL, ${withval})
- AC_MSG_NOTICE([Using $ACLOCAL as aclocal])
- ])
-])
|
[-]
[+]
|
Deleted |
_service:tar_git:gstreamer1.0-droid-0.20210304.0.tar.gz/common/m4/as-compiler-flag.m4
^
|
@@ -1,96 +0,0 @@
-dnl as-compiler-flag.m4 0.1.0
-
-dnl autostars m4 macro for detection of compiler flags
-
-dnl David Schleef <ds@schleef.org>
-dnl Tim-Philipp Müller <tim centricular net>
-
-dnl AS_COMPILER_FLAG(CFLAGS, ACTION-IF-ACCEPTED, [ACTION-IF-NOT-ACCEPTED])
-dnl Tries to compile with the given CFLAGS.
-dnl Runs ACTION-IF-ACCEPTED if the compiler can compile with the flags,
-dnl and ACTION-IF-NOT-ACCEPTED otherwise.
-
-AC_DEFUN([AS_COMPILER_FLAG],
-[
- AC_MSG_CHECKING([to see if compiler understands $1])
-
- save_CFLAGS="$CFLAGS"
- CFLAGS="$CFLAGS $1"
-
- AC_TRY_COMPILE([ ], [], [flag_ok=yes], [flag_ok=no])
- CFLAGS="$save_CFLAGS"
-
- if test "X$flag_ok" = Xyes ; then
- $2
- true
- else
- $3
- true
- fi
- AC_MSG_RESULT([$flag_ok])
-])
-
-dnl AS_CXX_COMPILER_FLAG(CPPFLAGS, ACTION-IF-ACCEPTED, [ACTION-IF-NOT-ACCEPTED])
-dnl Tries to compile with the given CPPFLAGS.
-dnl Runs ACTION-IF-ACCEPTED if the compiler can compile with the flags,
-dnl and ACTION-IF-NOT-ACCEPTED otherwise.
-
-AC_DEFUN([AS_CXX_COMPILER_FLAG],
-[
- AC_REQUIRE([AC_PROG_CXX])
-
- AC_MSG_CHECKING([to see if c++ compiler understands $1])
-
- save_CPPFLAGS="$CPPFLAGS"
- CPPFLAGS="$CPPFLAGS $1"
-
- AC_LANG_PUSH(C++)
-
- AC_TRY_COMPILE([ ], [], [flag_ok=yes], [flag_ok=no])
- CPPFLAGS="$save_CPPFLAGS"
-
- if test "X$flag_ok" = Xyes ; then
- $2
- true
- else
- $3
- true
- fi
-
- AC_LANG_POP(C++)
-
- AC_MSG_RESULT([$flag_ok])
-])
-
-dnl AS_OBJC_COMPILER_FLAG(CPPFLAGS, ACTION-IF-ACCEPTED, [ACTION-IF-NOT-ACCEPTED])
-dnl Tries to compile with the given CPPFLAGS.
-dnl Runs ACTION-IF-ACCEPTED if the compiler can compile with the flags,
-dnl and ACTION-IF-NOT-ACCEPTED otherwise.
-
-AC_DEFUN([AS_OBJC_COMPILER_FLAG],
-[
- AC_REQUIRE([AC_PROG_OBJC])
-
- AC_MSG_CHECKING([to see if Objective C compiler understands $1])
-
- save_CPPFLAGS="$CPPFLAGS"
- CPPFLAGS="$CPPFLAGS $1"
-
- AC_LANG_PUSH([Objective C])
-
- AC_TRY_COMPILE([ ], [], [flag_ok=yes], [flag_ok=no])
- CPPFLAGS="$save_CPPFLAGS"
-
- if test "X$flag_ok" = Xyes ; then
- $2
- true
- else
- $3
- true
- fi
-
- AC_LANG_POP([Objective C])
-
- AC_MSG_RESULT([$flag_ok])
-])
-
|
[-]
[+]
|
Deleted |
_service:tar_git:gstreamer1.0-droid-0.20210304.0.tar.gz/common/m4/as-compiler.m4
^
|
@@ -1,44 +0,0 @@
-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 - forte
-dnl - (empty) if no guess could be made
-
-AC_DEFUN([AS_COMPILER],
-[
- as_compiler=
- AC_MSG_CHECKING(for compiler flavour)
-
- dnl is it gcc ?
- if test "x$GCC" = "xyes"; then
- as_compiler="gcc"
- fi
-
- dnl is it forte ?
- AC_TRY_RUN([
-int main
-(int argc, char *argv[])
-{
-#ifdef __sun
- return 0;
-#else
- return 1;
-#endif
-}
- ], as_compiler="forte", ,)
-
- if test "x$as_compiler" = "x"; then
- AC_MSG_RESULT([unknown !])
- else
- AC_MSG_RESULT($as_compiler)
- fi
- [$1]=$as_compiler
-])
|
[-]
[+]
|
Deleted |
_service:tar_git:gstreamer1.0-droid-0.20210304.0.tar.gz/common/m4/as-docbook.m4
^
|
@@ -1,78 +0,0 @@
-dnl AS_DOCBOOK([, ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]])
-dnl checks if xsltproc can build docbook documentation
-dnl (which is possible if the catalog is set up properly
-dnl I also tried checking for a specific version and type of docbook
-dnl but xsltproc seemed to happily run anyway, so we can't check for that
-dnl and version
-dnl this macro takes inspiration from
-dnl http://www.movement.uklinux.net/docs/docbook-autotools/configure.html
-AC_DEFUN([AS_DOCBOOK],
-[
- XSLTPROC_FLAGS=--nonet
- DOCBOOK_ROOT=
- TYPE_LC=xml
- TYPE_UC=XML
- DOCBOOK_VERSION=4.1.2
-
- if test -n "$XML_CATALOG_FILES"; then
- oldIFS=$IFS
- IFS=' '
- for xml_catalog_file in $XML_CATALOG_FILES; do
- if test -f $xml_catalog_file; then
- XML_CATALOG=$xml_catalog_file
- CAT_ENTRY_START='<!--'
- CAT_ENTRY_END='-->'
- break
- fi
- done
- IFS=$oldIFS
- elif test ! -f /etc/xml/catalog; then
- for i in /usr/share/sgml/docbook/stylesheet/xsl/nwalsh /usr/share/sgml/docbook/xsl-stylesheets/ /usr/local/share/xsl/docbook ;
- do
- if test -d "$i"; then
- DOCBOOK_ROOT=$i
- fi
- done
- else
- XML_CATALOG=/etc/xml/catalog
- CAT_ENTRY_START='<!--'
- CAT_ENTRY_END='-->'
- fi
-
- dnl We need xsltproc to process the test
- AC_CHECK_PROG(XSLTPROC,xsltproc,xsltproc,)
- XSLTPROC_WORKS=no
- if test -n "$XSLTPROC"; then
- AC_MSG_CHECKING([whether xsltproc docbook processing works])
-
- if test -n "$XML_CATALOG"; then
- DB_FILE="http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl"
- else
- DB_FILE="$DOCBOOK_ROOT/xhtml/docbook.xsl"
- fi
- $XSLTPROC $XSLTPROC_FLAGS $DB_FILE >/dev/null 2>&1 << END
-<?xml version="1.0" encoding='ISO-8859-1'?>
-<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook $TYPE_UC V$DOCBOOK_VERSION//EN" "http://www.oasis-open.org/docbook/$TYPE_LC/$DOCBOOK_VERSION/docbookx.dtd">
-<book id="test">
-</book>
-END
- if test "$?" = 0; then
- XSLTPROC_WORKS=yes
- fi
- AC_MSG_RESULT($XSLTPROC_WORKS)
- fi
-
- if test "x$XSLTPROC_WORKS" = "xyes"; then
- dnl execute ACTION-IF-FOUND
- ifelse([$1], , :, [$1])
- else
- dnl execute ACTION-IF-NOT-FOUND
- ifelse([$2], , :, [$2])
- fi
-
- AC_SUBST(XML_CATALOG)
- AC_SUBST(XSLTPROC_FLAGS)
- AC_SUBST(DOCBOOK_ROOT)
- AC_SUBST(CAT_ENTRY_START)
- AC_SUBST(CAT_ENTRY_END)
-])
|
[-]
[+]
|
Deleted |
_service:tar_git:gstreamer1.0-droid-0.20210304.0.tar.gz/common/m4/as-gcc-inline-assembly.m4
^
|
@@ -1,52 +0,0 @@
-dnl as-gcc-inline-assembly.m4 0.1.0
-
-dnl autostars m4 macro for detection of gcc inline assembly
-
-dnl David Schleef <ds@schleef.org>
-
-dnl $Id$
-
-dnl AS_COMPILER_FLAG(ACTION-IF-ACCEPTED, [ACTION-IF-NOT-ACCEPTED])
-dnl Tries to compile with the given CFLAGS.
-dnl Runs ACTION-IF-ACCEPTED if the compiler can compile with the flags,
-dnl and ACTION-IF-NOT-ACCEPTED otherwise.
-
-AC_DEFUN([AS_GCC_INLINE_ASSEMBLY],
-[
- AC_MSG_CHECKING([if compiler supports gcc-style inline assembly])
-
- AC_TRY_COMPILE([], [
-#ifdef __GNUC_MINOR__
-#if (__GNUC__ * 1000 + __GNUC_MINOR__) < 3004
-#error GCC before 3.4 has critical bugs compiling inline assembly
-#endif
-#endif
-__asm__ (""::) ], [flag_ok=yes], [flag_ok=no])
-
- if test "X$flag_ok" = Xyes ; then
- $1
- true
- else
- $2
- true
- fi
- AC_MSG_RESULT([$flag_ok])
-])
-
-
-AC_DEFUN([AS_GCC_ASM_POWERPC_FPU],
-[
- AC_MSG_CHECKING([if compiler supports FPU instructions on PowerPC])
-
- AC_TRY_COMPILE([], [__asm__ ("fadd 0,0,0"::) ], [flag_ok=yes], [flag_ok=no])
-
- if test "X$flag_ok" = Xyes ; then
- $1
- true
- else
- $2
- true
- fi
- AC_MSG_RESULT([$flag_ok])
-])
-
|
[-]
[+]
|
Deleted |
_service:tar_git:gstreamer1.0-droid-0.20210304.0.tar.gz/common/m4/as-libtool-tags.m4
^
|
@@ -1,83 +0,0 @@
-dnl as-libtool-tags.m4 0.1.4
-
-dnl autostars m4 macro for selecting libtool "tags" (languages)
-
-dnl Andy Wingo does not claim credit for this macro
-dnl backported from libtool 1.6 by Paolo Bonzini
-dnl see http://lists.gnu.org/archive/html/libtool/2003-12/msg00007.html
-
-dnl $Id$
-
-dnl AS_LIBTOOL_TAGS([tags...])
-
-dnl example
-dnl AS_LIBTOOL_TAGS([]) for only C (no fortran, etc)
-
-dnl When AC_LIBTOOL_TAGS is used, I redefine _LT_AC_TAGCONFIG
-dnl to be more similar to the libtool 1.6 implementation, which
-dnl uses an m4 loop and m4 case instead of a shell loop. This
-dnl way the CXX/GCJ/F77/RC tests are not always expanded.
-
-dnl AS_LIBTOOL_TAGS
-dnl ---------------
-dnl tags to enable
-AC_DEFUN([AS_LIBTOOL_TAGS],
-[m4_define([_LT_TAGS],[$1])
-m4_define([_LT_AC_TAGCONFIG], [
- # redefined LT AC TAGCONFIG
- if test -f "$ltmain"; then
- if test ! -f "${ofile}"; then
- AC_MSG_WARN([output file `$ofile' does not exist])
- fi
-
- if test -z "$LTCC"; then
- eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
- if test -z "$LTCC"; then
- AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
- else
- AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
- fi
- fi
-
- AC_FOREACH([_LT_TAG], _LT_TAGS,
- echo THOMAS: tag _LT_TAG
- [m4_case(_LT_TAG,
- [CXX], [
- if test -n "$CXX" && test "X$CXX" != "Xno"; then
- echo "THOMAS: YAY CXX"
- AC_LIBTOOL_LANG_CXX_CONFIG
- available_tags="$available_tags _LT_TAG"
- fi],
- [F77], [
- if test -n "$F77" && test "X$F77" != "Xno"; then
- AC_LIBTOOL_LANG_F77_CONFIG
- available_tags="$available_tags _LT_TAG"
- fi],
- [GCJ], [
- if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
- AC_LIBTOOL_LANG_GCJ_CONFIG
- available_tags="$available_tags _LT_TAG"
- fi],
- [RC], [
- if test -n "$RC" && test "X$RC" != "Xno"; then
- AC_LIBTOOL_LANG_RC_CONFIG
- available_tags="$available_tags _LT_TAG"
- fi],
- [m4_errprintn(m4_location[: error: invalid tag name: ]"_LT_TAG")
- m4_exit(1)])
- ])
- echo THOMAS: available tags: $available_tags
- fi
- # Now substitute the updated list of available tags.
- if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
- mv "${ofile}T" "$ofile"
- chmod +x "$ofile"
- AC_MSG_NOTICE([updated available libtool tags with $available_tags.])
- else
- rm -f "${ofile}T"
- AC_MSG_ERROR([unable to update list of available tagged configurations.])
-
- fi
-
-])dnl _LT_AC_TAG_CONFIG
-])
|
[-]
[+]
|
Deleted |
_service:tar_git:gstreamer1.0-droid-0.20210304.0.tar.gz/common/m4/as-libtool.m4
^
|
@@ -1,46 +0,0 @@
-dnl as-libtool.m4 0.1.4
-
-dnl autostars m4 macro for libtool versioning
-
-dnl Thomas Vander Stichele <thomas at apestaart dot org>
-
-dnl $Id: as-libtool.m4,v 1.10 2005/10/15 13:44:23 thomasvs Exp $
-
-dnl AS_LIBTOOL(PREFIX, CURRENT, REVISION, AGE, [RELEASE])
-
-dnl example
-dnl AS_LIBTOOL(GST, 2, 0, 0)
-
-dnl this macro
-dnl - defines [$PREFIX]_CURRENT, REVISION and AGE
-dnl - defines [$PREFIX]_LIBVERSION
-dnl - defines [$PREFIX]_LT_LDFLAGS to set versioning
-dnl - AC_SUBST's them all
-
-dnl if RELEASE is given, then add a -release option to the LDFLAGS
-dnl with the given release version
-dnl then use [$PREFIX]_LT_LDFLAGS in the relevant Makefile.am's
-
-dnl call AM_PROG_LIBTOOL after this call
-
-AC_DEFUN([AS_LIBTOOL],
-[
- [$1]_CURRENT=[$2]
- [$1]_REVISION=[$3]
- [$1]_AGE=[$4]
- [$1]_LIBVERSION=[$2]:[$3]:[$4]
- AC_SUBST([$1]_CURRENT)
- AC_SUBST([$1]_REVISION)
- AC_SUBST([$1]_AGE)
- AC_SUBST([$1]_LIBVERSION)
-
- [$1]_LT_LDFLAGS="$[$1]_LT_LDFLAGS -version-info $[$1]_LIBVERSION"
- if test ! -z "[$5]"
- then
- [$1]_LT_LDFLAGS="$[$1]_LT_LDFLAGS -release [$5]"
- fi
- AC_SUBST([$1]_LT_LDFLAGS)
-
- LT_PREREQ([2.2.6])
- LT_INIT([dlopen win32-dll disable-static])
-])
|
[-]
[+]
|
Deleted |
_service:tar_git:gstreamer1.0-droid-0.20210304.0.tar.gz/common/m4/as-python.m4
^
|
@@ -1,152 +0,0 @@
-## ------------------------
-## Python file handling
-## From Andrew Dalke
-## Updated by James Henstridge
-## Updated by Andy Wingo to loop through possible pythons
-## ------------------------
-
-# AS_PATH_PYTHON([MINIMUM-VERSION])
-
-# Adds support for distributing Python modules and packages. To
-# install modules, copy them to $(pythondir), using the python_PYTHON
-# automake variable. To install a package with the same name as the
-# automake package, install to $(pkgpythondir), or use the
-# pkgpython_PYTHON automake variable.
-
-# The variables $(pyexecdir) and $(pkgpyexecdir) are provided as
-# locations to install python extension modules (shared libraries).
-# Another macro is required to find the appropriate flags to compile
-# extension modules.
-
-# If your package is configured with a different prefix to python,
-# users will have to add the install directory to the PYTHONPATH
-# environment variable, or create a .pth file (see the python
-# documentation for details).
-
-# If the MINIMUM-VERSION argument is passed, AS_PATH_PYTHON will
-# cause an error if the version of python installed on the system
-# doesn't meet the requirement. MINIMUM-VERSION should consist of
-# numbers and dots only.
-
-# Updated to loop over all possible python binaries by Andy Wingo
-# <wingo@pobox.com>
-# Updated to only warn and unset PYTHON if no good one is found
-
-AC_DEFUN([AS_PATH_PYTHON],
- [
- dnl Find a version of Python. I could check for python versions 1.4
- dnl or earlier, but the default installation locations changed from
- dnl $prefix/lib/site-python in 1.4 to $prefix/lib/python1.5/site-packages
- dnl in 1.5, and I don't want to maintain that logic.
-
- dnl should we do the version check?
- PYTHON_CANDIDATES="python python2.2 python2.1 python2.0 python2 \
- python1.6 python1.5"
- ifelse([$1],[],
- [AC_PATH_PROG(PYTHON, $PYTHON_CANDIDATES)],
- [
- AC_MSG_NOTICE(Looking for Python version >= $1)
- changequote(<<, >>)dnl
- prog="
-import sys, string
-minver = '$1'
-# split string by '.' and convert to numeric
-minver_info = map(string.atoi, string.split(minver, '.'))
-# we can now do comparisons on the two lists:
-if sys.version_info >= tuple(minver_info):
- sys.exit(0)
-else:
- sys.exit(1)"
- changequote([, ])dnl
-
- python_good=false
- for python_candidate in $PYTHON_CANDIDATES; do
- unset PYTHON
- AC_PATH_PROG(PYTHON, $python_candidate) 1> /dev/null 2> /dev/null
-
- if test "x$PYTHON" = "x"; then continue; fi
-
- if $PYTHON -c "$prog" 1>&AC_FD_CC 2>&AC_FD_CC; then
- AC_MSG_CHECKING(["$PYTHON":])
- AC_MSG_RESULT([okay])
- python_good=true
- break;
- else
- dnl clear the cache val
- unset ac_cv_path_PYTHON
- fi
- done
- ])
-
- if test "$python_good" != "true"; then
- AC_MSG_WARN([No suitable version of python found])
- PYTHON=
- else
-
- AC_MSG_CHECKING([local Python configuration])
-
- dnl Query Python for its version number. Getting [:3] seems to be
- dnl the best way to do this; it's what "site.py" does in the standard
- dnl library. Need to change quote character because of [:3]
-
- AC_SUBST(PYTHON_VERSION)
- changequote(<<, >>)dnl
- PYTHON_VERSION=`$PYTHON -c "import sys; print sys.version[:3]"`
- changequote([, ])dnl
-
-
- dnl Use the values of $prefix and $exec_prefix for the corresponding
- dnl values of PYTHON_PREFIX and PYTHON_EXEC_PREFIX. These are made
- dnl distinct variables so they can be overridden if need be. However,
- dnl general consensus is that you shouldn't need this ability.
-
- AC_SUBST(PYTHON_PREFIX)
- PYTHON_PREFIX='${prefix}'
-
- AC_SUBST(PYTHON_EXEC_PREFIX)
- PYTHON_EXEC_PREFIX='${exec_prefix}'
-
- dnl At times (like when building shared libraries) you may want
- dnl to know which OS platform Python thinks this is.
-
- AC_SUBST(PYTHON_PLATFORM)
- PYTHON_PLATFORM=`$PYTHON -c "import sys; print sys.platform"`
-
-
- dnl Set up 4 directories:
-
- dnl pythondir -- where to install python scripts. This is the
- dnl site-packages directory, not the python standard library
- dnl directory like in previous automake betas. This behaviour
- dnl is more consistent with lispdir.m4 for example.
- dnl
- dnl Also, if the package prefix isn't the same as python's prefix,
- dnl then the old $(pythondir) was pretty useless.
-
- AC_SUBST(pythondir)
- pythondir=$PYTHON_PREFIX"/lib/python"$PYTHON_VERSION/site-packages
-
- dnl pkgpythondir -- $PACKAGE directory under pythondir. Was
- dnl PYTHON_SITE_PACKAGE in previous betas, but this naming is
- dnl more consistent with the rest of automake.
- dnl Maybe this should be put in python.am?
-
- AC_SUBST(pkgpythondir)
- pkgpythondir=\${pythondir}/$PACKAGE
-
- dnl pyexecdir -- directory for installing python extension modules
- dnl (shared libraries) Was PYTHON_SITE_EXEC in previous betas.
-
- AC_SUBST(pyexecdir)
- pyexecdir=$PYTHON_EXEC_PREFIX"/lib/python"$PYTHON_VERSION/site-packages
-
- dnl pkgpyexecdir -- $(pyexecdir)/$(PACKAGE)
- dnl Maybe this should be put in python.am?
-
- AC_SUBST(pkgpyexecdir)
- pkgpyexecdir=\${pyexecdir}/$PACKAGE
-
- AC_MSG_RESULT([looks good])
-
- fi
-])
|
[-]
[+]
|
Deleted |
_service:tar_git:gstreamer1.0-droid-0.20210304.0.tar.gz/common/m4/as-version.m4
^
|
@@ -1,75 +0,0 @@
-dnl as-version.m4 0.2.0
-
-dnl autostars m4 macro for versioning
-
-dnl Thomas Vander Stichele <thomas at apestaart dot org>
-
-dnl $Id: as-version.m4,v 1.15 2006/04/01 09:40:24 thomasvs Exp $
-
-dnl AS_VERSION
-
-dnl example
-dnl AS_VERSION
-
-dnl this macro
-dnl - AC_SUBST's PACKAGE_VERSION_MAJOR, _MINOR, _MICRO
-dnl - AC_SUBST's PACKAGE_VERSION_RELEASE,
-dnl which can be used for rpm release fields
-dnl - doesn't call AM_INIT_AUTOMAKE anymore because it prevents
-dnl maintainer mode from running correctly
-dnl
-dnl don't forget to put #undef PACKAGE_VERSION_RELEASE in acconfig.h
-dnl if you use acconfig.h
-
-AC_DEFUN([AS_VERSION],
-[
- PACKAGE_VERSION_MAJOR=$(echo AC_PACKAGE_VERSION | cut -d'.' -f1)
- PACKAGE_VERSION_MINOR=$(echo AC_PACKAGE_VERSION | cut -d'.' -f2)
- PACKAGE_VERSION_MICRO=$(echo AC_PACKAGE_VERSION | cut -d'.' -f3)
-
- AC_SUBST(PACKAGE_VERSION_MAJOR)
- AC_SUBST(PACKAGE_VERSION_MINOR)
- AC_SUBST(PACKAGE_VERSION_MICRO)
-])
-
-dnl AS_NANO(ACTION-IF-NANO-NON-NULL, [ACTION-IF-NANO-NULL])
-
-dnl requires AC_INIT to be called before
-dnl For projects using a fourth or nano number in your versioning to indicate
-dnl development or prerelease snapshots, this macro allows the build to be
-dnl set up differently accordingly.
-
-dnl this macro:
-dnl - parses AC_PACKAGE_VERSION, set by AC_INIT, and extracts the nano number
-dnl - sets the variable PACKAGE_VERSION_NANO
-dnl - sets the variable PACKAGE_VERSION_RELEASE, which can be used
-dnl for rpm release fields
-dnl - executes ACTION-IF-NANO-NON-NULL or ACTION-IF-NANO-NULL
-
-dnl example:
-dnl AS_NANO(RELEASE="yes", RELEASE="no")
-
-AC_DEFUN([AS_NANO],
-[
- AC_MSG_CHECKING(nano version)
-
- NANO=$(echo AC_PACKAGE_VERSION | cut -d'.' -f4)
-
- if test x"$NANO" = x || test "x$NANO" = "x0" ; then
- AC_MSG_RESULT([0 (release)])
- NANO=0
- PACKAGE_VERSION_RELEASE=1
- ifelse([$1], , :, [$1])
- else
- AC_MSG_RESULT($NANO)
- PACKAGE_VERSION_RELEASE=0.`date +%Y%m%d.%H%M%S`
- if test "x$NANO" != "x1" ; then
- ifelse([$1], , :, [$1])
- else
- ifelse([$2], , :, [$2])
- fi
- fi
- PACKAGE_VERSION_NANO=$NANO
- AC_SUBST(PACKAGE_VERSION_NANO)
- AC_SUBST(PACKAGE_VERSION_RELEASE)
-])
|
[-]
[+]
|
Deleted |
_service:tar_git:gstreamer1.0-droid-0.20210304.0.tar.gz/common/m4/ax_create_stdint_h.m4
^
|
@@ -1,734 +0,0 @@
-##### http://autoconf-archive.cryp.to/ax_create_stdint_h.html
-#
-# SYNOPSIS
-#
-# AX_CREATE_STDINT_H [( HEADER-TO-GENERATE [, HEDERS-TO-CHECK])]
-#
-# DESCRIPTION
-#
-# the "ISO C9X: 7.18 Integer types <stdint.h>" section requires the
-# existence of an include file <stdint.h> that defines a set of
-# typedefs, especially uint8_t,int32_t,uintptr_t. Many older
-# installations will not provide this file, but some will have the
-# very same definitions in <inttypes.h>. In other enviroments we can
-# use the inet-types in <sys/types.h> which would define the typedefs
-# int8_t and u_int8_t respectivly.
-#
-# This macros will create a local "_stdint.h" or the headerfile given
-# as an argument. In many cases that file will just "#include
-# <stdint.h>" or "#include <inttypes.h>", while in other environments
-# it will provide the set of basic 'stdint's definitions/typedefs:
-#
-# int8_t,uint8_t,int16_t,uint16_t,int32_t,uint32_t,intptr_t,uintptr_t
-# int_least32_t.. int_fast32_t.. intmax_t
-#
-# which may or may not rely on the definitions of other files, or
-# using the AC_CHECK_SIZEOF macro to determine the actual sizeof each
-# type.
-#
-# if your header files require the stdint-types you will want to
-# create an installable file mylib-int.h that all your other
-# installable header may include. So if you have a library package
-# named "mylib", just use
-#
-# AX_CREATE_STDINT_H(mylib-int.h)
-#
-# in configure.ac and go to install that very header file in
-# Makefile.am along with the other headers (mylib.h) - and the
-# mylib-specific headers can simply use "#include <mylib-int.h>" to
-# obtain the stdint-types.
-#
-# Remember, if the system already had a valid <stdint.h>, the
-# generated file will include it directly. No need for fuzzy
-# HAVE_STDINT_H things... (oops, GCC 4.2.x has deliberatly disabled
-# its stdint.h for non-c99 compilation and the c99-mode is not the
-# default. Therefore this macro will not use the compiler's stdint.h
-# - please complain to the GCC developers).
-#
-# LAST MODIFICATION
-#
-# 2007-06-27
-#
-# COPYLEFT
-#
-# Copyright (c) 2007 Guido U. Draheim <guidod@gmx.de>
-#
-# This program is free software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License as
-# published by the Free Software Foundation; either version 2 of the
-# License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-# General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
-# 02111-1307, USA.
-#
-# As a special exception, the respective Autoconf Macro's copyright
-# owner gives unlimited permission to copy, distribute and modify the
-# configure scripts that are the output of Autoconf when processing
-# the Macro. You need not follow the terms of the GNU General Public
-# License when using or distributing such scripts, even though
-# portions of the text of the Macro appear in them. The GNU General
-# Public License (GPL) does govern all other use of the material that
-# constitutes the Autoconf Macro.
-#
-# This special exception to the GPL applies to versions of the
-# Autoconf Macro released by the Autoconf Macro Archive. When you
-# make and distribute a modified version of the Autoconf Macro, you
-# may extend this special exception to the GPL to apply to your
-# modified version as well.
-
-AC_DEFUN([AX_CHECK_DATA_MODEL],[
- AC_CHECK_SIZEOF(char)
- AC_CHECK_SIZEOF(short)
- AC_CHECK_SIZEOF(int)
- AC_CHECK_SIZEOF(long)
- AC_CHECK_SIZEOF(void*)
- ac_cv_char_data_model=""
- ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_char"
- ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_short"
- ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_int"
- ac_cv_long_data_model=""
- ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_int"
- ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_long"
- ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_voidp"
- AC_MSG_CHECKING([data model])
- case "$ac_cv_char_data_model/$ac_cv_long_data_model" in
- 122/242) ac_cv_data_model="IP16" ; n="standard 16bit machine" ;;
- 122/244) ac_cv_data_model="LP32" ; n="standard 32bit machine" ;;
- 122/*) ac_cv_data_model="i16" ; n="unusual int16 model" ;;
- 124/444) ac_cv_data_model="ILP32" ; n="standard 32bit unixish" ;;
- 124/488) ac_cv_data_model="LP64" ; n="standard 64bit unixish" ;;
- 124/448) ac_cv_data_model="LLP64" ; n="unusual 64bit unixish" ;;
- 124/*) ac_cv_data_model="i32" ; n="unusual int32 model" ;;
- 128/888) ac_cv_data_model="ILP64" ; n="unusual 64bit numeric" ;;
- 128/*) ac_cv_data_model="i64" ; n="unusual int64 model" ;;
- 222/*2) ac_cv_data_model="DSP16" ; n="strict 16bit dsptype" ;;
- 333/*3) ac_cv_data_model="DSP24" ; n="strict 24bit dsptype" ;;
- 444/*4) ac_cv_data_model="DSP32" ; n="strict 32bit dsptype" ;;
- 666/*6) ac_cv_data_model="DSP48" ; n="strict 48bit dsptype" ;;
- 888/*8) ac_cv_data_model="DSP64" ; n="strict 64bit dsptype" ;;
- 222/*|333/*|444/*|666/*|888/*) :
- ac_cv_data_model="iDSP" ; n="unusual dsptype" ;;
- *) ac_cv_data_model="none" ; n="very unusual model" ;;
- esac
- AC_MSG_RESULT([$ac_cv_data_model ($ac_cv_long_data_model, $n)])
-])
-
-dnl AX_CHECK_HEADER_STDINT_X([HEADERLIST][,ACTION-IF])
-AC_DEFUN([AX_CHECK_HEADER_STDINT_X],[
-AC_CACHE_CHECK([for stdint uintptr_t], [ac_cv_header_stdint_x],[
- ac_cv_header_stdint_x="" # the 1997 typedefs (inttypes.h)
- AC_MSG_RESULT([(..)])
- for i in m4_ifval([$1],[$1],[stdint.h inttypes.h sys/inttypes.h sys/types.h])
- do
- unset ac_cv_type_uintptr_t
- unset ac_cv_type_uint64_t
- AC_CHECK_TYPE(uintptr_t,[ac_cv_header_stdint_x=$i],continue,[#include <$i>])
- AC_CHECK_TYPE(uint64_t,[and64="/uint64_t"],[and64=""],[#include<$i>])
- m4_ifvaln([$2],[$2]) break
- done
- AC_MSG_CHECKING([for stdint uintptr_t])
- ])
-])
-
-AC_DEFUN([AX_CHECK_HEADER_STDINT_O],[
-AC_CACHE_CHECK([for stdint uint32_t], [ac_cv_header_stdint_o],[
- ac_cv_header_stdint_o="" # the 1995 typedefs (sys/inttypes.h)
- AC_MSG_RESULT([(..)])
- for i in m4_ifval([$1],[$1],[inttypes.h sys/inttypes.h sys/types.h stdint.h])
- do
- unset ac_cv_type_uint32_t
- unset ac_cv_type_uint64_t
- AC_CHECK_TYPE(uint32_t,[ac_cv_header_stdint_o=$i],continue,[#include <$i>])
- AC_CHECK_TYPE(uint64_t,[and64="/uint64_t"],[and64=""],[#include<$i>])
- m4_ifvaln([$2],[$2]) break
- break;
- done
- AC_MSG_CHECKING([for stdint uint32_t])
- ])
-])
-
-AC_DEFUN([AX_CHECK_HEADER_STDINT_U],[
-AC_CACHE_CHECK([for stdint u_int32_t], [ac_cv_header_stdint_u],[
- ac_cv_header_stdint_u="" # the BSD typedefs (sys/types.h)
- AC_MSG_RESULT([(..)])
- for i in m4_ifval([$1],[$1],[sys/types.h inttypes.h sys/inttypes.h]) ; do
- unset ac_cv_type_u_int32_t
- unset ac_cv_type_u_int64_t
- AC_CHECK_TYPE(u_int32_t,[ac_cv_header_stdint_u=$i],continue,[#include <$i>])
- AC_CHECK_TYPE(u_int64_t,[and64="/u_int64_t"],[and64=""],[#include<$i>])
- m4_ifvaln([$2],[$2]) break
- break;
- done
- AC_MSG_CHECKING([for stdint u_int32_t])
- ])
-])
-
-AC_DEFUN([AX_CREATE_STDINT_H],
-[# ------ AX CREATE STDINT H -------------------------------------
-AC_MSG_CHECKING([for stdint types])
-ac_stdint_h=`echo ifelse($1, , _stdint.h, $1)`
-# try to shortcircuit - if the default include path of the compiler
-# can find a "stdint.h" header then we assume that all compilers can.
-AC_CACHE_VAL([ac_cv_header_stdint_t],[
-old_CXXFLAGS="$CXXFLAGS" ; CXXFLAGS=""
-old_CPPFLAGS="$CPPFLAGS" ; CPPFLAGS=""
-old_CFLAGS="$CFLAGS" ; CFLAGS=""
-AC_TRY_COMPILE([#include <stdint.h>],[int_least32_t v = 0;],
-[ac_cv_stdint_result="(assuming C99 compatible system)"
- ac_cv_header_stdint_t="stdint.h"; ],
-[ac_cv_header_stdint_t=""])
-if test "$GCC" = "yes" && test ".$ac_cv_header_stdint_t" = "."; then
-CFLAGS="-std=c99"
-AC_TRY_COMPILE([#include <stdint.h>],[int_least32_t v = 0;],
-[AC_MSG_WARN(your GCC compiler has a defunct stdint.h for its default-mode)])
-fi
-CXXFLAGS="$old_CXXFLAGS"
-CPPFLAGS="$old_CPPFLAGS"
-CFLAGS="$old_CFLAGS" ])
-
-v="... $ac_cv_header_stdint_h"
-if test "$ac_stdint_h" = "stdint.h" ; then
- AC_MSG_RESULT([(are you sure you want them in ./stdint.h?)])
-elif test "$ac_stdint_h" = "inttypes.h" ; then
|
[-]
[+]
|
Deleted |
_service:tar_git:gstreamer1.0-droid-0.20210304.0.tar.gz/common/m4/check.m4
^
|
@@ -1,181 +0,0 @@
-dnl _AM_TRY_CHECK(MINIMUM-VERSION, EXTRA-CFLAGS, EXTRA-LIBS, CHECK-LIB-NAME
-dnl [, ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]])
-dnl Test for check, and define CHECK_CFLAGS and CHECK_LIBS
-dnl Done this way because of the brokenness that is
-dnl https://launchpad.net/distros/ubuntu/+source/check/+bug/5840
-dnl
-
-AC_DEFUN([_AM_TRY_CHECK],
-[
- min_check_version=$1
- extra_cflags=$2
- extra_libs=$3
- check_lib_name=$4
-
- CHECK_CFLAGS="$extra_cflags"
- CHECK_LIBS="$extra_libs -l$check_lib_name"
-
- ac_save_CFLAGS="$CFLAGS"
- ac_save_LIBS="$LIBS"
-
- CFLAGS="$CFLAGS $CHECK_CFLAGS"
- LIBS="$CHECK_LIBS $LIBS"
-
- AC_MSG_CHECKING(for check named $check_lib_name - version >= $min_check_version)
-
- rm -f conf.check-test
- dnl unset no_check, since in our second run it would have been set to yes
- dnl before
- no_check=
- AC_TRY_RUN([
-#include <stdio.h>
-#include <stdlib.h>
-
-#include <check.h>
-
-int main ()
-{
- int major, minor, micro;
- char *tmp_version;
-
- system ("touch conf.check-test");
-
- /* HP/UX 9 (%@#!) writes to sscanf strings */
- tmp_version = strdup("$min_check_version");
- if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
- 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*** The check header file (version %d.%d.%d) does not match\n",
- CHECK_MAJOR_VERSION, CHECK_MINOR_VERSION, CHECK_MICRO_VERSION);
- printf("*** the check library (version %d.%d.%d).\n",
- check_major_version, check_minor_version, check_micro_version);
- return 1;
- }
-
- if ((check_major_version > major) ||
- ((check_major_version == major) && (check_minor_version > minor)) ||
- ((check_major_version == major) && (check_minor_version == minor) && (check_micro_version >= micro)))
- {
- return 0;
- }
- else
- {
- 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("*** 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");
- printf("*** to specify the prefix where the correct version was installed.\n");
- }
-
- return 1;
-}
-],, no_check=yes, [echo $ac_n "cross compiling; assumed OK... $ac_c"])
-
- CFLAGS="$ac_save_CFLAGS"
- LIBS="$ac_save_LIBS"
-
- if test "x$no_check" = x ; then
- AC_MSG_RESULT(yes)
- ifelse([$5], , :, [$5])
- else
- AC_MSG_RESULT(no)
- if test -f conf.check-test ; then
- :
- else
- echo "*** Could not run check test program, checking why..."
- CFLAGS="$CFLAGS $CHECK_CFLAGS"
- LIBS="$CHECK_LIBS $LIBS"
- AC_TRY_LINK([
-#include <stdio.h>
-#include <stdlib.h>
-
-#include <check.h>
-], , [ echo "*** The test program compiled, but did not run. This usually means"
- echo "*** that the run-time linker is not finding check. You'll need to set your"
- echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
- echo "*** to the installed location Also, make sure you have run ldconfig if that"
- echo "*** is required on your system"
- echo "***"
- echo "*** If you have an old version installed, it is best to remove it, although"
- 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
-
- CHECK_CFLAGS=""
- CHECK_LIBS=""
-
- rm -f conf.check-test
- ifelse([$6], , AC_MSG_ERROR([check not found]), [$6])
- fi
-])
-
-
-dnl AM_PATH_CHECK([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])
-dnl Test for check, and define CHECK_CFLAGS and CHECK_LIBS
-dnl
-
-AC_DEFUN([AM_PATH_CHECK],
-[
- 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
- AC_MSG_RESULT(disabled)
- ifelse([$3], , AC_MSG_ERROR([disabling check is not supported]), [$3])
- else
- if test "x$with_check" != x; then
- CHECK_EXTRA_CFLAGS="-I$with_check/include"
- CHECK_EXTRA_LIBS="-L$with_check/lib"
- else
- CHECK_EXTRA_CFLAGS=""
- CHECK_EXTRA_LIBS=""
- fi
-
- if test x$with_checklibname = x; then
- _AM_TRY_CHECK($min_check_version, $CHECK_EXTRA_CFLAGS, $CHECK_EXTRA_LIBS,
- check_pic, [have_check=true], [have_check=false])
- if test x$have_check = xtrue; then
- ifelse([$2], , :, [$2])
- else
- _AM_TRY_CHECK($min_check_version, $CHECK_EXTRA_CFLAGS, $CHECK_EXTRA_LIBS,
- check, [have_check=true], [have_check=false])
- if test x$have_check = xtrue; then
- ifelse([$2], , :, [$2])
- else
- ifelse([$3], , AC_MSG_ERROR([check not found]), [$3])
- fi
- fi
- else
- _AM_TRY_CHECK($min_check_version, $CHECK_EXTRA_CFLAGS, $CHECK_EXTRA_LIBS,
- $with_checklibname, [have_check=true], [have_check=false])
- if test x$have_check = xtrue; then
- ifelse([$2], , :, [$2])
- else
- ifelse([$3], , AC_MSG_ERROR([check not found]), [$3])
- fi
- fi
-
- AC_SUBST(CHECK_CFLAGS)
- AC_SUBST(CHECK_LIBS)
- rm -f conf.check-test
- fi
-])
|
[-]
[+]
|
Deleted |
_service:tar_git:gstreamer1.0-droid-0.20210304.0.tar.gz/common/m4/glib-gettext.m4
^
|
@@ -1,432 +0,0 @@
-# Copyright (C) 1995-2002 Free Software Foundation, Inc.
-# Copyright (C) 2001-2003,2004 Red Hat, Inc.
-#
-# This file is free software, distributed under the terms of the GNU
-# General Public License. As a special exception to the GNU General
-# Public License, this file may be distributed as part of a program
-# that contains a configuration script generated by Autoconf, under
-# the same distribution terms as the rest of that program.
-#
-# This file can be copied and used freely without restrictions. It can
-# be used in projects which are not available under the GNU Public License
-# but which still want to provide support for the GNU gettext functionality.
-#
-# Macro to add for using GNU gettext.
-# Ulrich Drepper <drepper@cygnus.com>, 1995, 1996
-#
-# 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
-# written by Bruno Haible, Owen Taylor <otaylor.redhat.com> 5/30/3002
-#
-# Modified to require ngettext
-# Matthias Clasen <mclasen@redhat.com> 08/06/2004
-#
-# We need this here as well, since someone might use autoconf-2.5x
-# to configure GLib then an older version to configure a package
-# using AM_GLIB_GNU_GETTEXT
-AC_PREREQ(2.53)
-
-dnl
-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
-m4_copy([AC_DEFUN],[glib_DEFUN])
-m4_copy([AC_REQUIRE],[glib_REQUIRE])
-dnl
-dnl At the end, if we're not within glib, we'll define the public
-dnl definitions in terms of our private definitions.
-dnl
-
-# GLIB_LC_MESSAGES
-#--------------------
-glib_DEFUN([GLIB_LC_MESSAGES],
- [AC_CHECK_HEADERS([locale.h])
- if test $ac_cv_header_locale_h = yes; then
- AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES,
- [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],
- am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)])
- if test $am_cv_val_LC_MESSAGES = yes; then
- AC_DEFINE(HAVE_LC_MESSAGES, 1,
- [Define if your <locale.h> file defines LC_MESSAGES.])
- fi
- fi])
-
-# GLIB_PATH_PROG_WITH_TEST
-#----------------------------
-dnl GLIB_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,
-dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])
-glib_DEFUN([GLIB_PATH_PROG_WITH_TEST],
-[# Extract the first word of "$2", so it can be a program name with args.
-set dummy $2; ac_word=[$]2
-AC_MSG_CHECKING([for $ac_word])
-AC_CACHE_VAL(ac_cv_path_$1,
-[case "[$]$1" in
- /*)
- ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
- ;;
- *)
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
- for ac_dir in ifelse([$5], , $PATH, [$5]); do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- if [$3]; then
- ac_cv_path_$1="$ac_dir/$ac_word"
- break
- fi
- fi
- done
- IFS="$ac_save_ifs"
-dnl If no 4th arg is given, leave the cache variable unset,
-dnl so AC_PATH_PROGS will keep looking.
-ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
-])dnl
- ;;
-esac])dnl
-$1="$ac_cv_path_$1"
-if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then
- AC_MSG_RESULT([$]$1)
-else
- AC_MSG_RESULT(no)
-fi
-AC_SUBST($1)dnl
-])
-
-# GLIB_WITH_NLS
-#-----------------
-glib_DEFUN([GLIB_WITH_NLS],
- dnl NLS is obligatory
- [USE_NLS=yes
- AC_SUBST(USE_NLS)
-
- gt_cv_have_gettext=no
-
- CATOBJEXT=NONE
- XGETTEXT=:
- INTLLIBS=
-
- AC_CHECK_HEADER(libintl.h,
- [gt_cv_func_dgettext_libintl="no"
- libintl_extra_libs=""
-
- #
- # First check in libc
- #
- AC_CACHE_CHECK([for ngettext in libc], gt_cv_func_ngettext_libc,
- [AC_TRY_LINK([
-#include <libintl.h>
-],
- [return !ngettext ("","", 1)],
- 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([
-#include <libintl.h>
-],
- [return !dgettext ("","")],
- gt_cv_func_dgettext_libc=yes,
- gt_cv_func_dgettext_libc=no)
- ])
- fi
-
- if test "$gt_cv_func_ngettext_libc" = "yes" ; then
- AC_CHECK_FUNCS(bind_textdomain_codeset)
- fi
-
- #
- # If we don't have everything we want, check in libintl
- #
- 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,
- gt_cv_func_dgettext_libintl=yes)])])
-
- if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
- AC_MSG_CHECKING([if -liconv is needed to use gettext])
- AC_MSG_RESULT([])
- AC_CHECK_LIB(intl, ngettext,
- [AC_CHECK_LIB(intl, dcgettext,
- [gt_cv_func_dgettext_libintl=yes
- libintl_extra_libs=-liconv],
- :,-liconv)],
- :,-liconv)
- fi
-
- #
- # If we found libintl, then check in it for bind_textdomain_codeset();
- # we'll prefer libc if neither have bind_textdomain_codeset(),
- # and both have dgettext and ngettext
- #
- if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
- glib_save_LIBS="$LIBS"
- LIBS="$LIBS -lintl $libintl_extra_libs"
- unset ac_cv_func_bind_textdomain_codeset
- AC_CHECK_FUNCS(bind_textdomain_codeset)
- LIBS="$glib_save_LIBS"
-
- if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
- gt_cv_func_dgettext_libc=no
- else
- if test "$gt_cv_func_dgettext_libc" = "yes" \
- && test "$gt_cv_func_ngettext_libc" = "yes"; then
- gt_cv_func_dgettext_libintl=no
- fi
- fi
- fi
- fi
-
- if test "$gt_cv_func_dgettext_libc" = "yes" \
- || 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
|
[-]
[+]
|
Deleted |
_service:tar_git:gstreamer1.0-droid-0.20210304.0.tar.gz/common/m4/gst-arch.m4
^
|
@@ -1,140 +0,0 @@
-dnl AG_GST_ARCH
-dnl sets up defines and automake conditionals for host architecture
-dnl checks endianness
-dnl defines HOST_CPU
-
-AC_DEFUN([AG_GST_ARCH],
-[
- dnl Determine CPU
- case "x${target_cpu}" in
- xi?86 | xk? | xi?86_64)
- case $target_os in
- solaris*)
- AC_CHECK_DECL([__i386], [I386_ABI="yes"], [I386_ABI="no"])
- AC_CHECK_DECL([__amd64], [AMD64_ABI="yes"], [AMD64_ABI="no"])
-
- if test "x$I386_ABI" = "xyes" ; then
- HAVE_CPU_I386=yes
- AC_DEFINE(HAVE_CPU_I386, 1, [Define if the target CPU is an x86])
- fi
- if test "x$AMD64_ABI" = "xyes" ; then
- HAVE_CPU_X86_64=yes
- AC_DEFINE(HAVE_CPU_X86_64, 1, [Define if the target CPU is a x86_64])
- fi
- ;;
- *)
- HAVE_CPU_I386=yes
- AC_DEFINE(HAVE_CPU_I386, 1, [Define if the target CPU is an x86])
-
- dnl FIXME could use some better detection
- dnl (ie CPUID)
- case "x${target_cpu}" in
- xi386 | xi486) ;;
- *)
- AC_DEFINE(HAVE_RDTSC, 1, [Define if RDTSC is available]) ;;
- esac
- ;;
- esac
- ;;
- xpowerpc)
- HAVE_CPU_PPC=yes
- AC_DEFINE(HAVE_CPU_PPC, 1, [Define if the target CPU is a PowerPC]) ;;
- xpowerpc64)
- HAVE_CPU_PPC64=yes
- AC_DEFINE(HAVE_CPU_PPC64, 1, [Define if the target CPU is a 64 bit PowerPC]) ;;
- xalpha*)
- HAVE_CPU_ALPHA=yes
- AC_DEFINE(HAVE_CPU_ALPHA, 1, [Define if the target CPU is an Alpha]) ;;
- xarm*)
- HAVE_CPU_ARM=yes
- AC_DEFINE(HAVE_CPU_ARM, 1, [Define if the target CPU is an ARM]) ;;
- xsparc*)
- HAVE_CPU_SPARC=yes
- AC_DEFINE(HAVE_CPU_SPARC, 1, [Define if the target CPU is a SPARC]) ;;
- xmips*)
- HAVE_CPU_MIPS=yes
- AC_DEFINE(HAVE_CPU_MIPS, 1, [Define if the target CPU is a MIPS]) ;;
- xhppa*)
- HAVE_CPU_HPPA=yes
- AC_DEFINE(HAVE_CPU_HPPA, 1, [Define if the target CPU is a HPPA]) ;;
- xs390*)
- HAVE_CPU_S390=yes
- AC_DEFINE(HAVE_CPU_S390, 1, [Define if the target CPU is a S390]) ;;
- xia64*)
- HAVE_CPU_IA64=yes
- AC_DEFINE(HAVE_CPU_IA64, 1, [Define if the target CPU is a IA64]) ;;
- xm68k*)
- HAVE_CPU_M68K=yes
- AC_DEFINE(HAVE_CPU_M68K, 1, [Define if the target CPU is a M68K]) ;;
- xx86_64)
- HAVE_CPU_X86_64=yes
- AC_DEFINE(HAVE_CPU_X86_64, 1, [Define if the target CPU is a x86_64]) ;;
- xcris)
- HAVE_CPU_CRIS=yes
- AC_DEFINE(HAVE_CPU_CRIS, 1, [Define if the target CPU is a CRIS]) ;;
- xcrisv32)
- HAVE_CPU_CRISV32=yes
- AC_DEFINE(HAVE_CPU_CRISV32, 1, [Define if the target 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")
- AM_CONDITIONAL(HAVE_CPU_ALPHA, test "x$HAVE_CPU_ALPHA" = "xyes")
- AM_CONDITIONAL(HAVE_CPU_ARM, test "x$HAVE_CPU_ARM" = "xyes")
- AM_CONDITIONAL(HAVE_CPU_SPARC, test "x$HAVE_CPU_SPARC" = "xyes")
- AM_CONDITIONAL(HAVE_CPU_HPPA, test "x$HAVE_CPU_HPPA" = "xyes")
- AM_CONDITIONAL(HAVE_CPU_MIPS, test "x$HAVE_CPU_MIPS" = "xyes")
- AM_CONDITIONAL(HAVE_CPU_S390, test "x$HAVE_CPU_S390" = "xyes")
- AM_CONDITIONAL(HAVE_CPU_IA64, test "x$HAVE_CPU_IA64" = "xyes")
- AM_CONDITIONAL(HAVE_CPU_M68K, test "x$HAVE_CPU_M68K" = "xyes")
- AM_CONDITIONAL(HAVE_CPU_X86_64, test "x$HAVE_CPU_X86_64" = "xyes")
- AM_CONDITIONAL(HAVE_CPU_CRIS, test "x$HAVE_CPU_CRIS" = "xyes")
- AM_CONDITIONAL(HAVE_CPU_CRISV32, test "x$HAVE_CPU_CRISV32" = "xyes")
-
- AC_DEFINE_UNQUOTED(HOST_CPU, "$host_cpu", [the host CPU])
- AC_DEFINE_UNQUOTED(TARGET_CPU, "$target_cpu", [the target CPU])
-])
-
-dnl check if unaligned memory access works correctly
-AC_DEFUN([AG_GST_UNALIGNED_ACCESS], [
- AC_MSG_CHECKING([if unaligned memory access works correctly])
- if test x"$as_cv_unaligned_access" = x ; then
- case $host in
- alpha*|arm*|hp*|mips*|sh*|sparc*|ia64*)
- _AS_ECHO_N([(blacklisted) ])
- as_cv_unaligned_access=no
- ;;
- i?86*|x86_64*|amd64*|powerpc*|m68k*|cris*)
- _AS_ECHO_N([(whitelisted) ])
- as_cv_unaligned_access=yes
- ;;
- esac
- else
- _AS_ECHO_N([(cached) ])
- fi
- if test x"$as_cv_unaligned_access" = x ; then
- AC_TRY_RUN([
-int main(int argc, char **argv)
-{
- char array[] = "ABCDEFGH";
- unsigned int iarray[2];
- memcpy(iarray,array,8);
-#define GET(x) (*(unsigned int *)((char *)iarray + (x)))
- if(GET(0) != 0x41424344 && GET(0) != 0x44434241) return 1;
- if(GET(1) != 0x42434445 && GET(1) != 0x45444342) return 1;
- if(GET(2) != 0x43444546 && GET(2) != 0x46454443) return 1;
- if(GET(3) != 0x44454647 && GET(3) != 0x47464544) return 1;
- return 0;
-}
- ], as_cv_unaligned_access="yes", as_cv_unaligned_access="no")
- fi
- AC_MSG_RESULT($as_cv_unaligned_access)
- if test "$as_cv_unaligned_access" = "yes"; then
- AC_DEFINE_UNQUOTED(HAVE_UNALIGNED_ACCESS, 1,
- [defined if unaligned memory access works correctly])
- fi
-])
|
[-]
[+]
|
Deleted |
_service:tar_git:gstreamer1.0-droid-0.20210304.0.tar.gz/common/m4/gst-args.m4
^
|
@@ -1,360 +0,0 @@
-dnl configure-time options shared among gstreamer modules
-
-dnl AG_GST_ARG_DEBUG
-dnl AG_GST_ARG_PROFILING
-dnl AG_GST_ARG_VALGRIND
-dnl AG_GST_ARG_GCOV
-
-dnl AG_GST_ARG_EXAMPLES
-
-dnl AG_GST_ARG_WITH_PKG_CONFIG_PATH
-dnl AG_GST_ARG_WITH_PACKAGE_NAME
-dnl AG_GST_ARG_WITH_PACKAGE_ORIGIN
-
-dnl AG_GST_ARG_WITH_PLUGINS
-dnl AG_GST_CHECK_PLUGIN
-dnl AG_GST_DISABLE_PLUGIN
-
-dnl AG_GST_ARG_ENABLE_EXTERNAL
-dnl AG_GST_ARG_ENABLE_EXPERIMENTAL
-dnl AG_GST_ARG_ENABLE_BROKEN
-
-dnl AG_GST_ARG_DISABLE_FATAL_WARNINGS
-AC_DEFUN([AG_GST_ARG_DEBUG],
-[
- dnl debugging stuff
- AC_ARG_ENABLE(debug,
- AC_HELP_STRING([--disable-debug],[disable addition of -g debugging info]),
- [
- case "${enableval}" in
- yes) USE_DEBUG=yes ;;
- no) USE_DEBUG=no ;;
- *) AC_MSG_ERROR(bad value ${enableval} for --enable-debug) ;;
- esac
- ],
- [USE_DEBUG=yes]) dnl Default value
-])
-
-AC_DEFUN([AG_GST_ARG_PROFILING],
-[
- AC_ARG_ENABLE(profiling,
- AC_HELP_STRING([--enable-profiling],
- [adds -pg to compiler commandline, for profiling]),
- [
- case "${enableval}" in
- yes) USE_PROFILING=yes ;;
- 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_VALGRIND],
-[
- dnl valgrind inclusion
- AC_ARG_ENABLE(valgrind,
- AC_HELP_STRING([--disable-valgrind],[disable run-time valgrind detection]),
- [
- case "${enableval}" in
- yes) USE_VALGRIND="$USE_DEBUG" ;;
- no) USE_VALGRIND=no ;;
- *) AC_MSG_ERROR(bad value ${enableval} for --enable-valgrind) ;;
- esac
- ],
- [USE_VALGRIND="$USE_DEBUG"]) dnl Default value
- VALGRIND_REQ="3.0"
- if test "x$USE_VALGRIND" = xyes; then
- PKG_CHECK_MODULES(VALGRIND, valgrind >= $VALGRIND_REQ,
- USE_VALGRIND="yes",
- USE_VALGRIND="no")
- fi
- if test "x$USE_VALGRIND" = xyes; then
- AC_DEFINE(HAVE_VALGRIND, 1, [Define if valgrind should be used])
- AC_MSG_NOTICE(Using extra code paths for valgrind)
- fi
-])
-
-AC_DEFUN([AG_GST_ARG_GCOV],
-[
- AC_ARG_ENABLE(gcov,
- AC_HELP_STRING([--enable-gcov],
- [compile with coverage profiling instrumentation (gcc only)]),
- enable_gcov=$enableval,
- enable_gcov=no)
- if test x$enable_gcov = xyes ; then
- if test "x$GCC" != "xyes"
- then
- AC_MSG_ERROR([gcov only works if gcc is used])
- fi
-
- AS_COMPILER_FLAG(["-fprofile-arcs"],
- [GCOV_CFLAGS="$GCOV_CFLAGS -fprofile-arcs"],
- true)
- AS_COMPILER_FLAG(["-ftest-coverage"],
- [GCOV_CFLAGS="$GCOV_CFLAGS -ftest-coverage"],
- true)
- dnl remove any -O flags - FIXME: is this needed ?
- GCOV_CFLAGS=`echo "$GCOV_CFLAGS" | sed -e 's/-O[[0-9]]*//g'`
- dnl libtool 1.5.22 and lower strip -fprofile-arcs from the flags
- dnl passed to the linker, which is a bug; -fprofile-arcs implicitly
- dnl links in -lgcov, so we do it explicitly here for the same effect
- GCOV_LIBS=-lgcov
- AC_SUBST(GCOV_CFLAGS)
- AC_SUBST(GCOV_LIBS)
- GCOV=`echo $CC | sed s/gcc/gcov/g`
- AC_SUBST(GCOV)
-
- GST_GCOV_ENABLED=yes
- AC_DEFINE_UNQUOTED(GST_GCOV_ENABLED, 1,
- [Defined if gcov is enabled to force a rebuild due to config.h changing])
- dnl if gcov is used, we do not want default -O2 CFLAGS
- if test "x$GST_GCOV_ENABLED" = "xyes"
- then
- CFLAGS="$CFLAGS -O0"
- AC_SUBST(CFLAGS)
- CXXFLAGS="$CXXFLAGS -O0"
- AC_SUBST(CXXFLAGS)
- FFLAGS="$FFLAGS -O0"
- AC_SUBST(FFLAGS)
- CCASFLAGS="$CCASFLAGS -O0"
- AC_SUBST(CCASFLAGS)
- AC_MSG_NOTICE([gcov enabled, setting CFLAGS and friends to $CFLAGS])
- fi
- fi
- AM_CONDITIONAL(GST_GCOV_ENABLED, test x$enable_gcov = xyes)
-])
-
-AC_DEFUN([AG_GST_ARG_EXAMPLES],
-[
- AC_ARG_ENABLE(examples,
- AC_HELP_STRING([--disable-examples], [disable building examples]),
- [
- case "${enableval}" in
- yes) BUILD_EXAMPLES=yes ;;
- no) BUILD_EXAMPLES=no ;;
- *) AC_MSG_ERROR(bad value ${enableval} for --disable-examples) ;;
- esac
- ],
- [BUILD_EXAMPLES=yes]) dnl Default value
- AM_CONDITIONAL(BUILD_EXAMPLES, test "x$BUILD_EXAMPLES" = "xyes")
-])
-
-AC_DEFUN([AG_GST_ARG_WITH_PKG_CONFIG_PATH],
-[
- dnl possibly modify pkg-config path
- AC_ARG_WITH(pkg-config-path,
- AC_HELP_STRING([--with-pkg-config-path],
- [colon-separated list of pkg-config(1) dirs]),
- [
- export PKG_CONFIG_PATH=${withval}
- AC_MSG_NOTICE(Set PKG_CONFIG_PATH to $PKG_CONFIG_PATH)
- ])
-])
-
-
-dnl This macro requires that GST_GIT or GST_CVS is set to yes or no (release)
-AC_DEFUN([AG_GST_ARG_WITH_PACKAGE_NAME],
-[
- dnl package name in plugins
- AC_ARG_WITH(package-name,
- AC_HELP_STRING([--with-package-name],
- [specify package name to use in plugins]),
- [
- case "${withval}" in
- yes) AC_MSG_ERROR(bad value ${withval} for --with-package-name) ;;
- 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
-
- if test "x$PACKAGE_VERSION_NANO" = "x0"
- then
- GST_PACKAGE_NAME="$P source release"
- else
- if test "x$PACKAGE_VERSION_NANO" = "x1"
- then
- GST_PACKAGE_NAME="$P git"
- else
- GST_PACKAGE_NAME="$P prerelease"
- fi
- fi
- ]
- )
- AC_MSG_NOTICE(Using $GST_PACKAGE_NAME as package name)
- AC_DEFINE_UNQUOTED(GST_PACKAGE_NAME, "$GST_PACKAGE_NAME",
- [package name in plugins])
- AC_SUBST(GST_PACKAGE_NAME)
-])
-
-AC_DEFUN([AG_GST_ARG_WITH_PACKAGE_ORIGIN],
-[
- dnl package origin URL
- AC_ARG_WITH(package-origin,
|
[-]
[+]
|
Deleted |
_service:tar_git:gstreamer1.0-droid-0.20210304.0.tar.gz/common/m4/gst-check.m4
^
|
@@ -1,294 +0,0 @@
-dnl pkg-config-based checks for GStreamer modules and dependency modules
-
-dnl generic:
-dnl AG_GST_PKG_CHECK_MODULES([PREFIX], [WHICH], [REQUIRED])
-dnl sets HAVE_[$PREFIX], [$PREFIX]_*
-dnl AG_GST_CHECK_MODULES([PREFIX], [MODULE], [MINVER], [NAME], [REQUIRED])
-dnl sets HAVE_[$PREFIX], [$PREFIX]_*
-
-dnl specific:
-dnl AG_GST_CHECK_GST([MAJMIN], [MINVER], [REQUIRED])
-dnl also sets/ACSUBSTs GST_TOOLS_DIR and GST_PLUGINS_DIR
-dnl AG_GST_CHECK_GST_BASE([MAJMIN], [MINVER], [REQUIRED])
-dnl AG_GST_CHECK_GST_CONTROLLER([MAJMIN], [MINVER], [REQUIRED])
-dnl AG_GST_CHECK_GST_NET([MAJMIN], [MINVER], [REQUIRED])
-dnl AG_GST_CHECK_GST_CHECK([MAJMIN], [MINVER], [REQUIRED])
-dnl AG_GST_CHECK_GST_PLUGINS_BASE([MAJMIN], [MINVER], [REQUIRED])
-dnl also sets/ACSUBSTs GSTPB_PLUGINS_DIR
-
-AC_DEFUN([AG_GST_PKG_CHECK_MODULES],
-[
- which="[$2]"
- dnl not required by default, since we use this mostly for plugin deps
- required=ifelse([$3], , "no", [$3])
-
- PKG_CHECK_MODULES([$1], $which,
- [
- HAVE_[$1]="yes"
- ],
- [
- HAVE_[$1]="no"
- if test "x$required" = "xyes"; then
- AC_MSG_ERROR($[$1]_PKG_ERRORS)
- else
- AC_MSG_NOTICE($[$1]_PKG_ERRORS)
- fi
- ])
-
- dnl AC_SUBST of CFLAGS and LIBS was not done before automake 1.7
- dnl It gets done automatically in automake >= 1.7, which we now require
-]))
-
-AC_DEFUN([AG_GST_CHECK_MODULES],
-[
- module=[$2]
- minver=[$3]
- name="[$4]"
- required=ifelse([$5], , "yes", [$5]) dnl required by default
-
- PKG_CHECK_MODULES([$1], $module >= $minver,
- [
- HAVE_[$1]="yes"
- ],
- [
- HAVE_[$1]="no"
- AC_MSG_NOTICE($[$1]_PKG_ERRORS)
- if test "x$required" = "xyes"; then
- AC_MSG_ERROR([no $module >= $minver ($name) found])
- else
- AC_MSG_NOTICE([no $module >= $minver ($name) found])
- fi
- ])
-
- dnl AC_SUBST of CFLAGS and LIBS was not done before automake 1.7
- dnl It gets done automatically in automake >= 1.7, which we now require
-]))
-
-AC_DEFUN([AG_GST_CHECK_GST],
-[
- AG_GST_CHECK_MODULES(GST, gstreamer-[$1], [$2], [GStreamer], [$3])
- dnl allow setting before calling this macro to override
- if test -z $GST_TOOLS_DIR; then
- GST_TOOLS_DIR=`$PKG_CONFIG --variable=toolsdir gstreamer-[$1]`
- if test -z $GST_TOOLS_DIR; then
- AC_MSG_ERROR(
- [no tools dir set in GStreamer pkg-config file, core upgrade needed.])
- fi
- fi
- AC_MSG_NOTICE([using GStreamer tools in $GST_TOOLS_DIR])
- AC_SUBST(GST_TOOLS_DIR)
-
- dnl check for where core plug-ins got installed
- dnl this is used for unit tests
- dnl allow setting before calling this macro to override
- if test -z $GST_PLUGINS_DIR; then
- GST_PLUGINS_DIR=`$PKG_CONFIG --variable=pluginsdir gstreamer-[$1]`
- if test -z $GST_PLUGINS_DIR; then
- AC_MSG_ERROR(
- [no pluginsdir set in GStreamer pkg-config file, core upgrade needed.])
- fi
- fi
- AC_MSG_NOTICE([using GStreamer plug-ins in $GST_PLUGINS_DIR])
- AC_SUBST(GST_PLUGINS_DIR)
-])
-
-AC_DEFUN([AG_GST_CHECK_GST_BASE],
-[
- AG_GST_CHECK_MODULES(GST_BASE, gstreamer-base-[$1], [$2],
- [GStreamer Base Libraries], [$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_NET],
-[
- AG_GST_CHECK_MODULES(GST_NET, gstreamer-net-[$1], [$2],
- [GStreamer Network Library], [$3])
-])
-
-AC_DEFUN([AG_GST_CHECK_GST_CHECK],
-[
- AG_GST_CHECK_MODULES(GST_CHECK, gstreamer-check-[$1], [$2],
- [GStreamer Check unittest Library], [$3])
-])
-
-dnl ===========================================================================
-dnl AG_GST_CHECK_UNINSTALLED_SETUP([ACTION-IF-UNINSTALLED], [ACTION-IF-NOT])
-dnl
-dnl ACTION-IF-UNINSTALLED (optional) extra actions to perform if the setup
-dnl is an uninstalled setup
-dnl ACTION-IF-NOT (optional) extra actions to perform if the setup
-dnl is not an uninstalled setup
-dnl ===========================================================================
-AC_DEFUN([AG_GST_CHECK_UNINSTALLED_SETUP],
-[
- AC_MSG_CHECKING([whether this is an uninstalled GStreamer setup])
- AC_CACHE_VAL(gst_cv_is_uninstalled_setup,[
- gst_cv_is_uninstalled_setup=no
- if (set -u; : $GST_PLUGIN_SYSTEM_PATH) 2>/dev/null ; then
- if test -z "$GST_PLUGIN_SYSTEM_PATH" \
- -a -n "$GST_PLUGIN_SCANNER" \
- -a -n "$GST_PLUGIN_PATH" \
- -a -n "$GST_REGISTRY" \
- -a -n "$DYLD_LIBRARY_PATH" \
- -a -n "$LD_LIBRARY_PATH"; then
- gst_cv_is_uninstalled_setup=yes;
- fi
- fi
- ])
- AC_MSG_RESULT($gst_cv_is_uninstalled_setup)
- if test "x$gst_cv_is_uninstalled_setup" = "xyes"; then
- ifelse([$1], , :, [$1])
- else
- ifelse([$2], , :, [$2])
- fi
-])
-
-dnl ===========================================================================
-dnl AG_GST_CHECK_GST_PLUGINS_BASE([GST-API_VERSION], [MIN-VERSION], [REQUIRED])
-dnl
-dnl Sets GST_PLUGINS_BASE_CFLAGS and GST_PLUGINS_BASE_LIBS.
-dnl
-dnl Also sets GSTPB_PLUGINS_DIR (and for consistency also GST_PLUGINS_BASE_DIR)
-dnl for use in Makefile.am. This is only really needed/useful in uninstalled
-dnl setups, since in an installed setup all plugins will be found in
-dnl GST_PLUGINS_DIR anyway.
-dnl ===========================================================================
-AC_DEFUN([AG_GST_CHECK_GST_PLUGINS_BASE],
-[
- AG_GST_CHECK_MODULES(GST_PLUGINS_BASE, gstreamer-plugins-base-[$1], [$2],
- [GStreamer Base Plugins], [$3])
-
- if test "x$HAVE_GST_PLUGINS_BASE" = "xyes"; then
- dnl check for where base plugins got installed
- dnl this is used for unit tests
- dnl allow setting before calling this macro to override
- if test -z $GSTPB_PLUGINS_DIR; then
- GSTPB_PLUGINS_DIR=`$PKG_CONFIG --variable=pluginsdir gstreamer-plugins-base-[$1]`
- if test -z $GSTPB_PLUGINS_DIR; then
- AC_MSG_ERROR(
- [no pluginsdir set in GStreamer Base Plugins pkg-config file])
- fi
- fi
- AC_MSG_NOTICE([using GStreamer Base Plugins in $GSTPB_PLUGINS_DIR])
- GST_PLUGINS_BASE_DIR="$GSTPB_PLUGINS_DIR/gst:$GSTPB_PLUGINS_DIR/sys:$GSTPB_PLUGINS_DIR/ext"
- AC_SUBST(GST_PLUGINS_BASE_DIR)
- AC_SUBST(GSTPB_PLUGINS_DIR)
- fi
-])
-
-dnl ===========================================================================
-dnl AG_GST_CHECK_GST_PLUGINS_GOOD([GST-API_VERSION], [MIN-VERSION])
-dnl
-dnl Will set GST_PLUGINS_GOOD_DIR for use in Makefile.am. Note that this will
-dnl only be set in an uninstalled setup, since -good ships no .pc file and in
-dnl an installed setup all plugins will be found in GST_PLUGINS_DIR anyway.
-dnl ===========================================================================
-AC_DEFUN([AG_GST_CHECK_GST_PLUGINS_GOOD],
-[
- AG_GST_CHECK_MODULES(GST_PLUGINS_GOOD, gstreamer-plugins-good-[$1], [$2],
- [GStreamer Good Plugins], [no])
-
- if test "x$HAVE_GST_PLUGINS_GOOD" = "xyes"; then
- dnl check for where good plugins got installed
- dnl this is used for unit tests
- dnl allow setting before calling this macro to override
|
[-]
[+]
|
Deleted |
_service:tar_git:gstreamer1.0-droid-0.20210304.0.tar.gz/common/m4/gst-debuginfo.m4
^
|
@@ -1,46 +0,0 @@
-AC_DEFUN([AG_GST_DEBUGINFO], [
-AC_ARG_ENABLE(debug,
-AC_HELP_STRING([--disable-debug],[disable addition of -g debugging info]),
-[case "${enableval}" in
- yes) USE_DEBUG=yes ;;
- no) USE_DEBUG=no ;;
- *) AC_MSG_ERROR(bad value ${enableval} for --enable-debug) ;;
-esac],
-[USE_DEBUG=yes]) dnl Default value
-
-AC_ARG_ENABLE(DEBUG,
-AC_HELP_STRING([--disable-DEBUG],[disables compilation of debugging messages]),
-[case "${enableval}" in
- yes) ENABLE_DEBUG=yes ;;
- no) ENABLE_DEBUG=no ;;
- *) AC_MSG_ERROR(bad value ${enableval} for --enable-DEBUG) ;;
-esac],
-[ENABLE_DEBUG=yes]) dnl Default value
-if test x$ENABLE_DEBUG = xyes; then
- AC_DEFINE(GST_DEBUG_ENABLED, 1, [Define if DEBUG statements should be compiled in])
-fi
-
-AC_ARG_ENABLE(INFO,
-AC_HELP_STRING([--disable-INFO],[disables compilation of informational messages]),
-[case "${enableval}" in
- yes) ENABLE_INFO=yes ;;
- no) ENABLE_INFO=no ;;
- *) AC_MSG_ERROR(bad value ${enableval} for --enable-INFO) ;;
-esac],
-[ENABLE_INFO=yes]) dnl Default value
-if test x$ENABLE_INFO = xyes; then
- AC_DEFINE(GST_INFO_ENABLED, 1, [Define if INFO statements should be compiled in])
-fi
-
-AC_ARG_ENABLE(debug-color,
-AC_HELP_STRING([--disable-debug-color],[disables color output of DEBUG and INFO output]),
-[case "${enableval}" in
- yes) ENABLE_DEBUG_COLOR=yes ;;
- no) ENABLE_DEBUG_COLOR=no ;;
- *) AC_MSG_ERROR(bad value ${enableval} for --enable-debug-color) ;;
-esac],
-[ENABLE_DEBUG_COLOR=yes]) dnl Default value
-if test "x$ENABLE_DEBUG_COLOR" = xyes; then
- AC_DEFINE(GST_DEBUG_COLOR, 1, [Define if debugging messages should be colorized])
-fi
-])
|
[-]
[+]
|
Deleted |
_service:tar_git:gstreamer1.0-droid-0.20210304.0.tar.gz/common/m4/gst-default.m4
^
|
@@ -1,120 +0,0 @@
-dnl default elements used for tests and such
-
-dnl AG_GST_DEFAULT_ELEMENTS
-
-AC_DEFUN([AG_GST_DEFAULT_ELEMENTS],
-[
- dnl decide on default elements
- dnl FIXME: describe where exactly this gets used
- dnl FIXME: decide if it's a problem that this could point to sinks from
- dnl depending plugin modules
- dnl FIXME: when can we just use autoaudiosrc and autovideosrc?
- DEFAULT_AUDIOSINK="autoaudiosink"
- DEFAULT_VIDEOSINK="autovideosink"
- DEFAULT_AUDIOSRC="alsasrc"
- DEFAULT_VIDEOSRC="v4l2src"
- DEFAULT_VISUALIZER="goom"
- case "$host" in
- *-sun-* | *pc-solaris* )
- DEFAULT_AUDIOSRC="sunaudiosrc"
- ;;
- *-darwin* )
- DEFAULT_AUDIOSRC="osxaudiosrc"
- ;;
- esac
-
- dnl Default audio sink
- AC_ARG_WITH(default-audiosink,
- AC_HELP_STRING([--with-default-audiosink], [specify default audio sink]),
- [
- case "${withval}" in
- yes) AC_MSG_ERROR(bad value ${withval} for --with-default-audiosink) ;;
- 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_SUBST(DEFAULT_AUDIOSINK)
- AC_DEFINE_UNQUOTED(DEFAULT_AUDIOSINK, "$DEFAULT_AUDIOSINK",
- [Default audio sink])
-
- dnl Default audio source
- AC_ARG_WITH(default-audiosrc,
- AC_HELP_STRING([--with-default-audiosrc], [specify default audio source]),
- [
- case "${withval}" in
- yes) AC_MSG_ERROR(bad value ${withval} for --with-default-audiosrc) ;;
- 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_SUBST(DEFAULT_AUDIOSRC)
- AC_DEFINE_UNQUOTED(DEFAULT_AUDIOSRC, "$DEFAULT_AUDIOSRC",
- [Default audio source])
-
- dnl Default video sink
- AC_ARG_WITH(default-videosink,
- AC_HELP_STRING([--with-default-videosink], [specify default video sink]),
- [
- case "${withval}" in
- yes) AC_MSG_ERROR(bad value ${withval} for --with-default-videosink) ;;
- 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_SUBST(DEFAULT_VIDEOSINK)
- AC_DEFINE_UNQUOTED(DEFAULT_VIDEOSINK, "$DEFAULT_VIDEOSINK",
- [Default video sink])
-
- dnl Default video source
- AC_ARG_WITH(default-videosrc,
- AC_HELP_STRING([--with-default-videosrc], [specify default video source]),
- [
- case "${withval}" in
- yes) AC_MSG_ERROR(bad value ${withval} for --with-default-videosrc) ;;
- 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_SUBST(DEFAULT_VIDEOSRC)
- AC_DEFINE_UNQUOTED(DEFAULT_VIDEOSRC, "$DEFAULT_VIDEOSRC",
- [Default video source])
-
- dnl Default visualizer
- AC_ARG_WITH(default-visualizer,
- AC_HELP_STRING([--with-default-visualizer], [specify default visualizer]),
- [
- case "${withval}" in
- yes) AC_MSG_ERROR(bad value ${withval} for --with-default-visualizer) ;;
- 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_SUBST(DEFAULT_VISUALIZER)
- AC_DEFINE_UNQUOTED(DEFAULT_VISUALIZER, "$DEFAULT_VISUALIZER",
- [Default visualizer])
-])
|
[-]
[+]
|
Deleted |
_service:tar_git:gstreamer1.0-droid-0.20210304.0.tar.gz/common/m4/gst-doc.m4
^
|
@@ -1,92 +0,0 @@
-AC_DEFUN([AG_GST_DOCBOOK_CHECK],
-[
- dnl choose a location to install docbook docs in
- if test "x$PACKAGE_TARNAME" = "x"
- then
- AC_MSG_ERROR([Internal error - PACKAGE_TARNAME not set])
- fi
- docdir="\$(datadir)/doc/$PACKAGE_TARNAME-$GST_API_VERSION"
-
- dnl enable/disable docbook documentation building
- AC_ARG_ENABLE(docbook,
- AC_HELP_STRING([--enable-docbook],
- [use docbook to build documentation [default=no]]),,
- enable_docbook=no)
-
- have_docbook=no
-
- if test x$enable_docbook = xyes; then
- dnl check if we actually have everything we need
-
- dnl check for docbook tools
- AC_CHECK_PROG(HAVE_DOCBOOK2PS, docbook2ps, yes, no)
- AC_CHECK_PROG(HAVE_XSLTPROC, xsltproc, yes, no)
- AC_CHECK_PROG(HAVE_JADETEX, jadetex, yes, no)
- AC_CHECK_PROG(HAVE_PS2PDF, ps2pdf, yes, no)
-
- 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)
-
- 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_XSLTPROC" = "xyes" && \
- test "x$enable_docbook" = "xyes" && \
- test "x$HAVE_XMLLINT" = "xyes"; then
- DOC_HTML=yes
- AC_MSG_NOTICE(Will output HTML documentation)
- else
- 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" && \
- test "x$HAVE_XMLLINT" = "xyes" && \
- test "x$HAVE_JADETEX" = "xyes" && \
- test "x$HAVE_DVIPS" = "xyes" && \
- test "x$HAVE_PNGTOPNM" = "xyes" && \
- test "x$HAVE_PNMTOPS" = "xyes"; then
- DOC_PS=yes
- AC_MSG_NOTICE(Will output PS documentation)
- else
- 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" && \
- test "x$HAVE_XMLLINT" = "xyes" && \
- test "x$HAVE_PS2PDF" = "xyes"; then
- DOC_PDF=yes
- AC_MSG_NOTICE(Will output PDF documentation)
- else
- DOC_PDF=no
- AC_MSG_NOTICE(Will not output PDF documentation)
- fi
-
- dnl if we don't have everything, we should disable
- if test "x$have_docbook" != "xyes"; then
- enable_docbook=no
- fi
- fi
-
- dnl if we're going to install documentation, tell us where
- if test "x$have_docbook" = "xyes"; then
- AC_MSG_NOTICE(Installing documentation in $docdir)
- AC_SUBST(docdir)
- fi
-
- AM_CONDITIONAL(ENABLE_DOCBOOK, test x$enable_docbook = xyes)
- AM_CONDITIONAL(DOC_HTML, test x$DOC_HTML = xyes)
- AM_CONDITIONAL(DOC_PDF, test x$DOC_PDF = xyes)
- AM_CONDITIONAL(DOC_PS, test x$DOC_PS = xyes)
-])
|
[-]
[+]
|
Deleted |
_service:tar_git:gstreamer1.0-droid-0.20210304.0.tar.gz/common/m4/gst-dowhile.m4
^
|
@@ -1,24 +0,0 @@
-dnl
-dnl Check for working do while(0) macros. This is used by G_STMT_START
-dnl and G_STMT_END in glib/gmacros.h. Without having this defined we
-dnl get "ambigious if-else" compiler warnings when compling C++ code.
-dnl
-dnl Copied from GLib's configure.in
-dnl
-AC_DEFUN([AG_GST_CHECK_DOWHILE_MACROS],[
-
-dnl *** check for working do while(0) macros ***
-AC_CACHE_CHECK([for working do while(0) macros], _cv_g_support_dowhile_macros, [
- AC_TRY_COMPILE([],[
- #define STMT_START do
- #define STMT_END while(0)
- #define STMT_TEST STMT_START { i = 0; } STMT_END
- int main(void) { int i = 1; STMT_TEST; return i; }],
- [_cv_g_support_dowhile_macros=yes],
- [_cv_g_support_dowhile_macros=no],
- [_cv_g_support_dowhile_macros=yes])
-])
-if test x$_cv_g_support_dowhile_macros = xyes; then
- AC_DEFINE(HAVE_DOWHILE_MACROS, 1, [define for working do while(0) macros])
-fi
-])
|
[-]
[+]
|
Deleted |
_service:tar_git:gstreamer1.0-droid-0.20210304.0.tar.gz/common/m4/gst-error.m4
^
|
@@ -1,298 +0,0 @@
-dnl handle various error-related things
-
-dnl Thomas Vander Stichele <thomas@apestaart.org>
-dnl Tim-Philipp Müller <tim centricular net>
-
-dnl Last modification: 2008-02-18
-
-dnl AG_GST_SET_ERROR_CFLAGS([ADD-WERROR], [MORE_FLAGS])
-dnl AG_GST_SET_ERROR_CXXFLAGS([ADD-WERROR], [MORE_FLAGS])
-dnl AG_GST_SET_LEVEL_DEFAULT([IS-GIT-VERSION])
-
-
-dnl Sets WARNING_CFLAGS and ERROR_CFLAGS to something the compiler
-dnl will accept and AC_SUBST them so they are available in Makefile
-dnl
-dnl WARNING_CFLAGS will contain flags to make the compiler emit more
-dnl warnings.
-dnl ERROR_CFLAGS will contain flags to make those warnings fatal,
-dnl unless ADD-WERROR is set to "no"
-dnl
-dnl If MORE_FLAGS is set, tries to add each of the given flags
-dnl to WARNING_CFLAGS if the compiler supports them. Each flag is
-dnl tested separately.
-dnl
-dnl These flags can be overridden at make time:
-dnl make ERROR_CFLAGS=
-AC_DEFUN([AG_GST_SET_ERROR_CFLAGS],
-[
- AC_REQUIRE([AC_PROG_CC])
- AC_REQUIRE([AS_COMPILER_FLAG])
-
- WARNING_CFLAGS=""
- ERROR_CFLAGS=""
-
- dnl if we support -Wall, set it unconditionally
- AS_COMPILER_FLAG(-Wall,
- WARNING_CFLAGS="$WARNING_CFLAGS -Wall")
-
- dnl Warn if declarations after statements are used (C99 extension)
- AS_COMPILER_FLAG(-Wdeclaration-after-statement,
- WARNING_CFLAGS="$WARNING_CFLAGS -Wdeclaration-after-statement")
-
- dnl Warn if variable length arrays are used (C99 extension)
- AS_COMPILER_FLAG(-Wvla,
- WARNING_CFLAGS="$WARNING_CFLAGS -Wvla")
-
- dnl Warn for invalid pointer arithmetic
- AS_COMPILER_FLAG(-Wpointer-arith,
- WARNING_CFLAGS="$WARNING_CFLAGS -Wpointer-arith")
-
- dnl if asked for, add -Werror if supported
- if test "x$1" != "xno"
- then
- AS_COMPILER_FLAG(-Werror, ERROR_CFLAGS="$ERROR_CFLAGS -Werror")
-
- dnl if -Werror isn't suported, try -errwarn=%all (Sun Forte case)
- if test "x$ERROR_CFLAGS" = "x"
- then
- AS_COMPILER_FLAG([-errwarn=%all], [
- ERROR_CFLAGS="-errwarn=%all"
- 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 "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'?
- for f in 'no%E_EMPTY_DECLARATION' \
- 'no%E_STATEMENT_NOT_REACHED' \
- 'no%E_ARGUEMENT_MISMATCH' \
- 'no%E_MACRO_REDEFINED' \
- 'no%E_LOOP_NOT_ENTERED_AT_TOP'
- do
- AS_COMPILER_FLAG([-errwarn=%all,$f], [
- ERROR_CFLAGS="$ERROR_CFLAGS,$f"
- ])
- done
- ])
- else
- 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.
- PKG_CHECK_EXISTS([glib-2.0 < 2.19.8], [
- AS_COMPILER_FLAG(-fno-strict-aliasing,
- ERROR_CFLAGS="$ERROR_CFLAGS -fno-strict-aliasing")
- ])
- fi
- fi
-
- if test "x$2" != "x"
- then
- UNSUPPORTED=""
- list="$2"
- for each in $list
- do
- AS_COMPILER_FLAG($each,
- WARNING_CFLAGS="$WARNING_CFLAGS $each",
- UNSUPPORTED="$UNSUPPORTED $each")
- done
- if test "X$UNSUPPORTED" != X ; then
- AC_MSG_NOTICE([unsupported compiler flags: $UNSUPPORTED])
- fi
- fi
-
- AC_SUBST(WARNING_CFLAGS)
- AC_SUBST(ERROR_CFLAGS)
- AC_MSG_NOTICE([set WARNING_CFLAGS to $WARNING_CFLAGS])
- AC_MSG_NOTICE([set ERROR_CFLAGS to $ERROR_CFLAGS])
-])
-
-dnl Sets WARNING_CXXFLAGS and ERROR_CXXFLAGS to something the compiler
-dnl will accept and AC_SUBST them so they are available in Makefile
-dnl
-dnl WARNING_CXXFLAGS will contain flags to make the compiler emit more
-dnl warnings.
-dnl ERROR_CXXFLAGS will contain flags to make those warnings fatal,
-dnl unless ADD-WERROR is set to "no"
-dnl
-dnl If MORE_FLAGS is set, tries to add each of the given flags
-dnl to WARNING_CFLAGS if the compiler supports them. Each flag is
-dnl tested separately.
-dnl
-dnl These flags can be overridden at make time:
-dnl make ERROR_CXXFLAGS=
-AC_DEFUN([AG_GST_SET_ERROR_CXXFLAGS],
-[
- AC_REQUIRE([AC_PROG_CXX])
- AC_REQUIRE([AS_CXX_COMPILER_FLAG])
-
- ERROR_CXXFLAGS=""
- WARNING_CXXFLAGS=""
-
- dnl if we support -Wall, set it unconditionally
- AS_CXX_COMPILER_FLAG(-Wall, WARNING_CXXFLAGS="$WARNING_CXXFLAGS -Wall")
-
- dnl if asked for, add -Werror if supported
- if test "x$1" != "xno"
- then
- AS_CXX_COMPILER_FLAG(-Werror, ERROR_CXXFLAGS="$ERROR_CXXFLAGS -Werror")
-
- if test "x$ERROR_CXXFLAGS" != "x"
- 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.
- PKG_CHECK_EXISTS([glib-2.0 < 2.19.8], [
- AS_CXX_COMPILER_FLAG([-fno-strict-aliasing],
- ERROR_CXXFLAGS="$ERROR_CXXFLAGS -fno-strict-aliasing")
- ])
- else
- dnl if -Werror isn't suported, try -errwarn=%all
- AS_CXX_COMPILER_FLAG([-errwarn=%all], ERROR_CXXFLAGS="$ERROR_CXXFLAGS -errwarn=%all")
- if test "x$ERROR_CXXFLAGS" != "x"; then
- 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 "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'?
- dnl FIXME: do any of these work with the c++ compiler? if not, why
- dnl do we check at all?
- for f in 'no%E_EMPTY_DECLARATION' \
- 'no%E_STATEMENT_NOT_REACHED' \
- 'no%E_ARGUEMENT_MISMATCH' \
- 'no%E_MACRO_REDEFINED' \
- 'no%E_LOOP_NOT_ENTERED_AT_TOP'
- do
- AS_CXX_COMPILER_FLAG([-errwarn=%all,$f], [ERROR_CXXFLAGS="$ERROR_CXXFLAGS,$f"])
- done
- fi
- fi
- fi
-
- if test "x$2" != "x"
- then
- UNSUPPORTED=""
- list="$2"
- for each in $list
- do
- AS_CXX_COMPILER_FLAG($each,
- WARNING_CXXFLAGS="$WARNING_CXXFLAGS $each",
- UNSUPPORTED="$UNSUPPORTED $each")
- done
- if test "X$UNSUPPORTED" != X ; then
- AC_MSG_NOTICE([unsupported compiler flags: $UNSUPPORTED])
- fi
- fi
-
- AC_SUBST(WARNING_CXXFLAGS)
- AC_SUBST(ERROR_CXXFLAGS)
- AC_MSG_NOTICE([set WARNING_CXXFLAGS to $WARNING_CXXFLAGS])
- AC_MSG_NOTICE([set ERROR_CXXFLAGS to $ERROR_CXXFLAGS])
-])
-
-dnl Sets WARNING_OBJCFLAGS and ERROR_OBJCFLAGS to something the compiler
|
[-]
[+]
|
Deleted |
_service:tar_git:gstreamer1.0-droid-0.20210304.0.tar.gz/common/m4/gst-feature.m4
^
|
@@ -1,297 +0,0 @@
-dnl Perform a check for a feature for GStreamer
-dnl Richard Boulton <richard-alsa@tartarus.org>
-dnl Thomas Vander Stichele <thomas@apestaart.org> added useful stuff
-dnl Last modification: 25/06/2001
-dnl
-dnl AG_GST_CHECK_FEATURE(FEATURE-NAME, FEATURE-DESCRIPTION,
-dnl DEPENDENT-PLUGINS, TEST-FOR-FEATURE,
-dnl DISABLE-BY-DEFAULT, ACTION-IF-USE, ACTION-IF-NOTUSE)
-dnl
-dnl This macro adds a command line argument to allow the user to enable
-dnl or disable a feature, and if the feature is enabled, performs a supplied
-dnl test to check if the feature is available.
-dnl
-dnl The test should define HAVE_<FEATURE-NAME> to "yes" or "no" depending
-dnl on whether the feature is available.
-dnl
-dnl The macro will set USE_<FEATURE-NAME> to "yes" or "no" depending on
-dnl whether the feature is to be used.
-dnl Thomas changed this, so that when USE_<FEATURE-NAME> was already set
-dnl to no, then it stays that way.
-dnl
-dnl The macro will call AM_CONDITIONAL(USE_<FEATURE-NAME>, ...) to allow
-dnl the feature to control what is built in Makefile.ams. If you want
-dnl additional actions resulting from the test, you can add them with the
-dnl ACTION-IF-USE and ACTION-IF-NOTUSE parameters.
-dnl
-dnl FEATURE-NAME is the name of the feature, and should be in
-dnl purely upper case characters.
-dnl FEATURE-DESCRIPTION is used to describe the feature in help text for
-dnl the command line argument.
-dnl DEPENDENT-PLUGINS lists any plug-ins which depend on this feature.
-dnl TEST-FOR-FEATURE is a test which sets HAVE_<FEATURE-NAME> to "yes"
-dnl or "no" depending on whether the feature is
-dnl available.
-dnl DISABLE-BY-DEFAULT if "disabled", the feature is disabled by default,
-dnl if any other value, the feature is enabled by default.
-dnl ACTION-IF-USE any extra actions to perform if the feature is to be
-dnl used.
-dnl ACTION-IF-NOTUSE any extra actions to perform if the feature is not to
-dnl be used.
-dnl
-dnl
-dnl thomas :
-dnl we also added a history.
-dnl GST_PLUGINS_YES will contain all plugins to be built
-dnl that were checked through AG_GST_CHECK_FEATURE
-dnl GST_PLUGINS_NO will contain those that won't be built
-
-AC_DEFUN([AG_GST_CHECK_FEATURE],
-[echo
-AC_MSG_NOTICE(*** checking feature: [$2] ***)
-if test "x[$3]" != "x"
-then
- AC_MSG_NOTICE(*** for plug-ins: [$3] ***)
-fi
-dnl
-builtin(define, [gst_endisable], ifelse($5, [disabled], [enable], [disable]))dnl
-dnl if it is set to NO, then don't even consider it for building
-NOUSE=
-if test "x$USE_[$1]" = "xno"; then
- NOUSE="yes"
-fi
-AC_ARG_ENABLE(translit([$1], A-Z, a-z),
- [ ]builtin(format, --%-26s gst_endisable %s, gst_endisable-translit([$1], A-Z, a-z), [$2]ifelse([$3],,,: [$3])),
- [ case "${enableval}" in
- yes) USE_[$1]=yes;;
- no) USE_[$1]=no;;
- *) AC_MSG_ERROR(bad value ${enableval} for --enable-translit([$1], A-Z, a-z)) ;;
- esac],
- [ USE_$1=]ifelse($5, [disabled], [no], [yes])) dnl DEFAULT
-
-dnl *** set it back to no if it was preset to no
-if test "x$NOUSE" = "xyes"; then
- USE_[$1]="no"
- AC_MSG_WARN(*** $3 pre-configured not to be built)
-fi
-NOUSE=
-
-dnl *** Check if it is ported or not
-if echo " [$GST_PLUGINS_NONPORTED] " | tr , ' ' | grep -i " [$1] " > /dev/null; then
- USE_[$1]="no"
- AC_MSG_WARN(*** $3 not ported)
-fi
-
-dnl *** If it's enabled
-
-if test x$USE_[$1] = xyes; then
- dnl save compile variables before the test
-
- gst_check_save_LIBS=$LIBS
- gst_check_save_LDFLAGS=$LDFLAGS
- gst_check_save_CFLAGS=$CFLAGS
- gst_check_save_CPPFLAGS=$CPPFLAGS
- gst_check_save_CXXFLAGS=$CXXFLAGS
-
- HAVE_[$1]=no
- dnl TEST_FOR_FEATURE
- $4
-
- LIBS=$gst_check_save_LIBS
- LDFLAGS=$gst_check_save_LDFLAGS
- CFLAGS=$gst_check_save_CFLAGS
- CPPFLAGS=$gst_check_save_CPPFLAGS
- CXXFLAGS=$gst_check_save_CXXFLAGS
-
- dnl If it isn't found, unset USE_[$1]
- if test x$HAVE_[$1] = xno; then
- USE_[$1]=no
- else
- ifelse([$3], , :, [AC_MSG_NOTICE(*** These plugins will be built: [$3])])
- fi
-fi
-dnl *** Warn if it's disabled or not found
-if test x$USE_[$1] = xyes; then
- ifelse([$6], , :, [$6])
- if test "x$3" != "x"; then
- GST_PLUGINS_YES="\t[$3]\n$GST_PLUGINS_YES"
- fi
- AC_DEFINE(HAVE_[$1], , [Define to enable $2]ifelse($3,,, [ (used by $3)]).)
-else
- ifelse([$3], , :, [AC_MSG_NOTICE(*** These plugins will not be built: [$3])])
- if test "x$3" != "x"; then
- GST_PLUGINS_NO="\t[$3]\n$GST_PLUGINS_NO"
- fi
- ifelse([$7], , :, [$7])
-fi
-dnl *** Define the conditional as appropriate
-AM_CONDITIONAL(USE_[$1], test x$USE_[$1] = xyes)
-])
-
-dnl Use AC_CHECK_LIB and AC_CHECK_HEADER to do both tests at once
-dnl sets HAVE_module if we have it
-dnl Richard Boulton <richard-alsa@tartarus.org>
-dnl Last modification: 26/06/2001
-dnl AG_GST_CHECK_LIBHEADER(FEATURE-NAME, LIB NAME, LIB FUNCTION, EXTRA LD FLAGS,
-dnl HEADER NAME, ACTION-IF-FOUND, ACTION-IF-NOT-FOUND)
-dnl
-dnl This check was written for GStreamer: it should be renamed and checked
-dnl for portability if you decide to use it elsewhere.
-dnl
-AC_DEFUN([AG_GST_CHECK_LIBHEADER],
-[
- AC_CHECK_LIB([$2], [$3], HAVE_[$1]=yes, HAVE_[$1]=no,[$4])
- if test "x$HAVE_[$1]" = "xyes"; then
- AC_CHECK_HEADER([$5], :, HAVE_[$1]=no)
- if test "x$HAVE_[$1]" = "xyes"; then
- dnl execute what needs to be
- ifelse([$6], , :, [$6])
- else
- ifelse([$7], , :, [$7])
- fi
- else
- ifelse([$7], , :, [$7])
- fi
- AC_SUBST(HAVE_[$1])
-]
-)
-
-dnl 2004-02-14 Thomas - changed to get set properly and use proper output
-dnl 2003-06-27 Benjamin Otte - changed to make this work with gstconfig.h
-dnl
-dnl Add a subsystem --disable flag and all the necessary symbols and substitions
-dnl
-dnl AG_GST_CHECK_SUBSYSTEM_DISABLE(SYSNAME, [subsystem name])
-dnl
-AC_DEFUN([AG_GST_CHECK_SUBSYSTEM_DISABLE],
-[
- dnl this define will replace each literal subsys_def occurrence with
- dnl the lowercase hyphen-separated subsystem
- dnl e.g. if $1 is GST_DEBUG then subsys_def will be a macro with gst-debug
- define([subsys_def],translit([$1], _A-Z, -a-z))
-
- AC_ARG_ENABLE(subsys_def,
- AC_HELP_STRING(--disable-subsys_def, [disable $2]),
- [
- case "${enableval}" in
- yes) GST_DISABLE_[$1]=no ;;
- no) GST_DISABLE_[$1]=yes ;;
- *) AC_MSG_ERROR([bad value ${enableval} for --enable-subsys_def]) ;;
- esac
- ],
- [GST_DISABLE_[$1]=no]) dnl Default value
-
- if test x$GST_DISABLE_[$1] = xyes; then
- AC_MSG_NOTICE([disabled subsystem [$2]])
- GST_DISABLE_[$1]_DEFINE="#define GST_DISABLE_$1 1"
- else
- GST_DISABLE_[$1]_DEFINE="/* #undef GST_DISABLE_$1 */"
- fi
- AC_SUBST(GST_DISABLE_[$1]_DEFINE)
- undefine([subsys_def])
-])
-
-
-dnl Parse gstconfig.h for feature and defines add the symbols and substitions
-dnl
-dnl AG_GST_PARSE_SUBSYSTEM_DISABLE(GST_CONFIGPATH, FEATURE)
-dnl
-AC_DEFUN([AG_GST_PARSE_SUBSYSTEM_DISABLE],
|
[-]
[+]
|
Deleted |
_service:tar_git:gstreamer1.0-droid-0.20210304.0.tar.gz/common/m4/gst-function.m4
^
|
@@ -1,63 +0,0 @@
-dnl
-dnl Check for compiler mechanism to show functions in debugging
-dnl copied from an Ali patch floating on the internet
-dnl
-AC_DEFUN([AG_GST_CHECK_FUNCTION],[
- dnl #1: __PRETTY_FUNCTION__
- AC_MSG_CHECKING(whether $CC implements __PRETTY_FUNCTION__)
- AC_CACHE_VAL(gst_cv_have_pretty_function,[
- AC_TRY_LINK([#include <stdio.h>],
- [printf("%s", __PRETTY_FUNCTION__);],
- gst_cv_have_pretty_function=yes,
- gst_cv_have_pretty_function=no)
- ])
- AC_MSG_RESULT($gst_cv_have_pretty_function)
- if test "$gst_cv_have_pretty_function" = yes; then
- AC_DEFINE(HAVE_PRETTY_FUNCTION, 1,
- [defined if the compiler implements __PRETTY_FUNCTION__])
- fi
-
-dnl #2: __FUNCTION__
- AC_MSG_CHECKING(whether $CC implements __FUNCTION__)
- AC_CACHE_VAL(gst_cv_have_function,[
- AC_TRY_LINK([#include <stdio.h>],
- [printf("%s", __FUNCTION__);],
- gst_cv_have_function=yes,
- gst_cv_have_function=no)
- ])
- AC_MSG_RESULT($gst_cv_have_function)
- if test "$gst_cv_have_function" = yes; then
- AC_DEFINE(HAVE_FUNCTION, 1,
- [defined if the compiler implements __FUNCTION__])
- fi
-
-dnl #3: __func__
- AC_MSG_CHECKING(whether $CC implements __func__)
- AC_CACHE_VAL(gst_cv_have_func,[
- AC_TRY_LINK([#include <stdio.h>],
- [printf("%s", __func__);],
- gst_cv_have_func=yes,
- gst_cv_have_func=no)
- ])
- AC_MSG_RESULT($gst_cv_have_func)
- if test "$gst_cv_have_func" = yes; then
- AC_DEFINE(HAVE_FUNC, 1,
- [defined if the compiler implements __func__])
- fi
-
-dnl now define FUNCTION to whatever works, and fallback to ""
- if test "$gst_cv_have_pretty_function" = yes; then
- function=__PRETTY_FUNCTION__
- else
- if test "$gst_cv_have_function" = yes; then
- function=__FUNCTION__
- else
- if test "$gst_cv_have_func" = yes; then
- function=__func__
- else
- function=\"\"
- fi
- fi
- fi
- AC_DEFINE_UNQUOTED(GST_FUNCTION, $function, [macro to use to show function name])
-])
|
[-]
[+]
|
Deleted |
_service:tar_git:gstreamer1.0-droid-0.20210304.0.tar.gz/common/m4/gst-gettext.m4
^
|
@@ -1,28 +0,0 @@
-dnl gettext setup
-
-dnl AG_GST_GETTEXT([gettext-package])
-dnl defines GETTEXT_PACKAGE and LOCALEDIR
-
-AC_DEFUN([AG_GST_GETTEXT],
-[
- if test "$USE_NLS" = "yes"; then
- GETTEXT_PACKAGE=[$1]
- else
- GETTEXT_PACKAGE=[NULL]
- fi
- AC_SUBST(GETTEXT_PACKAGE)
- AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE], "$GETTEXT_PACKAGE",
- [gettext package name])
-
- dnl make sure po/Makevars is kept in sync with GETTEXT_PACKAGE
- if test -e "${srcdir}/po/Makevars"; then
- if ! grep -e "$1" "${srcdir}/po/Makevars"; then
- AC_MSG_ERROR([DOMAIN in po/Makevars does not match GETTEXT_PACKAGE $1])
- fi
- fi
-
- dnl define LOCALEDIR in config.h
- AS_AC_EXPAND(LOCALEDIR, $datadir/locale)
- AC_DEFINE_UNQUOTED([LOCALEDIR], "$LOCALEDIR",
- [gettext locale dir])
-])
|
[-]
[+]
|
Deleted |
_service:tar_git:gstreamer1.0-droid-0.20210304.0.tar.gz/common/m4/gst-glib2.m4
^
|
@@ -1,126 +0,0 @@
-dnl check for a minimum version of GLib
-
-dnl AG_GST_GLIB_CHECK([minimum-version-required])
-
-AC_DEFUN([AG_GST_GLIB_CHECK],
-[
- AC_REQUIRE([AS_NANO])
-
- dnl Minimum required version of GLib
- GLIB_REQ=[$1]
- if test "x$GLIB_REQ" = "x"
- then
- AC_MSG_ERROR([Please specify a required version for GLib 2.0])
- fi
- AC_SUBST(GLIB_REQ)
-
- dnl Check for glib with everything
- AG_GST_PKG_CHECK_MODULES(GLIB,
- glib-2.0 >= $GLIB_REQ gobject-2.0 gmodule-no-export-2.0)
-
- if test "x$HAVE_GLIB" = "xno"; then
- AC_MSG_ERROR([This package requires GLib >= $GLIB_REQ to compile.])
- fi
-
- dnl Add define to tell GLib that threading is always enabled within GStreamer
- dnl code (optimisation, bypasses checks if the threading system is enabled
- dnl when using threading primitives)
- GLIB_EXTRA_CFLAGS="$GLIB_EXTRA_CFLAGS -DG_THREADS_MANDATORY"
-
- dnl Define G_DISABLE_DEPRECATED for development versions
- if test "x`expr $PACKAGE_VERSION_MINOR % 2`" = "x1" -a "x`expr $PACKAGE_VERSION_MICRO '<' 90`" = "x1"; then
- GLIB_EXTRA_CFLAGS="$GLIB_EXTRA_CFLAGS -DG_DISABLE_DEPRECATED"
- fi
-
- AC_ARG_ENABLE(gobject-cast-checks,
- AS_HELP_STRING([--enable-gobject-cast-checks[=@<:@no/auto/yes@:>@]],
- [Enable GObject cast checks]),[enable_gobject_cast_checks=$enableval],
- [enable_gobject_cast_checks=auto])
-
- if test "x$enable_gobject_cast_checks" = "xauto"; then
- dnl Turn on cast checks only for development versions
- if test "x`expr $PACKAGE_VERSION_MINOR % 2`" = "x1" -a "x`expr $PACKAGE_VERSION_MICRO '<' 90`" = "x1"; then
- enable_gobject_cast_checks=yes
- else
- enable_gobject_cast_checks=no
- fi
- fi
-
- if test "x$enable_gobject_cast_checks" = "xno"; then
- GLIB_EXTRA_CFLAGS="$GLIB_EXTRA_CFLAGS -DG_DISABLE_CAST_CHECKS"
- fi
-
- AC_ARG_ENABLE(glib-asserts,
- AS_HELP_STRING([--enable-glib-asserts[=@<:@no/auto/yes@:>@]],
- [Enable GLib assertion]),[enable_glib_assertions=$enableval],
- [enable_glib_assertions=auto])
-
- if test "x$enable_glib_assertions" = "xauto"; then
- dnl Enable assertions only for development versions
- if test "x`expr $PACKAGE_VERSION_MINOR % 2`" = "x1" -a "x`expr $PACKAGE_VERSION_MICRO '<' 90`" = "x1"; then
- enable_glib_assertions=yes
- else
- enable_glib_assertions=no
- fi
- fi
-
- if test "x$enable_glib_assertions" = "xno"; then
- GLIB_EXTRA_CFLAGS="$GLIB_EXTRA_CFLAGS -DG_DISABLE_ASSERT"
- fi
-
- dnl Find location of glib utils. People may want to or have to override these,
- dnl e.g. in a cross-compile situation where PATH is a bit messed up. We need
- dnl for these tools to work on the host, so can't just use the one from the
- dnl GLib installation that pkg-config picks up, as that might be for a
- dnl different target architecture.
- dnl
- dnl glib-genmarshal:
- AC_MSG_CHECKING(for glib-genmarshal)
- if test "x$GLIB_GENMARSHAL" != "x"; then
- AC_MSG_RESULT([$GLIB_GENMARSHAL (from environment)])
- else
- GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
- if $GLIB_GENMARSHAL --version 2>/dev/null >/dev/null; then
- AC_MSG_RESULT([$GLIB_GENMARSHAL (from pkg-config path)])
- else
- AC_PATH_PROG(GLIB_GENMARSHAL, [glib-genmarshal], [glib-genmarshal])
- AC_MSG_RESULT([$GLIB_GENMARSHAL])
- fi
- fi
- if ! $GLIB_GENMARSHAL --version 2>/dev/null >/dev/null; then
- AC_MSG_WARN([$GLIB_GENMARSHAL does not seem to work!])
- fi
- AC_SUBST(GLIB_GENMARSHAL)
-
- dnl glib-mkenums:
- AC_MSG_CHECKING(for glib-mkenums)
- if test "x$GLIB_MKENUMS" != "x"; then
- AC_MSG_RESULT([$GLIB_MKENUMS (from environment)])
- else
- dnl glib-mkenums is written in perl so should always work really
- GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
- AC_MSG_RESULT([$GLIB_MKENUMS])
- fi
- if ! $GLIB_MKENUMS --version 2>/dev/null >/dev/null; then
- AC_MSG_WARN([$GLIB_MKENUMS does not seem to work!])
- fi
- AC_SUBST(GLIB_MKENUMS)
-
- AC_SUBST(GLIB_EXTRA_CFLAGS)
-
- dnl Now check for GIO
- PKG_CHECK_MODULES(GIO, gio-2.0 >= $GLIB_REQ)
- if test "x$HAVE_GIO" = "xno"; then
- AC_MSG_ERROR([This package requires GIO >= $GLIB_REQ to compile.])
- fi
-
- GIO_MODULE_DIR="`$PKG_CONFIG --variable=giomoduledir gio-2.0`"
- AC_DEFINE_UNQUOTED(GIO_MODULE_DIR, "$GIO_MODULE_DIR",
- [The GIO modules directory.])
- GIO_LIBDIR="`$PKG_CONFIG --variable=libdir gio-2.0`"
- AC_DEFINE_UNQUOTED(GIO_LIBDIR, "$GIO_LIBDIR",
- [The GIO library directory.])
- AC_SUBST(GIO_CFLAGS)
- AC_SUBST(GIO_LIBS)
- AC_SUBST(GIO_LDFLAGS)
-])
|
[-]
[+]
|
Deleted |
_service:tar_git:gstreamer1.0-droid-0.20210304.0.tar.gz/common/m4/gst-libxml2.m4
^
|
@@ -1,52 +0,0 @@
-dnl call this macro with the minimum required version as an argument
-dnl this macro sets and AC_SUBSTs XML_CFLAGS and XML_LIBS
-dnl it also sets LIBXML_PKG, used for the pkg-config file
-
-AC_DEFUN([AG_GST_LIBXML2_CHECK],
-[
- dnl Minimum required version of libxml2
- dnl default to 2.4.9 if not specified
- LIBXML2_REQ=ifelse([$1],,2.4.9,[$1])
- AC_SUBST(LIBXML2_REQ)
-
- dnl check for libxml2
- PKG_CHECK_MODULES(XML, libxml-2.0 >= $LIBXML2_REQ,
- HAVE_LIBXML2=yes, [
- AC_MSG_RESULT(no)
- HAVE_LIBXML2=no
- ])
- if test "x$HAVE_LIBXML2" = "xyes"; then
- AC_DEFINE(HAVE_LIBXML2, 1, [Define if libxml2 is available])
- else
- AC_MSG_ERROR([
- Need libxml2 and development headers/files to build GStreamer.
-
- You can do without libxml2 if you pass --disable-loadsave to
- configure, but that breaks ABI, so don't do that unless you
- are building for an embedded setup and know what you are doing.
- ])
- fi
- dnl this is for the .pc file
- LIBXML_PKG=', libxml-2.0'
- AC_SUBST(LIBXML_PKG)
- AC_SUBST(XML_LIBS)
- AC_SUBST(XML_CFLAGS)
-
- dnl XML_LIBS might pull in -lz without zlib actually being on the system, so
- dnl try linking with these LIBS and CFLAGS
- ac_save_CFLAGS=$CFLAGS
- ac_save_LIBS=$LIBS
- CFLAGS="$CFLAGS $XML_CFLAGS"
- LIBS="$LIBS $XML_LIBS"
- AC_TRY_LINK([
-#include <libxml/tree.h>
-#include <stdio.h>
-],[
-/* function body */
-],
- AC_MSG_NOTICE([Test xml2 program linked]),
- AC_MSG_ERROR([Could not link libxml2 test program. Check if you have the necessary dependencies.])
- )
- CFLAGS="$ac_save_CFLAGS"
- LIBS="$ac_save_LIBS"
-])
|
[-]
[+]
|
Deleted |
_service:tar_git:gstreamer1.0-droid-0.20210304.0.tar.gz/common/m4/gst-package-release-datetime.m4
^
|
@@ -1,89 +0,0 @@
-dnl macros to set GST_PACKAGE_RELEASE_DATETIME
-
-dnl ===========================================================================
-dnl AG_GST_SET_PACKAGE_RELEASE_DATETIME
-dnl
-dnl Usage:
-dnl
-dnl AG_GST_SET_PACKAGE_RELEASE_DATETIME()
-dnl AG_GST_SET_PACKAGE_RELEASE_DATETIME([no]...)
-dnl sets the release datetime to the current date
-dnl (no = this is not a release, but git or prerelease)
-dnl
-dnl AG_GST_SET_PACKAGE_RELEASE_DATETIME([YYYY-MM-DD])
-dnl AG_GST_SET_PACKAGE_RELEASE_DATETIME([yes], [YYYY-MM-DD])
-dnl sets the release datetime to the specified date (and time, if given)
-dnl (yes = this is a release, not git or prerelease)
-dnl
-dnl AG_GST_SET_PACKAGE_RELEASE_DATETIME([yes], [DOAP-FILE], [RELEASE-VERSION])
-dnl sets the release date to the release date associated with version
-dnl RELEASE-VERSION in the .doap file DOAP-FILE
-dnl (yes = this is a release, not git or prerelease)
-dnl
-dnl We need to treat pre-releases like git because there won't be an entry
-dnl in the .doap file for pre-releases yet, and we don't want to use the
-dnl date of the last release either.
-dnl ===========================================================================
-AC_DEFUN([AG_GST_SET_PACKAGE_RELEASE_DATETIME],
-[
- dnl AG_GST_SET_PACKAGE_RELEASE_DATETIME()
- dnl AG_GST_SET_PACKAGE_RELEASE_DATETIME([yes]...)
- if test "x$1" = "xno" -o "x$1" = "x"; then
- GST_PACKAGE_RELEASE_DATETIME=`date -u "+%Y-%m-%dT%H:%MZ"`
- elif test "x$1" = "xyes"; then
- dnl AG_GST_SET_PACKAGE_RELEASE_DATETIME([no], ["YYYY-MM-DD"])
- dnl AG_GST_SET_PACKAGE_RELEASE_DATETIME([no], [DOAP-FILE], [RELEASE-VERSION])
- if ( echo $1 | grep '^20[1-9][0-9]-[0-1][0-9]-[0-3][0-9]' >/dev/null ) ; then
- GST_PACKAGE_RELEASE_DATETIME=$1
- else
- dnl we assume the .doap file contains the date as YYYY-MM-DD
- YYYY_MM_DD=`sh "${srcdir}/common/extract-release-date-from-doap-file" $3 $2`;
- if test "x$YYYY_MM_DD" != "x"; then
- GST_PACKAGE_RELEASE_DATETIME=$YYYY_MM_DD
- else
- AC_MSG_ERROR([SET_PACKAGE_RELEASE_DATETIME: could not extract
- release date for release version $3 from $2])
- GST_PACKAGE_RELEASE_DATETIME=""
- fi
- fi
- dnl AG_GST_SET_PACKAGE_RELEASE_DATETIME([YYYY-MM-DD])
- elif ( echo $1 | grep '^20[1-9][0-9]-[0-1][0-9]-[0-3][0-9]' >/dev/null ) ; then
- GST_PACKAGE_RELEASE_DATETIME=$1
- else
- AC_MSG_WARN([SET_PACKAGE_RELEASE_DATETIME: invalid first argument])
- GST_PACKAGE_RELEASE_DATETIME=""
- fi
-
- if test "x$GST_PACKAGE_RELEASE_DATETIME" = "x"; then
- AC_MSG_WARN([Invalid package release date time: $GST_PACKAGE_RELEASE_DATETIME])
- else
- AC_MSG_NOTICE([Setting GST_PACKAGE_RELEASE_DATETIME to $GST_PACKAGE_RELEASE_DATETIME])
-
- AC_DEFINE_UNQUOTED([GST_PACKAGE_RELEASE_DATETIME],
- ["$GST_PACKAGE_RELEASE_DATETIME"],
- [GStreamer package release date/time for plugins as YYYY-MM-DD])
- fi
-])
-
-dnl ===========================================================================
-dnl AG_GST_SET_PACKAGE_RELEASE_DATETIME_WITH_NANO
-dnl
-dnl Usage:
-dnl
-dnl AG_GST_SET_PACKAGE_RELEASE_DATETIME([NANO-VERSION], [DOAP-FILE], [RELEASE-VERSION])
-dnl if NANO-VERSION is 0, sets the release date to the release date associated
-dnl with version RELEASE-VERSION in the .doap file DOAP-FILE, otherwise sets
-dnl the release date and time to the current date/time.
-dnl
-dnl We need to treat pre-releases like git because there won't be an entry
-dnl in the .doap file for pre-releases yet, and we don't want to use the
-dnl date of the last release either.
-dnl ===========================================================================
-AC_DEFUN([AG_GST_SET_PACKAGE_RELEASE_DATETIME_WITH_NANO],
-[
- if test "x$1" = "x0"; then
- AG_GST_SET_PACKAGE_RELEASE_DATETIME([yes], [ $2 ], [ $3 ])
- else
- AG_GST_SET_PACKAGE_RELEASE_DATETIME([no])
- fi
-])
|
[-]
[+]
|
Deleted |
_service:tar_git:gstreamer1.0-droid-0.20210304.0.tar.gz/common/m4/gst-parser.m4
^
|
@@ -1,55 +0,0 @@
-AC_DEFUN([AG_GST_BISON_CHECK],
-[
- dnl FIXME: check if AC_PROG_YACC is suitable here
- dnl FIXME: make precious
- AC_PATH_PROG(BISON_PATH, bison, no)
- if test x$BISON_PATH = xno; then
- AC_MSG_ERROR(Could not find bison)
- fi
-
- dnl check bison version
- dnl we need version >= 2.4 for the '<>' support
- dnl in the parser.
- dnl First lines observed: 'bison (GNU Bison) 2.3' or 'GNU Bison version 1.28'
- bison_min_version=2.4
- 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
- AC_MSG_RESULT([yes])
- else
- AC_MSG_ERROR([no])
- fi
-])
-
-AC_DEFUN([AG_GST_FLEX_CHECK],
-[
- dnl we require flex for building the parser
- AC_PATH_PROG(FLEX_PATH, flex, no)
- 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.
- flex_min_version=2.5.31
- flex_version=`$FLEX_PATH --version | head -n 1 | awk '{print $2}'`
- AC_MSG_CHECKING([flex version $flex_version >= $flex_min_version])
- if perl -w <<EOF
- (\$min_version_major, \$min_version_minor, \$min_version_micro ) = "$flex_min_version" =~ /(\d+)\.(\d+)\.(\d+)/;
- (\$flex_version_major, \$flex_version_minor, \$flex_version_micro ) = "$flex_version" =~ /(\d+)\.(\d+)\.(\d+)/;
- exit (((\$flex_version_major > \$min_version_major) ||
- ((\$flex_version_major == \$min_version_major) &&
- (\$flex_version_minor > \$min_version_minor)) ||
- ((\$flex_version_major == \$min_version_major) &&
- (\$flex_version_minor == \$min_version_minor) &&
- (\$flex_version_micro >= \$min_version_micro)))
- ? 0 : 1);
-EOF
- then
- AC_MSG_RESULT(yes)
- else
- AC_MSG_ERROR([no])
- fi
-])
|
[-]
[+]
|
Deleted |
_service:tar_git:gstreamer1.0-droid-0.20210304.0.tar.gz/common/m4/gst-platform.m4
^
|
@@ -1,67 +0,0 @@
-dnl AG_GST_PLATFORM
-dnl Check for platform specific features and define some variables
-dnl
-dnl GST_EXTRA_MODULE_SUFFIX: contains a platform specific
-dnl extra module suffix additional to G_MODULE_SUFFIX
-dnl
-dnl HAVE_OSX: Defined if compiling for OS X
-dnl
-dnl GST_HAVE_UNSAFE_FORK: Defined if fork is unsafe (Windows)
-dnl
-dnl HAVE_WIN32: Defined if compiling on Win32
-dnl
-
-AC_DEFUN([AG_GST_PLATFORM],
-[
- AC_REQUIRE([AC_CANONICAL_HOST])
-
- case $host_os in
- rhapsody*)
- AC_DEFINE_UNQUOTED(GST_EXTRA_MODULE_SUFFIX, [".dylib"], [Extra platform specific plugin suffix])
- ;;
- darwin*)
- AC_DEFINE_UNQUOTED(GST_EXTRA_MODULE_SUFFIX, [".dylib"], [Extra platform specific plugin suffix])
- AC_DEFINE_UNQUOTED(HAVE_OSX, 1, [Defined if compiling for OSX])
- ;;
- cygwin*)
- AC_DEFINE_UNQUOTED(GST_HAVE_UNSAFE_FORK, 1, [Defined when registry scanning through fork is unsafe])
- ;;
- mingw* | msvc* | mks*)
- dnl HAVE_WIN32 currently means "disable POSIXisms".
- AC_DEFINE_UNQUOTED(HAVE_WIN32, 1, [Defined if compiling for Windows])
-
- dnl define __MSVCRT_VERSION__ version if not set already by the
- dnl compiler (ie. mostly for mingw). This is needed for things like
- dnl __stat64 to be available. If set by the compiler, ensure it's
- dnl new enough - we need at least WinXP SP2.
- AC_TRY_COMPILE([ ], [ return __MSVCRT_VERSION__; ], [
- AC_TRY_COMPILE([ ], [
- #if __MSVCRT_VERSION__ < 0x0601
- #error "MSVCRT too old"
- #endif
- ], [
- AC_MSG_NOTICE([MSVCRT version looks ok])
- ], [
- AC_MSG_ERROR([MSVCRT version too old, need at least WinXP SP2])
- ])
- ], [
- AC_MSG_NOTICE([Setting MSVCRT version to 0x0601])
- AC_DEFINE_UNQUOTED(__MSVCRT_VERSION__, 0x0601, [We need at least WinXP SP2 for __stat64])
- ])
- ;;
- *)
- ;;
- esac
-])
-
-AC_DEFUN([AG_GST_LIBTOOL_PREPARE],
-[
- dnl Persuade libtool to also link (-l) a 'pure' (DirectX) static lib,
- dnl i.e. as opposed to only import lib with dll counterpart.
- dnl Needs to be tweaked before libtool's checks.
- case $host_os in
- cygwin* | mingw*)
- lt_cv_deplibs_check_method=pass_all
- ;;
- esac
-])
\ No newline at end of file
|
[-]
[+]
|
Deleted |
_service:tar_git:gstreamer1.0-droid-0.20210304.0.tar.gz/common/m4/gst-plugin-docs.m4
^
|
@@ -1,25 +0,0 @@
-dnl AG_GST_PLUGIN_DOCS([MINIMUM-GTK-DOC-VERSION])
-dnl
-dnl checks for prerequisites for the common/mangle-tmpl.py script
-dnl used when building the plugin documentation
-
-AC_DEFUN([AG_GST_PLUGIN_DOCS],
-[
- AC_BEFORE([GTK_DOC_CHECK],[$0])dnl check for gtk-doc first
- AC_REQUIRE([AM_PATH_PYTHON])dnl find python first
-
- build_plugin_docs=no
- AC_MSG_CHECKING([whether to build plugin documentation])
- if test x$enable_gtk_doc = xyes; then
- if test x$PYTHON != x; then
- build_plugin_docs=yes
- AC_MSG_RESULT([yes])
- else
- AC_MSG_RESULT([no (python not found)])
- fi
- else
- AC_MSG_RESULT([no (gtk-doc disabled or not available)])
- fi
-
- AM_CONDITIONAL(ENABLE_PLUGIN_DOCS, test x$build_plugin_docs = xyes)
-])
|
[-]
[+]
|
Deleted |
_service:tar_git:gstreamer1.0-droid-0.20210304.0.tar.gz/common/m4/gst-plugindir.m4
^
|
@@ -1,17 +0,0 @@
-dnl AG_GST_SET_PLUGINDIR
-
-dnl AC_DEFINE PLUGINDIR to the full location where plug-ins will be installed
-dnl AC_SUBST plugindir, to be used in Makefile.am's
-
-AC_DEFUN([AG_GST_SET_PLUGINDIR],
-[
- dnl define location of plugin directory
- AS_AC_EXPAND(PLUGINDIR, ${libdir}/gstreamer-$GST_API_VERSION)
- AC_DEFINE_UNQUOTED(PLUGINDIR, "$PLUGINDIR",
- [directory where plugins are located])
- AC_MSG_NOTICE([Using $PLUGINDIR as the plugin install location])
-
- dnl plugin directory configure-time variable for use in Makefile.am
- plugindir="\$(libdir)/gstreamer-$GST_API_VERSION"
- AC_SUBST(plugindir)
-])
|
[-]
[+]
|
Deleted |
_service:tar_git:gstreamer1.0-droid-0.20210304.0.tar.gz/common/m4/gst-valgrind.m4
^
|
@@ -1,35 +0,0 @@
-AC_DEFUN([AG_GST_VALGRIND_CHECK],
-[
- dnl valgrind inclusion
- AC_ARG_ENABLE(valgrind,
- AC_HELP_STRING([--disable-valgrind], [disable run-time valgrind detection]),
- [
- case "${enableval}" in
- yes) USE_VALGRIND="$USE_DEBUG" ;;
- no) USE_VALGRIND=no ;;
- *) AC_MSG_ERROR(bad value ${enableval} for --enable-valgrind) ;;
- esac],
- [
- USE_VALGRIND="$USE_DEBUG"
- ]) dnl Default value
-
- VALGRIND_REQ="3.0"
- if test "x$USE_VALGRIND" = xyes; then
- PKG_CHECK_MODULES(VALGRIND, valgrind >= $VALGRIND_REQ,
- USE_VALGRIND="yes",
- [
- USE_VALGRIND="no"
- AC_MSG_RESULT([no])
- ])
- fi
-
- if test "x$USE_VALGRIND" = xyes; then
- AC_DEFINE(HAVE_VALGRIND, 1, [Define if valgrind should be used])
- AC_MSG_NOTICE(Using extra code paths for valgrind)
- 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")
-])
|
[-]
[+]
|
Deleted |
_service:tar_git:gstreamer1.0-droid-0.20210304.0.tar.gz/common/m4/gst-x11.m4
^
|
@@ -1,70 +0,0 @@
-dnl macros for X-related detections
-dnl AC_SUBST's HAVE_X, X_CFLAGS, X_LIBS
-AC_DEFUN([AG_GST_CHECK_X],
-[
- AC_PATH_XTRA
- ac_cflags_save="$CFLAGS"
- ac_cppflags_save="$CPPFLAGS"
- CFLAGS="$CFLAGS $X_CFLAGS"
- CPPFLAGS="$CPPFLAGS $X_CFLAGS"
-
- dnl now try to find the HEADER
- AC_CHECK_HEADER(X11/Xlib.h, HAVE_X="yes", HAVE_X="no")
-
- if test "x$HAVE_X" = "xno"
- then
- AC_MSG_NOTICE([cannot find X11 development files])
- else
- dnl this is much more than we want
- X_LIBS="$X_LIBS $X_PRE_LIBS $X_EXTRA_LIBS"
- dnl AC_PATH_XTRA only defines the path needed to find the X libs,
- dnl it does not add the libs; therefore we add them here
- X_LIBS="$X_LIBS -lX11"
- AC_SUBST(X_CFLAGS)
- AC_SUBST(X_LIBS)
- fi
- AC_SUBST(HAVE_X)
-
- CFLAGS="$ac_cflags_save"
- CPPFLAGS="$ac_cppflags_save"
-])
-
-dnl *** XVideo ***
-dnl Look for the PIC library first, Debian requires it.
-dnl Check debian-devel archives for gory details.
-dnl 20020110:
-dnl At the moment XFree86 doesn't distribute shared libXv due
-dnl to unstable API. On many platforms you CAN NOT link a shared
-dnl lib to a static non-PIC lib. This is what the xvideo GStreamer
-dnl plug-in wants to do. So Debian distributes a PIC compiled
-dnl version of the static lib for plug-ins to link to when it is
-dnl inappropriate to link the main application to libXv directly.
-dnl FIXME: add check if this platform can support linking to a
-dnl non-PIC libXv, if not then don not use Xv.
-dnl FIXME: perhaps warn user if they have a shared libXv since
-dnl this is an error until XFree86 starts shipping one
-AC_DEFUN([AG_GST_CHECK_XV],
-[
- if test x$HAVE_X = xyes; then
- AC_CHECK_LIB(Xv_pic, XvQueryExtension,
- HAVE_XVIDEO="yes", HAVE_XVIDEO="no",
- $X_LIBS -lXext)
-
- if test x$HAVE_XVIDEO = xyes; then
- XVIDEO_LIBS="-lXv_pic -lXext"
- AC_SUBST(XVIDEO_LIBS)
- else
- dnl try again using something else if we didn't find it first
- if test x$HAVE_XVIDEO = xno; then
- AC_CHECK_LIB(Xv, XvQueryExtension,
- HAVE_XVIDEO="yes", HAVE_XVIDEO="no",
- $X_LIBS -lXext)
-
- if test x$HAVE_XVIDEO = xyes; then
- XVIDEO_LIBS="-lXv -lXext"
- AC_SUBST(XVIDEO_LIBS)
- fi
- fi
- fi
- fi
-])
|
[-]
[+]
|
Deleted |
_service:tar_git:gstreamer1.0-droid-0.20210304.0.tar.gz/common/m4/gst.m4
^
|
@@ -1,36 +0,0 @@
-dnl AG_GST_INIT
-dnl sets up use of GStreamer configure.ac macros
-dnl all GStreamer autoconf macros are prefixed
-dnl with AG_GST_ for public macros
-dnl with _AG_GST_ for private macros
-dnl
-dnl We call AC_CANONICAL_TARGET and AC_CANONICAL_HOST so that
-dnl it is valid before AC_ARG_PROGRAM is called
-
-AC_DEFUN([AG_GST_INIT],
-[
- m4_pattern_forbid(^_?AG_GST_)
- AC_REQUIRE([AC_CANONICAL_HOST]) dnl we use host_ variables
- AC_REQUIRE([AC_CANONICAL_TARGET]) dnl we use target_ variables
-])
-
-dnl AG_GST_PKG_CONFIG_PATH
-dnl
-dnl sets up a GST_PKG_CONFIG_PATH variable for use in Makefile.am
-dnl which contains the path of the in-tree pkgconfig directory first
-dnl and then any paths specified in PKG_CONFIG_PATH.
-dnl
-dnl We do this mostly so we don't have to use unportable shell constructs
-dnl such as ${PKG_CONFIG_PATH:+:$PKG_CONFIG_PATH} in Makefile.am to handle
-dnl the case where the environment variable is not set, but also in order
-dnl to avoid a trailing ':' in the PKG_CONFIG_PATH which apparently causes
-dnl problems with pkg-config on windows with msys/mingw.
-AC_DEFUN([AG_GST_PKG_CONFIG_PATH],
-[
- GST_PKG_CONFIG_PATH="\$(top_builddir)/pkgconfig"
- if test "x$PKG_CONFIG_PATH" != "x"; then
- GST_PKG_CONFIG_PATH="$GST_PKG_CONFIG_PATH:$PKG_CONFIG_PATH"
- fi
- AC_SUBST([GST_PKG_CONFIG_PATH])
- AC_MSG_NOTICE([Using GST_PKG_CONFIG_PATH = $GST_PKG_CONFIG_PATH])
-])
|
[-]
[+]
|
Deleted |
_service:tar_git:gstreamer1.0-droid-0.20210304.0.tar.gz/common/m4/gtk-doc.m4
^
|
@@ -1,70 +0,0 @@
-dnl -*- mode: autoconf -*-
-
-# serial 1
-
-dnl Usage:
-dnl GTK_DOC_CHECK([minimum-gtk-doc-version])
-AC_DEFUN([GTK_DOC_CHECK],
-[
- AC_REQUIRE([PKG_PROG_PKG_CONFIG])
- AC_BEFORE([AC_PROG_LIBTOOL],[$0])dnl setup libtool first
- AC_BEFORE([AM_PROG_LIBTOOL],[$0])dnl setup libtool first
-
- dnl check for tools we added during development
- AC_PATH_PROG([GTKDOC_CHECK],[gtkdoc-check])
- AC_PATH_PROGS([GTKDOC_REBASE],[gtkdoc-rebase],[true])
- AC_PATH_PROG([GTKDOC_MKPDF],[gtkdoc-mkpdf])
-
- dnl for overriding the documentation installation directory
- AC_ARG_WITH([html-dir],
- AS_HELP_STRING([--with-html-dir=PATH], [path to installed docs]),,
- [with_html_dir='${datadir}/gtk-doc/html'])
- HTML_DIR="$with_html_dir"
- AC_SUBST([HTML_DIR])
-
- dnl enable/disable documentation building
- AC_ARG_ENABLE([gtk-doc],
- AS_HELP_STRING([--enable-gtk-doc],
- [use gtk-doc to build documentation [[default=no]]]),,
- [enable_gtk_doc=no])
-
- if test x$enable_gtk_doc = xyes; then
- ifelse([$1],[],
- [PKG_CHECK_EXISTS([gtk-doc],,
- AC_MSG_ERROR([gtk-doc not installed and --enable-gtk-doc requested]))],
- [PKG_CHECK_EXISTS([gtk-doc >= $1],,
- AC_MSG_ERROR([You need to have gtk-doc >= $1 installed to build $PACKAGE_NAME]))])
- dnl don't check for glib if we build glib
- if test "x$PACKAGE_NAME" != "xglib"; then
- dnl don't fail if someone does not have glib
- PKG_CHECK_MODULES(GTKDOC_DEPS, glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0,,)
- fi
- dnl don't rely on sed being pulled in implicitly. Fixes Solaris build.
- if test -z "$SED"; then
- AC_PROG_SED
- fi
- fi
-
- AC_MSG_CHECKING([whether to build gtk-doc documentation])
- AC_MSG_RESULT($enable_gtk_doc)
-
- dnl enable/disable output formats
- AC_ARG_ENABLE([gtk-doc-html],
- AS_HELP_STRING([--enable-gtk-doc-html],
- [build documentation in html format [[default=yes]]]),,
- [enable_gtk_doc_html=yes])
- AC_ARG_ENABLE([gtk-doc-pdf],
- AS_HELP_STRING([--enable-gtk-doc-pdf],
- [build documentation in pdf format [[default=no]]]),,
- [enable_gtk_doc_pdf=no])
-
- if test -z "$GTKDOC_MKPDF"; then
- enable_gtk_doc_pdf=no
- fi
-
-
- AM_CONDITIONAL([ENABLE_GTK_DOC], [test x$enable_gtk_doc = xyes])
- AM_CONDITIONAL([GTK_DOC_BUILD_HTML], [test x$enable_gtk_doc_html = xyes])
- AM_CONDITIONAL([GTK_DOC_BUILD_PDF], [test x$enable_gtk_doc_pdf = xyes])
- AM_CONDITIONAL([GTK_DOC_USE_LIBTOOL], [test -n "$LIBTOOL"])
-])
|
[-]
[+]
|
Deleted |
_service:tar_git:gstreamer1.0-droid-0.20210304.0.tar.gz/common/m4/introspection.m4
^
|
@@ -1,94 +0,0 @@
-dnl -*- mode: autoconf -*-
-dnl Copyright 2009 Johan Dahlin
-dnl
-dnl This file is free software; the author(s) gives unlimited
-dnl permission to copy and/or distribute it, with or without
-dnl modifications, as long as this notice is preserved.
-dnl
-
-# serial 1
-
-m4_define([_GOBJECT_INTROSPECTION_CHECK_INTERNAL],
-[
- AC_BEFORE([AC_PROG_LIBTOOL],[$0])dnl setup libtool first
- AC_BEFORE([AM_PROG_LIBTOOL],[$0])dnl setup libtool first
- AC_BEFORE([LT_INIT],[$0])dnl setup libtool first
-
- dnl enable/disable introspection
- m4_if([$2], [require],
- [dnl
- enable_introspection=yes
- ],[dnl
- AC_ARG_ENABLE(introspection,
- AS_HELP_STRING([--enable-introspection[=@<:@no/auto/yes@:>@]],
- [Enable introspection for this build]),,
- [enable_introspection=auto])
- ])dnl
-
- AC_MSG_CHECKING([for gobject-introspection])
-
- dnl presence/version checking
- AS_CASE([$enable_introspection],
- [no], [dnl
- found_introspection="no (disabled, use --enable-introspection to enable)"
- ],dnl
- [yes],[dnl
- PKG_CHECK_EXISTS([gobject-introspection-1.0],,
- AC_MSG_ERROR([gobject-introspection-1.0 is not installed]))
- PKG_CHECK_EXISTS([gobject-introspection-1.0 >= $1],
- found_introspection=yes,
- AC_MSG_ERROR([You need to have gobject-introspection >= $1 installed to build AC_PACKAGE_NAME]))
- ],dnl
- [auto],[dnl
- PKG_CHECK_EXISTS([gobject-introspection-1.0 >= $1], found_introspection=yes, found_introspection=no)
- ],dnl
- [dnl
- AC_MSG_ERROR([invalid argument passed to --enable-introspection, should be one of @<:@no/auto/yes@:>@])
- ])dnl
-
- AC_MSG_RESULT([$found_introspection])
-
- INTROSPECTION_SCANNER=
- INTROSPECTION_COMPILER=
- INTROSPECTION_GENERATE=
- INTROSPECTION_GIRDIR=
- INTROSPECTION_TYPELIBDIR=
- if test "x$found_introspection" = "xyes"; then
- INTROSPECTION_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0`
- INTROSPECTION_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0`
- INTROSPECTION_GENERATE=`$PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0`
- INTROSPECTION_GIRDIR=`$PKG_CONFIG --variable=girdir gobject-introspection-1.0`
- INTROSPECTION_TYPELIBDIR="$($PKG_CONFIG --variable=typelibdir gobject-introspection-1.0)"
- INTROSPECTION_CFLAGS=`$PKG_CONFIG --cflags gobject-introspection-1.0`
- INTROSPECTION_LIBS=`$PKG_CONFIG --libs gobject-introspection-1.0`
- INTROSPECTION_MAKEFILE=`$PKG_CONFIG --variable=datadir gobject-introspection-1.0`/gobject-introspection-1.0/Makefile.introspection
- fi
- AC_SUBST(INTROSPECTION_SCANNER)
- AC_SUBST(INTROSPECTION_COMPILER)
- AC_SUBST(INTROSPECTION_GENERATE)
- AC_SUBST(INTROSPECTION_GIRDIR)
- AC_SUBST(INTROSPECTION_TYPELIBDIR)
- AC_SUBST(INTROSPECTION_CFLAGS)
- AC_SUBST(INTROSPECTION_LIBS)
- AC_SUBST(INTROSPECTION_MAKEFILE)
-
- AM_CONDITIONAL(HAVE_INTROSPECTION, test "x$found_introspection" = "xyes")
-])
-
-
-dnl Usage:
-dnl GOBJECT_INTROSPECTION_CHECK([minimum-g-i-version])
-
-AC_DEFUN([GOBJECT_INTROSPECTION_CHECK],
-[
- _GOBJECT_INTROSPECTION_CHECK_INTERNAL([$1])
-])
-
-dnl Usage:
-dnl GOBJECT_INTROSPECTION_REQUIRE([minimum-g-i-version])
-
-
-AC_DEFUN([GOBJECT_INTROSPECTION_REQUIRE],
-[
- _GOBJECT_INTROSPECTION_CHECK_INTERNAL([$1], [require])
-])
|
[-]
[+]
|
Deleted |
_service:tar_git:gstreamer1.0-droid-0.20210304.0.tar.gz/common/m4/orc.m4
^
|
@@ -1,70 +0,0 @@
-dnl pkg-config-based checks for Orc
-
-dnl specific:
-dnl ORC_CHECK([REQUIRED_VERSION])
-
-AC_DEFUN([ORC_CHECK],
-[
- ORC_REQ=ifelse([$1], , "0.4.6", [$1])
-
- AC_ARG_ENABLE(orc,
- AC_HELP_STRING([--enable-orc],[use Orc if installed]),
- [case "${enableval}" in
- auto) enable_orc=auto ;;
- yes) enable_orc=yes ;;
- no) enable_orc=no ;;
- *) AC_MSG_ERROR(bad value ${enableval} for --enable-orc) ;;
- esac
- ],
- [enable_orc=auto]) dnl Default value
-
- if test "x$enable_orc" != "xno" ; then
- PKG_CHECK_MODULES(ORC, orc-0.4 >= $ORC_REQ, [
- AC_DEFINE(HAVE_ORC, 1, [Use Orc])
- HAVE_ORC=yes
- if test "x$ORCC" = "x" ; then
- AC_MSG_CHECKING(for usable orcc)
- ORCC=`$PKG_CONFIG --variable=orcc orc-0.4`
- dnl check whether the orcc found by pkg-config can be run from the build environment
- dnl if this is not the case (e.g. when cross-compiling) fall back to orcc from PATH
- AS_IF([$ORCC --version 1> /dev/null 2> /dev/null], [], [ORCC=`which orcc`])
- AC_MSG_RESULT($ORCC)
- fi
- AC_SUBST(ORCC)
- ORCC_FLAGS="--compat $ORC_REQ"
- AC_SUBST(ORCC_FLAGS)
- AS_IF([test "x$ORCC" = "x"], [HAVE_ORCC=no], [HAVE_ORCC=yes])
- ], [
- if test "x$enable_orc" = "xyes" ; then
- AC_MSG_ERROR([--enable-orc specified, but Orc >= $ORC_REQ not found])
- fi
- AC_DEFINE(DISABLE_ORC, 1, [Disable Orc])
- HAVE_ORC=no
- HAVE_ORCC=no
- ])
- else
- AC_DEFINE(DISABLE_ORC, 1, [Disable Orc])
- HAVE_ORC=no
- HAVE_ORCC=no
- fi
- AM_CONDITIONAL(HAVE_ORC, [test "x$HAVE_ORC" = "xyes"])
- AM_CONDITIONAL(HAVE_ORCC, [test "x$HAVE_ORCC" = "xyes"])
-
-]))
-
-AC_DEFUN([ORC_OUTPUT],
-[
- if test "$HAVE_ORC" = yes ; then
- printf "configure: *** Orc acceleration enabled.\n"
- else
- if test "x$enable_orc" = "xno" ; then
- printf "configure: *** Orc acceleration disabled by --disable-orc. Slower code paths\n"
- printf " will be used.\n"
- else
- printf "configure: *** Orc acceleration disabled. Requires Orc >= $ORC_REQ, which was\n"
- printf " not found. Slower code paths will be used.\n"
- fi
- fi
- printf "\n"
-])
-
|
[-]
[+]
|
Deleted |
_service:tar_git:gstreamer1.0-droid-0.20210304.0.tar.gz/common/m4/pkg.m4
^
|
@@ -1,157 +0,0 @@
-# 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
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-# General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-#
-# As a special exception to the GNU General Public License, if you
-# distribute this file as part of a program that contains a
-# configuration script generated by Autoconf, you may include it under
-# the same distribution terms that you use for the rest of that program.
-
-# PKG_PROG_PKG_CONFIG([MIN-VERSION])
-# ----------------------------------
-AC_DEFUN([PKG_PROG_PKG_CONFIG],
-[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
-m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
-AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl
-if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
- AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
-fi
-if test -n "$PKG_CONFIG"; then
- _pkg_min_version=m4_default([$1], [0.9.0])
- AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
- if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
- AC_MSG_RESULT([yes])
- else
- AC_MSG_RESULT([no])
- PKG_CONFIG=""
- fi
-
-fi[]dnl
-])# PKG_PROG_PKG_CONFIG
-
-# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
-#
-# Check to see whether a particular set of modules exists. Similar
-# to PKG_CHECK_MODULES(), but does not set variables or print errors.
-#
-#
-# Similar to PKG_CHECK_MODULES, make sure that the first instance of
-# this or PKG_CHECK_MODULES is called, or make sure to call
-# PKG_CHECK_EXISTS manually
-# --------------------------------------------------------------
-AC_DEFUN([PKG_CHECK_EXISTS],
-[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
-if test -n "$PKG_CONFIG" && \
- AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
- m4_ifval([$2], [$2], [:])
-m4_ifvaln([$3], [else
- $3])dnl
-fi])
-
-
-# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
-# ---------------------------------------------
-m4_define([_PKG_CONFIG],
-[if test -n "$PKG_CONFIG"; then
- if test -n "$$1"; then
- pkg_cv_[]$1="$$1"
- else
- PKG_CHECK_EXISTS([$3],
- [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
- [pkg_failed=yes])
- fi
-else
- pkg_failed=untried
-fi[]dnl
-])# _PKG_CONFIG
-
-# _PKG_SHORT_ERRORS_SUPPORTED
-# -----------------------------
-AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
-[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
-if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
- _pkg_short_errors_supported=yes
-else
- _pkg_short_errors_supported=no
-fi[]dnl
-])# _PKG_SHORT_ERRORS_SUPPORTED
-
-
-# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
-# [ACTION-IF-NOT-FOUND])
-#
-#
-# Note that if there is a possibility the first call to
-# PKG_CHECK_MODULES might not happen, you should be sure to include an
-# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
-#
-#
-# --------------------------------------------------------------
-AC_DEFUN([PKG_CHECK_MODULES],
-[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
-AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
-AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
-
-pkg_failed=no
-AC_MSG_CHECKING([for $1])
-
-_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
-_PKG_CONFIG([$1][_LIBS], [libs], [$2])
-
-m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
-and $1[]_LIBS to avoid the need to call pkg-config.
-See the pkg-config man page for more details.])
-
-if test $pkg_failed = yes; then
- _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
- $1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
- fi
- # Put the nasty error message in config.log where it belongs
- echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
-
- ifelse([$4], , [AC_MSG_ERROR(dnl
-[Package requirements ($2) were not met:
-
-$$1_PKG_ERRORS
-
-Consider adjusting the PKG_CONFIG_PATH environment variable if you
-installed software in a non-standard prefix.
-
-_PKG_TEXT
-])],
- [AC_MSG_RESULT([no])
- $4])
-elif test $pkg_failed = untried; then
- ifelse([$4], , [AC_MSG_FAILURE(dnl
-[The pkg-config script could not be found or is too old. Make sure it
-is in your PATH or set the PKG_CONFIG environment variable to the full
-path to pkg-config.
-
-_PKG_TEXT
-
-To get pkg-config, see <http://pkg-config.freedesktop.org/>.])],
- [$4])
-else
- $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
- $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
- AC_MSG_RESULT([yes])
- ifelse([$3], , :, [$3])
-fi[]dnl
-])# PKG_CHECK_MODULES
|
[-]
[+]
|
Deleted |
_service:tar_git:gstreamer1.0-droid-0.20210304.0.tar.gz/common/mangle-tmpl.py
^
|
@@ -1,165 +0,0 @@
-# -*- Mode: Python -*-
-# vi:si:et:sw=4:sts=4:ts=4
-
-"""
-use the output from gst-xmlinspect.py to mangle tmpl/*.sgml and
-insert/overwrite Short Description and Long Description
-"""
-
-# FIXME: right now it uses pygst and scans on its own;
-# we really should use inspect/*.xml instead since the result of
-# gst-xmlinspect.py is committed by the docs maintainer, who can be
-# expected to have pygst, but this step should be done for every docs build,
-# so no pygst allowed
-
-# read in inspect/*.xml
-# for every tmpl/element-(name).xml: mangle with details from element
-
-from __future__ import print_function, unicode_literals
-
-import glob
-import re
-import sys
-import os
-
-class Tmpl:
- def __init__(self, filename):
- self.filename = filename
- self._sectionids = []
- self._sections = {}
-
- def read(self):
- """
- Read and parse the sections from the given file.
- """
- lines = open(self.filename).readlines()
- matcher = re.compile("<!-- ##### SECTION (\S+) ##### -->\n")
- id = None
-
- for line in lines:
- match = matcher.search(line)
- if match:
- id = match.expand("\\1")
- self._sectionids.append(id)
- self._sections[id] = []
- else:
- if not id:
- sys.stderr.write(
- "WARNING: line before a SECTION header: %s" % line)
- else:
- self._sections[id].append(line)
-
- def get_section(self, id):
- """
- Get the content from the given section.
- """
- return self._sections[id]
-
- def set_section(self, id, content):
- """
- Replace the given section id with the given content.
- """
- self._sections[id] = content
-
- def output(self):
- """
- Return the output of the current template in the tmpl/*.sgml format.
- """
- lines = []
- for id in self._sectionids:
- lines.append("<!-- ##### SECTION %s ##### -->\n" % id)
- for line in self._sections[id]:
- lines.append(line)
-
- return "".join(lines)
-
- def write(self, backup=False):
- """
- Write out the template file again, backing up the previous one.
- """
- if backup:
- target = self.filename + ".mangle.bak"
- os.rename(self.filename, target)
-
- handle = open(self.filename, "w")
- handle.write(self.output())
- handle.close()
-
-import xml.dom.minidom
-
-def get_elements(file):
- elements = {}
- doc = xml.dom.minidom.parse(file)
-
- elem = None
- for e in doc.childNodes:
- if e.nodeType == e.ELEMENT_NODE and e.localName == 'plugin':
- elem = e
- break
- if elem == None:
- return None
-
- elem2 = None
- for e in elem.childNodes:
- if e.nodeType == e.ELEMENT_NODE and e.localName == 'elements':
- elem2 = e
- break
- if elem2 == None:
- return None
-
- elem = elem2
-
- for e in elem.childNodes:
- if e.nodeType == e.ELEMENT_NODE and e.localName == 'element':
- name = None
- description = None
-
- for e2 in e.childNodes:
- if e2.nodeType == e2.ELEMENT_NODE and e2.localName == 'name':
- name = e2.childNodes[0].nodeValue.encode("UTF-8")
- elif e2.nodeType == e2.ELEMENT_NODE and e2.localName == 'description':
- if e2.childNodes:
- description = e2.childNodes[0].nodeValue.encode("UTF-8")
- else:
- description = 'No description'
-
- if name != None and description != None:
- 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')
- sys.exit(1)
-
- inspectdir = sys.argv[1]
- tmpldir = sys.argv[2]
-
- # parse all .xml files; build map of element name -> short desc
- #for file in glob.glob("inspect/plugin-*.xml"):
- elements = {}
- for file in glob.glob("%s/plugin-*.xml" % inspectdir):
- elements.update(get_elements(file))
-
- for file in glob.glob("%s/element-*.sgml" % tmpldir):
- base = os.path.basename(file)
- element = base[len("element-"):-len(".sgml")]
- tmpl = Tmpl(file)
- tmpl.read()
- if element in elements.keys():
- description = elements[element]['description']
- tmpl.set_section("Short_Description", "%s\n\n" % description)
-
- # put in an include if not yet there
- line = '<include xmlns="http://www.w3.org/2003/XInclude" href="' + \
- 'element-' + element + '-details.xml">' + \
- '<fallback xmlns="http://www.w3.org/2003/XInclude" />' + \
- '</include>\n'
- section = tmpl.get_section("Long_Description")
- if not section[0] == line:
- section.insert(0, line)
- tmpl.set_section("Long_Description", section)
- tmpl.write()
-
-main()
|
[-]
[+]
|
Deleted |
_service:tar_git:gstreamer1.0-droid-0.20210304.0.tar.gz/common/orc.mak
^
|
@@ -1,76 +0,0 @@
-#
-# This is a makefile.am fragment to build Orc code.
-#
-# Define ORC_SOURCE and then include this file, such as:
-#
-# ORC_SOURCE=gstadderorc
-# include $(top_srcdir)/common/orc.mak
-#
-# This fragment will create tmp-orc.c and gstadderorc.h from
-# gstadderorc.orc.
-#
-# When 'make dist' is run at the top level, or 'make orc-update'
-# in a directory including this fragment, the generated source
-# files will be copied to $(ORC_SOURCE)-dist.[ch]. These files
-# should be checked in to git, since they are used if Orc is
-# disabled.
-#
-# Note that this file defines BUILT_SOURCES, so any later usage
-# of BUILT_SOURCES in the Makefile.am that includes this file
-# must use '+='.
-#
-
-
-EXTRA_DIST = $(ORC_SOURCE).orc
-
-ORC_NODIST_SOURCES = tmp-orc.c $(ORC_SOURCE).h
-BUILT_SOURCES = tmp-orc.c $(ORC_SOURCE).h
-
-
-orc-update: tmp-orc.c $(ORC_SOURCE).h
- $(top_srcdir)/common/gst-indent tmp-orc.c
- cp tmp-orc.c $(srcdir)/$(ORC_SOURCE)-dist.c
- cp $(ORC_SOURCE).h $(srcdir)/$(ORC_SOURCE)-dist.h
-
-orcc_v_gen = $(orcc_v_gen_$(V))
-orcc_v_gen_ = $(orcc_v_gen_$(AM_DEFAULT_VERBOSITY))
-orcc_v_gen_0 = @echo " ORCC $@";
-
-cp_v_gen = $(cp_v_gen_$(V))
-cp_v_gen_ = $(cp_v_gen_$(AM_DEFAULT_VERBOSITY))
-cp_v_gen_0 = @echo " CP $@";
-
-if HAVE_ORCC
-tmp-orc.c: $(srcdir)/$(ORC_SOURCE).orc
- $(orcc_v_gen)$(ORCC) $(ORCC_FLAGS) --implementation --include glib.h -o tmp-orc.c $(srcdir)/$(ORC_SOURCE).orc
-
-$(ORC_SOURCE).h: $(srcdir)/$(ORC_SOURCE).orc
- $(orcc_v_gen)$(ORCC) $(ORCC_FLAGS) --header --include glib.h -o $(ORC_SOURCE).h $(srcdir)/$(ORC_SOURCE).orc
-else
-tmp-orc.c: $(srcdir)/$(ORC_SOURCE).orc $(srcdir)/$(ORC_SOURCE)-dist.c
- $(cp_v_gen)cp $(srcdir)/$(ORC_SOURCE)-dist.c tmp-orc.c
-
-$(ORC_SOURCE).h: $(srcdir)/$(ORC_SOURCE).orc $(srcdir)/$(ORC_SOURCE)-dist.c
- $(cp_v_gen)cp $(srcdir)/$(ORC_SOURCE)-dist.h $(ORC_SOURCE).h
-endif
-
-clean-local: clean-orc
-.PHONY: clean-orc
-clean-orc:
- rm -f tmp-orc.c $(ORC_SOURCE).h
-
-dist-hook: dist-hook-orc
-.PHONY: dist-hook-orc
-
-# we try and copy updated orc -dist files below, but don't fail if it
-# doesn't work as the srcdir might not be writable
-dist-hook-orc: tmp-orc.c $(ORC_SOURCE).h
- $(top_srcdir)/common/gst-indent tmp-orc.c
- rm -f tmp-orc.c~
- cmp -s tmp-orc.c $(srcdir)/$(ORC_SOURCE)-dist.c || \
- cp tmp-orc.c $(srcdir)/$(ORC_SOURCE)-dist.c || true
- cmp -s $(ORC_SOURCE).h $(srcdir)/$(ORC_SOURCE)-dist.h || \
- cp $(ORC_SOURCE).h $(srcdir)/$(ORC_SOURCE)-dist.h || true
- cp -p tmp-orc.c $(distdir)/$(ORC_SOURCE)-dist.c
- cp -p $(ORC_SOURCE).h $(distdir)/$(ORC_SOURCE)-dist.h
-
|
[-]
[+]
|
Deleted |
_service:tar_git:gstreamer1.0-droid-0.20210304.0.tar.gz/common/parallel-subdirs.mak
^
|
@@ -1,13 +0,0 @@
-# include this at the end of $MODULE/ext/Makefile.am to force make to
-# build subdirectories in parallel when make -jN is used. We will end up
-# descending into all subdirectories a second time, but only after the first
-# (parallel) run has finished, so it should go right through the second time.
-
-.PHONY: independent-subdirs $(SUBDIRS)
-
-independent-subdirs: $(SUBDIRS)
-
-$(SUBDIRS):
- $(MAKE) -C $@
-
-all-recursive: independent-subdirs
|
[-]
[+]
|
Deleted |
_service:tar_git:gstreamer1.0-droid-0.20210304.0.tar.gz/common/plugins.xsl
^
|
@@ -1,209 +0,0 @@
-<?xml version='1.0'?> <!--*- mode: xml -*-->
-
-<xsl:stylesheet
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:exsl="http://exslt.org/common"
- xmlns:str="http://exslt.org/strings"
- extension-element-prefixes="exsl str"
- 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"/>
-
-<xsl:param name="module" />
-
- <xsl:template match="element">
- <xsl:element name="varlistentry">
- <xsl:element name="term">
- <xsl:element name="link">
- <xsl:attribute name="linkend"><xsl:value-of select="$module" />-plugins-<xsl:value-of select="name"/></xsl:attribute>
- <xsl:value-of select="name" />
- </xsl:element>
- </xsl:element>
- <xsl:element name="listitem">
- <xsl:element name="simpara"><xsl:value-of select="description" /></xsl:element>
- </xsl:element>
- </xsl:element>
- <xsl:variable name="name"><xsl:copy-of select="name"/></xsl:variable>
- <!-- here we write an element-(name)-details.xml file for the element -->
- <exsl:document href="{concat ('xml/element-', $name, '-details.xml')}" method="xml" indent="yes">
-
- <xsl:element name="refsynopsisdiv">
- <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 name="listitem">
- <xsl:element name="simpara">
- <xsl:element name="link">
- <xsl:attribute name="linkend">plugin-<xsl:value-of select="../../name"/></xsl:attribute>
- <xsl:value-of select="../../name" />
- </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:for-each select="pads/caps">
- <xsl:element name="variablelist">
- <xsl:element name="varlistentry">
- <xsl:element name="term">name</xsl:element>
- <xsl:element name="listitem">
- <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:if test="position()=1">details</xsl:if>
- </xsl:element>
- <xsl:element name="listitem">
- <xsl:element name="simpara"><xsl:value-of select='.'/></xsl:element>
- </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 -->
-
- </exsl:document>
- </xsl:template>
-
- <xsl:template match="plugin">
- <xsl:element name="refentry">
- <xsl:attribute name="id"><xsl:value-of select="$module" />-plugins-plugin-<xsl:value-of select="name"/></xsl:attribute>
-
- <xsl:element name="refmeta">
- <xsl:element name="refentrytitle">
- <xsl:value-of select="name"/>
- </xsl:element>
- <xsl:element name="manvolnum">3</xsl:element>
- <xsl:element name="refmiscinfo">FIXME Library</xsl:element>
- </xsl:element> <!-- refmeta -->
-
- <xsl:element name="refnamediv">
- <xsl:element name="refname">
- <xsl:value-of select="name"/>
- </xsl:element>
-
- <xsl:element name="refpurpose">
- <xsl:element name="anchor">
- <xsl:attribute name="id">plugin-<xsl:value-of select="name"/></xsl:attribute>
- </xsl:element>
- <xsl:value-of select="description"/>
- </xsl:element>
- </xsl:element>
-
- <xsl:element name="refsect1">
- <xsl:element name="title">Plugin Information</xsl:element>
- <xsl:element name="variablelist">
-
- <xsl:element name="varlistentry">
- <xsl:element name="term">filename</xsl:element>
- <xsl:element name="listitem">
- <xsl:element name="simpara"><xsl:value-of select="basename" /></xsl:element>
- </xsl:element>
- </xsl:element>
-
- <xsl:element name="varlistentry">
- <xsl:element name="term">version</xsl:element>
- <xsl:element name="listitem">
- <xsl:element name="simpara"><xsl:value-of select="version" /></xsl:element>
- </xsl:element>
- </xsl:element>
-
- <xsl:element name="varlistentry">
- <xsl:element name="term">run-time license</xsl:element>
- <xsl:element name="listitem">
- <xsl:element name="simpara"><xsl:value-of select="license" /></xsl:element>
- </xsl:element>
- </xsl:element>
-
- <xsl:element name="varlistentry">
- <xsl:element name="term">package</xsl:element>
- <xsl:element name="listitem">
- <xsl:element name="simpara"><xsl:value-of select="package" /></xsl:element>
- </xsl:element>
- </xsl:element>
-
- <xsl:element name="varlistentry">
- <xsl:element name="term">origin</xsl:element>
- <xsl:element name="listitem">
- <xsl:element name="simpara">
- <!-- only show origin as link if it starts with http -->
- <xsl:choose>
- <xsl:when test="substring(@href, 1, 4) = 'http'">
- <xsl:element name="ulink">
- <xsl:attribute name="url"><xsl:value-of select="origin" /></xsl:attribute>
- <xsl:value-of select="origin" />
- </xsl:element>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="origin" />
- </xsl:otherwise>
- </xsl:choose>
- </xsl:element>
- </xsl:element>
- </xsl:element>
-
- </xsl:element>
- </xsl:element>
-
- <xsl:element name="refsect1">
- <xsl:element name="title">Elements</xsl:element>
- <!-- process all elements -->
- <xsl:element name="variablelist">
- <xsl:apply-templates select="elements"/>
- </xsl:element>
|
[-]
[+]
|
Deleted |
_service:tar_git:gstreamer1.0-droid-0.20210304.0.tar.gz/common/po.mak
^
|
@@ -1,4 +0,0 @@
-# rule to download the latest .po files
-download-po: $(top_srcdir)/common/download-translations
- $(top_srcdir)/common/download-translations $(PACKAGE)
-
|
[-]
[+]
|
Deleted |
_service:tar_git:gstreamer1.0-droid-0.20210304.0.tar.gz/common/release.mak
^
|
@@ -1,34 +0,0 @@
-# include this snippet to add a common release: target by using
-# include $(top_srcdir)/common/release.mak
-
-release: dist
- @$(MAKE) $(PACKAGE)-$(VERSION).tar.xz.sha256sum
- @echo
- @echo "================================================================================================="
- @echo "http://gstreamer.freedesktop.org/src/$(PACKAGE)/$(PACKAGE)-$(VERSION).tar.xz"
- @cat $(PACKAGE)-$(VERSION).tar.xz.sha256sum
- @echo "================================================================================================="
- @if [ -d ~/releases/ ]; then \
- cp -v $(PACKAGE)-$(VERSION).tar.xz ~/releases/; \
- fi
- @if [ -d ../www/data/src ]; then \
- mv -v $(PACKAGE)-$(VERSION).tar.xz ../www/data/src/$(PACKAGE)/ ; \
- mv -v $(PACKAGE)-$(VERSION).tar.xz.sha256sum ../www/data/src/$(PACKAGE)/ ; \
- fi
- @echo "================================================================================================="
-
-# generate sha256 sum files
-%.sha256sum: %
- @sha256sum $< > $@
-
-# check that no marshal or enumtypes files are included
-# this in turn ensures that distcheck fails for missing .list files which is currently
-# shadowed when the corresponding .c and .h files are included.
-distcheck-hook:
- @test "x" = "x`find $(distdir) -name \*-enumtypes.[ch] | grep -v win32`" && \
- test "x" = "x`find $(distdir) -name \*-marshal.[ch]`" || \
- ( echo "*** Leftover enumtypes or marshal files in the tarball." && \
- echo "*** Make sure the following files are not disted:" && \
- find $(distdir) -name \*-enumtypes.[ch] | grep -v win32 && \
- find $(distdir) -name \*-marshal.[ch] && \
- false )
|
[-]
[+]
|
Deleted |
_service:tar_git:gstreamer1.0-droid-0.20210304.0.tar.gz/common/scangobj-merge.py
^
|
@@ -1,311 +0,0 @@
-#!/usr/bin/python
-# -*- Mode: Python -*-
-# vi:si:et:sw=4:sts=4:ts=4
-
-"""
-parse, merge and write gstdoc-scanobj files
-"""
-
-from __future__ import print_function, unicode_literals
-
-import sys
-import os
-
-def debug(*args):
- pass
-
-# OrderedDict class based on
-# http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/107747
-# Licensed under the Python License
-class OrderedDict(dict):
- def __init__(self):
- self._keys = []
- dict.__init__(self)
-
- def __delitem__(self, key):
- dict.__delitem__(self, key)
- self._keys.remove(key)
-
- def __setitem__(self, key, item):
- dict.__setitem__(self, key, item)
- if key not in self._keys: self._keys.append(key)
-
- def clear(self):
- dict.clear(self)
- self._keys = []
-
- def copy(self):
- dict = dict.copy(self)
- dict._keys = self._keys[:]
- return dict
-
- def items(self):
- return zip(self._keys, self.values())
-
- def keys(self):
- return self._keys
-
- def popitem(self):
- try:
- key = self._keys[-1]
- except IndexError:
- raise KeyError('dictionary is empty')
-
- val = self[key]
- del self[key]
-
- return (key, val)
-
- def setdefault(self, key, failobj = None):
- dict.setdefault(self, key, failobj)
- if key not in self._keys: self._keys.append(key)
-
- def update(self, dict):
- dict.update(self, dict)
- for key in dict.keys():
- if key not in self._keys: self._keys.append(key)
-
- def values(self):
- return map(self.get, self._keys)
-
-class Object:
- def __init__(self, name):
- self._signals = OrderedDict()
- self._args = OrderedDict()
- self.name = name
-
- def __repr__(self):
- return "<Object %s>" % self.name
-
- def add_signal(self, signal, overwrite=True):
- if not overwrite and signal.name in self._signals:
- raise IndexError("signal %s already in %r" % (signal.name, self))
- self._signals[signal.name] = signal
-
- def add_arg(self, arg, overwrite=True):
- if not overwrite and arg.name in self._args:
- 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:
- setattr(self, key, kwargs[key])
- self.dict = kwargs
-
- def __repr__(self):
- return "<%r %s>" % (str(self.__class__), self.name)
-
-class Signal(Docable):
- attrs = ['name', 'returns', 'args']
-
-class Arg(Docable):
- attrs = ['name', 'type', 'range', 'flags', 'nick', 'blurb', 'default']
-
-class GDoc:
- def load_file(self, filename):
- try:
- lines = open(filename).readlines()
- self.load_data("".join(lines))
- except IOError:
- print ("WARNING - could not read from %s" % filename)
-
- def save_file(self, filename, backup=False):
- """
- Save the information to the given file if the file content changed.
- """
- olddata = None
- try:
- lines = open(filename).readlines()
- olddata = "".join(lines)
- except IOError:
- print ("WARNING - could not read from %s" % filename)
- newdata = self.get_data()
- if olddata and olddata == newdata:
- return
-
- if olddata:
- if backup:
- os.rename(filename, filename + '.bak')
-
- handle = open(filename, "w")
- handle.write(newdata)
- handle.close()
-
-class Signals(GDoc):
- def __init__(self):
- self._objects = OrderedDict()
-
- def load_data(self, data):
- """
- Load the .signals lines, creating our list of objects and signals.
- """
- import re
- smatcher = re.compile(
- '(?s)' # make . match \n
- '<SIGNAL>\n(.*?)</SIGNAL>\n'
- )
- nmatcher = re.compile(
- '<NAME>'
- '(?P<object>\S*)' # store object
- '::'
- '(?P<signal>\S*)' # store signal
- '</NAME>'
- )
- rmatcher = re.compile(
- '(?s)' # make . match \n
- '<RETURNS>(?P<returns>\S*)</RETURNS>\n' # store returns
- '(?P<args>.*)' # store args
- )
- for block in smatcher.findall(data):
- nmatch = nmatcher.search(block)
- if nmatch:
- o = nmatch.group('object')
- debug("Found object", o)
- debug("Found signal", nmatch.group('signal'))
- if o not in self._objects:
- object = Object(o)
- self._objects[o] = object
-
- rmatch = rmatcher.search(block)
- if rmatch:
- dict = rmatch.groupdict().copy()
- dict['name'] = nmatch.group('signal')
- signal = Signal(**dict)
- self._objects[o].add_signal(signal)
-
- def get_data(self):
- lines = []
- for o in self._objects.values():
- for s in o._signals.values():
- block = """<SIGNAL>
-<NAME>%(object)s::%(name)s</NAME>
-<RETURNS>%(returns)s</RETURNS>
-%(args)s</SIGNAL>
-"""
- d = s.dict.copy()
- d['object'] = o.name
- lines.append(block % d)
-
- return "\n".join(lines) + '\n'
-
-class Args(GDoc):
- def __init__(self):
- self._objects = OrderedDict()
-
- def load_data(self, data):
- """
- Load the .args lines, creating our list of objects and args.
- """
|
[-]
[+]
|
Deleted |
_service:tar_git:gstreamer1.0-droid-0.20210304.0.tar.gz/common/update-autogen
^
|
@@ -1,48 +0,0 @@
-#!/bin/bash
-
-if [ ! -f "common/update-autogen" ]; then
- echo "Run ./common/update-autogen from the top-level source directory of a GStreamer module";
- exit 1;
-fi
-
-if ! ls -1 *.doap 2>/dev/null >/dev/null; then
- echo "Could not find *.doap file";
- exit 1;
-fi
-
-PACKAGE=`ls -1 *.doap | head -n1 | sed -e 's/.doap$//'`
-
-#echo "Package: $PACKAGE"
-
-DIR=`mktemp -d`
-if [[ $? != 0 ]]; then
- echo "Could not create temp dir";
- exit 1;
-fi
-
-TEMP_AUTOGEN_SH="$DIR/autogen.sh"
-echo "\
-#!/bin/sh
-#
-# $PACKAGE autogen.sh
-#
-# Run this to generate all the initial makefiles, etc.
-#
-# This file has been generated from common/autogen.sh.in via common/update-autogen
-
-" > $TEMP_AUTOGEN_SH
-
-sed \
- -e "s/@API_VERSION@/1.0/g" \
- -e "s/@PACKAGE@/$PACKAGE/g" \
- -e "s/@SRCFILE@/$PACKAGE.doap/g" < common/autogen.sh.in >> $TEMP_AUTOGEN_SH
-
-chmod +x $TEMP_AUTOGEN_SH
-
-mv $TEMP_AUTOGEN_SH autogen.sh || {
- echo "Failed to update autogen.sh"
- exit 1;
-}
-rmdir $DIR
-
-echo "Updated $PACKAGE autogen.sh"
|
[-]
[+]
|
Deleted |
_service:tar_git:gstreamer1.0-droid-0.20210304.0.tar.gz/common/update-common
^
|
@@ -1,109 +0,0 @@
-#!/bin/bash
-#
-# This script will update all the modules listed below so that
-# common points to master in the common module.
-#
-# If you have many of the GStreamer modules checked out in a particular
-# directory, it's best to run this script from that directory. For
-# example, I check everything out in ~/gst, so this file is
-# ~/gst/common/update-common. To do an update, I do
-# 'cd ~/gst ; ./common/update-common'. This will automatically use
-# the refs in your existing checkout when cloning the temporary
-# checkout. Alternatively, you can use the reference variable below.
-#
-
-# Set this variable to point to any directory containing existing
-# git # checkouts, and git will pull objects from there, decreasing
-# network usage.
-BRANCH=master
-reference=~/gst
-PUSHURL=ssh://git.freedesktop.org/git/gstreamer
-
-set -e
-set -x
-
-modules="gstreamer gst-plugins-base gst-plugins-good gst-plugins-bad \
- gst-plugins-ugly gst-libav gst-omx \
- gnonlin gst-plugins-gl gst-rtsp-server gst-editing-services"
-
-topdir=`pwd`
-dir=`mktemp -d $topdir/common-update-XXXXXX`
-
-for module in $modules
-do
- cd $dir
- if test -e $reference/$module/.git ; then
- pushd $reference/$module
- PUSHURL=`git config remote.origin.url | sed 's@\(git/gstreamer\).*@\1@'`
- popd
- git clone --reference $reference/$module/.git --shared ssh://git.freedesktop.org/git/gstreamer/$module
- elif test -e $topdir/$module/.git ; then
- pushd $topdir/$module
- PUSHURL=`git config remote.origin.url | sed 's@\(git/gstreamer\).*@\1@'`
- popd
- git clone --reference $topdir/$module/.git --shared $PUSHURL/$module
- else
- git clone $PUSHURL/$module
- fi
- cd $dir/$module
-
- # ignore modules that don't have such a branch
- if ! git show-ref origin/$BRANCH >/dev/null; then
- continue;
- fi
-
- if test $BRANCH = 'master'; then
- git checkout $BRANCH
- else
- git checkout -b $BRANCH origin/$BRANCH
- fi
-
- git submodule init
- git submodule update
- cd $dir/$module/common
- ref_from=`git log --pretty=format:%h -n 1 HEAD`
- if test $BRANCH = 'master'; then
- git checkout $BRANCH
- else
- git checkout -b $BRANCH origin/$BRANCH
- fi
- git pull origin
- ref_to=`git log --pretty=format:%h -n 1 HEAD`
- echo updating common from $ref_from to $ref_to
- if [ "$ref_from" != "$ref_to" ] ; then
- cd $dir/$module
- # update autogen.sh for selected modules
- case $module in
- gstreamer|gst-plugins-base|gst-plugins-good|gst-plugins-ugly|gst-plugins-bad|gst-libav|gst-editing-services )
- ./common/update-autogen
- git add autogen.sh
- ;;
- *)
- ;;
- esac
- # update README and MAINTAINERS for selected modules
- case $module in
- gstreamer|gst-plugins-base|gst-plugins-good|gst-plugins-ugly|gst-plugins-bad )
- ./common/update-readmes --run-git-add
- ;;
- *)
- ;;
- esac
- # and finally update the common submodule
- git add common
- git commit -m "Automatic update of common submodule
-
-From $ref_from to $ref_to"
- fi
- cd $dir
-done
-
-for module in $modules
-do
- cd $dir/$module
- if git show-ref origin/$BRANCH >/dev/null; then
- git push origin $BRANCH
- fi
-done
-
-rm -rf $dir
|
[-]
[+]
|
Deleted |
_service:tar_git:gstreamer1.0-droid-0.20210304.0.tar.gz/common/update-readmes
^
|
@@ -1,42 +0,0 @@
-#!/bin/bash
-#
-# update-readmes
-#
-# Updates a module's README and MAINTAINERS files from the copy in the
-# common submodule.
-
-README_FILES="README README.static-linking MAINTAINERS"
-
-if [ ! -f "common/update-readmes" -o ! -f configure.ac ]; then
- echo "Run ./common/update-readmes from the top-level source directory of a GStreamer module";
- exit 1;
-fi
-
-MAJOR_VERSION=`grep '^AC_INIT' configure.ac | sed -e 's/[^0-9]*\([0-9]\)\.\([0-9]*\).*/\1/'`
-MINOR_VERSION=`grep '^AC_INIT' configure.ac | sed -e 's/[^0-9]*\([0-9]\)\.\([0-9]*\).*/\2/'`
-
-if test x$MAJOR_VERSION = x -o x$MINOR_VERSION = x ; then
- echo "Failed to extract major/minor version";
- exit 1;
-fi
-
-let m=$MINOR_VERSION%2
-if test $m = 0; then
- SERIES_VERSION="$MAJOR_VERSION.$MINOR_VERSION.x stable series"
-else
- SERIES_VERSION="$MAJOR_VERSION.$MINOR_VERSION.x development series"
-fi
-#echo "$SERIES_VERSION"
-
-for f in $README_FILES ; do
- cp --preserve "common/$f" $f || {
- echo "Failed to update $f"
- exit 1;
- }
-done
-
-sed -i "s/@SERIES_VERSION@/$SERIES_VERSION/g" README
-
-if test x$1 = "x--run-git-add"; then
- git add $README_FILES;
-fi
|
[-]
[+]
|
Deleted |
_service:tar_git:gstreamer1.0-droid-0.20210304.0.tar.gz/common/upload-doc.mak
^
|
@@ -1,64 +0,0 @@
-# this snippet is to be included by both our docbook manuals
-# and gtk-doc API references
-
-# it adds an upload target to each of these dir's Makefiles
-
-# each Makefile.am should define the following variables:
-# - DOC: the base name of the documentation
-# (faq, manual, pwg, gstreamer, gstreamer-libs)
-# - FORMATS: the formats in which DOC is output
-# (html ps pdf)
-
-# if you want to use it, make sure your $HOME/.ssh/config file contains the
-# correct User entry for the Host entry for the DOC_SERVER
-
-# these variables define the location of the online docs
-DOC_SERVER = gstreamer.freedesktop.org
-DOC_BASE = /srv/gstreamer.freedesktop.org/www/data/doc
-DOC_URL = $(DOC_SERVER):$(DOC_BASE)
-
-upload: $(FORMATS)
- @if echo $(FORMATS) | grep html > /dev/null; then \
- echo "Preparing docs for upload (rebasing cross-references) ..." ; \
- if test x$(builddir) != x$(srcdir); then \
- echo "make upload can only be used if srcdir == builddir"; \
- exit 1; \
- fi; \
- # gtkdoc-rebase sometimes gets confused, so reset everything to \
- # local links before rebasing to online links \
- gtkdoc-rebase --html-dir=$(builddir)/html 2>/dev/null 2>/dev/null ; \
- rebase=`gtkdoc-rebase --verbose --online --html-dir=$(builddir)/html` ; \
- echo "$$rebase" | grep -e "On-*line"; \
- for req in glib gobject gstreamer gstreamer-libs gst-plugins-base-libs; do \
- if ! ( echo "$$rebase" | grep -i -e "On-*line.*/$$req/" ); then \
- echo "===============================================================================" ; \
- echo " Could not determine online location for $$req docs. Cross-referencing will be " ; \
- echo " broken, so not uploading. Make sure the library's gtk-doc documentation is " ; \
- echo " installed somewhere in /usr/share/gtk-doc. " ; \
- echo "===============================================================================" ; \
- exit 1; \
- fi; \
- done; \
- export SRC="$$SRC html"; \
- fi; \
- if echo $(FORMATS) | grep ps > /dev/null; then export SRC="$$SRC $(DOC).ps"; fi; \
- if echo $(FORMATS) | grep pdf > /dev/null; then export SRC="$$SRC $(DOC).pdf"; fi; \
- \
- # upload releases to both X.Y/ and head/ subdirectories \
- export DIR=$(DOC_BASE)/gstreamer/$(PACKAGE_VERSION_MAJOR).$(PACKAGE_VERSION_MINOR)/$(DOC); \
- echo Uploading $$SRC to $(DOC_SERVER):$$DIR; \
- ssh $(DOC_SERVER) mkdir -p $$DIR; \
- rsync -rv -e ssh --delete $$SRC $(DOC_SERVER):$$DIR; \
- ssh $(DOC_SERVER) chmod -R g+w $$DIR; \
- \
- export DIR=$(DOC_BASE)/gstreamer/head/$(DOC); \
- echo Uploading $$SRC to $(DOC_SERVER):$$DIR; \
- ssh $(DOC_SERVER) mkdir -p $$DIR; \
- rsync -rv -e ssh --delete $$SRC $(DOC_SERVER):$$DIR; \
- ssh $(DOC_SERVER) chmod -R g+w $$DIR; \
- \
- if echo $(FORMATS) | grep html > /dev/null; then \
- echo "Un-preparing docs for upload (rebasing cross-references) ..." ; \
- gtkdoc-rebase --html-dir=$(builddir)/html ; \
- fi; \
- echo Done
|
[-]
[+]
|
Deleted |
_service:tar_git:gstreamer1.0-droid-0.20210304.0.tar.gz/common/win32.mak
^
|
@@ -1,78 +0,0 @@
-# various tests to make sure we dist the win32 stuff (for MSVC builds) right
-
-# the MANIFEST contains all win32 related files that should be disted
-win32 = $(shell cat $(top_srcdir)/win32/MANIFEST)
-
-# wildcard is apparently not portable to other makes, hence the use of find
-# these are library .def files with the symbols to export
-win32defs = $(shell find $(top_srcdir)/win32/common -name '*.def')
-
-# wildcard is apparently not portable to other makes, hence the use of find
-# these are files that need to be disted with CRLF line endings:
-win32crlf = $(shell find $(top_srcdir)/win32 -name '*.dsw' -o -name '*.dsp')
-
-win32-debug:
- @echo; \
- echo win32 = $(win32); \
- echo; \
- echo win32defs = $(win32defs); \
- echo; \
- echo win32crlf = $(win32crlf); \
- echo
-
-win32-check-crlf:
- @echo Checking win32 files for CR LF line endings ...; \
- fail=0 ; \
- for each in $(win32crlf) ; do \
- result=`perl -e 'print grep(/\r\n/,<>)' "$$each" | wc -l`; \
- if test "$$result" = 0 ; then \
- echo $$each must be fixed to have CRLF line endings ; \
- fail=1; \
- fi ; \
- done ; \
- exit $$fail
-
-# make sure all symbols we export on linux are defined in the win32 .def too
-# (don't care about other unixes for now, it's enough if it works on one of
-# the linux build bots; we assume .so )
-check-exports:
- @fail=0 ; \
- for l in $(win32defs); do \
- libbase=`basename "$$l" ".def"`; \
- libso=`find "$(top_builddir)" -name "$$libbase-@GST_API_VERSION@.so" | grep -v /_build/ | head -n1`; \
- libdef="$(top_srcdir)/win32/common/$$libbase.def"; \
- if test "x$$libso" != "x"; then \
- echo Checking symbols in $$libso; \
- if ! ($(top_srcdir)/common/check-exports $$libdef $$libso) ; then \
- fail=1; \
- fi; \
- fi; \
- done ; \
- if test $$fail != 0; then \
- echo '-----------------------------------------------------------'; \
- echo 'Run this to update the .def files:'; \
- echo 'make update-exports'; \
- echo '-----------------------------------------------------------'; \
- fi; \
- exit $$fail
-
-update-exports:
- make check-exports 2>&1 | patch -p1
- git add win32/common/libgst*.def
- git diff --cached -- win32/common/
- echo '^^^--- updated and staged changes above'
-
-# complain about nonportable printf format strings (%lld, %llu, %zu etc.)
-check-nonportable-print-format:
- @fail=0 ; \
- loc=`find "$(top_srcdir)" -name '*.c' | xargs grep -n -e '%[0-9]*ll[udx]' -e '%[0-9]*z[udx]'`; \
- if test "x$$loc" != "x"; then \
- echo "Please fix the following print format strings:" ; \
- find "$(top_srcdir)" -name '*.c' | xargs grep -n -e '%[0-9]*ll[udx]' -e '%[0-9]*z[udx]'; \
- fail=1; \
- fi; \
- exit $$fail
-
-dist-hook: check-exports win32-check-crlf
-
-
|
[-]
[+]
|
Deleted |
_service:tar_git:gstreamer1.0-droid-0.20210304.0.tar.gz/configure.ac
^
|
@@ -1,182 +0,0 @@
-dnl required version of autoconf
-AC_PREREQ([2.53])
-
-dnl TODO: fill in your package name and package version here
-AC_INIT([gst-droid],[1.0.0])
-
-dnl required versions of gstreamer and plugins-base
-GST_REQUIRED=1.0.0
-GSTPB_REQUIRED=1.0.0
-
-AC_CONFIG_SRCDIR([gst/plugin.c])
-AC_CONFIG_HEADERS([config.h])
-
-dnl required version of automake
-AM_INIT_AUTOMAKE([1.10])
-
-dnl enable mainainer mode by default
-AM_MAINTAINER_MODE([enable])
-
-dnl check for tools (compiler etc.)
-AC_PROG_CC
-
-dnl required version of libtool
-LT_PREREQ([2.2.6])
-LT_INIT
-
-dnl give error and exit if we don't have pkgconfig
-AC_CHECK_PROG(HAVE_PKGCONFIG, pkg-config, [ ], [
- AC_MSG_ERROR([You need to have pkg-config installed!])
-])
-
-dnl Check for the required version of GStreamer core (and gst-plugins-base)
-dnl This will export GST_CFLAGS and GST_LIBS variables for use in Makefile.am
-dnl
-dnl If you need libraries from gst-plugins-base here, also add:
-dnl for libgstaudio-1.0: gstreamer-audio-1.0 >= $GST_REQUIRED
-dnl for libgstvideo-1.0: gstreamer-video-1.0 >= $GST_REQUIRED
-dnl for libgsttag-1.0: gstreamer-tag-1.0 >= $GST_REQUIRED
-dnl for libgstpbutils-1.0: gstreamer-pbutils-1.0 >= $GST_REQUIRED
-dnl for libgstfft-1.0: gstreamer-fft-1.0 >= $GST_REQUIRED
-dnl for libgstinterfaces-1.0: gstreamer-interfaces-1.0 >= $GST_REQUIRED
-dnl for libgstrtp-1.0: gstreamer-rtp-1.0 >= $GST_REQUIRED
-dnl for libgstrtsp-1.0: gstreamer-rtsp-1.0 >= $GST_REQUIRED
-dnl etc.
-PKG_CHECK_MODULES(GST, [
- gstreamer-1.0 >= $GST_REQUIRED
- gstreamer-base-1.0 >= $GST_REQUIRED
- gstreamer-video-1.0 >= $GST_REQUIRED
- gstreamer-plugins-bad-1.0 >= $GST_REQUIRED
- gstreamer-tag-1.0 >= $GST_REQUIRED
- gstreamer-codecparsers-1.0 >= $GST_REQUIRED
- gstreamer-audio-1.0 >= $GST_REQUIRED
-], [
- AC_SUBST(GST_CFLAGS)
- AC_SUBST(GST_LIBS)
-], [
- AC_MSG_ERROR([
- You need to install or upgrade the GStreamer development
- packages on your system. On debian-based systems these are
- libgstreamer1.0-dev and libgstreamer-plugins-base1.0-dev.
- on RPM-based systems gstreamer1.0-devel, libgstreamer1.0-devel
- or similar. The minimum version required is $GST_REQUIRED.
- ])
-])
-
-PKG_CHECK_MODULES(GSTPB, [
- gstreamer-pbutils-1.0 >= $GST_REQUIRED
-], [
- AC_SUBST(GSTPB_CFLAGS)
- AC_SUBST(GSTPB_LIBS)
-], [
- AC_MSG_ERROR([
- gstreamer-pbutils-1.0 not found
- ])
-])
-
-PKG_CHECK_MODULES(CHECK, [
- gstreamer-check-1.0 >= $GST_REQUIRED
-], [
- AC_SUBST(CHECK_CFLAGS)
- AC_SUBST(CHECK_LIBS)
-], [
- AC_MSG_ERROR([
- gstreamer-check not found
- ])
-])
-
-PKG_CHECK_MODULES(NGI, [
- nemo-gstreamer-interfaces-1.0
-], [
- AC_SUBST(NGI_CFLAGS)
- AC_SUBST(NGI_LIBS)
-], [
- AC_MSG_ERROR([
- nemo-gstreamer-interfaces not found
- ])
-])
-
-PKG_CHECK_MODULES(NGM, [
- nemo-gstreamer-meta-1.0
-], [
- AC_SUBST(NGM_CFLAGS)
- AC_SUBST(NGM_LIBS)
-], [
- AC_MSG_ERROR([
- nemo-gstreamer-meta not found
- ])
-])
-
-PKG_CHECK_MODULES(EGL, [
- egl
-], [
- AC_SUBST(EGL_CFLAGS)
- AC_SUBST(EGL_LIBS)
-], [
- AC_MSG_ERROR([
- egl not found
- ])
-])
-
-PKG_CHECK_MODULES(EXIF, [
- libexif
-], [
- AC_SUBST(EXIF_CFLAGS)
- AC_SUBST(EXIF_LIBS)
-], [
- AC_MSG_ERROR([
- libexif not found
- ])
-])
-
-AC_SEARCH_LIBS([android_dlopen], [hybris-common], [ ],
- AC_MSG_ERROR([libhybris not found])
-)
-
-dnl Orc
-ORC_CHECK([0.4.17])
-
-dnl check if compiler understands -Wall (if yes, add -Wall to GST_CFLAGS)
-AC_MSG_CHECKING([to see if compiler understands -Wall])
-save_CFLAGS="$CFLAGS"
-CFLAGS="$CFLAGS -Wall"
-AC_COMPILE_IFELSE([AC_LANG_PROGRAM([ ], [ ])], [
- GST_CFLAGS="$GST_CFLAGS -Wall"
- AC_MSG_RESULT([yes])
-], [
- AC_MSG_RESULT([no])
-])
-
-dnl set the plugindir where plugins should be installed (for src/Makefile.am)
-if test "x${prefix}" = "x$HOME"; then
- plugindir="$HOME/.gstreamer-1.0/plugins"
-else
- plugindir="\$(libdir)/gstreamer-1.0"
-fi
-AC_SUBST(plugindir)
-
-dnl set proper LDFLAGS for plugins
-GST_PLUGIN_LDFLAGS='-module -avoid-version -export-symbols-regex [_]*\(gst_\|Gst\|GST_\).*'
-AC_SUBST(GST_PLUGIN_LDFLAGS)
-
-dnl our libraries and install dirs use GST_API_VERSION in the filename
-dnl to allow side-by-side installation of different API versions
-GST_API_VERSION=1.0
-AC_SUBST(GST_API_VERSION)
-AC_DEFINE_UNQUOTED(GST_API_VERSION, "$GST_API_VERSION",
- [GStreamer API Version])
-
-AC_CONFIG_FILES([Makefile
- gstreamer-droid-1.0.pc
- common/Makefile
- common/m4/Makefile
- gst-libs/Makefile
- gst-libs/gst/Makefile
- gst-libs/gst/droid/Makefile
- gst/Makefile
- gst/droideglsink/Makefile
- gst/droidcodec/Makefile
- gst/droidcamsrc/Makefile
- tools/Makefile])
-AC_OUTPUT
-
|
[-]
[+]
|
Deleted |
_service:tar_git:gstreamer1.0-droid-0.20210304.0.tar.gz/gst-libs/Makefile.am
^
|
@@ -1 +0,0 @@
-SUBDIRS = gst
|
[-]
[+]
|
Deleted |
_service:tar_git:gstreamer1.0-droid-0.20210304.0.tar.gz/gst-libs/gst/Makefile.am
^
|
@@ -1 +0,0 @@
-SUBDIRS = droid
|
[-]
[+]
|
Deleted |
_service:tar_git:gstreamer1.0-droid-0.20210304.0.tar.gz/gst-libs/gst/droid/Makefile.am
^
|
@@ -1,31 +0,0 @@
-AM_CPPFLAGS = -DSYSCONFDIR=\"$(sysconfdir)\"
-lib_LTLIBRARIES = libgstdroid-@GST_API_VERSION@.la
-libgstdroid_@GST_API_VERSION@_ladir = $(libdir)
-
-libgstdroid_@GST_API_VERSION@_la_includedir = \
- $(includedir)/gstreamer-@GST_API_VERSION@/gst/allocators
-
-libgstdroid_@GST_API_VERSION@_la_CFLAGS = $(GST_CFLAGS) \
- $(EGL_CFLAGS) \
- -DEGL_NO_X11 \
- -I/usr/include/droidmedia/
-
-libgstdroid_@GST_API_VERSION@_la_LIBADD = $(GST_LIBS) \
- $(EGL_LIBS)
-
-noinst_HEADERS =
-
-libgstdroid_@GST_API_VERSION@_la_SOURCES = \
- gstwrappedmemory.c \
- gstdroidmediabuffer.c \
- gstdroidbufferpool.c \
- gstdroidquery.c \
- gstdroidcodec.c \
- /usr/share/droidmedia/hybris.c
-
-libgstdroid_@GST_API_VERSION@_la_include_HEADERS = \
- gstwrappedmemory.h \
- gstdroidmediabuffer.h \
- gstdroidbufferpool.h \
- gstdroidquery.h \
- gstdroidcodec.h
|
[-]
[+]
|
Deleted |
_service:tar_git:gstreamer1.0-droid-0.20210304.0.tar.gz/gst/Makefile.am
^
|
@@ -1,30 +0,0 @@
-AM_CPPFLAGS = -DSYSCONFDIR=\"$(sysconfdir)\"
-
-SUBDIRS = droideglsink droidcodec droidcamsrc
-
-plugin_LTLIBRARIES = libgstdroid.la
-
-libgstdroid_la_CFLAGS = $(GST_CFLAGS) $(NGI_CFLAGS) $(EGL_CFLAGS) \
- $(NGM_CFLAGS)\
- -DEGL_NO_X11 \
- -I$(top_builddir)/gst-libs/ \
- -I/usr/include/droidmedia/ \
- -Idroidcamsrc/ \
- -Idroideglsink/ \
- -Idroidcodec/
-
-libgstdroid_la_LIBADD = $(GST_LIBS) $(NGI_LIBS) $(EGL_LIBS) \
- $(NGM_LIBS) \
- $(top_builddir)/gst-libs/gst/droid/libgstdroid-@GST_API_VERSION@.la \
- -lgstbasecamerabinsrc-1.0 \
- -lgstphotography-1.0 \
- droideglsink/libgstdroideglsink.la \
- droidcamsrc/libgstdroidcamsrc.la \
- droidcodec/libgstdroidcodec.la
-
-libgstdroid_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
-
-libgstdroid_la_SOURCES = plugin.c \
- /usr/share/droidmedia/hybris.c
-
-noinst_HEADERS = plugin.h
|
[-]
[+]
|
Deleted |
_service:tar_git:gstreamer1.0-droid-0.20210304.0.tar.gz/gst/droidcamsrc/Makefile.am
^
|
@@ -1,35 +0,0 @@
-AM_CPPFLAGS = -DSYSCONFDIR=\"$(sysconfdir)\"
-noinst_LTLIBRARIES = libgstdroidcamsrc.la
-libgstdroidcamsrc_la_CFLAGS = $(GST_CFLAGS) $(NGI_CFLAGS) \
- $(NGM_CFLAGS) $(EXIF_CFLAGS) \
- -DEGL_NO_X11 \
- -I$(top_builddir)/gst/ \
- -I$(top_builddir)/gst-libs/ \
- -I/usr/include/droidmedia/
-
-libgstdroidcamsrc_la_LIBADD = $(GST_LIBS) $(NGI_LIBS) \
- $(NGM_LIBS) $(EXIF_LIBS) \
- -lgstbasecamerabinsrc-1.0 \
- -lgstphotography-1.0
-
-libgstdroidcamsrc_la_SOURCES = \
- gstdroidcamsrc.c \
- gstdroidcamsrcdev.c \
- gstdroidcamsrcparams.c \
- gstdroidcamsrcenums.c \
- gstdroidcamsrcphotography.c \
- gstdroidcamsrcquirks.c \
- gstdroidcamsrcexif.c \
- gstdroidcamsrcmode.c \
- gstdroidcamsrcrecorder.c
-
-noinst_HEADERS = \
- gstdroidcamsrc.h \
- gstdroidcamsrcdev.h \
- gstdroidcamsrcparams.h \
- gstdroidcamsrcenums.h \
- gstdroidcamsrcphotography.h \
- gstdroidcamsrcquirks.h \
- gstdroidcamsrcexif.h \
- gstdroidcamsrcmode.h \
- gstdroidcamsrcrecorder.h
|
[-]
[+]
|
Deleted |
_service:tar_git:gstreamer1.0-droid-0.20210304.0.tar.gz/gst/droidcodec/Makefile.am
^
|
@@ -1,20 +0,0 @@
-AM_CPPFLAGS = -DSYSCONFDIR=\"$(sysconfdir)\"
-noinst_LTLIBRARIES = libgstdroidcodec.la
-libgstdroidcodec_la_CFLAGS = $(GST_CFLAGS) $(NGI_CFLAGS) $(EGL_CFLAGS) $(DROID_CFLAGS) $(ORC_CFLAGS) \
- -I$(top_builddir)/gst/ \
- -I$(top_builddir)/gst-libs/ \
- -I/usr/include/droidmedia/
-
-libgstdroidcodec_la_LIBADD = $(GST_LIBS) $(NGI_LIBS) $(EGL_LIBS) $(DROID_LIBS) $(ORC_LIBS)
-
-libgstdroidcodec_la_SOURCES = \
- gstdroidvdec.c \
- gstdroidvenc.c \
- gstdroidadec.c \
- gstdroidaenc.c
-
-noinst_HEADERS = \
- gstdroidvdec.h \
- gstdroidvenc.h \
- gstdroidadec.h \
- gstdroidaenc.h
|
[-]
[+]
|
Deleted |
_service:tar_git:gstreamer1.0-droid-0.20210304.0.tar.gz/gst/droideglsink/Makefile.am
^
|
@@ -1,9 +0,0 @@
-noinst_LTLIBRARIES = libgstdroideglsink.la
-libgstdroideglsink_la_CFLAGS = $(GST_CFLAGS) $(NGI_CFLAGS) $(EGL_CFLAGS) \
- -I$(top_builddir)/gst-libs/ \
- -I/usr/include/droidmedia/
-
-libgstdroideglsink_la_LIBADD = $(GST_LIBS) $(NGI_LIBS) $(EGL_LIBS)
-
-libgstdroideglsink_la_SOURCES = gstdroideglsink.c gstdroidvideotexturesink.c
-noinst_HEADERS = gstdroideglsink.h gstdroidvideotexturesink.h
|
[-]
[+]
|
Deleted |
_service:tar_git:gstreamer1.0-droid-0.20210304.0.tar.gz/m4/orc.m4
^
|
@@ -1,70 +0,0 @@
-dnl pkg-config-based checks for Orc
-
-dnl specific:
-dnl ORC_CHECK([REQUIRED_VERSION])
-
-AC_DEFUN([ORC_CHECK],
-[
- ORC_REQ=ifelse([$1], , "0.4.6", [$1])
-
- AC_ARG_ENABLE(orc,
- AC_HELP_STRING([--enable-orc],[use Orc if installed]),
- [case "${enableval}" in
- auto) enable_orc=auto ;;
- yes) enable_orc=yes ;;
- no) enable_orc=no ;;
- *) AC_MSG_ERROR(bad value ${enableval} for --enable-orc) ;;
- esac
- ],
- [enable_orc=auto]) dnl Default value
-
- if test "x$enable_orc" != "xno" ; then
- PKG_CHECK_MODULES(ORC, orc-0.4 >= $ORC_REQ, [
- AC_DEFINE(HAVE_ORC, 1, [Use Orc])
- HAVE_ORC=yes
- if test "x$ORCC" = "x" ; then
- AC_MSG_CHECKING(for usable orcc)
- ORCC=`$PKG_CONFIG --variable=orcc orc-0.4`
- dnl check whether the orcc found by pkg-config can be run from the build environment
- dnl if this is not the case (e.g. when cross-compiling) fall back to orcc from PATH
- AS_IF([$ORCC --version 1> /dev/null 2> /dev/null], [], [ORCC=`which orcc`])
- AC_MSG_RESULT($ORCC)
- fi
- AC_SUBST(ORCC)
- ORCC_FLAGS="--compat $ORC_REQ"
- AC_SUBST(ORCC_FLAGS)
- AS_IF([test "x$ORCC" = "x"], [HAVE_ORCC=no], [HAVE_ORCC=yes])
- ], [
- if test "x$enable_orc" = "xyes" ; then
- AC_MSG_ERROR([--enable-orc specified, but Orc >= $ORC_REQ not found])
- fi
- AC_DEFINE(DISABLE_ORC, 1, [Disable Orc])
- HAVE_ORC=no
- HAVE_ORCC=no
- ])
- else
- AC_DEFINE(DISABLE_ORC, 1, [Disable Orc])
- HAVE_ORC=no
- HAVE_ORCC=no
- fi
- AM_CONDITIONAL(HAVE_ORC, [test "x$HAVE_ORC" = "xyes"])
- AM_CONDITIONAL(HAVE_ORCC, [test "x$HAVE_ORCC" = "xyes"])
-
-]))
-
-AC_DEFUN([ORC_OUTPUT],
-[
- if test "$HAVE_ORC" = yes ; then
- printf "configure: *** Orc acceleration enabled.\n"
- else
- if test "x$enable_orc" = "xno" ; then
- printf "configure: *** Orc acceleration disabled by --disable-orc. Slower code paths\n"
- printf " will be used.\n"
- else
- printf "configure: *** Orc acceleration disabled. Requires Orc >= $ORC_REQ, which was\n"
- printf " not found. Slower code paths will be used.\n"
- fi
- fi
- printf "\n"
-])
-
|
[-]
[+]
|
Deleted |
_service:tar_git:gstreamer1.0-droid-0.20210304.0.tar.gz/tools/Makefile.am
^
|
@@ -1,21 +0,0 @@
-AM_CFLAGS = $(GST_CFLAGS) -DSYSCONFDIR=\"$(sysconfdir)\"
-
-noinst_LTLIBRARIES = libcommon.la
-libcommon_la_SOURCES = common.c
-libcommon_la_LIBADD = $(GST_LIBS) $(GSTPB_LIBS)
-
-noinst_HEADERS = common.h
-
-bin_PROGRAMS = \
- mk-cam-conf \
- record-video \
- dump-resolutions
-
-mk_cam_conf_SOURCES = gstdroidcamsrcconf.c
-mk_cam_conf_LDADD = libcommon.la
-
-record_video_SOURCES = record.c
-record_video_LDADD = libcommon.la
-
-dump_resolutions_SOURCES = resolutions.c
-dump_resolutions_LDADD = libcommon.la
|
[-]
[+]
|
Deleted |
_service:tar_git:gstreamer1.0-droid-0.20210304.0.tar.gz/tools/gstdroidcamsrcconf.c
^
|
@@ -1,346 +0,0 @@
-/*
- * gst-droid
- *
- * Copyright (C) 2014 Mohammed Sameer <msameer@foolab.org>
- * Copyright (C) 2015 Jolla LTD.
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
- */
-
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-
-#include "common.h"
-#ifndef GST_USE_UNSTABLE_API
-#define GST_USE_UNSTABLE_API
-#endif
-#include <gst/interfaces/photography.h>
-#include <stdlib.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <fcntl.h>
-#include <string.h> /* strlen() */
-#include <unistd.h> /* write() */
-#include <stdio.h> /* perror() */
-
-#define ADD_ENTRY(val, droid) {#val, val, droid}
-
-typedef struct
-{
- const gchar *name;
- gint val;
- const gchar *droid;
-} Entry;
-
-struct Node
-{
- const gchar *droid;
- const gchar *gst;
- Entry entries[19];
-} Nodes[] = {
- /* *INDENT-OFF* */
- {"flash-mode-values", "flash-mode", {
- ADD_ENTRY (GST_PHOTOGRAPHY_FLASH_MODE_AUTO, "auto"),
- ADD_ENTRY (GST_PHOTOGRAPHY_FLASH_MODE_OFF, "off"),
- ADD_ENTRY (GST_PHOTOGRAPHY_FLASH_MODE_ON, "on"),
- ADD_ENTRY (GST_PHOTOGRAPHY_FLASH_MODE_RED_EYE, "red-eye"),
- {NULL, -1}
- }},
- {"focus-mode-values", "focus-mode", {
- ADD_ENTRY (GST_PHOTOGRAPHY_FOCUS_MODE_AUTO, "auto"),
- ADD_ENTRY (GST_PHOTOGRAPHY_FOCUS_MODE_MACRO, "macro"),
- ADD_ENTRY (GST_PHOTOGRAPHY_FOCUS_MODE_PORTRAIT, NULL),
- ADD_ENTRY (GST_PHOTOGRAPHY_FOCUS_MODE_INFINITY, "infinity"),
- ADD_ENTRY (GST_PHOTOGRAPHY_FOCUS_MODE_HYPERFOCAL, "fixed"),
- ADD_ENTRY (GST_PHOTOGRAPHY_FOCUS_MODE_EXTENDED, "edof"),
- ADD_ENTRY (GST_PHOTOGRAPHY_FOCUS_MODE_CONTINUOUS_NORMAL, "continuous"),
- ADD_ENTRY (GST_PHOTOGRAPHY_FOCUS_MODE_CONTINUOUS_EXTENDED, "continuous"),
- ADD_ENTRY (GST_PHOTOGRAPHY_FOCUS_MODE_MANUAL, "manual"),
- {NULL, -1}
- }},
- {"whitebalance-values", "white-balance-mode", {
- ADD_ENTRY (GST_PHOTOGRAPHY_WB_MODE_AUTO, "auto"),
- ADD_ENTRY (GST_PHOTOGRAPHY_WB_MODE_DAYLIGHT, "daylight"),
- ADD_ENTRY (GST_PHOTOGRAPHY_WB_MODE_CLOUDY, "cloudy-daylight"),
- ADD_ENTRY (GST_PHOTOGRAPHY_WB_MODE_SUNSET, "twilight"),
- ADD_ENTRY (GST_PHOTOGRAPHY_WB_MODE_TUNGSTEN, "incandescent"),
- ADD_ENTRY (GST_PHOTOGRAPHY_WB_MODE_FLUORESCENT, "fluorescent"),
- ADD_ENTRY (GST_PHOTOGRAPHY_WB_MODE_MANUAL, NULL),
- ADD_ENTRY (GST_PHOTOGRAPHY_WB_MODE_WARM_FLUORESCENT, "warm-fluorescent"),
- ADD_ENTRY (GST_PHOTOGRAPHY_WB_MODE_SHADE, "shade"),
- {NULL, -1}
- }},
- {"scene-mode-values", "scene-mode", {
- ADD_ENTRY (GST_PHOTOGRAPHY_SCENE_MODE_MANUAL, "auto"),
- ADD_ENTRY (GST_PHOTOGRAPHY_SCENE_MODE_CLOSEUP, NULL),
- ADD_ENTRY (GST_PHOTOGRAPHY_SCENE_MODE_PORTRAIT, "portrait"),
- ADD_ENTRY (GST_PHOTOGRAPHY_SCENE_MODE_LANDSCAPE, "landscape"),
- ADD_ENTRY (GST_PHOTOGRAPHY_SCENE_MODE_SPORT, "sports"),
- ADD_ENTRY (GST_PHOTOGRAPHY_SCENE_MODE_NIGHT, "night"),
- ADD_ENTRY (GST_PHOTOGRAPHY_SCENE_MODE_AUTO, "asd"),
- ADD_ENTRY (GST_PHOTOGRAPHY_SCENE_MODE_ACTION, "action"),
- ADD_ENTRY (GST_PHOTOGRAPHY_SCENE_MODE_NIGHT_PORTRAIT, "night-portrait"),
- ADD_ENTRY (GST_PHOTOGRAPHY_SCENE_MODE_THEATRE, "theatre"),
- ADD_ENTRY (GST_PHOTOGRAPHY_SCENE_MODE_BEACH, "beach"),
- ADD_ENTRY (GST_PHOTOGRAPHY_SCENE_MODE_SNOW, "snow"),
- ADD_ENTRY (GST_PHOTOGRAPHY_SCENE_MODE_SUNSET, "sunset"),
- ADD_ENTRY (GST_PHOTOGRAPHY_SCENE_MODE_STEADY_PHOTO, "steadyphoto"),
- ADD_ENTRY (GST_PHOTOGRAPHY_SCENE_MODE_FIREWORKS, "fireworks"),
- ADD_ENTRY (GST_PHOTOGRAPHY_SCENE_MODE_PARTY, "party"),
- ADD_ENTRY (GST_PHOTOGRAPHY_SCENE_MODE_CANDLELIGHT, "candlelight"),
- ADD_ENTRY (GST_PHOTOGRAPHY_SCENE_MODE_BARCODE, "barcode"),
- ADD_ENTRY (GST_PHOTOGRAPHY_SCENE_MODE_BACKLIGHT, "backlight"),
- ADD_ENTRY (GST_PHOTOGRAPHY_SCENE_MODE_FLOWERS, "flowers"),
- ADD_ENTRY (GST_PHOTOGRAPHY_SCENE_MODE_AR, "AR"),
- ADD_ENTRY (GST_PHOTOGRAPHY_SCENE_MODE_HDR, "hdr"),
- {NULL, -1}
- }},
- {"effect-values", "color-tone-mode", {
- ADD_ENTRY (GST_PHOTOGRAPHY_COLOR_TONE_MODE_NORMAL, "none"),
- ADD_ENTRY (GST_PHOTOGRAPHY_COLOR_TONE_MODE_SEPIA, "sepia"),
- ADD_ENTRY (GST_PHOTOGRAPHY_COLOR_TONE_MODE_NEGATIVE, "negative"),
- ADD_ENTRY (GST_PHOTOGRAPHY_COLOR_TONE_MODE_GRAYSCALE, "mono"),
- ADD_ENTRY (GST_PHOTOGRAPHY_COLOR_TONE_MODE_NATURAL, NULL),
- ADD_ENTRY (GST_PHOTOGRAPHY_COLOR_TONE_MODE_VIVID, "vivid"),
- ADD_ENTRY (GST_PHOTOGRAPHY_COLOR_TONE_MODE_COLORSWAP, NULL),
- ADD_ENTRY (GST_PHOTOGRAPHY_COLOR_TONE_MODE_SOLARIZE, "solarize"),
- ADD_ENTRY (GST_PHOTOGRAPHY_COLOR_TONE_MODE_OUT_OF_FOCUS, NULL),
- ADD_ENTRY (GST_PHOTOGRAPHY_COLOR_TONE_MODE_SKY_BLUE, "still-sky-blue"),
- ADD_ENTRY (GST_PHOTOGRAPHY_COLOR_TONE_MODE_GRASS_GREEN, "still-grass-green"),
- ADD_ENTRY (GST_PHOTOGRAPHY_COLOR_TONE_MODE_SKIN_WHITEN, "still-skin-whiten-medium"),
- ADD_ENTRY (GST_PHOTOGRAPHY_COLOR_TONE_MODE_POSTERIZE, "posterize"),
- ADD_ENTRY (GST_PHOTOGRAPHY_COLOR_TONE_MODE_WHITEBOARD, "whiteboard"),
- ADD_ENTRY (GST_PHOTOGRAPHY_COLOR_TONE_MODE_BLACKBOARD, "blackboard"),
- ADD_ENTRY (GST_PHOTOGRAPHY_COLOR_TONE_MODE_AQUA, "aqua"),
- ADD_ENTRY (GST_PHOTOGRAPHY_COLOR_TONE_MODE_EMBOSS, "emboss"),
- ADD_ENTRY (GST_PHOTOGRAPHY_COLOR_TONE_MODE_SKETCH, "sketch"),
- ADD_ENTRY (GST_PHOTOGRAPHY_COLOR_TONE_MODE_NEON, "neon"),
- {NULL, -1}
- }},
- // Qualcomm ISO values (e.g. ISO100) and Intel (iso-100)
- {"iso-values", "iso-speed", {
- ADD_ENTRY (0, "auto"),
- ADD_ENTRY (0, "iso-auto"),
- ADD_ENTRY (1, "ISO_HJR"),
- ADD_ENTRY (100, "ISO100"),
- ADD_ENTRY (100, "iso-100"),
- ADD_ENTRY (200, "ISO200"),
- ADD_ENTRY (200, "iso-200"),
- ADD_ENTRY (400, "ISO400"),
- ADD_ENTRY (400, "iso-400"),
- ADD_ENTRY (800, "ISO800"),
- ADD_ENTRY (800, "iso-800"),
- ADD_ENTRY (1600, "ISO1600"),
- ADD_ENTRY (3200, "ISO3200"),
- ADD_ENTRY (6400, "ISO6400"),
- ADD_ENTRY (12800, "ISO12800"),
- {NULL, -1}
- }},
- // Mediatek ISO values
- {"iso-speed-values", "iso-speed", {
- ADD_ENTRY (0, "auto"),
- ADD_ENTRY (100, "100"),
- ADD_ENTRY (200, "200"),
- ADD_ENTRY (400, "400"),
- ADD_ENTRY (800, "800"),
- ADD_ENTRY (1600, "1600"),
- ADD_ENTRY (3200, "3200"),
- ADD_ENTRY (6400, "6400"),
- ADD_ENTRY (12800, "12800"),
- {NULL, -1}
- }},
- {"antibanding-values", "flicker-mode", {
- ADD_ENTRY (GST_PHOTOGRAPHY_FLICKER_REDUCTION_OFF, "off"),
- ADD_ENTRY (GST_PHOTOGRAPHY_FLICKER_REDUCTION_50HZ, "50hz"),
- ADD_ENTRY (GST_PHOTOGRAPHY_FLICKER_REDUCTION_60HZ, "60hz"),
- ADD_ENTRY (GST_PHOTOGRAPHY_FLICKER_REDUCTION_AUTO, "auto"),
- {NULL, -1}
- }},
- {NULL, NULL},
- /* *INDENT-ON* */
-};
-
-static const gchar *
-params_get_string (GHashTable * params, const gchar * key)
-{
- return g_hash_table_lookup (params, key);
-}
-
-static gboolean
-add_line (int fd, gchar * line)
-{
- int len = strlen (line);
- if (write (fd, line, len) != len) {
- perror ("write");
- g_free (line);
- return FALSE;
- }
-
- if (write (fd, "\n", 1) != 1) {
- perror ("write");
- return FALSE;
- }
-
- return TRUE;
-}
-
|
[-]
[+]
|
Deleted |
_service:tar_git:gstreamer1.0-droid-0.20210304.0.tar.gz/tools/record.c
^
|
@@ -1,68 +0,0 @@
-/*
- * gst-droid
- *
- * Copyright (C) 2014 Mohammed Sameer <msameer@foolab.org>
- * Copyright (C) 2015 Jolla LTD.
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
- */
-
-#include <gst/gst.h>
-#include <assert.h>
-#include "common.h"
-
-gboolean
-stop_capture (Common * c)
-{
- g_print ("stop recording\n");
-
- g_signal_emit_by_name (c->bin, "stop-capture", NULL);
-
- common_quit (c, 0);
-
- return FALSE;
-}
-
-static void
-pipeline_started (Common * c)
-{
- g_print ("start recording\n");
-
- g_timeout_add_seconds (5, (GSourceFunc) stop_capture, c);
-
- g_signal_emit_by_name (c->bin, "start-capture", NULL);
-}
-
-int
-main (int argc, char *argv[])
-{
- Common *common = common_init (&argc, &argv, "camerabin");
- if (!common) {
- return 1;
- }
-
- common_set_vf_caps (common, 1280, 720, 30, 1);
- common_set_video_caps (common, 1280, 720, 30, 1);
-
- common_set_device_mode (common, PRIMARY, VIDEO);
-
- common->started = pipeline_started;
-
- if (!common_run (common)) {
- return 1;
- }
-
- return common_destroy (common, TRUE);
-}
|
[-]
[+]
|
Added |
_service:tar_git:gstreamer1.0-droid-0.20210518.1.tar.gz/.gitignore
^
|
@@ -0,0 +1,2 @@
+_build
+/documentation.list
|
[-]
[+]
|
Changed |
_service:tar_git:gstreamer1.0-droid-0.20210518.1.tar.gz/gst-libs/gst/droid/gstdroidbufferpool.c
^
|
@@ -1,8 +1,8 @@
/*
* gst-droid
*
- * Copyright (C) 2014 Mohammed Sameer <msameer@foolab.org>
- * Copyright (C) 2015 Jolla LTD.
+ * Copyright (C) 2014 Mohammed Sameer
+ * Copyright (C) 2015-2020 Jolla Ltd.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
|
[-]
[+]
|
Changed |
_service:tar_git:gstreamer1.0-droid-0.20210518.1.tar.gz/gst-libs/gst/droid/gstdroidbufferpool.h
^
|
@@ -1,8 +1,8 @@
/*
* gst-droid
*
- * Copyright (C) 2014 Mohammed Sameer <msameer@foolab.org>
- * Copyright (C) 2015 Jolla LTD.
+ * Copyright (C) 2014 Mohammed Sameer
+ * Copyright (C) 2015-2020 Jolla Ltd.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
|
[-]
[+]
|
Changed |
_service:tar_git:gstreamer1.0-droid-0.20210518.1.tar.gz/gst-libs/gst/droid/gstdroidcodec.c
^
|
@@ -1,8 +1,8 @@
/*
* gst-droid
*
- * Copyright (C) 2014-2015 Mohammed Sameer <msameer@foolab.org>
- * Copyright (C) 2015 Jolla LTD.
+ * Copyright (C) 2014-2015 Mohammed Sameer
+ * Copyright (C) 2015-2019 Jolla Ltd.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -929,7 +929,7 @@
GST_WRITE_UINT16_BE (codec_data, codec_data_data);
- data = gst_buffer_new_and_alloc (2);
+ data = gst_buffer_new_allocate(NULL, 2, NULL);
gst_buffer_fill (data, 0, codec_data, 2);
ret = create_aacdec_codec_data_from_codec_data (codec, data, out);
|
[-]
[+]
|
Changed |
_service:tar_git:gstreamer1.0-droid-0.20210518.1.tar.gz/gst-libs/gst/droid/gstdroidcodec.h
^
|
@@ -1,8 +1,8 @@
/*
* gst-droid
*
- * Copyright (C) 2014-2015 Mohammed Sameer <msameer@foolab.org>
- * Copyright (C) 2015 Jolla LTD.
+ * Copyright (C) 2014-2015 Mohammed Sameer
+ * Copyright (C) 2015-2021 Jolla Ltd.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
|
[-]
[+]
|
Changed |
_service:tar_git:gstreamer1.0-droid-0.20210518.1.tar.gz/gst-libs/gst/droid/gstdroidmediabuffer.c
^
|
@@ -1,7 +1,7 @@
/*
* gst-droid
*
- * Copyright (C) 2015 Jolla LTD.
+ * Copyright (C) 2015-2020 Jolla Ltd.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
|
[-]
[+]
|
Changed |
_service:tar_git:gstreamer1.0-droid-0.20210518.1.tar.gz/gst-libs/gst/droid/gstdroidmediabuffer.h
^
|
@@ -1,7 +1,7 @@
/*
* gst-droid
*
- * Copyright (C) 2015 Jolla LTD.
+ * Copyright (C) 2015-2020 Jolla Ltd.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
|
[-]
[+]
|
Changed |
_service:tar_git:gstreamer1.0-droid-0.20210518.1.tar.gz/gst-libs/gst/droid/gstdroidquery.c
^
|
@@ -1,7 +1,7 @@
/*
* gst-droid
*
- * Copyright (C) 2015 Jolla LTD.
+ * Copyright (C) 2015-2021 Jolla Ltd.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -49,7 +49,7 @@
gboolean
gst_droid_query_parse_video_color_format (GstQuery * query, gint * format)
{
- GstStructure *structure;
+ const GstStructure *structure;
structure = gst_query_get_structure (query);
|
[-]
[+]
|
Changed |
_service:tar_git:gstreamer1.0-droid-0.20210518.1.tar.gz/gst-libs/gst/droid/gstdroidquery.h
^
|
@@ -1,7 +1,7 @@
/*
* gst-droid
*
- * Copyright (C) 2015 Jolla LTD.
+ * Copyright (C) 2015 Jolla Ltd.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
|
[-]
[+]
|
Changed |
_service:tar_git:gstreamer1.0-droid-0.20210518.1.tar.gz/gst-libs/gst/droid/gstwrappedmemory.c
^
|
@@ -1,7 +1,7 @@
/*
* gst-droid
*
- * Copyright (C) 2014-2015 Mohammed Sameer <msameer@foolab.org>
+ * Copyright (C) 2014-2015 Mohammed Sameer
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
|
[-]
[+]
|
Changed |
_service:tar_git:gstreamer1.0-droid-0.20210518.1.tar.gz/gst-libs/gst/droid/gstwrappedmemory.h
^
|
@@ -1,7 +1,7 @@
/*
* gst-droid
*
- * Copyright (C) 2014-2015 Mohammed Sameer <msameer@foolab.org>
+ * Copyright (C) 2014-2015 Mohammed Sameer
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
|
[-]
[+]
|
Added |
_service:tar_git:gstreamer1.0-droid-0.20210518.1.tar.gz/gst-libs/gst/droid/meson.build
^
|
@@ -0,0 +1,42 @@
+gstdroid_sources = [
+ '/usr/share/droidmedia/hybris.c',
+ 'gstdroidbufferpool.c',
+ 'gstdroidcodec.c',
+ 'gstdroidmediabuffer.c',
+ 'gstdroidquery.c',
+ 'gstwrappedmemory.c',
+]
+
+gstdroid_headers = [
+ 'gstdroidbufferpool.h',
+ 'gstdroidcodec.h',
+ 'gstdroidmediabuffer.h',
+ 'gstdroidquery.h',
+ 'gstwrappedmemory.h',
+]
+
+gstdroid_deps = [
+ gst_dep,
+ gstbase_dep,
+ gstcodecparsers_dep,
+ gstvideo_dep,
+ egl_dep,
+ gstnemointerfaces_dep,
+ hybris_dep
+]
+
+install_headers(gstdroid_headers, subdir : 'gstreamer-@0@/gst/allocators'.format(api_version))
+
+gstdroid = library('gstdroid-@0@'.format(api_version),
+ gstdroid_sources + gstdroid_headers,
+ c_args : gstdroid_args + ['-DGST_USE_UNSTABLE_API'],
+ include_directories : [configinc, libsinc, droidmedia_h],
+ version : lib_version,
+ soversion : so_version,
+ install : true,
+ dependencies : gstdroid_deps
+)
+
+gstdroid_dep = declare_dependency(link_with: gstdroid,
+ include_directories : [libsinc],
+ dependencies : gstdroid_deps)
|
[-]
[+]
|
Added |
_service:tar_git:gstreamer1.0-droid-0.20210518.1.tar.gz/gst-libs/gst/meson.build
^
|
@@ -0,0 +1 @@
+subdir('droid')
|
[-]
[+]
|
Added |
_service:tar_git:gstreamer1.0-droid-0.20210518.1.tar.gz/gst-libs/meson.build
^
|
@@ -0,0 +1 @@
+subdir('gst')
|
[-]
[+]
|
Changed |
_service:tar_git:gstreamer1.0-droid-0.20210518.1.tar.gz/gst/droidcamsrc/gstdroidcamsrc.c
^
|
@@ -1,8 +1,9 @@
/*
* gst-droid
*
- * Copyright (C) 2014 Mohammed Sameer <msameer@foolab.org>
- * Copyright (C) 2015-2016 Jolla LTD.
+ * Copyright (C) 2014 Mohammed Sameer
+ * Copyright (C) 2015-2021 Jolla Ltd.
+ * Copyright (C) 2010 Texas Instruments, Inc
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -93,6 +94,7 @@
const gchar * resolution);
static gboolean gst_droidcamsrc_is_zsl_and_hdr_supported (GstDroidCamSrc * src);
static GstCaps *gst_droidcamsrc_get_video_caps_locked (GstDroidCamSrc * src);
+static gboolean gst_droidcamsrc_get_hw (GstDroidCamSrc * src);
enum
{
@@ -117,6 +119,7 @@
#define DEFAULT_SENSOR_ORIENTATION 0
#define DEFAULT_IMAGE_MODE GST_DROIDCAMSRC_IMAGE_MODE_NORMAL
#define DEFAULT_TARGET_BITRATE 12000000
+#define DEFAULT_POST_PREVIEW FALSE
static GstDroidCamSrcPad *
gst_droidcamsrc_create_pad (GstDroidCamSrc * src,
@@ -207,6 +210,12 @@
src->video = gst_droidcamsrc_mode_new_video (src);
src->active_mode = NULL;
+ src->post_preview = DEFAULT_POST_PREVIEW;
+ src->preview_caps = NULL;
+ src->preview_filter = NULL;
+ src->preview_pipeline =
+ gst_camerabin_create_preview_pipeline (GST_ELEMENT_CAST (src), NULL);
+
GST_OBJECT_FLAG_SET (src, GST_ELEMENT_FLAG_SOURCE);
}
@@ -274,7 +283,11 @@
case PROP_SENSOR_MOUNT_ANGLE:
case PROP_SENSOR_ORIENTATION:
- g_value_set_int (value, src->info[src->camera_device].orientation * 90);
+ if (!gst_droidcamsrc_get_hw (src)) {
+ g_value_set_int (value, 0);
+ } else {
+ g_value_set_int (value, src->info[src->camera_device].orientation * 90);
+ }
break;
case PROP_IMAGE_MODE:
@@ -308,6 +321,20 @@
g_value_set_int (value, src->target_bitrate);
break;
+ case PROP_POST_PREVIEW:
+ g_value_set_boolean (value, src->post_preview);
+ break;
+
+ case PROP_PREVIEW_CAPS:
+ if (src->preview_caps)
+ gst_value_set_caps (value, src->preview_caps);
+ break;
+
+ case PROP_PREVIEW_FILTER:
+ if (src->preview_filter)
+ g_value_set_object (value, src->preview_filter);
+ break;
+
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
break;
@@ -326,17 +353,19 @@
switch (prop_id) {
case PROP_CAMERA_DEVICE:
+ src->camera_device = g_value_get_int (value);
g_rec_mutex_lock (&src->dev_lock);
if (src->dev && src->dev->info) {
- GST_ERROR_OBJECT (src,
- "cannot change camera-device while camera is running");
+ GST_WARNING_OBJECT (src,
+ "changing camera-device to %d will take effect next time the camera is opened.",
+ src->camera_device);
} else {
- src->camera_device = g_value_get_int (value);
GST_INFO_OBJECT (src, "camera device set to %d", src->camera_device);
- /* initialize empty photo properties */
- gst_droidcamsrc_photography_init (src);
}
g_rec_mutex_unlock (&src->dev_lock);
+
+ g_object_notify (G_OBJECT (src), "sensor-orientation");
+ g_object_notify (G_OBJECT (src), "sensor-mount-angle");
break;
case PROP_MODE:
@@ -359,25 +388,23 @@
g_mutex_unlock (&src->capture_lock);
- /* deactivate old mode */
- if (src->active_mode) {
- gst_droidcamsrc_mode_deactivate (src->active_mode);
- src->active_mode = NULL;
- }
-
src->mode = mode;
- g_rec_mutex_lock (&src->dev_lock);
+ if (src->active_mode != NULL) {
+ g_rec_mutex_lock (&src->dev_lock);
+
+ /* deactivate old mode */
+ gst_droidcamsrc_mode_deactivate (src->active_mode);
+ src->active_mode = NULL;
- if (src->dev && src->dev->params) {
/* activate mode. */
gst_droidcamsrc_select_and_activate_mode (src);
/* set mode settings */
gst_droidcamsrc_apply_mode_settings (src, SET_AND_APPLY);
- }
- g_rec_mutex_unlock (&src->dev_lock);
+ g_rec_mutex_unlock (&src->dev_lock);
+ }
}
break;
@@ -408,6 +435,53 @@
src->target_bitrate = g_value_get_int (value);
break;
+ case PROP_POST_PREVIEW:
+ src->post_preview = g_value_get_boolean (value);
+
+ if (src->dev) {
+ gst_droidcamsrc_dev_update_preview_callback_flag (src->dev);
+ }
+
+ break;
+
+ case PROP_PREVIEW_CAPS:{
+ GstCaps *new_caps;
+
+ new_caps = (GstCaps *) gst_value_get_caps (value);
+ if (new_caps == NULL) {
+ new_caps = gst_caps_new_any ();
+ } else {
+ new_caps = gst_caps_ref (new_caps);
+ }
+
+ if (!src->preview_caps || !gst_caps_is_equal (src->preview_caps, new_caps)) {
+ gst_caps_replace (&src->preview_caps, new_caps);
+
+ if (src->preview_pipeline) {
+ GST_DEBUG_OBJECT (src,
+ "Setting preview pipeline caps %" GST_PTR_FORMAT,
+ src->preview_caps);
+ gst_camerabin_preview_set_caps (src->preview_pipeline,
+ src->preview_caps);
+ }
+ } else {
+ GST_DEBUG_OBJECT (src, "New preview caps equal current preview caps");
+ }
+ gst_caps_unref (new_caps);
+ }
+ break;
+
+ case PROP_PREVIEW_FILTER:
+ if (src->preview_filter)
+ gst_object_unref (src->preview_filter);
+ src->preview_filter = g_value_dup_object (value);
+ if (!gst_camerabin_preview_set_filter (src->preview_pipeline,
+ src->preview_filter)) {
+ GST_WARNING_OBJECT (src,
+ "Cannot change preview filter, is element in NULL state?");
+ }
+ break;
+
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
break;
@@ -438,6 +512,15 @@
g_rec_mutex_clear (&src->dev_lock);
+ if (src->preview_pipeline) {
+ gst_camerabin_destroy_preview_pipeline (src->preview_pipeline);
+ src->preview_pipeline = NULL;
+ }
+
+ if (src->preview_caps) {
+ gst_caps_replace (&src->preview_caps, NULL);
+ }
|
[-]
[+]
|
Changed |
_service:tar_git:gstreamer1.0-droid-0.20210518.1.tar.gz/gst/droidcamsrc/gstdroidcamsrc.h
^
|
@@ -1,8 +1,9 @@
/*
* gst-droid
*
- * Copyright (C) 2014 Mohammed Sameer <msameer@foolab.org>
- * Copyright (C) 2016 Jolla LTD.
+ * Copyright (C) 2014 Mohammed Sameer
+ * Copyright (C) 2016 Jolla Ltd.
+ * Copyright (C) 2010 Texas Instruments, Inc
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -121,6 +122,12 @@
gint32 target_bitrate;
+ /* camerabin interface */
+ gboolean post_preview;
+ GstCaps *preview_caps;
+ GstElement *preview_filter;
+ GstCameraBinPreviewPipelineData *preview_pipeline;
+
/* protected with OBJECT_LOCK */
gint width;
gint height;
@@ -146,6 +153,8 @@
void gst_droidcamsrc_apply_mode_settings (GstDroidCamSrc * src, GstDroidCamSrcApplyType type);
void gst_droidcamsrc_update_max_zoom (GstDroidCamSrc * src);
+void gst_droidcamsrc_post_preview (GstDroidCamSrc * src, GstSample * sample);
+
G_END_DECLS
#endif /* __GST_DROIDCAMSRC_H__ */
|
[-]
[+]
|
Changed |
_service:tar_git:gstreamer1.0-droid-0.20210518.1.tar.gz/gst/droidcamsrc/gstdroidcamsrcdev.c
^
|
@@ -1,8 +1,9 @@
/*
* gst-droid
*
- * Copyright (C) 2014 Mohammed Sameer <msameer@foolab.org>
- * Copyright (C) 2015-2016 Jolla LTD.
+ * Copyright (C) 2014 Mohammed Sameer
+ * Copyright (C) 2015-2021 Jolla Ltd.
+ * Copyright (C) 2020 UBports Foundation.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -50,6 +51,7 @@
{
gboolean image_preview_sent;
gboolean image_start_sent;
+ gboolean preview_image_requested;
};
struct _GstDroidCamSrcVideoCaptureState
@@ -81,6 +83,7 @@
gst_droidcamsrc_dev_start_video_recording_raw_locked (GstDroidCamSrcDev * dev);
static void gst_droidcamsrc_dev_queue_video_buffer_locked (GstDroidCamSrcDev *
dev, GstBuffer * buffer);
+static void gst_droidcamsrc_dev_post_preview (GstDroidCamSrcDev * dev);
static void
gst_droidcamsrc_dev_shutter_callback (void *user)
@@ -98,6 +101,11 @@
dev->img->image_start_sent = TRUE;
}
+ if (dev->img->preview_image_requested) {
+ gst_droidcamsrc_dev_post_preview (dev);
+ dev->img->preview_image_requested = FALSE;
+ }
+
g_rec_mutex_unlock (dev->lock);
}
@@ -280,16 +288,6 @@
GST_DEBUG_OBJECT (src, "dev preview frame callback");
- /* We are accessing this without a lock because:
- * 1) We should not be called while preview is stopped and this is when we manipulate this flag
- * 2) We can get called when we start the preview and we will deadlock because the lock is already held
- */
- if (!dev->use_raw_data) {
- GST_WARNING_OBJECT (src,
- "preview frame callback called while not when we do not expect it");
- return;
- }
-
buffer = gst_buffer_new_allocate (NULL, mem->size, NULL);
gst_buffer_fill (buffer, 0, mem->data, mem->size);
@@ -303,10 +301,23 @@
gst_droidcamsrc_dev_prepare_buffer (dev, buffer, rect, &video_info);
- g_mutex_lock (&pad->lock);
- g_queue_push_tail (pad->queue, buffer);
- g_cond_signal (&pad->cond);
- g_mutex_unlock (&pad->lock);
+ g_mutex_lock (&dev->last_preview_buffer_lock);
+ gst_buffer_replace (&dev->last_preview_buffer, buffer);
+ g_cond_signal (&dev->last_preview_buffer_cond);
+ g_mutex_unlock (&dev->last_preview_buffer_lock);
+
+ /* We are accessing dev->use_raw_data without a lock because:
+ * 1) We should not be called while preview is stopped and this is when we manipulate this flag
+ * 2) We can get called when we start the preview and we will deadlock because the lock is already held
+ */
+ if (dev->use_raw_data) {
+ g_mutex_lock (&pad->lock);
+ g_queue_push_tail (pad->queue, buffer);
+ g_cond_signal (&pad->cond);
+ g_mutex_unlock (&pad->lock);
+ } else {
+ gst_buffer_unref (buffer);
+ }
}
static void
@@ -370,7 +381,7 @@
GST_DEBUG_OBJECT (src, "dev preview metadata callback");
- GST_INFO_OBJECT (src, "camera detected %d faces", num_faces);
+ GST_INFO_OBJECT (src, "camera detected %"G_GSIZE_FORMAT" faces", num_faces);
GST_OBJECT_LOCK (src);
width = src->width;
@@ -537,6 +548,11 @@
dev->lock = lock;
dev->pool = NULL;
+
+ dev->last_preview_buffer = NULL;
+ g_mutex_init (&dev->last_preview_buffer_lock);
+ g_cond_init (&dev->last_preview_buffer_cond);
+
dev->use_recorder = FALSE;
dev->recorder = gst_droidcamsrc_recorder_create (vidsrc);
@@ -648,9 +664,14 @@
gst_droidcamsrc_recorder_destroy (dev->recorder);
+ gst_buffer_replace (&dev->last_preview_buffer, NULL);
+ g_mutex_clear (&dev->last_preview_buffer_lock);
+ g_cond_clear (&dev->last_preview_buffer_cond);
+
g_slice_free (GstDroidCamSrcImageCaptureState, dev->img);
g_slice_free (GstDroidCamSrcVideoCaptureState, dev->vid);
g_slice_free (GstDroidCamSrcDev, dev);
+
dev = NULL;
}
@@ -726,9 +747,17 @@
GST_DEBUG_OBJECT (src, "dev start");
- if (!gst_buffer_pool_set_active (dev->pool, TRUE)) {
- GST_ERROR_OBJECT (src, "Failed to activate buffer pool");
- goto out;
+ if (!dev->use_raw_data) {
+ if (!dev->pool) {
+ GST_ERROR_OBJECT (src,
+ "No droid buffer pool provided in non-raw preview mode");
+ goto out;
+ }
+
+ if (!gst_buffer_pool_set_active (dev->pool, TRUE)) {
+ GST_ERROR_OBJECT (src, "Failed to activate buffer pool");
+ goto out;
+ }
}
if (apply_settings) {
@@ -740,16 +769,6 @@
goto out;
}
- if (dev->use_raw_data) {
- GST_INFO_OBJECT (src, "Using raw data mode");
- droid_media_camera_set_preview_callback_flags (dev->cam,
- dev->c.CAMERA_FRAME_CALLBACK_FLAG_CAMERA);
- } else {
- GST_INFO_OBJECT (src, "Using native buffers mode");
- droid_media_camera_set_preview_callback_flags (dev->cam,
- dev->c.CAMERA_FRAME_CALLBACK_FLAG_NOOP);
- }
-
if (!droid_media_camera_start_preview (dev->cam)) {
GST_ERROR_OBJECT (src, "error starting preview");
goto out;
@@ -757,10 +776,13 @@
dev->running = TRUE;
+ /* Flag update is done here because the function checks for dev->running. */
+ gst_droidcamsrc_dev_update_preview_callback_flag (dev);
+
ret = TRUE;
out:
- if (ret != TRUE) {
+ if (ret != TRUE && dev->pool) {
gst_buffer_pool_set_active (dev->pool, FALSE);
}
@@ -777,7 +799,9 @@
if (dev->running) {
GST_DEBUG ("stopping preview");
- gst_buffer_pool_set_active (dev->pool, FALSE);
+ if (dev->pool) {
+ gst_buffer_pool_set_active (dev->pool, FALSE);
+ }
droid_media_camera_stop_preview (dev->cam);
dev->running = FALSE;
GST_DEBUG ("stopped preview");
@@ -837,17 +861,43 @@
gboolean
gst_droidcamsrc_dev_capture_image (GstDroidCamSrcDev * dev)
{
+ GstDroidCamSrc *src = GST_DROIDCAMSRC (GST_PAD_PARENT (dev->imgsrc->pad));
+
gboolean ret = FALSE;
int msg_type = dev->c.CAMERA_MSG_SHUTTER | dev->c.CAMERA_MSG_RAW_IMAGE
| dev->c.CAMERA_MSG_POSTVIEW_FRAME | dev->c.CAMERA_MSG_COMPRESSED_IMAGE;
GST_DEBUG ("dev capture image");
+ if (src->post_preview) {
+ /*
+ * We must ensure that at least 1 preview buffer exists before proceed.
|
[-]
[+]
|
Changed |
_service:tar_git:gstreamer1.0-droid-0.20210518.1.tar.gz/gst/droidcamsrc/gstdroidcamsrcdev.h
^
|
@@ -1,8 +1,9 @@
/*
* gst-droid
*
- * Copyright (C) 2014 Mohammed Sameer <msameer@foolab.org>
- * Copyright (C) 2015-2016 Jolla LTD.
+ * Copyright (C) 2014 Mohammed Sameer
+ * Copyright (C) 2015-2018 Jolla Ltd.
+ * Copyright (C) 2020 UBports Foundation.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -56,6 +57,10 @@
DroidMediaCameraConstants c;
GstVideoFormat viewfinder_format;
+ GstBuffer *last_preview_buffer;
+ GMutex last_preview_buffer_lock;
+ GCond last_preview_buffer_cond;
+
gboolean use_recorder;
GstDroidCamSrcRecorder *recorder;
};
@@ -95,6 +100,8 @@
void gst_droidcamsrc_dev_queue_video_buffer (GstDroidCamSrcDev * dev, GstBuffer * buffer);
+void gst_droidcamsrc_dev_update_preview_callback_flag (GstDroidCamSrcDev * dev);
+
G_END_DECLS
#endif /* __GST_DROIDCAMSRC_DEV_H__ */
|
[-]
[+]
|
Changed |
_service:tar_git:gstreamer1.0-droid-0.20210518.1.tar.gz/gst/droidcamsrc/gstdroidcamsrcenums.c
^
|
@@ -1,8 +1,8 @@
/*
* gst-droid
*
- * Copyright (C) 2014 Mohammed Sameer <msameer@foolab.org>
- * Copyright (C) 2016 Jolla LTD.
+ * Copyright (C) 2014 Mohammed Sameer
+ * Copyright (C) 2016 Jolla Ltd.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
|
[-]
[+]
|
Changed |
_service:tar_git:gstreamer1.0-droid-0.20210518.1.tar.gz/gst/droidcamsrc/gstdroidcamsrcenums.h
^
|
@@ -1,8 +1,8 @@
/*
* gst-droid
*
- * Copyright (C) 2014 Mohammed Sameer <msameer@foolab.org>
- * Copyright (C) 2015-2016 Jolla LTD.
+ * Copyright (C) 2014 Mohammed Sameer
+ * Copyright (C) 2015-2016 Jolla Ltd.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
|
[-]
[+]
|
Changed |
_service:tar_git:gstreamer1.0-droid-0.20210518.1.tar.gz/gst/droidcamsrc/gstdroidcamsrcexif.c
^
|
@@ -1,7 +1,8 @@
/*
* gst-droid
*
- * Copyright (C) 2014 Mohammed Sameer <msameer@foolab.org>
+ * Copyright (C) 2014 Mohammed Sameer
+ * Copyright (C) 2015-2021 Jolla Ltd.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -105,7 +106,7 @@
gst_droidcamsrc_exif_tags_from_jpeg_data (void *data, size_t size)
{
GstTagList *tags = NULL;
- ExifMem *mem = exif_mem_new (g_malloc0, g_realloc, g_free);
+ ExifMem *mem = exif_mem_new ((ExifMemAllocFunc)g_malloc0, (ExifMemReallocFunc)g_realloc, g_free);
ExifData *exif = exif_data_new_mem (mem);
unsigned char *exif_data = NULL;
void *_exif_data = NULL;
|
[-]
[+]
|
Changed |
_service:tar_git:gstreamer1.0-droid-0.20210518.1.tar.gz/gst/droidcamsrc/gstdroidcamsrcexif.h
^
|
@@ -1,7 +1,8 @@
/*
* gst-droid
*
- * Copyright (C) 2014 Mohammed Sameer <msameer@foolab.org>
+ * Copyright (C) 2014 Mohammed Sameer
+ * Copyright (C) 2015 Jolla Ltd.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
|
[-]
[+]
|
Changed |
_service:tar_git:gstreamer1.0-droid-0.20210518.1.tar.gz/gst/droidcamsrc/gstdroidcamsrcmode.c
^
|
@@ -1,7 +1,7 @@
/*
* gst-droid
*
- * Copyright (C) 2015 Jolla LTD.
+ * Copyright (C) 2015 Jolla Ltd.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
|
[-]
[+]
|
Changed |
_service:tar_git:gstreamer1.0-droid-0.20210518.1.tar.gz/gst/droidcamsrc/gstdroidcamsrcmode.h
^
|
@@ -1,7 +1,7 @@
/*
* gst-droid
*
- * Copyright (C) 2015 Jolla LTD.
+ * Copyright (C) 2015 Jolla Ltd.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
|
[-]
[+]
|
Changed |
_service:tar_git:gstreamer1.0-droid-0.20210518.1.tar.gz/gst/droidcamsrc/gstdroidcamsrcparams.c
^
|
@@ -1,8 +1,8 @@
/*
* gst-droid
*
- * Copyright (C) 2014 Mohammed Sameer <msameer@foolab.org>
- * Copyright (C) 2015 Jolla LTD.
+ * Copyright (C) 2014 Mohammed Sameer
+ * Copyright (C) 2015-2021 Jolla Ltd.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -465,8 +465,8 @@
}
void
-gst_droidcamsrc_params_choose_image_framerate (GstDroidCamSrcParams * params,
- GstCaps * caps)
+gst_droidcamsrc_params_choose_framerate (GstDroidCamSrcParams * params,
+ GstCaps * caps, gboolean widest, const char *set_param_name)
{
int x;
int target_min = -1, target_max = -1;
@@ -493,75 +493,50 @@
gst_caps_unref (c);
- /* the fps we have is valid. Select it if higher than our current target, or wider */
- if (max > target_max || max == target_max && min < target_min) {
- target_min = min;
- target_max = max;
+ if (widest) {
+ /* the fps we have is valid. Select it if higher than our current target, or wider */
+ if (max > target_max || (max == target_max && min < target_min)) {
+ target_min = min;
+ target_max = max;
+ }
+ } else {
+ /* the fps we have is valid. Select it if higher than our current target, or narrower */
+ if (max > target_max || (max == target_max && min > target_min)) {
+ target_min = min;
+ target_max = max;
+ }
}
}
if (target_min != -1 && target_max != -1) {
- gchar *var;
/* use the max */
gst_caps_set_simple (caps, "framerate", GST_TYPE_FRACTION,
target_max / 1000, 1, NULL);
- var = g_strdup_printf ("%d,%d", target_min, target_max);
- gst_droidcamsrc_params_set_string_locked (params, "preview-fps-range", var);
- g_free (var);
+ if (set_param_name) {
+ gchar *var;
+ var = g_strdup_printf ("%d,%d", target_min, target_max);
+ gst_droidcamsrc_params_set_string_locked (params, "preview-fps-range", var);
+ g_free (var);
+ }
}
g_mutex_unlock (¶ms->lock);
}
void
-gst_droidcamsrc_params_choose_video_framerate (GstDroidCamSrcParams * params,
+gst_droidcamsrc_params_choose_image_framerate (GstDroidCamSrcParams * params,
GstCaps * caps)
{
- int x;
- int target_min = -1, target_max = -1;
-
- g_mutex_lock (¶ms->lock);
-
- for (x = 0; x < params->min_fps_range->len; x++) {
- int min = g_array_index (params->min_fps_range, gint, x);
- int max = g_array_index (params->max_fps_range, gint, x);
-
- GstCaps *c = gst_caps_copy (caps);
- if (min == max) {
- gst_caps_set_simple (c, "framerate", GST_TYPE_FRACTION, min / 1000, 1,
- NULL);
- } else {
- gst_caps_set_simple (c, "framerate", GST_TYPE_FRACTION_RANGE,
- min / 1000, 1, max / 1000, 1, NULL);
- }
-
- if (!gst_caps_can_intersect (caps, c)) {
- gst_caps_unref (c);
- continue;
- }
-
- gst_caps_unref (c);
-
- /* the fps we have is valid. Select it if higher than our current target, or narrower */
- if (max > target_max || max == target_max && min > target_min) {
- target_min = min;
- target_max = max;
- }
- }
-
- if (target_min != -1 && target_max != -1) {
- gchar *var;
-
- /* use the max */
- gst_caps_set_simple (caps, "framerate", GST_TYPE_FRACTION,
- target_max / 1000, 1, NULL);
-
- var = g_strdup_printf ("%d,%d", target_min, target_max);
- gst_droidcamsrc_params_set_string_locked (params, "preview-fps-range", var);
- g_free (var);
- }
+ gst_droidcamsrc_params_choose_framerate (params,
+ caps, TRUE, "preview-fps-range");
+}
- g_mutex_unlock (¶ms->lock);
+void
+gst_droidcamsrc_params_choose_video_framerate (GstDroidCamSrcParams * params,
+ GstCaps * caps)
+{
+ gst_droidcamsrc_params_choose_framerate (params,
+ caps, FALSE, "preview-fps-range");
}
|
[-]
[+]
|
Changed |
_service:tar_git:gstreamer1.0-droid-0.20210518.1.tar.gz/gst/droidcamsrc/gstdroidcamsrcparams.h
^
|
@@ -2,6 +2,7 @@
* gst-droid
*
* Copyright (C) 2014 Mohammed Sameer <msameer@foolab.org>
+ * Copyright (C) 2015-2018 Jolla Ltd.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -54,6 +55,8 @@
int gst_droidcamsrc_params_get_int (GstDroidCamSrcParams * params, const char *key);
float gst_droidcamsrc_params_get_float (GstDroidCamSrcParams * params, const char *key);
+void gst_droidcamsrc_params_choose_framerate (GstDroidCamSrcParams * params,
+ GstCaps * caps, gboolean widest, const char *set_param);
void gst_droidcamsrc_params_choose_image_framerate (GstDroidCamSrcParams * params, GstCaps * caps);
void gst_droidcamsrc_params_choose_video_framerate (GstDroidCamSrcParams * params, GstCaps * caps);
|
[-]
[+]
|
Changed |
_service:tar_git:gstreamer1.0-droid-0.20210518.1.tar.gz/gst/droidcamsrc/gstdroidcamsrcphotography.c
^
|
@@ -1,7 +1,8 @@
/*
* gst-droid
*
- * Copyright (C) 2014 Mohammed Sameer <msameer@foolab.org>
+ * Copyright (C) 2014 Mohammed Sameer
+ * Copyright (C) 2015-2018 Jolla Ltd.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -234,11 +235,11 @@
int x; \
int len = g_list_length (table); \
if (len == 0) { \
- GST_WARNING_OBJECT (src, "params for %s not yet available. not applying value %d yet", droid, val); \
+ GST_WARNING_OBJECT (src, "params for %s not yet available. deferred applying value %d", droid, val); \
GST_OBJECT_LOCK (src); \
src->photo->settings.memb = val; \
GST_OBJECT_UNLOCK (src); \
- return FALSE; \
+ return TRUE; \
} \
\
const gchar *value = NULL; \
@@ -1243,11 +1244,12 @@
if (len == 0 || src->photo->iso_key == NULL) {
GST_DEBUG_OBJECT (src,
- "params not yet fetched. not applying iso speed yet");
+ "params for iso speed not yet available. deferred applying value %u",
+ iso_speed);
GST_OBJECT_LOCK (src);
src->photo->settings.iso_speed = iso_speed;
GST_OBJECT_UNLOCK (src);
- return FALSE;
+ return TRUE;
}
for (x = 0; x < len; x++) {
@@ -1365,11 +1367,12 @@
if (len == 0) {
GST_DEBUG_OBJECT (src,
- "params not yet fetched. not applying focus mode yet");
+ "params for focus mode not yet available. deferred applying value %d",
+ focus_mode);
GST_OBJECT_LOCK (src);
src->photo->settings.focus_mode = focus_mode;
GST_OBJECT_UNLOCK (src);
- return FALSE;
+ return TRUE;
}
const gchar *value = NULL;
|
[-]
[+]
|
Changed |
_service:tar_git:gstreamer1.0-droid-0.20210518.1.tar.gz/gst/droidcamsrc/gstdroidcamsrcphotography.h
^
|
@@ -2,7 +2,7 @@
* gst-droid
*
* Copyright (C) 2014 Mohammed Sameer <msameer@foolab.org>
- * Copyright (C) 2016 Jolla LTD.
+ * Copyright (C) 2015-2018 Jolla Ltd.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -77,7 +77,12 @@
PROP_MIN_EXPOSURE_TIME,
PROP_MAX_EXPOSURE_TIME,
PROP_NOISE_REDUCTION,
- PROP_EXPOSURE_MODE
+ PROP_EXPOSURE_MODE,
+
+ /* camerabin interface */
+ PROP_POST_PREVIEW,
+ PROP_PREVIEW_CAPS,
+ PROP_PREVIEW_FILTER
} GstDroidCamSrcProperties;
void gst_droidcamsrc_photography_register (gpointer g_iface, gpointer iface_data);
|
[-]
[+]
|
Changed |
_service:tar_git:gstreamer1.0-droid-0.20210518.1.tar.gz/gst/droidcamsrc/gstdroidcamsrcquirks.c
^
|
@@ -1,7 +1,8 @@
/*
* gst-droid
*
- * Copyright (C) 2014 Mohammed Sameer <msameer@foolab.org>
+ * Copyright (C) 2014 Mohammed Sameer
+ * Copyright (C) 2015-2021 Jolla Ltd.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -332,7 +333,7 @@
}
}
-G_INLINE_FUNC gint
+static inline gint
_find_quirk (gconstpointer a, gconstpointer b)
{
/* a can be NULL */
|
[-]
[+]
|
Changed |
_service:tar_git:gstreamer1.0-droid-0.20210518.1.tar.gz/gst/droidcamsrc/gstdroidcamsrcquirks.h
^
|
@@ -1,7 +1,8 @@
/*
* gst-droid
*
- * Copyright (C) 2014 Mohammed Sameer <msameer@foolab.org>
+ * Copyright (C) 2014 Mohammed Sameer
+ * Copyright (C) 2015 Jolla Ltd.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
|
[-]
[+]
|
Changed |
_service:tar_git:gstreamer1.0-droid-0.20210518.1.tar.gz/gst/droidcamsrc/gstdroidcamsrcrecorder.c
^
|
@@ -1,7 +1,7 @@
/*
* gst-droid
*
- * Copyright (C) 2016 Jolla LTD.
+ * Copyright (C) 2016-2020 Jolla Ltd.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -149,7 +149,7 @@
current = NULL;
gst_caps_set_simple (caps, "codec_data", GST_TYPE_BUFFER, codec_data, NULL);
- ret = gst_pad_set_caps (recorder->vidsrc->pad, caps);
+ ret = gst_pad_push_event (recorder->vidsrc->pad, gst_event_new_caps (caps));
gst_caps_unref (caps);
if (!ret) {
|
[-]
[+]
|
Changed |
_service:tar_git:gstreamer1.0-droid-0.20210518.1.tar.gz/gst/droidcamsrc/gstdroidcamsrcrecorder.h
^
|
@@ -1,7 +1,7 @@
/*
* gst-droid
*
- * Copyright (C) 2016 Jolla LTD.
+ * Copyright (C) 2016 Jolla Ltd.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
|
[-]
[+]
|
Added |
_service:tar_git:gstreamer1.0-droid-0.20210518.1.tar.gz/gst/droidcamsrc/meson.build
^
|
@@ -0,0 +1,49 @@
+gstdroidcamsrc_sources = [
+ '/usr/share/droidmedia/hybris.c',
+ 'gstdroidcamsrc.c',
+ 'gstdroidcamsrcdev.c',
+ 'gstdroidcamsrcparams.c',
+ 'gstdroidcamsrcenums.c',
+ 'gstdroidcamsrcphotography.c',
+ 'gstdroidcamsrcquirks.c',
+ 'gstdroidcamsrcexif.c',
+ 'gstdroidcamsrcmode.c',
+ 'gstdroidcamsrcrecorder.c'
+]
+
+gstdroidcamsrc_headers = [
+ 'gstdroidcamsrc.h',
+ 'gstdroidcamsrcdev.h',
+ 'gstdroidcamsrcparams.h',
+ 'gstdroidcamsrcenums.h',
+ 'gstdroidcamsrcphotography.h',
+ 'gstdroidcamsrcquirks.h',
+ 'gstdroidcamsrcexif.h',
+ 'gstdroidcamsrcmode.h',
+ 'gstdroidcamsrcrecorder.h'
+]
+
+gstdroidcamsrc_deps = [
+ gst_dep,
+ gstbase_dep,
+ gstcamerabinsrc_dep,
+ gstdroid_dep,
+ gstnemometa_dep,
+ gstphotography_dep,
+ gsttag_dep,
+ gstvideo_dep,
+ egl_dep,
+ exif_dep,
+ hybris_dep
+]
+
+gstdroidcamsrc = static_library('gstdroidcamsrc-@0@'.format(api_version),
+ gstdroidcamsrc_sources + gstdroidcamsrc_headers,
+ c_args : gstdroid_args + ['-DGST_USE_UNSTABLE_API'],
+ include_directories : ['..', configinc, libsinc, droidmedia_h],
+ dependencies : gstdroidcamsrc_deps
+)
+
+gstdroidcamsrc_dep = declare_dependency(link_with: gstdroidcamsrc,
+ include_directories : [libsinc],
+ dependencies : gstdroidcamsrc_deps)
|
[-]
[+]
|
Changed |
_service:tar_git:gstreamer1.0-droid-0.20210518.1.tar.gz/gst/droidcodec/gstdroidadec.c
^
|
@@ -1,8 +1,8 @@
/*
* gst-droid
*
- * Copyright (C) 2014 Mohammed Sameer <msameer@foolab.org>
- * Copyright (C) 2015 Jolla LTD.
+ * Copyright (C) 2014 Mohammed Sameer
+ * Copyright (C) 2015-2021 Jolla Ltd.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -133,7 +133,7 @@
GstBuffer *out;
GstMapInfo info;
- GST_DEBUG_OBJECT (dec, "data available of size %d", encoded->data.size);
+ GST_DEBUG_OBJECT (dec, "data available of size %"G_GSSIZE_FORMAT, encoded->data.size);
GST_AUDIO_DECODER_STREAM_LOCK (decoder);
@@ -191,7 +191,7 @@
}
push:
- GST_DEBUG_OBJECT (dec, "pushing %d bytes out", gst_buffer_get_size (out));
+ GST_DEBUG_OBJECT (dec, "pushing %"G_GSIZE_FORMAT" bytes out", gst_buffer_get_size (out));
flow_ret = gst_audio_decoder_finish_frame (decoder, out, 1);
@@ -545,7 +545,7 @@
cb.unref = g_free;
cb.data = data.data.data;
- GST_DEBUG_OBJECT (dec, "decoding data of size %d (%d)",
+ GST_DEBUG_OBJECT (dec, "decoding data of size %"G_GSIZE_FORMAT" (%"G_GSSIZE_FORMAT")",
gst_buffer_get_size (buffer), data.data.size);
/*
|
[-]
[+]
|
Changed |
_service:tar_git:gstreamer1.0-droid-0.20210518.1.tar.gz/gst/droidcodec/gstdroidadec.h
^
|
@@ -1,8 +1,8 @@
/*
* gst-droid
*
- * Copyright (C) 2014 Mohammed Sameer <msameer@foolab.org>
- * Copyright (C) 2015 Jolla LTD.
+ * Copyright (C) 2014 Mohammed Sameer
+ * Copyright (C) 2015-2016 Jolla Ltd.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
|
[-]
[+]
|
Changed |
_service:tar_git:gstreamer1.0-droid-0.20210518.1.tar.gz/gst/droidcodec/gstdroidaenc.c
^
|
@@ -1,8 +1,8 @@
/*
* gst-droid
*
- * Copyright (C) 2014-2015 Mohammed Sameer <msameer@foolab.org>
- * Copyright (C) 2015 Jolla LTD.
+ * Copyright (C) 2014-2015 Mohammed Sameer
+ * Copyright (C) 2015-2021 Jolla Ltd.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -520,11 +520,11 @@
* encoder's clock, as some versions of libstagefright throw away frames if
* it doesn't increase
*/
- GstClockTime ts = GST_BUFFER_TIMESTAMP (buffer);
+ GstClockTime ts = GST_BUFFER_PTS (buffer);
if (!GST_CLOCK_TIME_IS_VALID (ts)) {
GST_DEBUG_OBJECT (enc, "Replacing invalid timestamp: %" GST_TIME_FORMAT,
GST_TIME_ARGS (ts));
- GstClock *clock = gst_element_get_clock (enc);
+ GstClock *clock = gst_element_get_clock (GST_ELEMENT (enc));
if (clock) {
ts = gst_clock_get_time (clock) - GST_ELEMENT_CAST (enc)->base_time;
GST_DEBUG_OBJECT (enc, "New timestamp: %" GST_TIME_FORMAT,
|
[-]
[+]
|
Changed |
_service:tar_git:gstreamer1.0-droid-0.20210518.1.tar.gz/gst/droidcodec/gstdroidaenc.h
^
|
@@ -1,7 +1,8 @@
/*
* gst-droid
*
- * Copyright (C) 2014 Mohammed Sameer <msameer@foolab.org>
+ * Copyright (C) 2014 Mohammed Sameer
+ * Copyright (C) 2015-2016 Jolla Ltd.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
|
[-]
[+]
|
Changed |
_service:tar_git:gstreamer1.0-droid-0.20210518.1.tar.gz/gst/droidcodec/gstdroidvdec.c
^
|
@@ -1,8 +1,8 @@
/*
* gst-droid
*
- * Copyright (C) 2014 Mohammed Sameer <msameer@foolab.org>
- * Copyright (C) 2015 Jolla LTD.
+ * Copyright (C) 2014 Mohammed Sameer
+ * Copyright (C) 2015-2021 Jolla Ltd.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -439,12 +439,12 @@
if (dec->codec_type->quirks & USE_CODEC_SUPPLIED_WIDTH_VALUE) {
width = dec->codec_reported_width;
- GST_INFO_OBJECT (dec, "using codec supplied width %d", width);
+ GST_INFO_OBJECT (dec, "using codec supplied width %"G_GSIZE_FORMAT, width);
}
if (dec->codec_type->quirks & USE_CODEC_SUPPLIED_HEIGHT_VALUE) {
height = dec->codec_reported_height;
- GST_INFO_OBJECT (dec, "using codec supplied height %d", height);
+ GST_INFO_OBJECT (dec, "using codec supplied height %"G_GSIZE_FORMAT, height);
}
if (!dec->convert_to_i420) {
|
[-]
[+]
|
Changed |
_service:tar_git:gstreamer1.0-droid-0.20210518.1.tar.gz/gst/droidcodec/gstdroidvdec.h
^
|
@@ -1,8 +1,8 @@
/*
* gst-droid
*
- * Copyright (C) 2014 Mohammed Sameer <msameer@foolab.org>
- * Copyright (C) 2015 Jolla LTD.
+ * Copyright (C) 2014 Mohammed Sameer
+ * Copyright (C) 2015-2020 Jolla Ltd.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
|
[-]
[+]
|
Changed |
_service:tar_git:gstreamer1.0-droid-0.20210518.1.tar.gz/gst/droidcodec/gstdroidvenc.c
^
|
@@ -1,8 +1,8 @@
/*
* gst-droid
*
- * Copyright (C) 2014-2015 Mohammed Sameer <msameer@foolab.org>
- * Copyright (C) 2015 Jolla LTD.
+ * Copyright (C) 2014-2015 Mohammed Sameer
+ * Copyright (C) 2015-2021 Jolla Ltd.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -505,7 +505,7 @@
gst_droidvenc_finish (GstVideoEncoder * encoder)
{
GstDroidVEnc *enc = GST_DROIDVENC (encoder);
- GTimeVal tv;
+ gint64 tv;
GST_DEBUG_OBJECT (enc, "finish");
@@ -518,14 +518,14 @@
goto out;
}
- g_get_current_time (&tv);
- g_time_val_add (&tv, G_USEC_PER_SEC * GST_DROIDVENC_EOS_TIMEOUT_SEC);
+ tv = g_get_real_time ();
+ tv += G_USEC_PER_SEC * GST_DROIDVENC_EOS_TIMEOUT_SEC;
/* release the lock to allow _frame_available () to do its job */
GST_VIDEO_ENCODER_STREAM_UNLOCK (encoder);
/* Now we wait for the codec to signal EOS. We cannot wait forever because sometimes
* we never hear anything from the video encoders. */
- if (!g_cond_timed_wait (&enc->eos_cond, &enc->eos_lock, &tv)) {
+ if (!g_cond_wait_until (&enc->eos_cond, &enc->eos_lock, tv)) {
GST_WARNING_OBJECT (enc, "timeout waiting for eos");
}
|
[-]
[+]
|
Changed |
_service:tar_git:gstreamer1.0-droid-0.20210518.1.tar.gz/gst/droidcodec/gstdroidvenc.h
^
|
@@ -1,7 +1,8 @@
/*
* gst-droid
*
- * Copyright (C) 2014 Mohammed Sameer <msameer@foolab.org>
+ * Copyright (C) 2014 Mohammed Sameer
+ * Copyright (C) 2015-2016 Jolla Ltd.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
|
[-]
[+]
|
Added |
_service:tar_git:gstreamer1.0-droid-0.20210518.1.tar.gz/gst/droidcodec/meson.build
^
|
@@ -0,0 +1,37 @@
+gstdroidcodec_sources = [
+ '/usr/share/droidmedia/hybris.c',
+ 'gstdroidvdec.c',
+ 'gstdroidvenc.c',
+ 'gstdroidadec.c',
+ 'gstdroidaenc.c'
+]
+
+gstdroidcodec_headers = [
+ 'gstdroidvdec.h',
+ 'gstdroidvenc.h',
+ 'gstdroidadec.h',
+ 'gstdroidaenc.h'
+]
+
+gstdroidcodec_deps = [
+ gst_dep,
+ gstaudio_dep,
+ gstbase_dep,
+ gstcodecparsers_dep,
+ gstdroid_dep,
+ gstvideo_dep,
+ egl_dep,
+ hybris_dep,
+ orc_dep
+]
+
+gstdroidcodec = static_library('gstdroidcodec-@0@'.format(api_version),
+ gstdroidcodec_sources + gstdroidcodec_headers,
+ c_args : gstdroid_args + ['-DGST_USE_UNSTABLE_API'],
+ include_directories : ['..', configinc, libsinc, droidmedia_h],
+ dependencies : gstdroidcodec_deps
+)
+
+gstdroidcodec_dep = declare_dependency(link_with: gstdroidcodec,
+ include_directories : [libsinc],
+ dependencies : gstdroidcodec_deps)
|
[-]
[+]
|
Changed |
_service:tar_git:gstreamer1.0-droid-0.20210518.1.tar.gz/gst/droideglsink/gstdroideglsink.c
^
|
@@ -1,8 +1,8 @@
/*
* gst-droid
*
- * Copyright (C) 2014 Mohammed Sameer <msameer@foolab.org>
- * Copyright (C) 2015 Jolla LTD.
+ * Copyright (C) 2014 Mohammed Sameer
+ * Copyright (C) 2015-2020 Jolla Ltd.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
|
[-]
[+]
|
Changed |
_service:tar_git:gstreamer1.0-droid-0.20210518.1.tar.gz/gst/droideglsink/gstdroideglsink.h
^
|
@@ -1,8 +1,8 @@
/*
* gst-droid
*
- * Copyright (C) 2014 Mohammed Sameer <msameer@foolab.org>
- * Copyright (C) 2015 Jolla LTD.
+ * Copyright (C) 2014 Mohammed Sameer
+ * Copyright (C) 2015-2020 Jolla Ltd.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
|
[-]
[+]
|
Changed |
_service:tar_git:gstreamer1.0-droid-0.20210518.1.tar.gz/gst/droideglsink/gstdroidvideotexturesink.c
^
|
@@ -1,8 +1,8 @@
/*
* gst-droid
*
- * Copyright (C) 2014 Mohammed Sameer <msameer@foolab.org>
- * Copyright (C) 2015 Jolla LTD.
+ * Copyright (C) 2014 Mohammed Sameer
+ * Copyright (C) 2015 Jolla Ltd.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -112,8 +112,8 @@
sink = GST_DROIDVIDEOTEXTURESINK (bsink);
- if (GST_BUFFER_TIMESTAMP_IS_VALID (buf)) {
- *start = GST_BUFFER_TIMESTAMP (buf);
+ if (GST_BUFFER_PTS_IS_VALID (buf)) {
+ *start = GST_BUFFER_PTS (buf);
if (GST_BUFFER_DURATION_IS_VALID (buf)) {
*end = *start + GST_BUFFER_DURATION (buf);
} else {
|
[-]
[+]
|
Changed |
_service:tar_git:gstreamer1.0-droid-0.20210518.1.tar.gz/gst/droideglsink/gstdroidvideotexturesink.h
^
|
@@ -1,8 +1,8 @@
/*
* gst-droid
*
- * Copyright (C) 2014 Mohammed Sameer <msameer@foolab.org>
- * Copyright (C) 2015 Jolla LTD.
+ * Copyright (C) 2014 Mohammed Sameer
+ * Copyright (C) 2015-2020 Jolla Ltd.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
|
[-]
[+]
|
Added |
_service:tar_git:gstreamer1.0-droid-0.20210518.1.tar.gz/gst/droideglsink/meson.build
^
|
@@ -0,0 +1,29 @@
+gstdroideglsink_sources = [
+ '/usr/share/droidmedia/hybris.c',
+ 'gstdroideglsink.c',
+ 'gstdroidvideotexturesink.c'
+]
+
+gstdroideglsink_headers = [
+ 'gstdroideglsink.h',
+ 'gstdroidvideotexturesink.h'
+]
+
+gstdroideglsink_deps = [
+ gst_dep,
+ gstdroid_dep,
+ gstnemointerfaces_dep,
+ gstvideo_dep,
+ egl_dep
+]
+
+gstdroideglsink = static_library('gstdroideglsink-@0@'.format(api_version),
+ gstdroideglsink_sources + gstdroideglsink_headers,
+ c_args : gstdroid_args + ['-DGST_USE_UNSTABLE_API'],
+ include_directories : ['..', configinc, libsinc, droidmedia_h],
+ dependencies : gstdroideglsink_deps
+)
+
+gstdroideglsink_dep = declare_dependency(link_with: gstdroideglsink,
+ include_directories : [libsinc],
+ dependencies : gstdroideglsink_deps)
|
[-]
[+]
|
Added |
_service:tar_git:gstreamer1.0-droid-0.20210518.1.tar.gz/gst/meson.build
^
|
@@ -0,0 +1,23 @@
+libgstdroid_sources = [
+ '/usr/share/droidmedia/hybris.c',
+ 'plugin.c',
+]
+
+libgstdroid_headers = [
+ 'plugin.h',
+]
+
+subdir('droidcodec')
+subdir('droideglsink')
+subdir('droidcamsrc')
+
+libgstdroid = library('gstdroid',
+ libgstdroid_sources + libgstdroid_headers,
+ c_args : gstdroid_args + ['-DGST_USE_UNSTABLE_API'],
+ include_directories : [configinc, libsinc, droidmedia_h, 'droidcamsrc', 'droidcodec', 'droideglsink'],
+ dependencies : [ gst_dep, gstdroidcamsrc_dep, gstdroidcodec_dep, gstdroideglsink_dep, hybris_dep ],
+ install : true,
+ install_dir : plugins_install_dir,
+)
+
+plugins = [gstdroid]
|
[-]
[+]
|
Changed |
_service:tar_git:gstreamer1.0-droid-0.20210518.1.tar.gz/gst/plugin.c
^
|
@@ -1,7 +1,8 @@
/*
* gst-droid
*
- * Copyright (C) 2014 Mohammed Sameer <msameer@foolab.org>
+ * Copyright (C) 2014 Mohammed Sameer
+ * Copyright (C) 2020-2021 Jolla Ltd.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -97,4 +98,4 @@
GST_VERSION_MINOR,
droid,
"Android HAL plugins",
- plugin_init, VERSION, "LGPL", PACKAGE_NAME, "http://foolab.org/")
+ plugin_init, VERSION, "LGPL", PACKAGE_NAME, "http://sailfishos.org/")
|
[-]
[+]
|
Changed |
_service:tar_git:gstreamer1.0-droid-0.20210518.1.tar.gz/gst/plugin.h
^
|
@@ -1,7 +1,7 @@
/*
* gst-droid
*
- * Copyright (C) 2014 Mohammed Sameer <msameer@foolab.org>
+ * Copyright (C) 2014-2015 Mohammed Sameer
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
|
[-]
[+]
|
Added |
_service:tar_git:gstreamer1.0-droid-0.20210518.1.tar.gz/meson.build
^
|
@@ -0,0 +1,85 @@
+project('gst-droid', 'c', 'cpp',
+ version : '1.0.0',
+ default_options : [ 'warning_level=1',
+ 'buildtype=debugoptimized' ])
+
+api_version = '1.0'
+lib_version = '1.0.0'
+so_version = '0'
+
+gstdroid_version = meson.project_version()
+gstdroid_name = meson.project_name()
+
+cc = meson.get_compiler('c')
+
+droid_conf = configuration_data()
+
+gst_req = '>= 1.0.0'
+
+# Mandatory GST deps
+gst_dep = dependency('gstreamer-1.0', version : gst_req, required : true)
+gstbase_dep = dependency('gstreamer-base-1.0', version : gst_req, required : true)
+gstaudio_dep = dependency('gstreamer-audio-1.0', version : gst_req, required : true)
+gstpbutils_dep = dependency('gstreamer-pbutils-1.0', version : gst_req, required : true)
+gsttag_dep = dependency('gstreamer-tag-1.0', version : gst_req, required : true)
+gstvideo_dep = dependency('gstreamer-video-1.0', version : gst_req, required : true)
+gstpluginsbad_dep = dependency('gstreamer-plugins-bad-1.0', version : gst_req, required : true)
+gstcodecparsers_dep = dependency('gstreamer-codecparsers-1.0', version : gst_req, required : true)
+
+gstphotography_dep = dependency('gstreamer-photography-1.0', version : gst_req, required : false)
+# Fallback if gstreamer-photography-1.0 is not found using pkg-config
+if not gstphotography_dep.found()
+ gstphotography_dep = cc.find_library('gstphotography-1.0')
+endif
+
+gstcamerabinsrc_dep = cc.find_library('gstbasecamerabinsrc-1.0', required: true)
+gstnemointerfaces_dep = dependency('nemo-gstreamer-interfaces-1.0', required : true)
+gstnemometa_dep = dependency('nemo-gstreamer-meta-1.0', required : true)
+
+egl_dep = dependency('egl', required : true)
+exif_dep = dependency('libexif', required : true)
+orc_dep = dependency('orc-0.4', required : true)
+
+if orc_dep.found()
+ droid_conf.set('HAVE_ORC', 1)
+endif
+
+droid_conf.set_quoted('PACKAGE', 'gstreamer-droid')
+droid_conf.set_quoted('VERSION', '@0@'.format(lib_version))
+droid_conf.set_quoted('PACKAGE_NAME', 'GstDroid library')
+droid_conf.set_quoted('PACKAGE_STRING', 'GstDroid library')
+
+root_dir = include_directories('.')
+droidmedia_h = include_directories('/usr/include/droidmedia')
+hybris_dep = cc.find_library('hybris-common', required: true)
+
+gstdroid_args = ['-DHAVE_CONFIG_H', '-DSYSCONFDIR="/etc"']
+
+plugins_install_dir = join_paths(get_option('libdir'), 'gstreamer-1.0')
+
+configinc = include_directories('.')
+libsinc = include_directories('gst-libs')
+
+subdir('gst-libs')
+subdir('gst')
+subdir('tools')
+
+pkg = import('pkgconfig')
+
+pkgconf = configuration_data()
+pkgconf.set('prefix', join_paths(get_option('prefix')))
+pkgconf.set('exec_prefix', '${prefix}')
+pkgconf.set('libdir', '${prefix}/@0@'.format(get_option('libdir')))
+pkgconf.set('includedir', '${prefix}/@0@'.format(get_option('includedir')))
+pkgconf.set('VERSION', lib_version)
+
+pkg_install_dir = '@0@/pkgconfig'.format(get_option('libdir'))
+
+infile = 'gstreamer-droid-@0@.pc.in'.format(api_version)
+outfile = 'gstreamer-droid-@0@.pc'.format(api_version)
+configure_file(input : infile,
+ output : outfile,
+ configuration : pkgconf,
+ install_dir : pkg_install_dir)
+
+configure_file(output: 'config.h', configuration: droid_conf)
|
[-]
[+]
|
Changed |
_service:tar_git:gstreamer1.0-droid-0.20210518.1.tar.gz/tools/common.c
^
|
@@ -1,8 +1,8 @@
/*
* gst-droid
*
- * Copyright (C) 2014 Mohammed Sameer <msameer@foolab.org>
- * Copyright (C) 2015 Jolla LTD.
+ * Copyright (C) 2014 Mohammed Sameer
+ * Copyright (C) 2015-2016 Jolla Ltd.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
|
[-]
[+]
|
Changed |
_service:tar_git:gstreamer1.0-droid-0.20210518.1.tar.gz/tools/common.h
^
|
@@ -1,8 +1,8 @@
/*
* gst-droid
*
- * Copyright (C) 2014 Mohammed Sameer <msameer@foolab.org>
- * Copyright (C) 2015 Jolla LTD.
+ * Copyright (C) 2014 Mohammed Sameer
+ * Copyright (C) 2015 Jolla Ltd.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
|
[-]
[+]
|
Added |
_service:tar_git:gstreamer1.0-droid-0.20210518.1.tar.gz/tools/gstdroidcamparams.c
^
|
@@ -0,0 +1,108 @@
+/*
+ * gst-droid
+ *
+ * Copyright (C) 2014 Mohammed Sameer
+ * Copyright (C) 2015-2021 Jolla Ltd.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
+#include "common.h"
+#ifndef GST_USE_UNSTABLE_API
+#define GST_USE_UNSTABLE_API
+#endif
+#include <stdlib.h>
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <fcntl.h>
+#include <string.h> /* strlen() */
+#include <unistd.h> /* write() */
+#include <stdio.h> /* perror() */
+
+void
+print_parameter (gpointer key, gpointer user_data)
+{
+ g_print ("%s: %s\n", (gchar *)key, (gchar *)g_hash_table_lookup((GHashTable *)user_data, key));
+}
+
+static gboolean
+print_parameters (Common * c, int dev)
+{
+ GList *keys;
+ GHashTable *params;
+
+ g_object_get (c->cam_src, "device-parameters", ¶ms, NULL);
+ if (!params) {
+ g_print ("Failed to get device parameters\n");
+ return FALSE;
+ }
+
+ keys = g_hash_table_get_keys (params);
+ keys = g_list_sort (keys, (GCompareFunc)g_ascii_strcasecmp);
+
+ g_list_foreach (keys, print_parameter, params);
+
+ return TRUE;
+}
+
+int dev = 0;
+
+static void
+pipeline_started (Common * c)
+{
+ int ret = 0;
+
+ if (!print_parameters (c, dev)) {
+ ret = 1;
+ }
+
+ common_quit (c, ret);
+}
+
+int
+main (int argc, char *argv[])
+{
+ if (argc != 2) {
+ g_print ("usage: %s <camera device>\n"
+ " Examples:\n"
+ " For primary camera\n"
+ " %s 0\n"
+ " For secondary camera\n"
+ " %s 1\n",
+ argv[0], argv[0], argv[0]);
+ return 0;
+ }
+
+ dev = atoi (argv[1]);
+
+ Common *common = common_init (&argc, &argv, "camerabin");
+ if (!common) {
+ return 1;
+ }
+
+ common_set_device_mode (common, dev, IMAGE);
+
+ common->started = pipeline_started;
+
+ if (!common_run (common)) {
+ return 1;
+ }
+
+ return common_destroy (common, TRUE);
+}
|
[-]
[+]
|
Added |
_service:tar_git:gstreamer1.0-droid-0.20210518.1.tar.gz/tools/meson.build
^
|
@@ -0,0 +1,17 @@
+tool_deps = [ gst_dep, gstpbutils_dep ]
+
+executable('dump-resolutions',
+ ['common.c', 'resolutions.c'],
+ install: true,
+ c_args : gstdroid_args,
+ include_directories : [configinc, libsinc, droidmedia_h],
+ dependencies : tool_deps,
+)
+
+executable('dump-camera-parameters',
+ ['common.c', 'gstdroidcamparams.c'],
+ install: true,
+ c_args : gstdroid_args,
+ include_directories : [configinc, libsinc, droidmedia_h],
+ dependencies : tool_deps,
+)
|
[-]
[+]
|
Changed |
_service:tar_git:gstreamer1.0-droid-0.20210518.1.tar.gz/tools/resolutions.c
^
|
@@ -1,7 +1,7 @@
/*
* gst-droid
*
- * Copyright (C) 2016 Jolla LTD.
+ * Copyright (C) 2016-2021 Jolla Ltd.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -22,18 +22,26 @@
#include <math.h>
#include <float.h>
+int dev = 0;
+
struct Ratio
{
gfloat value;
const char *name;
} Ratios[] = {
{
+ 0.75, "3:4"}, {
+ 1.0, "1:1"}, {
+ 1.2222222222f, "11:9"}, {
1.3333333333f, "4:3"}, {
1.7777777778f, "16:9"}, {
1.5, "3:2"}, {
- 1.6666666667f, "16:10"},
- /* What are those? */
- /* {1.8, "9:5"}, */
+ 1.6666666667f, "16:10"}, {
+ 1.8, "9:5"}, {
+ 2.3333333333f, "21:9"}, {
+ 2.6666666667f, "16:6"}, {
+ 3.2, "16:5"}, {
+ 3.5555555556f, "32:9"},
};
void
@@ -94,17 +102,6 @@
return TRUE;
-
- /*
- gint w = 0, h = 0;
- if (!gst_structure_get_int(s, "width", &w) ||
- !gst_structure_get_int(s, "height", &h)) {
- ret = FALSE;
- goto out;
- }
-
- g_print("%ix%i\n", w, h);
- */
}
gboolean
@@ -122,7 +119,7 @@
goto out;
}
- g_print (name, pad_name);
+ g_print (name, dev, pad_name);
int x;
for (x = 0; x < gst_caps_get_size (caps); x++) {
@@ -171,8 +168,19 @@
int
main (int argc, char *argv[])
{
- if (!dump (PRIMARY, "primary %s:\n", FALSE) ||
- !dump (SECONDARY, "secondary %s:\n", TRUE)) {
+ if (argc != 2) {
+ g_print ("usage: %s <camera device>\n"
+ " Examples:\n"
+ " For primary camera\n"
+ " %s 0\n"
+ " For secondary camera\n"
+ " %s 1\n",
+ argv[0], argv[0], argv[0]);
+ return 0;
+ }
+
+ dev = atoi (argv[1]);
+ if (!dump (dev, "camera %d %s:\n", FALSE)) {
return 1;
}
|