From 090c7665629026ddb3429ed18c696c64216fb587 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Sun, 3 Aug 2014 12:35:39 +0200 Subject: [PATCH] playback/player: Add initial build system with docs and tests and magic --- playback/player/android/Makefile.am | 10 ++++++++++ playback/player/gst-play/Makefile | 21 --------------------- playback/player/gst-play/Makefile.am | 10 ++++++++++ playback/player/gtk/Makefile | 19 ------------------- playback/player/gtk/Makefile.am | 10 ++++++++++ playback/player/ios/Makefile.am | 22 ++++++++++++++++++++++ 6 files changed, 52 insertions(+), 40 deletions(-) create mode 100644 playback/player/android/Makefile.am delete mode 100644 playback/player/gst-play/Makefile create mode 100644 playback/player/gst-play/Makefile.am delete mode 100644 playback/player/gtk/Makefile create mode 100644 playback/player/gtk/Makefile.am create mode 100644 playback/player/ios/Makefile.am diff --git a/playback/player/android/Makefile.am b/playback/player/android/Makefile.am new file mode 100644 index 0000000000..2664abbab9 --- /dev/null +++ b/playback/player/android/Makefile.am @@ -0,0 +1,10 @@ +EXTRA_DIST = \ + AndroidManifest.xml \ + jni/Android.mk \ + jni/player.c \ + res/layout/main.xml \ + res/values/strings.xml \ + src/org/freedesktop/gstreamer/Player.java \ + src/org/freedesktop/gstreamer/player/GStreamerSurfaceView.java \ + src/org/freedesktop/gstreamer/player/Play.java + diff --git a/playback/player/gst-play/Makefile b/playback/player/gst-play/Makefile deleted file mode 100644 index ff88941a52..0000000000 --- a/playback/player/gst-play/Makefile +++ /dev/null @@ -1,21 +0,0 @@ -CFLAGS ?= -Wall -O2 -g -PKGCONFIG ?= pkg-config -LIBS := $(shell $(PKGCONFIG) --libs --cflags gstreamer-1.0 gstreamer-video-1.0) -lm - -all: gst-play - -clean: - rm -f gst-play - -SOURCES = \ - gst-play.c \ - gst-play-kb.c \ - ../lib/gst/player/gstplayer.c - -HEADERS = \ - gst-play-kb.h \ - ../lib/gst/player/gstplayer.h - -gst-play: $(SOURCES) $(HEADERS) - $(CC) -o $@ $(SOURCES) $(CFLAGS) $(LIBS) -I../lib - diff --git a/playback/player/gst-play/Makefile.am b/playback/player/gst-play/Makefile.am new file mode 100644 index 0000000000..534e0df83f --- /dev/null +++ b/playback/player/gst-play/Makefile.am @@ -0,0 +1,10 @@ +bin_PROGRAMS = gst-play + +gst_play_SOURCES = gst-play.c gst-play-kb.c gst-play-kb.h + +LDADD = $(top_builddir)/lib/gst/player/.libs/libgstplayer-@GST_PLAYER_API_VERSION@.la \ + $(GSTREAMER_LIBS) $(GLIB_LIBS) $(LIBM) + +AM_CFLAGS = -I$(top_srcdir)/lib -I$(top_builddir)/lib $(GSTREAMER_CFLAGS) $(GLIB_CFLAGS) $(WARNING_CFLAGS) + +noinst_HEADERS = gst-play-kb.h diff --git a/playback/player/gtk/Makefile b/playback/player/gtk/Makefile deleted file mode 100644 index a17c45ed30..0000000000 --- a/playback/player/gtk/Makefile +++ /dev/null @@ -1,19 +0,0 @@ -CFLAGS ?= -Wall -O2 -g -PKGCONFIG ?= pkg-config -LIBS := $(shell $(PKGCONFIG) --libs --cflags gstreamer-1.0 gstreamer-video-1.0 gtk+-3.0) -lm - -all: gtk-play - -clean: - rm -f gtk-play - -SOURCES = \ - gtk-play.c \ - ../lib/gst/player/gstplayer.c - -HEADERS = \ - ../lib/gst/player/gstplayer.h - -gtk-play: $(SOURCES) $(HEADERS) - $(CC) -o $@ $(SOURCES) $(CFLAGS) $(LIBS) -I../lib - diff --git a/playback/player/gtk/Makefile.am b/playback/player/gtk/Makefile.am new file mode 100644 index 0000000000..03068e6227 --- /dev/null +++ b/playback/player/gtk/Makefile.am @@ -0,0 +1,10 @@ +bin_PROGRAMS = gtk-play + +gtk_play_SOURCES = gtk-play.c + +LDADD = $(top_builddir)/lib/gst/player/.libs/libgstplayer-@GST_PLAYER_API_VERSION@.la \ + $(GSTREAMER_LIBS) $(GTK_LIBS) $(GLIB_LIBS) $(LIBM) + +AM_CFLAGS = -I$(top_srcdir)/lib -I$(top_builddir)/lib $(GSTREAMER_CFLAGS) $(GTK_CFLAGS) $(GLIB_CFLAGS) + +noinst_HEADERS = diff --git a/playback/player/ios/Makefile.am b/playback/player/ios/Makefile.am new file mode 100644 index 0000000000..c6da505121 --- /dev/null +++ b/playback/player/ios/Makefile.am @@ -0,0 +1,22 @@ +EXTRA_DIST = \ + GstPlay/AppDelegate.h \ + GstPlay/AppDelegate.m \ + GstPlay/EaglUIVIew.h \ + GstPlay/EaglUIVIew.m \ + GstPlay/en.lproj/InfoPlist.strings \ + GstPlay/fonts.conf \ + GstPlay/gst_ios_init.h \ + GstPlay/gst_ios_init.m \ + GstPlay/GstPlay-Info.plist \ + GstPlay/GstPlay-Prefix.pch \ + GstPlay/LibraryViewController.h \ + GstPlay/LibraryViewController.m \ + GstPlay/main.m \ + GstPlay/MainStoryboard_iPad.storyboard \ + GstPlay/MainStoryboard_iPhone.storyboard \ + GstPlay/Ubuntu-R.ttf \ + GstPlay/VideoViewController.h \ + GstPlay/VideoViewController.m \ + GstPlay.xcodeproj/project.xcworkspace/contents.xcworkspacedata \ + GstPlay.xcodeproj/project.pbxproj +