Split in library and example program
authorWim Taymans <wim.taymans@collabora.co.uk>
Thu, 8 Jan 2009 12:18:55 +0000 (13:18 +0100)
committerWim Taymans <wim@wtay.(none)>
Thu, 8 Jan 2009 12:18:55 +0000 (13:18 +0100)
18 files changed:
Makefile.am
autogen.sh
configure.ac
examples/Makefile.am [new file with mode: 0644]
examples/main.c [moved from src/main.c with 96% similarity]
gst/Makefile.am [new file with mode: 0644]
gst/rtsp-server/Makefile.am [new file with mode: 0644]
gst/rtsp-server/rtsp-client.c [moved from src/rtsp-client.c with 100% similarity]
gst/rtsp-server/rtsp-client.h [moved from src/rtsp-client.h with 100% similarity]
gst/rtsp-server/rtsp-media.c [moved from src/rtsp-media.c with 100% similarity]
gst/rtsp-server/rtsp-media.h [moved from src/rtsp-media.h with 100% similarity]
gst/rtsp-server/rtsp-server.c [moved from src/rtsp-server.c with 100% similarity]
gst/rtsp-server/rtsp-server.h [moved from src/rtsp-server.h with 100% similarity]
gst/rtsp-server/rtsp-session-pool.c [moved from src/rtsp-session-pool.c with 100% similarity]
gst/rtsp-server/rtsp-session-pool.h [moved from src/rtsp-session-pool.h with 100% similarity]
gst/rtsp-server/rtsp-session.c [moved from src/rtsp-session.c with 100% similarity]
gst/rtsp-server/rtsp-session.h [moved from src/rtsp-session.h with 100% similarity]
src/Makefile.am [deleted file]

index 289f162..0e57eb3 100644 (file)
@@ -1,9 +1,10 @@
 DISTCHECK_CONFIGURE_FLAGS=--enable-gtk-doc
 
 SUBDIRS =              \
-       src             \
+       gst \
        m4              \
-       common
+       common \
+       examples
 
 DIST_SUBDIRS = $(SUBDIRS)
 
index 0a8c579..737032a 100755 (executable)
@@ -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;
index 63a2231..8d281d3 100644 (file)
@@ -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
 
diff --git a/examples/Makefile.am b/examples/Makefile.am
new file mode 100644 (file)
index 0000000..f5b20c4
--- /dev/null
@@ -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
+
similarity index 96%
rename from src/main.c
rename to examples/main.c
index 70b1fdc..41a1cb9 100644 (file)
@@ -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[])
diff --git a/gst/Makefile.am b/gst/Makefile.am
new file mode 100644 (file)
index 0000000..e37bbc6
--- /dev/null
@@ -0,0 +1 @@
+SUBDIRS = rtsp-server
diff --git a/gst/rtsp-server/Makefile.am b/gst/rtsp-server/Makefile.am
new file mode 100644 (file)
index 0000000..752b55b
--- /dev/null
@@ -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)
diff --git a/src/Makefile.am b/src/Makefile.am
deleted file mode 100644 (file)
index 82674fa..0000000
+++ /dev/null
@@ -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