2004-02-04 18:02:55 +00:00
|
|
|
### assemble a list of programs we want to build and install
|
2001-08-21 20:16:48 +00:00
|
|
|
|
2001-10-17 10:21:27 +00:00
|
|
|
if GST_DISABLE_LOADSAVE
|
|
|
|
GST_LOADSAVE_SRC =
|
2004-02-04 18:02:55 +00:00
|
|
|
GST_LOADSAVE_SRC_V =
|
2001-10-17 10:21:27 +00:00
|
|
|
else
|
2005-11-29 17:32:36 +00:00
|
|
|
GST_LOADSAVE_SRC = gst-xmllaunch
|
2004-02-04 18:02:55 +00:00
|
|
|
GST_LOADSAVE_SRC_V = \
|
|
|
|
gst-xmllaunch-@GST_MAJORMINOR@
|
2001-10-17 10:21:27 +00:00
|
|
|
endif
|
|
|
|
|
2005-11-30 19:01:53 +00:00
|
|
|
if GST_DISABLE_PARSE
|
|
|
|
GST_PARSE_SRC =
|
|
|
|
GST_PARSE_SRC_V =
|
|
|
|
else
|
2006-03-21 14:41:58 +00:00
|
|
|
GST_PARSE_SRC = gst-launch
|
|
|
|
GST_PARSE_SRC_V = gst-launch-@GST_MAJORMINOR@
|
2005-11-30 19:01:53 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
|
2004-02-04 18:02:55 +00:00
|
|
|
GST_OTHER_SRC = \
|
2004-02-11 12:48:09 +00:00
|
|
|
gst-feedback \
|
2004-02-04 18:02:55 +00:00
|
|
|
gst-inspect \
|
|
|
|
gst-typefind \
|
|
|
|
gst-xmlinspect
|
|
|
|
GST_OTHER_SRC_V = \
|
|
|
|
gst-inspect-@GST_MAJORMINOR@ \
|
|
|
|
gst-typefind-@GST_MAJORMINOR@ \
|
|
|
|
gst-xmlinspect-@GST_MAJORMINOR@
|
|
|
|
|
|
|
|
### so all of the programs we want to build
|
|
|
|
bin_PROGRAMS = \
|
|
|
|
$(GST_LOADSAVE_SRC) $(GST_LOADSAVE_SRC_V) \
|
2005-11-30 19:01:53 +00:00
|
|
|
$(GST_PARSE_SRC) $(GST_PARSE_SRC_V) \
|
2004-02-04 18:02:55 +00:00
|
|
|
$(GST_OTHER_SRC) $(GST_OTHER_SRC_V)
|
2004-02-11 12:48:09 +00:00
|
|
|
bin_SCRIPTS = gst-feedback-@GST_MAJORMINOR@
|
2004-02-04 18:02:55 +00:00
|
|
|
|
2004-03-02 10:38:40 +00:00
|
|
|
# make sure each versioned tool has the right source file and flags
|
2004-02-04 18:02:55 +00:00
|
|
|
if !GST_DISABLE_LOADSAVE
|
2006-05-05 17:07:42 +00:00
|
|
|
gst_xmllaunch_@GST_MAJORMINOR@_SOURCES = gst-launch.c tools.h
|
2004-05-04 12:38:36 +00:00
|
|
|
gst_xmllaunch_@GST_MAJORMINOR@_CFLAGS = $(GST_OBJ_CFLAGS)
|
|
|
|
gst_xmllaunch_@GST_MAJORMINOR@_LDFLAGS = $(GST_OBJ_LIBS)
|
2004-02-04 18:02:55 +00:00
|
|
|
endif
|
2005-11-30 19:01:53 +00:00
|
|
|
|
|
|
|
if !GST_DISABLE_PARSE
|
2006-05-05 17:07:42 +00:00
|
|
|
gst_launch_@GST_MAJORMINOR@_SOURCES = gst-launch.c tools.h
|
2004-05-04 12:38:36 +00:00
|
|
|
gst_launch_@GST_MAJORMINOR@_CFLAGS = $(GST_OBJ_CFLAGS)
|
|
|
|
gst_launch_@GST_MAJORMINOR@_LDFLAGS = $(GST_OBJ_LIBS)
|
2005-11-30 19:01:53 +00:00
|
|
|
endif
|
|
|
|
|
2006-05-05 17:07:42 +00:00
|
|
|
gst_inspect_@GST_MAJORMINOR@_SOURCES = gst-inspect.c tools.h
|
2005-11-30 19:01:53 +00:00
|
|
|
gst_inspect_@GST_MAJORMINOR@_CFLAGS = $(GST_OBJ_CFLAGS)
|
|
|
|
gst_inspect_@GST_MAJORMINOR@_LDFLAGS = $(GST_OBJ_LIBS)
|
2006-05-05 17:07:42 +00:00
|
|
|
gst_typefind_@GST_MAJORMINOR@_SOURCES = gst-typefind.c tools.h
|
2004-05-04 12:38:36 +00:00
|
|
|
gst_typefind_@GST_MAJORMINOR@_CFLAGS = $(GST_OBJ_CFLAGS)
|
|
|
|
gst_typefind_@GST_MAJORMINOR@_LDFLAGS = $(GST_OBJ_LIBS)
|
2006-05-05 17:07:42 +00:00
|
|
|
gst_xmlinspect_@GST_MAJORMINOR@_SOURCES = gst-xmlinspect.c tools.h
|
2004-05-04 12:38:36 +00:00
|
|
|
gst_xmlinspect_@GST_MAJORMINOR@_CFLAGS = $(GST_OBJ_CFLAGS)
|
|
|
|
gst_xmlinspect_@GST_MAJORMINOR@_LDFLAGS = $(GST_OBJ_LIBS)
|
2004-02-04 18:02:55 +00:00
|
|
|
|
2004-03-09 17:50:43 +00:00
|
|
|
gst-feedback-@GST_MAJORMINOR@: gst-feedback-m.m
|
2010-02-26 15:03:47 +00:00
|
|
|
$(AM_V_GEN)cp $(srcdir)/gst-feedback-m.m $@ && \
|
2004-03-09 17:50:43 +00:00
|
|
|
chmod +x $@
|
|
|
|
|
2004-02-04 18:02:55 +00:00
|
|
|
# make sure each unversioned tool comes from gst-run.c
|
|
|
|
if !GST_DISABLE_LOADSAVE
|
|
|
|
gst_xmllaunch_SOURCES = gst-run.c
|
|
|
|
endif
|
2005-11-30 19:01:53 +00:00
|
|
|
|
|
|
|
if !GST_DISABLE_PARSE
|
2004-02-04 18:02:55 +00:00
|
|
|
gst_launch_SOURCES = gst-run.c
|
2005-11-30 19:01:53 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
gst_feedback_SOURCES = gst-run.c
|
|
|
|
gst_inspect_SOURCES = gst-run.c
|
2004-02-04 18:02:55 +00:00
|
|
|
gst_typefind_SOURCES = gst-run.c
|
|
|
|
gst_xmlinspect_SOURCES = gst-run.c
|
|
|
|
|
2004-03-02 10:38:40 +00:00
|
|
|
# CFLAGS and libs for nonversioned frontend binaries
|
Merged in popt removal + GOption addition patch from Ronald, bug #169772.
Original commit message from CVS:
2005-10-10 Andy Wingo <wingo@pobox.com>
Merged in popt removal + GOption addition patch from Ronald, bug
#169772.
* docs/gst/gstreamer-sections.txt: Add STATE_(UN)LOCK_FULL, move
GstElement macros around, remove popt-related symbols, add goption
stuff.
* configure.ac: Remove popt checks, require GLib 2.6 for GOption.
* docs/gst/Makefile.am:
* docs/libs/Makefile.am: No POPT_CFLAGS.
* examples/manual/Makefile.am:
* docs/manual/basics-init.xml: Doc updates with an example.
* gst/gst.c: (gst_init_get_option_group), (gst_init_check),
(gst_init), (parse_one_option), (parse_goption_arg):
* gst/gst.h: Removed gst_init_with_popt_table and friends. Took a
bit of hand merging and debugging to get the GOption stuff working
tho.
* tests/Makefile.am:
* tools/Makefile.am:
* tools/gst-inspect.c: (main):
* tools/gst-launch.c: (main):
* tools/gst-run.c: (main):
* tools/gst-xmlinspect.c: (main): Thanks Ronald!
2005-10-10 15:53:59 +00:00
|
|
|
AM_CFLAGS = $(GLIB_ONLY_CFLAGS)
|
|
|
|
LDADD = $(GLIB_ONLY_LIBS)
|
2004-04-13 13:07:00 +00:00
|
|
|
# due to depcomp not using AM_CFLAGS for rh9/yd3, we also set AM_CPPFLAGS
|
Merged in popt removal + GOption addition patch from Ronald, bug #169772.
Original commit message from CVS:
2005-10-10 Andy Wingo <wingo@pobox.com>
Merged in popt removal + GOption addition patch from Ronald, bug
#169772.
* docs/gst/gstreamer-sections.txt: Add STATE_(UN)LOCK_FULL, move
GstElement macros around, remove popt-related symbols, add goption
stuff.
* configure.ac: Remove popt checks, require GLib 2.6 for GOption.
* docs/gst/Makefile.am:
* docs/libs/Makefile.am: No POPT_CFLAGS.
* examples/manual/Makefile.am:
* docs/manual/basics-init.xml: Doc updates with an example.
* gst/gst.c: (gst_init_get_option_group), (gst_init_check),
(gst_init), (parse_one_option), (parse_goption_arg):
* gst/gst.h: Removed gst_init_with_popt_table and friends. Took a
bit of hand merging and debugging to get the GOption stuff working
tho.
* tests/Makefile.am:
* tools/Makefile.am:
* tools/gst-inspect.c: (main):
* tools/gst-launch.c: (main):
* tools/gst-run.c: (main):
* tools/gst-xmlinspect.c: (main): Thanks Ronald!
2005-10-10 15:53:59 +00:00
|
|
|
AM_CPPFLAGS = $(GLIB_ONLY_CFLAGS)
|
2004-03-02 10:38:40 +00:00
|
|
|
|
2004-02-04 18:27:39 +00:00
|
|
|
### man pages we want to install
|
|
|
|
if GST_DISABLE_LOADSAVE
|
2004-02-12 12:13:51 +00:00
|
|
|
GST_LOADSAVE_MAN=
|
|
|
|
else
|
2004-02-04 18:27:39 +00:00
|
|
|
GST_LOADSAVE_MAN = \
|
|
|
|
gst-xmllaunch-@GST_MAJORMINOR@.1
|
|
|
|
endif
|
|
|
|
|
2005-11-30 19:01:53 +00:00
|
|
|
if GST_DISABLE_PARSE
|
|
|
|
GST_PARSE_MAN=
|
|
|
|
else
|
|
|
|
GST_PARSE_MAN = \
|
2006-03-21 14:41:58 +00:00
|
|
|
gst-launch-@GST_MAJORMINOR@.1
|
2005-11-30 19:01:53 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
|
2004-02-04 18:27:39 +00:00
|
|
|
GST_OTHER_MAN = \
|
2004-02-11 12:48:09 +00:00
|
|
|
gst-feedback-@GST_MAJORMINOR@.1 \
|
2004-02-04 18:27:39 +00:00
|
|
|
gst-inspect-@GST_MAJORMINOR@.1 \
|
2004-07-04 23:36:29 +00:00
|
|
|
gst-typefind-@GST_MAJORMINOR@.1 \
|
|
|
|
gst-xmlinspect-@GST_MAJORMINOR@.1
|
2004-02-04 18:27:39 +00:00
|
|
|
|
2005-11-30 19:01:53 +00:00
|
|
|
manpages = $(GST_LOADSAVE_MAN) $(GST_PARSE_MAN) $(GST_OTHER_MAN)
|
2004-02-04 18:27:39 +00:00
|
|
|
|
2006-07-02 21:54:43 +00:00
|
|
|
CLEANFILES = $(manpages) $(bin_SCRIPTS) *.gcno *.gcda
|
2004-02-04 18:27:39 +00:00
|
|
|
man_MANS = $(manpages)
|
|
|
|
|
2004-03-15 18:20:03 +00:00
|
|
|
# developer helper tools, not meant for installation
|
|
|
|
noinst_SCRIPTS = gst-indent
|
|
|
|
|
2006-05-05 17:07:42 +00:00
|
|
|
noinst_HEADERS = tools.h
|
|
|
|
|
2004-02-04 18:27:39 +00:00
|
|
|
EXTRA_DIST = \
|
2004-03-15 18:20:03 +00:00
|
|
|
$(noinst_SCRIPTS) \
|
2004-02-04 18:27:39 +00:00
|
|
|
gst-feedback.1.in \
|
|
|
|
gst-inspect.1.in \
|
|
|
|
gst-launch.1.in \
|
2004-02-04 19:09:08 +00:00
|
|
|
gst-typefind.1.in \
|
2004-07-04 23:36:29 +00:00
|
|
|
gst-xmlinspect.1.in \
|
2004-02-04 18:27:39 +00:00
|
|
|
gst-xmllaunch.1.in \
|
2006-08-23 18:53:44 +00:00
|
|
|
gst-feedback-m.m \
|
|
|
|
gst-plot-timeline.py
|
2000-08-28 20:20:55 +00:00
|
|
|
|
2004-02-04 18:27:39 +00:00
|
|
|
%-@GST_MAJORMINOR@.1: %.1.in
|
2010-02-26 15:03:47 +00:00
|
|
|
$(AM_V_GEN)sed \
|
2004-02-04 18:27:39 +00:00
|
|
|
-e s,gst-feedback,gst-feedback-@GST_MAJORMINOR@,g \
|
|
|
|
-e s,gst-inspect,gst-inspect-@GST_MAJORMINOR@,g \
|
|
|
|
-e s,gst-launch,gst-launch-@GST_MAJORMINOR@,g \
|
2004-02-11 12:48:09 +00:00
|
|
|
-e s,gst-typefind,gst-typefind-@GST_MAJORMINOR@,g \
|
2004-07-04 23:36:29 +00:00
|
|
|
-e s,gst-xmlinspect,gst-xmlinspect-@GST_MAJORMINOR@,g \
|
2004-02-04 18:27:39 +00:00
|
|
|
-e s,gst-xmllaunch,gst-xmllaunch-@GST_MAJORMINOR@,g \
|
2006-03-21 15:04:20 +00:00
|
|
|
-e s,GST_MAJORMINOR,@GST_MAJORMINOR@,g \
|
2003-08-15 20:25:40 +00:00
|
|
|
$< >$@
|
2004-03-13 15:17:30 +00:00
|
|
|
|