mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-16 05:16:36 +00:00
Split in library and example program
This commit is contained in:
parent
c91ec684e9
commit
7889395787
18 changed files with 49 additions and 26 deletions
|
@ -1,9 +1,10 @@
|
|||
DISTCHECK_CONFIGURE_FLAGS=--enable-gtk-doc
|
||||
|
||||
SUBDIRS = \
|
||||
src \
|
||||
gst \
|
||||
m4 \
|
||||
common
|
||||
common \
|
||||
examples
|
||||
|
||||
DIST_SUBDIRS = $(SUBDIRS)
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
DIE=0
|
||||
package=gst-rtsp
|
||||
srcfile=src/rtsp-server.c
|
||||
srcfile=gst/rtsp-server/rtsp-server.c
|
||||
|
||||
# a quick cvs co to ease the transition
|
||||
if test ! -d common;
|
||||
|
|
|
@ -17,7 +17,7 @@ dnl check if this is a release version
|
|||
AS_NANO(GST_CVS="no", GST_CVS="yes")
|
||||
|
||||
dnl can autoconf find the source ?
|
||||
AC_CONFIG_SRCDIR([src/rtsp-server.c])
|
||||
AC_CONFIG_SRCDIR([gst/rtsp-server/rtsp-server.c])
|
||||
|
||||
dnl define the output header for config
|
||||
AM_CONFIG_HEADER([config.h])
|
||||
|
@ -215,7 +215,9 @@ gst-rtsp.spec
|
|||
common/Makefile
|
||||
common/m4/Makefile
|
||||
m4/Makefile
|
||||
src/Makefile
|
||||
gst/Makefile
|
||||
gst/rtsp-server/Makefile
|
||||
examples/Makefile
|
||||
])
|
||||
AC_OUTPUT
|
||||
|
||||
|
|
11
examples/Makefile.am
Normal file
11
examples/Makefile.am
Normal file
|
@ -0,0 +1,11 @@
|
|||
|
||||
noinst_PROGRAMS = gst-rtsp-server
|
||||
|
||||
gst_rtsp_server_SOURCES = \
|
||||
main.c
|
||||
|
||||
gst_rtsp_server_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_CFLAGS)
|
||||
gst_rtsp_server_LDFLAGS = \
|
||||
$(GST_LIBS) \
|
||||
$(top_builddir)/gst/rtsp-server/libgstrtspserver.la
|
||||
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
#include <gst/gst.h>
|
||||
|
||||
#include "rtsp-server.h"
|
||||
#include <gst/rtsp-server/rtsp-server.h>
|
||||
|
||||
int
|
||||
main (int argc, char *argv[])
|
1
gst/Makefile.am
Normal file
1
gst/Makefile.am
Normal file
|
@ -0,0 +1 @@
|
|||
SUBDIRS = rtsp-server
|
28
gst/rtsp-server/Makefile.am
Normal file
28
gst/rtsp-server/Makefile.am
Normal file
|
@ -0,0 +1,28 @@
|
|||
public_headers = \
|
||||
rtsp-server.h \
|
||||
rtsp-client.h \
|
||||
rtsp-media.h
|
||||
|
||||
c_sources = \
|
||||
rtsp-server.c \
|
||||
rtsp-client.c \
|
||||
rtsp-media.c \
|
||||
rtsp-session-pool.c \
|
||||
rtsp-session.c
|
||||
|
||||
lib_LTLIBRARIES = \
|
||||
libgstrtspserver.la
|
||||
|
||||
libgstrtspserver_la_SOURCES = \
|
||||
$(c_sources)
|
||||
|
||||
libgstrtspserver_la_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_CFLAGS)
|
||||
libgstrtspserver_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
|
||||
libgstrtspserver_la_LIBADD = \
|
||||
$(GST_PLUGINS_BASE_LIBS) $(GST_BASE_LIBS) \
|
||||
-lgstrtp-@GST_MAJORMINOR@ -lgstrtsp-@GST_MAJORMINOR@ \
|
||||
-lgstsdp-@GST_MAJORMINOR@ $(GST_LIBS) $(LIBM)
|
||||
libgstrtspserver_la_LIBTOOLFLAGS = --tag=disable-static
|
||||
|
||||
libgstrtspserver_includedir = $(includedir)/gstreamer-@GST_MAJORMINOR@/gst/rtsp-server
|
||||
libgstrtspserver_include_HEADERS = $(public_headers)
|
|
@ -1,20 +0,0 @@
|
|||
bin_PROGRAMS = gst-rtsp-server
|
||||
|
||||
gst_rtsp_server_SOURCES = main.c \
|
||||
rtsp-server.c \
|
||||
rtsp-client.c \
|
||||
rtsp-media.c \
|
||||
rtsp-session-pool.c \
|
||||
rtsp-session.c
|
||||
|
||||
gst_rtsp_server_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_CFLAGS)
|
||||
gst_rtsp_server_LDADD = $(GST_PLUGINS_BASE_LIBS) $(GST_BASE_LIBS) \
|
||||
-lgstrtp-@GST_MAJORMINOR@ -lgstrtsp-@GST_MAJORMINOR@ \
|
||||
-lgstsdp-@GST_MAJORMINOR@ $(GST_LIBS) $(LIBM)
|
||||
gst_rtsp_server_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
|
||||
|
||||
noinst_HEADERS = rtsp-server.h \
|
||||
rtsp-client.h \
|
||||
rtsp-session.h \
|
||||
rtsp-session-pool.h \
|
||||
rtsp-media.h
|
Loading…
Reference in a new issue