aclocal_DATA = gst-element-check-@GST_MAJORMINOR@.m4
SUBDIRS = \
- include gst libs tools \
+ gst libs tools \
$(SUBDIRS_CHECK) \
$(SUBDIRS_TESTS) \
$(SUBDIRS_EXAMPLES) \
# These are all the possible subdirs
DIST_SUBDIRS = \
- include libs gst \
- tools \
+ gst libs tools \
check \
tests testsuite \
examples \
docs \
- pkgconfig \
- po \
+ pkgconfig po \
common
win32 = $(shell cat $(top_srcdir)/win32/MANIFEST)
gstreamer.spec gstreamer.spec.in gst-element-check.m4 \
configure.ac autogen.sh depcomp \
REQUIREMENTS ABOUT-NLS DOCBUILDING DEVEL RELEASE \
- $(win32) \
- idiottest.mak
+ $(win32)
CLEANFILES = gst-element-check-@GST_MAJORMINOR@.m4
-include $(top_srcdir)/idiottest.mak
include $(top_srcdir)/common/release.mak
include $(top_srcdir)/common/po.mak
dnl subsystems - can influence other decisions so needs to be high up
dnl we need to do AM_CONDITIONAL them here for automake 1.6.x compatibility
GST_CHECK_SUBSYSTEM_DISABLE(GST_DEBUG,[debugging subsystem])
-AM_CONDITIONAL(GST_DISABLE_GST_DEBUG, test "x$GST_DISABLE_GST_DEBUG" = "xyes")
+AM_CONDITIONAL(GST_DISABLE_GST_DEBUG, test "x$GST_GST_DISABLE_DEBUG" = "xyes")
GST_CHECK_SUBSYSTEM_DISABLE(LOADSAVE,[pipeline XML load/save])
AM_CONDITIONAL(GST_DISABLE_LOADSAVE, test "x$GST_DISABLE_LOADSAVE" = "xyes")
GST_CHECK_SUBSYSTEM_DISABLE(PARSE,[command-line parser])
esac],
[USE_FAST_STACK_TRASH=yes]) dnl Default value
-AC_ARG_ENABLE(plugin-builddir,
-AC_HELP_STRING([--enable-plugin-builddir],[allow tests/demos to use non-installed plugins]),
-[case "${enableval}" in
- yes) PLUGINS_USE_BUILDDIR=yes ;;
- no) PLUGINS_USE_BUILDDIR=no ;;
- *) AC_MSG_ERROR(bad value ${enableval} for --enable-plugin-builddir) ;;
-esac],
-[PLUGINS_USE_BUILDDIR=no]) dnl Default value
-
AC_ARG_ENABLE(profiling,
AC_HELP_STRING([--enable-profiling],[adds -pg to compiler commandline, for profiling]),
[case "${enableval}" in
[USE_PROFILING=no]) dnl Default value
dnl use a cache dir for storing element registry info.
-dnl default to building registry in the source tree if we are enabling plugin build dir
-if test "x$PLUGINS_USE_BUILDDIR" = "xyes"; then
- GST_CACHE_DIR=`pwd`
-else
- dnl ${localstatedir} points to PREFIX/var
- GST_CACHE_DIR=${localstatedir}/cache/gstreamer-$GST_MAJORMINOR
-fi
+GST_CACHE_DIR=${localstatedir}/cache/gstreamer-$GST_MAJORMINOR
+
AC_ARG_WITH(cachedir,
AC_HELP_STRING([--with-cachedir],[specify path to use for plugin and command completion registries]),
[case "${withval}" in
[Defined if we have dladdr ()]))
CFLAGS="$save_cflags"
-if test "x$PLUGINS_USE_BUILDDIR" = xyes; then
- AC_DEFINE(PLUGINS_USE_BUILDDIR, 1, [Define if plugins should be loaded from the build tree - only developers should use this])
-fi
-
if test "x$USE_DEBUG" = xyes; then
GST_INT_CFLAGS="$GST_INT_CFLAGS -g"
fi
dnl HAVE_ and it is likely to be easier to stick with the old name
AM_CONDITIONAL(EXPERIMENTAL, test "x$EXPERIMENTAL" = "xyes")
AM_CONDITIONAL(BROKEN, test "x$BROKEN" = "xyes")
-AM_CONDITIONAL(PLUGINS_USE_BUILDDIR, test "x$PLUGINS_USE_BUILDDIR" = "xyes")
-
dnl ############################
dnl # Set up some more defines #
AC_SUBST(PLUGINS_DIR)
AC_MSG_NOTICE([Using $PLUGINS_DIR as the plugin install location])
-dnl Set location of uninstalled plugin directory
-PLUGINS_BUILDDIR=`pwd`
-AC_DEFINE_UNQUOTED(PLUGINS_BUILDDIR, "$PLUGINS_BUILDDIR", [Define the uninstalled plugin directory])
-AC_SUBST(PLUGINS_BUILDDIR)
-
dnl LDFLAGS modifier defining exported symbols from built objects
EXPORT_LDFLAGS="-export-symbols-regex [_]*\(gst_\|Gst\|GST_\).*"
infomessages=
-if test "x$PLUGINS_USE_BUILDDIR" = xyes; then
- infomessages="$infomessages
-*** Warning: You have configured using the --enable-plugin-builddir option.
-
-This option is for development purposes only: binaries built with
-it should be used with code in the build tree only. To build an
-installable version, use ./configure without the --enable-plugin-builddir
-option. Note that the autogen.sh script supplies the plugin builddir
-option automatically -- run ./autogen.sh -- --disable-plugin-builddir to make
-an installable build.
-
-"
-fi
-
dnl #########################
dnl # Make the output files #
dnl #########################
dnl nothing there yet !
AC_OUTPUT(
Makefile
-include/Makefile
gst/Makefile
gst/gstconfig.h
gst/gstversion.h
GST_DEBUG ("Reading registry cache");
gst_registry_xml_read_cache (default_registry, registry_file);
- plugin_path = g_getenv ("GST_PLUGIN_SYSTEM_PATH");
- if (plugin_path == NULL) {
- GST_DEBUG ("GST_PLUGIN_SYSTEM_PATH not set");
-#ifdef PLUGINS_USE_BUILDDIR
- /* location libgstelements.so */
- gst_registry_scan_path (default_registry,
- PLUGINS_BUILDDIR "/gst/elements/.libs");
- gst_registry_scan_path (default_registry,
- PLUGINS_BUILDDIR "/gst/indexers/.libs");
-#else
- char *home_plugins;
-
- /* add the main (installed) library path */
- gst_registry_scan_path (default_registry, PLUGINS_DIR);
-
- home_plugins = g_build_filename (g_get_home_dir (),
- ".gstreamer-0.9", "plugins", NULL);
- gst_registry_scan_path (default_registry, home_plugins);
- g_free (home_plugins);
-#endif /* PLUGINS_USE_BUILDDIR */
- } else {
+ /* GST_PLUGIN_PATH specifies a list of directories to scan for
+ * additional plugins. These take precedence over the system plugins */
+ plugin_path = g_getenv ("GST_PLUGIN_PATH");
+ if (plugin_path) {
char **list;
int i;
- GST_DEBUG ("GST_PLUGIN_SYSTEM_PATH set to %s", plugin_path);
+ GST_DEBUG ("GST_PLUGIN_PATH set to %s", plugin_path);
/* FIXME this doesn't split paths correctly on windows */
list = g_strsplit (plugin_path, ":", 0);
for (i = 0; list[i]; i++) {
gst_registry_scan_path (default_registry, list[i]);
}
g_strfreev (list);
+ } else {
+ GST_DEBUG ("GST_PLUGIN_PATH not set");
}
- plugin_path = g_getenv ("GST_PLUGIN_PATH");
- if (plugin_path) {
+ /* GST_PLUGIN_SYSTEM_PATH specifies a list of plugins that are always
+ * loaded by default. If not set, this defaults to the system-installed
+ * path, and the plugins installed in the user's home directory */
+ plugin_path = g_getenv ("GST_PLUGIN_SYSTEM_PATH");
+ if (plugin_path == NULL) {
+ char *home_plugins;
+
+ GST_DEBUG ("GST_PLUGIN_SYSTEM_PATH not set");
+
+ /* plugins in the user's home directory take precedence over
+ * system-installed ones */
+ home_plugins = g_build_filename (g_get_home_dir (),
+ ".gstreamer-0.9", "plugins", NULL);
+ gst_registry_scan_path (default_registry, home_plugins);
+ g_free (home_plugins);
+
+ /* add the main (installed) library path */
+ gst_registry_scan_path (default_registry, PLUGINS_DIR);
+ } else {
char **list;
int i;
- GST_DEBUG ("GST_PLUGIN_PATH set to %s", plugin_path);
+ GST_DEBUG ("GST_PLUGIN_SYSTEM_PATH set to %s", plugin_path);
/* FIXME this doesn't split paths correctly on windows */
list = g_strsplit (plugin_path, ":", 0);
for (i = 0; list[i]; i++) {
gst_registry_scan_path (default_registry, list[i]);
}
g_strfreev (list);
- } else {
- GST_DEBUG ("GST_PLUGIN_PATH not set");
}
gst_registry_xml_write_cache (default_registry, registry_file);
g_free (registry_file);
}
+
#endif /* GST_DISABLE_REGISTRY */
/* if we need to preload plugins */
+++ /dev/null
-Makefile
-Makefile.in
-*.o
-*.lo
-*.la
-.deps
-.libs
+++ /dev/null
-
-# This test needs to go here because this is the first makefile which the
-# install target gets run in.
-include $(top_srcdir)/idiottest.mak