Add meson build system for playback/player/{gst-play,gtk} and network/http-launch

This commit is contained in:
Sebastian Dröge 2016-08-26 19:02:24 +03:00
parent e9c4fd17a7
commit fc41dd802f
11 changed files with 43 additions and 81 deletions

View file

@ -1 +1,3 @@
project('gst-examples', 'c', license : 'LGPL')
subdir('playback')
subdir('network')

View file

@ -0,0 +1,3 @@
gst_dep = dependency('gstreamer-1.0')
gio_dep = dependency('gio-2.0')
executable('http-launch', 'http-launch.c', dependencies : [gst_dep, gio_dep])

1
network/meson.build Normal file
View file

@ -0,0 +1 @@
subdir('http-launch')

1
playback/meson.build Normal file
View file

@ -0,0 +1 @@
subdir('player')

View file

@ -1,15 +0,0 @@
EXTRA_DIST = \
build.gradle \
gradle.properties \
settings.gradle \
app/build.gradle \
app/proguard-rules.pro \
app/src/main/AndroidManifest.xml \
app/src/main/java/org/freedesktop/gstreamer/Player.java \
app/src/main/java/org/freedesktop/gstreamer/player/GStreamerSurfaceView.java \
app/src/main/java/org/freedesktop/gstreamer/player/Play.java \
app/src/main/jni/Android.mk \
app/src/main/jni/Application.mk \
app/src/main/jni/player.c \
app/src/main/res/layout/main.xml \
app/src/main/res/values/strings.xml

View file

@ -1,9 +0,0 @@
bin_PROGRAMS = gst-play
gst_play_SOURCES = gst-play.c gst-play-kb.c gst-play-kb.h
LDADD = $(GSTREAMER_LIBS) $(GLIB_LIBS) $(LIBM)
AM_CFLAGS = $(GSTREAMER_CFLAGS) $(GLIB_CFLAGS) $(WARNING_CFLAGS)
noinst_HEADERS = gst-play-kb.h

View file

@ -0,0 +1,12 @@
gst_dep = dependency('gstreamer-1.0')
gstplayer_dep = dependency('gstreamer-player-1.0', version: '>= 1.7.1.1')
cc = meson.get_compiler('c')
m_dep = cc.find_library('m', required : true)
executable('gst-play',
['gst-play.c',
'gst-play-kb.c',
'gst-play-kb.h'],
dependencies : [gst_dep, gstplayer_dep, m_dep])

View file

@ -1,35 +0,0 @@
bin_PROGRAMS = gtk-play
gtk-play-resources.c: resources/gresources.xml \
resources/media_info_dialog.ui \
resources/toolbar.css \
resources/toolbar.ui
$(AM_V_GEN) \
glib-compile-resources \
--sourcedir=$(srcdir)/resources \
--target=$@ \
--generate-source \
--c-name as \
$(srcdir)/resources/gresources.xml
gtk-play-resources.h: resources/gresources.xml \
resources/media_info_dialog.ui \
resources/toolbar.css \
resources/toolbar.ui
$(AM_V_GEN) \
glib-compile-resources \
--sourcedir=$(srcdir)/resources \
--target=$@ \
--generate-header \
--c-name as \
$(srcdir)/resources/gresources.xml
BUILT_SOURCES: gtk-play-resources.c gtk-play-resources.h
gtk_play_SOURCES = gtk-play.c gtk-play-resources.c gtk-video-renderer.c
LDADD = $(GSTREAMER_LIBS) $(GTK_LIBS) $(GTK_X11_LIBS) $(GLIB_LIBS) $(LIBM) $(GMODULE_LIBS)
AM_CFLAGS = $(GSTREAMER_CFLAGS) $(GTK_CFLAGS) $(GTK_X11_CFLAGS) $(GLIB_CFLAGS) $(GMODULE_CFLAGS) $(WARNING_CFLAGS)
noinst_HEADERS = gtk-play-resources.h gtk-video-renderer.h

View file

@ -0,0 +1,22 @@
glib_dep = dependency('glib-2.0', version: '>= 2.38')
gobject_dep = dependency('gobject-2.0', version: '>= 2.38')
gmodule_dep = dependency('gmodule-2.0')
gst_dep = dependency('gstreamer-1.0')
gsttag_dep = dependency('gstreamer-tag-1.0')
gstplayer_dep = dependency('gstreamer-player-1.0', version: '>= 1.7.1.1')
gtk_dep = dependency('gtk+-3.0')
x11_dep = dependency('x11', required: false)
gnome = import('gnome')
gtk_play_resources = gnome.compile_resources('gtk-play-resources', 'resources/gresources.xml',
source_dir : './resources',
c_name : 'gtk_play')
executable('gtk-play',
sources: ['gtk-play.c',
gtk_play_resources,
'gtk-video-renderer.h',
'gtk-video-renderer.c'],
dependencies : [glib_dep, gobject_dep, gmodule_dep, gst_dep, gsttag_dep, gstplayer_dep, gtk_dep, x11_dep])

View file

@ -1,22 +0,0 @@
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

View file

@ -0,0 +1,2 @@
subdir('gst-play')
subdir('gtk')