Meson: Use pkg-config generator

This commit is contained in:
Xavier Claessens 2018-04-07 20:52:12 -04:00
parent 5aa831223d
commit a28a75652e
48 changed files with 178 additions and 624 deletions

View file

@ -19,6 +19,14 @@ gstallocators = library('gstallocators-@0@'.format(api_version),
dependencies : [gst_dep],
)
pkgconfig.generate(gstallocators,
libraries : [gst_dep],
variables : pkgconfig_variables,
subdirs : pkgconfig_subdirs,
name : 'gstreamer-allocators-1.0',
description : 'Allocators implementation',
)
allocators_gen_sources = []
if build_gir
gst_gir_extra_args = gir_init_section + [ '--c-include=gst/allocators/allocators.h' ]
@ -41,3 +49,5 @@ allocators_dep = declare_dependency(link_with: gstallocators,
include_directories : [libsinc],
dependencies : [gst_dep],
sources : allocators_gen_sources)
meson.override_dependency('gstreamer-allocators-1.0', allocators_dep)

View file

@ -30,6 +30,14 @@ gstapp = library('gstapp-@0@'.format(api_version),
dependencies : [gst_base_dep],
)
pkgconfig.generate(gstapp,
libraries : [gst_dep, gst_base_dep],
variables : pkgconfig_variables,
subdirs : pkgconfig_subdirs,
name : 'gstreamer-app-1.0',
description : 'Helper functions and base classes for application integration',
)
if build_gir
gst_gir_extra_args = gir_init_section + [ '--c-include=gst/app/app.h' ]
app_gir = gnome.generate_gir(gstapp,
@ -52,3 +60,5 @@ app_dep = declare_dependency(link_with: gstapp,
include_directories : [libsinc],
dependencies : [gst_base_dep],
sources : app_gen_sources)
meson.override_dependency('gstreamer-app-1.0', app_dep)

View file

@ -152,6 +152,14 @@ gstaudio = library('gstaudio-@0@'.format(api_version),
dependencies : gstaudio_deps,
)
pkgconfig.generate(gstaudio,
libraries : [gst_dep, gst_base_dep],
variables : pkgconfig_variables,
subdirs : pkgconfig_subdirs,
name : 'gstreamer-audio-1.0',
description : 'Audio helper functions and base classes',
)
if build_gir
gst_gir_extra_args = gir_init_section + [ '--c-include=gst/audio/audio.h' ]
audio_gir = gnome.generate_gir(gstaudio,
@ -173,3 +181,5 @@ audio_dep = declare_dependency(link_with : gstaudio,
include_directories : [libsinc],
dependencies : gstaudio_deps,
sources : audio_gen_sources)
meson.override_dependency('gstreamer-audio-1.0', audio_dep)

View file

@ -36,6 +36,16 @@ gstfft = library('gstfft-@0@'.format(api_version),
dependencies : [gst_dep, libm],
)
pkgconfig.generate(gstfft,
libraries : [gst_dep],
variables : pkgconfig_variables,
subdirs : pkgconfig_subdirs,
name : 'gstreamer-fft-1.0',
description : 'FFT implementation',
)
fft_dep = declare_dependency(link_with: gstfft,
include_directories : [libsinc],
dependencies : [gst_dep])
meson.override_dependency('gstreamer-fft-1.0', fft_dep)

View file

@ -1004,6 +1004,26 @@ if build_gstgl
# don't confuse EGL/egl.h with gst-libs/gl/egl/egl.h on case-insensitive file systems
implicit_include_directories : false)
pkgconfig.generate(gstgl,
libraries : [gstvideo, gst_base_dep, gst_dep],
variables : pkgconfig_variables + [
'gl_platforms=' + ' '.join(enabled_gl_platforms),
'gl_winsys=' + ' '.join(enabled_gl_winsys),
'gl_apis=' + ' '.join(enabled_gl_apis),
],
subdirs : pkgconfig_subdirs,
extra_cflags : ['-I${libdir}/gstreamer-1.0/include'],
name : 'gstreamer-gl-1.0',
description : 'Streaming media framework, OpenGL plugins libraries',
)
pkgconfig.generate(gstgl,
libraries : [gstgl, gl_dep],
subdirs : pkgconfig_subdirs,
name : 'gstreamer-gl-prototypes-1.0',
description : 'Streaming media framework, OpenGL plugins libraries (OpenGL Prototypes)',
)
if build_gir
gl_gir = gnome.generate_gir(gstgl,
sources : gl_sources + [gl_enumtypes_h] + [gl_enumtypes_c] + gir_gl_headers,
@ -1025,9 +1045,18 @@ if build_gstgl
sources: gen_sources,
dependencies : [video_dep, gst_base_dep])
gstglproto_dep = declare_dependency(dependencies : [gstgl_dep] + gl_lib_deps)
meson.override_dependency('gstreamer-gl-1.0', gstgl_dep)
meson.override_dependency('gstreamer-gl-prototypes-1.0', gstglproto_dep)
if gl_x11_headers.length() > 0
install_headers(gl_x11_headers, subdir : 'gstreamer-1.0/gst/gl/x11')
pkgconfig.generate(
libraries : [gstgl],
requires: ['x11-xcb'],
subdirs : pkgconfig_subdirs,
name : 'gstreamer-gl-x11-1.0',
description : 'Streaming media framework, OpenGL plugins libraries (X11 specifics)',
)
gl_x11_gir = []
if build_gir
gl_x11_gir = gnome.generate_gir(gstgl,
@ -1045,10 +1074,18 @@ if build_gstgl
endif
gstglx11_dep = declare_dependency(dependencies : [gstgl_dep],
sources : gl_x11_gir)
meson.override_dependency('gstreamer-gl-x11-1.0', gstglx11_dep)
endif
if gl_wayland_headers.length() > 0
install_headers(gl_wayland_headers, subdir : 'gstreamer-1.0/gst/gl/wayland')
pkgconfig.generate(
libraries : [gstgl],
requires: ['wayland-egl', 'wayland-client'],
subdirs : pkgconfig_subdirs,
name : 'gstreamer-gl-wayland-1.0',
description : 'Streaming media framework, OpenGL plugins libraries (Wayland specifics)',
)
gl_wayland_gir = []
if build_gir
gl_wayland_gir = gnome.generate_gir(gstgl,
@ -1066,10 +1103,17 @@ if build_gstgl
endif
gstglwayland_dep = declare_dependency(dependencies : [gstgl_dep],
sources : gl_wayland_gir)
meson.override_dependency('gstreamer-gl-wayland-1.0', gstglwayland_dep)
endif
if gl_egl_headers.length() > 0
install_headers(gl_egl_headers, subdir : 'gstreamer-1.0/gst/gl/egl')
pkgconfig.generate(
libraries : [gstgl, egl_dep],
subdirs : pkgconfig_subdirs,
name : 'gstreamer-gl-egl-1.0',
description : 'Streaming media framework, OpenGL plugins libraries (EGL specifics)',
)
gl_egl_gir = []
if build_gir
gl_egl_gir = gnome.generate_gir(gstgl,
@ -1087,6 +1131,7 @@ if build_gstgl
endif
gstglegl_dep = declare_dependency(dependencies : [gstgl_dep],
sources : gl_egl_gir)
meson.override_dependency('gstreamer-gl-egl-1.0', gstglegl_dep)
endif
elif get_option('gl').enabled()

View file

@ -60,6 +60,14 @@ pbutils = library('gstpbutils-@0@'.format(api_version),
dependencies : gstpbutils_deps,
)
pkgconfig.generate(pbutils,
libraries : [gst_dep, video_dep, audio_dep, gst_base_dep],
variables : pkgconfig_variables,
subdirs : pkgconfig_subdirs,
name : 'gstreamer-pbutils-1.0',
description : 'General utility functions',
)
pbutils_gen_sources = [gstpbutils_h, gst_pbutils_version_h]
if build_gir
gst_gir_extra_args = gir_init_section + [ '--c-include=gst/pbutils/pbutils.h' ]

View file

@ -25,6 +25,14 @@ gstriff = library('gstriff-@0@'.format(api_version),
dependencies : riff_deps,
)
pkgconfig.generate(gstriff,
libraries : [gst_dep],
variables : pkgconfig_variables,
subdirs : pkgconfig_subdirs,
name : 'gstreamer-riff-1.0',
description : 'RIFF helper functions',
)
riff_gen_sources = []
# *** GIR DISABLED for this library ***
@ -50,3 +58,5 @@ riff_dep = declare_dependency(link_with: gstriff,
include_directories : [libsinc],
dependencies : riff_deps,
sources : riff_gen_sources )
meson.override_dependency('gstreamer-riff-1.0', riff_dep)

View file

@ -46,6 +46,14 @@ gst_rtp = library('gstrtp-@0@'.format(api_version),
dependencies : gstrtp_deps,
)
pkgconfig.generate(gst_rtp,
libraries : [gst_dep, gst_base_dep],
variables : pkgconfig_variables,
subdirs : pkgconfig_subdirs,
name : 'gstreamer-rtp-1.0',
description : 'RTP base classes and helper functions',
)
rtp_gen_sources = [gstrtp_enum_h]
if build_gir
gst_gir_extra_args = gir_init_section + [ '--c-include=gst/rtp/rtp.h' ]
@ -70,3 +78,5 @@ rtp_dep = declare_dependency(link_with : gst_rtp,
include_directories : [libsinc],
dependencies : gstrtp_deps,
sources : rtp_gen_sources)
meson.override_dependency('gstreamer-rtp-1.0', rtp_dep)

View file

@ -51,6 +51,14 @@ gst_rtsp = library('gstrtsp-@0@'.format(api_version),
dependencies : gstrtsp_deps,
)
pkgconfig.generate(gst_rtsp,
libraries : [gst_dep, sdp_dep, gio_dep],
variables : pkgconfig_variables,
subdirs : pkgconfig_subdirs,
name : 'gstreamer-rtsp-1.0',
description : 'RTSP base classes and helper functions',
)
rtsp_gen_sources = [gstrtsp_h]
if build_gir
gst_gir_extra_args = gir_init_section + [ '--c-include=gst/rtsp/rtsp.h' ]
@ -73,3 +81,5 @@ rtsp_dep = declare_dependency(link_with : gst_rtsp,
include_directories : [libsinc],
dependencies : gstrtsp_deps,
sources : rtsp_gen_sources)
meson.override_dependency('gstreamer-rtsp-1.0', rtsp_dep)

View file

@ -20,6 +20,14 @@ gstsdp = library('gstsdp-@0@'.format(api_version),
dependencies : rtsp_deps,
)
pkgconfig.generate(gstsdp,
libraries : [glib_deps],
variables : pkgconfig_variables,
subdirs : pkgconfig_subdirs,
name : 'gstreamer-sdp-1.0',
description : 'SDP helper functions',
)
sdp_gen_sources = []
if build_gir
gst_gir_extra_args = gir_init_section + [ '--c-include=gst/sdp/sdp.h' ]
@ -43,3 +51,5 @@ sdp_dep = declare_dependency(link_with: gstsdp,
include_directories : [libsinc],
dependencies : rtsp_deps,
sources: sdp_gen_sources)
meson.override_dependency('gstreamer-sdp-1.0', sdp_dep)

View file

@ -91,6 +91,14 @@ gsttag = library('gsttag-@0@'.format(api_version),
dependencies : tag_deps,
)
pkgconfig.generate(gsttag,
libraries : [gst_dep],
variables : pkgconfig_variables,
subdirs : pkgconfig_subdirs,
name : 'gstreamer-tag-1.0',
description : 'Tag base classes and helper functions',
)
if build_gir
gst_gir_extra_args = gir_init_section + [ '--c-include=gst/tag/tag.h' ]
tag_gir = gnome.generate_gir(gsttag,
@ -113,6 +121,8 @@ tag_dep = declare_dependency(link_with: gsttag,
dependencies : tag_deps,
sources: tag_gen_sources)
meson.override_dependency('gstreamer-tag-1.0', tag_dep)
# Little program that reads iso_639.xml and outputs tables for us as fallback
# for when iso-codes are not available (and so we don't have to read the xml
# just to map codes)

View file

@ -137,6 +137,14 @@ gstvideo = library('gstvideo-@0@'.format(api_version),
dependencies : gstvideo_deps,
)
pkgconfig.generate(gstvideo,
libraries : [gst_dep, gst_base_dep],
variables : pkgconfig_variables,
subdirs : pkgconfig_subdirs,
name : 'gstreamer-video-1.0',
description : 'Video base classes and helper functions',
)
if build_gir
gst_gir_extra_args = gir_init_section + [ '--c-include=gst/video/video.h' ]
video_gir = gnome.generate_gir(gstvideo,
@ -158,3 +166,5 @@ video_dep = declare_dependency(link_with : gstvideo,
include_directories : [libsinc],
dependencies : gstvideo_deps,
sources : video_gen_sources)
meson.override_dependency('gstreamer-video-1.0', video_dep)

View file

@ -431,6 +431,16 @@ if get_option('default_library') == 'shared'
plugins_pkgconfig_install_dir = disabler()
endif
pkgconfig_variables = ['exec_prefix=${prefix}',
'toolsdir=${exec_prefix}/bin',
'pluginsdir=${libdir}/gstreamer-1.0',
'datarootdir=${prefix}/share',
'datadir=${datarootdir}',
'girdir=${datadir}/gir-1.0',
'typelibdir=${libdir}/girepository-1.0',
'libexecdir=${prefix}/libexec']
pkgconfig_subdirs = ['gstreamer-1.0']
python3 = import('python').find_installation()
subdir('gst-libs')
subdir('gst')
@ -440,7 +450,7 @@ if not get_option('tools').disabled()
subdir('tools')
endif
subdir('tests')
subdir('pkgconfig')
# xgettext is optional (on Windows for instance)
if find_program('xgettext', required : get_option('nls')).found()
core_conf.set('ENABLE_NLS', 1)
@ -449,6 +459,20 @@ endif
subdir('docs')
subdir('scripts')
base_libraries = ['allocators', 'app', 'audio', 'fft', 'pbutils', 'riff', 'rtp', 'rtsp', 'sdp', 'tag', 'video']
if build_gstgl
base_libraries += 'gl'
endif
pkgconfig.generate(
libraries : [gst_dep],
variables : pkgconfig_variables + [
'libraries=' + ' '.join(base_libraries),
],
subdirs : pkgconfig_subdirs,
name : 'gstreamer-plugins-base-1.0',
description : 'Streaming media framework, base plugins libraries',
)
if have_orcc
update_orc_dist_files = find_program('scripts/update-orc-dist-files.py')

View file

@ -1,16 +0,0 @@
# the standard variables don't make sense for an uninstalled copy
prefix=
exec_prefix=
libdir=@allocatorslibdir@
# includedir is builddir because it is used to find gstconfig.h in places
includedir=@abs_top_builddir@/gst-libs
girdir=@abs_top_builddir@/gst-libs/gst/allocators
typelibdir=@abs_top_builddir@/gst-libs/gst/allocators
Name: GStreamer Allocators Library, Uninstalled
Description: Allocators implementation, uninstalled
Version: @VERSION@
Requires: gstreamer-@GST_API_VERSION@
Libs: -L${libdir} -lgstallocators-@GST_API_VERSION@
Cflags: -I@abs_top_srcdir@/gst-libs -I@abs_top_builddir@/gst-libs

View file

@ -1,16 +0,0 @@
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@/gstreamer-@GST_API_VERSION@
datarootdir=${prefix}/share
datadir=${datarootdir}
girdir=${datadir}/gir-1.0
typelibdir=${libdir}/girepository-1.0
Name: GStreamer Allocators Library
Description: Allocators implementation
Requires: gstreamer-@GST_API_VERSION@
Version: @VERSION@
Libs: -L${libdir} -lgstallocators-@GST_API_VERSION@
Cflags: -I${includedir}

View file

@ -1,16 +0,0 @@
# the standard variables don't make sense for an uninstalled copy
prefix=
exec_prefix=
libdir=@applibdir@
# includedir is builddir because it is used to find gstconfig.h in places
includedir=@abs_top_builddir@/gst-libs
girdir=@abs_top_builddir@/gst-libs/gst/app
typelibdir=@abs_top_builddir@/gst-libs/gst/app
Name: GStreamer Application Library, Uninstalled
Description: Helper functions and base classes for application integration, uninstalled
Version: @VERSION@
Requires: gstreamer-@GST_API_VERSION@ gstreamer-base-@GST_API_VERSION@
Libs: -L${libdir} -lgstapp-@GST_API_VERSION@
Cflags: -I@abs_top_srcdir@/gst-libs -I@abs_top_builddir@/gst-libs

View file

@ -1,16 +0,0 @@
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@/gstreamer-@GST_API_VERSION@
datarootdir=${prefix}/share
datadir=${datarootdir}
girdir=${datadir}/gir-1.0
typelibdir=${libdir}/girepository-1.0
Name: GStreamer Application Library
Description: Helper functions and base classes for application integration
Requires: gstreamer-@GST_API_VERSION@ gstreamer-base-@GST_API_VERSION@
Version: @VERSION@
Libs: -L${libdir} -lgstapp-@GST_API_VERSION@
Cflags: -I${includedir}

View file

@ -1,17 +0,0 @@
# the standard variables don't make sense for an uninstalled copy
prefix=
exec_prefix=
libdir=@audiolibdir@
# includedir is builddir because it is used to find gstconfig.h in places
includedir=@abs_top_builddir@/gst-libs
girdir=@abs_top_builddir@/gst-libs/gst/audio
typelibdir=@abs_top_builddir@/gst-libs/gst/audio
Name: GStreamer Audio Library, Uninstalled
Description: Audio helper functions and base classes, uninstalled
Version: @VERSION@
Requires: gstreamer-@GST_API_VERSION@ gstreamer-base-@GST_API_VERSION@ gstreamer-tag-@GST_API_VERSION@
Requires.private: @ORC_PC@
Libs: -L${libdir} -lgstaudio-@GST_API_VERSION@
Cflags: -I@abs_top_srcdir@/gst-libs -I@abs_top_builddir@/gst-libs

View file

@ -1,17 +0,0 @@
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@/gstreamer-@GST_API_VERSION@
datarootdir=${prefix}/share
datadir=${datarootdir}
girdir=${datadir}/gir-1.0
typelibdir=${libdir}/girepository-1.0
Name: GStreamer Audio library
Description: Audio helper functions and base classes
Requires: gstreamer-@GST_API_VERSION@ gstreamer-base-@GST_API_VERSION@ gstreamer-tag-@GST_API_VERSION@
Requires.private: @ORC_PC@
Version: @VERSION@
Libs: -L${libdir} -lgstaudio-@GST_API_VERSION@
Cflags: -I${includedir}

View file

@ -1,16 +0,0 @@
# the standard variables don't make sense for an uninstalled copy
prefix=
exec_prefix=
libdir=@fftlibdir@
# includedir is builddir because it is used to find gstconfig.h in places
includedir=@abs_top_builddir@/gst-libs
girdir=@abs_top_builddir@/gst-libs/gst/fft
typelibdir=@abs_top_builddir@/gst-libs/gst/fft
Name: GStreamer FFT Library, Uninstalled
Description: FFT implementation, uninstalled
Version: @VERSION@
Requires: gstreamer-@GST_API_VERSION@
Libs: -L${libdir} -lgstfft-@GST_API_VERSION@ @LIBM@
Cflags: -I@abs_top_srcdir@/gst-libs -I@abs_top_builddir@/gst-libs

View file

@ -1,16 +0,0 @@
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@/gstreamer-@GST_API_VERSION@
datarootdir=${prefix}/share
datadir=${datarootdir}
girdir=${datadir}/gir-1.0
typelibdir=${libdir}/girepository-1.0
Name: GStreamer FFT Library
Description: FFT implementation
Requires: gstreamer-@GST_API_VERSION@
Version: @VERSION@
Libs: -L${libdir} -lgstfft-@GST_API_VERSION@ @LIBM@
Cflags: -I${includedir}

View file

@ -1,13 +0,0 @@
prefix=
exec_prefix=
libdir=@gllibdir@
includedir=@abs_top_builddir@/gst-libs
girdir=@abs_top_builddir@/gst-libs/gst/gl
typelibdir=@abs_top_builddir@/gst-libs/gst/gl
Name: GStreamer OpenGL Plugins Libraries (EGL Specifics), Uninstalled
Description: Streaming media framework, OpenGL plugins libraries (EGL specifics), uninstalled
Version: @VERSION@
Requires: gstreamer-gl-@GST_API_VERSION@ @GL_EGL_EXTRA_REQUIRES@
Libs: @GL_EGL_EXTRA_LIBS@

View file

@ -1,11 +0,0 @@
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@/gstreamer-@GST_API_VERSION@
Name: GStreamer OpenGL Plugins Libraries (Wayland specifics)
Description: Streaming media framework, OpenGL plugins libraries (EGL specifics)
Version: @VERSION@
Requires: gstreamer-gl-@GST_API_VERSION@ @GL_EGL_EXTRA_REQUIRES@
Libs: @GL_EGL_EXTRA_LIBS@

View file

@ -1,11 +0,0 @@
prefix=
exec_prefix=
libdir=@gllibdir@
includedir=@abs_top_builddir@/gst-libs
Name: GStreamer OpenGL Plugins Libraries (OpenGL Prototypes), Uninstalled
Description: Streaming media framework, OpenGL plugins libraries (OpenGL Prototypes), uninstalled
Version: @VERSION@
Requires: gstreamer-gl-@GST_API_VERSION@ @GL_PROTO_EXTRA_REQUIRES@
Libs: @GL_PROTO_EXTRA_LIBS@

View file

@ -1,11 +0,0 @@
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@/gstreamer-@GST_API_VERSION@
Name: GStreamer OpenGL Plugins Libraries (OpenGL Prototypes)
Description: Streaming media framework, OpenGL plugins libraries (OpenGL Prototypes)
Version: @VERSION@
Requires: gstreamer-gl-@GST_API_VERSION@ @GL_PROTO_EXTRA_REQUIRES@
Libs: @GL_PROTO_EXTRA_LIBS@

View file

@ -1,17 +0,0 @@
prefix=
exec_prefix=
libdir=@gllibdir@
includedir=@abs_top_builddir@/gst-libs
girdir=@abs_top_builddir@/gst-libs/gst/gl
typelibdir=@abs_top_builddir@/gst-libs/gst/gl
gl_platforms=@GL_PLATFORMS@
gl_winsys=@GL_WINDOWS@
gl_apis=@GL_APIS@
Name: GStreamer OpenGL Plugins Libraries, Uninstalled
Description: Streaming media framework, OpenGL plugins libraries, uninstalled
Version: @VERSION@
Requires: gstreamer-video-@GST_API_VERSION@ gstreamer-base-@GST_API_VERSION@ gstreamer-@GST_API_VERSION@
Libs: -L${libdir} -lgstgl-@GST_API_VERSION@
Cflags: -I@abs_top_srcdir@/gst-libs -I@abs_top_builddir@/gst-libs

View file

@ -1,11 +0,0 @@
prefix=
exec_prefix=
libdir=@gllibdir@
includedir=@abs_top_builddir@/gst-libs
girdir=@abs_top_builddir@/gst-libs/gst/gl
typelibdir=@abs_top_builddir@/gst-libs/gst/gl
Name: GStreamer OpenGL Plugins Libraries (Wayland Specifics), Uninstalled
Description: Streaming media framework, OpenGL plugins libraries (Wayland specifics), uninstalled
Version: @VERSION@
Requires: gstreamer-gl-@GST_API_VERSION@ wayland-egl wayland-client

View file

@ -1,9 +0,0 @@
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@/gstreamer-@GST_API_VERSION@
Name: GStreamer OpenGL Plugins Libraries (Wayland specifics)
Description: Streaming media framework, OpenGL plugins libraries (Wayland specifics)
Version: @VERSION@
Requires: gstreamer-gl-@GST_API_VERSION@ wayland-egl wayland-client

View file

@ -1,11 +0,0 @@
prefix=
exec_prefix=
libdir=@gllibdir@
includedir=@abs_top_builddir@/gst-libs
girdir=@abs_top_builddir@/gst-libs/gst/gl
typelibdir=@abs_top_builddir@/gst-libs/gst/gl
Name: GStreamer OpenGL Plugins Libraries (X11 Specifics), Uninstalled
Description: Streaming media framework, OpenGL plugins libraries (X11 specifics), uninstalled
Version: @VERSION@
Requires: gstreamer-gl-@GST_API_VERSION@ x11-xcb

View file

@ -1,9 +0,0 @@
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@/gstreamer-@GST_API_VERSION@
Name: GStreamer OpenGL Plugins Libraries (X11 specifics)
Description: Streaming media framework, OpenGL plugins libraries (X11 specifics)
Version: @VERSION@
Requires: gstreamer-gl-@GST_API_VERSION@ x11-xcb

View file

@ -1,15 +0,0 @@
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@/gstreamer-@GST_API_VERSION@
gl_platforms=@GL_PLATFORMS@
gl_winsys=@GL_WINDOWS@
gl_apis=@GL_APIS@
Name: GStreamer OpenGL Plugins Libraries
Description: Streaming media framework, OpenGL plugins libraries
Version: @VERSION@
Requires: gstreamer-video-@GST_API_VERSION@ gstreamer-base-@GST_API_VERSION@ gstreamer-@GST_API_VERSION@
Libs: -L${libdir} -lgstgl-@GST_API_VERSION@
Cflags: -I${includedir} -I${libdir}/gstreamer-@GST_API_VERSION@/include

View file

@ -1,16 +0,0 @@
# the standard variables don't make sense for an uninstalled copy
prefix=
exec_prefix=
libdir=@pbutilslibdir@
# includedir is builddir because it is used to find gstconfig.h in places
includedir=@abs_top_builddir@/gst-libs
girdir=@abs_top_builddir@/gst-libs/gst/pbutils
typelibdir=@abs_top_builddir@/gst-libs/gst/pbutils
Name: GStreamer Base Utils Library, Uninstalled
Description: General utility functions, uninstalled
Version: @VERSION@
Requires: gstreamer-@GST_API_VERSION@ gstreamer-audio-@GST_API_VERSION@ gstreamer-base-@GST_API_VERSION@ gstreamer-video-@GST_API_VERSION@ gstreamer-tag-@GST_API_VERSION@
Libs: -L${libdir} -lgstpbutils-@GST_API_VERSION@
Cflags: -I@abs_top_srcdir@/gst-libs -I@abs_top_builddir@/gst-libs

View file

@ -1,16 +0,0 @@
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@/gstreamer-@GST_API_VERSION@
datarootdir=${prefix}/share
datadir=${datarootdir}
girdir=${datadir}/gir-1.0
typelibdir=${libdir}/girepository-1.0
Name: GStreamer Base Utils Library
Description: General utility functions
Requires: gstreamer-@GST_API_VERSION@ gstreamer-audio-@GST_API_VERSION@ gstreamer-base-@GST_API_VERSION@ gstreamer-video-@GST_API_VERSION@ gstreamer-tag-@GST_API_VERSION@
Version: @VERSION@
Libs: -L${libdir} -lgstpbutils-@GST_API_VERSION@
Cflags: -I${includedir}

View file

@ -1,16 +0,0 @@
# the standard variables don't make sense for an uninstalled copy
prefix=
exec_prefix=
libdir=
# includedir is builddir because it is used to find gstconfig.h in places
includedir=@abs_top_builddir@/gst-libs
pluginsdir=@abs_top_builddir@
Name: GStreamer Base Plugins Libraries, Uninstalled
Description: Streaming media framework, base plugins libraries, uninstalled
Version: @VERSION@
Requires: gstreamer-@GST_API_VERSION@
Libs: -L@allocatorslibdir@ -L@applibdir@ -L@audiolibdir@ -L@fftlibdir@ -L@pbutilslibdir@ -L@rifflibdir@ -L@rtplibdir@ -L@rtsplibdir@ -L@sdplibdir@ -L@taglibdir@ -L@videolibdir@ @glliblinkerflag@
Cflags: -I@abs_top_srcdir@/gst-libs -I@abs_top_builddir@/gst-libs
libraries=allocators app audio fft pbutils riff rtp rtsp sdp tag video @gl_lib_name@

View file

@ -1,14 +0,0 @@
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@/gstreamer-@GST_API_VERSION@
pluginsdir=@libdir@/gstreamer-@GST_API_VERSION@
Name: GStreamer Base Plugins Libraries
Description: Streaming media framework, base plugins libraries
Requires: gstreamer-@GST_API_VERSION@
Version: @VERSION@
Libs: -L${libdir}
Cflags: -I${includedir}
libraries=allocators app audio fft pbutils riff rtp rtsp sdp tag video @gl_lib_name@

View file

@ -1,16 +0,0 @@
# the standard variables don't make sense for an uninstalled copy
prefix=
exec_prefix=
libdir=@rifflibdir@
# includedir is builddir because it is used to find gstconfig.h in places
includedir=@abs_top_builddir@/gst-libs
girdir=@abs_top_builddir@/gst-libs/gst/riff
typelibdir=@abs_top_builddir@/gst-libs/gst/riff
Name: GStreamer RIFF Library, Uninstalled
Description: RIFF helper functions, uninstalled
Version: @VERSION@
Requires: gstreamer-@GST_API_VERSION@
Libs: -L${libdir} -lgstriff-@GST_API_VERSION@
Cflags: -I@abs_top_srcdir@/gst-libs -I@abs_top_builddir@/gst-libs

View file

@ -1,16 +0,0 @@
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@/gstreamer-@GST_API_VERSION@
datarootdir=${prefix}/share
datadir=${datarootdir}
girdir=${datadir}/gir-1.0
typelibdir=${libdir}/girepository-1.0
Name: GStreamer RIFF Library
Description: RIFF helper functions
Requires: gstreamer-@GST_API_VERSION@
Version: @VERSION@
Libs: -L${libdir} -lgstriff-@GST_API_VERSION@
Cflags: -I${includedir}

View file

@ -1,16 +0,0 @@
# the standard variables don't make sense for an uninstalled copy
prefix=
exec_prefix=
libdir=@rtplibdir@
# includedir is builddir because it is used to find gstconfig.h in places
includedir=@abs_top_builddir@/gst-libs
girdir=@abs_top_builddir@/gst-libs/gst/rtp
typelibdir=@abs_top_builddir@/gst-libs/gst/rtp
Name: GStreamer RTP Library, Uninstalled
Description: RTP base classes and helper functions, uninstalled
Version: @VERSION@
Requires: gstreamer-@GST_API_VERSION@ gstreamer-base-@GST_API_VERSION@
Libs: -L${libdir} -lgstrtp-@GST_API_VERSION@
Cflags: -I@abs_top_srcdir@/gst-libs -I@abs_top_builddir@/gst-libs

View file

@ -1,16 +0,0 @@
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@/gstreamer-@GST_API_VERSION@
datarootdir=${prefix}/share
datadir=${datarootdir}
girdir=${datadir}/gir-1.0
typelibdir=${libdir}/girepository-1.0
Name: GStreamer RTP Library
Description: RTP base classes and helper functions
Requires: gstreamer-@GST_API_VERSION@ gstreamer-base-@GST_API_VERSION@
Version: @VERSION@
Libs: -L${libdir} -lgstrtp-@GST_API_VERSION@
Cflags: -I${includedir}

View file

@ -1,16 +0,0 @@
# the standard variables don't make sense for an uninstalled copy
prefix=
exec_prefix=
libdir=@rtsplibdir@
# includedir is builddir because it is used to find gstconfig.h in places
includedir=@abs_top_builddir@/gst-libs
girdir=@abs_top_builddir@/gst-libs/gst/rtsp
typelibdir=@abs_top_builddir@/gst-libs/gst/rtsp
Name: GStreamer RTSP Library, Uninstalled
Description: RTSP base classes and helper functions, uninstalled
Version: @VERSION@
Requires: gstreamer-@GST_API_VERSION@ gstreamer-sdp-@GST_API_VERSION@ gio-2.0
Libs: -L${libdir} -lgstrtsp-@GST_API_VERSION@
Cflags: -I@abs_top_srcdir@/gst-libs -I@abs_top_builddir@/gst-libs

View file

@ -1,16 +0,0 @@
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@/gstreamer-@GST_API_VERSION@
datarootdir=${prefix}/share
datadir=${datarootdir}
girdir=${datadir}/gir-1.0
typelibdir=${libdir}/girepository-1.0
Name: GStreamer RTSP Library
Description: RTSP base classes and helper functions
Requires: gstreamer-@GST_API_VERSION@ gstreamer-sdp-@GST_API_VERSION@ gio-2.0
Version: @VERSION@
Libs: -L${libdir} -lgstrtsp-@GST_API_VERSION@
Cflags: -I${includedir}

View file

@ -1,17 +0,0 @@
# the standard variables don't make sense for an uninstalled copy
prefix=
exec_prefix=
libdir=@sdplibdir@
# includedir is builddir because it is used to find gstconfig.h in places
includedir=@abs_top_builddir@/gst-libs
girdir=@abs_top_builddir@/gst-libs/gst/sdp
typelibdir=@abs_top_builddir@/gst-libs/gst/sdp
Name: GStreamer SDP Library, Uninstalled
Description: SDP helper functions, uninstalled
Version: @VERSION@
Requires: glib-2.0 gstreamer-@GST_API_VERSION@ gstreamer-rtp-@GST_API_VERSION@
Requires.private: gio-2.0
Libs: -L${libdir} -lgstsdp-@GST_API_VERSION@
Cflags: -I@abs_top_srcdir@/gst-libs -I@abs_top_builddir@/gst-libs

View file

@ -1,17 +0,0 @@
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@/gstreamer-@GST_API_VERSION@
datarootdir=${prefix}/share
datadir=${datarootdir}
girdir=${datadir}/gir-1.0
typelibdir=${libdir}/girepository-1.0
Name: GStreamer SDP Library
Description: SDP helper functions
Requires: glib-2.0 gstreamer-@GST_API_VERSION@ gstreamer-rtp-@GST_API_VERSION@
Requires.private: gio-2.0
Version: @VERSION@
Libs: -L${libdir} -lgstsdp-@GST_API_VERSION@
Cflags: -I${includedir}

View file

@ -1,17 +0,0 @@
# the standard variables don't make sense for an uninstalled copy
prefix=
exec_prefix=
libdir=@taglibdir@
# includedir is builddir because it is used to find gstconfig.h in places
includedir=@abs_top_builddir@/gst-libs
girdir=@abs_top_builddir@/gst-libs/gst/tag
typelibdir=@abs_top_builddir@/gst-libs/gst/tag
Name: GStreamer Tag Library, Uninstalled
Description: Tag base classes and helper functions, uninstalled
Version: @VERSION@
Requires: gstreamer-@GST_API_VERSION@
Libs: -L${libdir} -lgsttag-@GST_API_VERSION@
Libs.Private: @ZLIB_LIBS@
Cflags: -I@abs_top_srcdir@/gst-libs -I@abs_top_builddir@/gst-libs

View file

@ -1,17 +0,0 @@
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@/gstreamer-@GST_API_VERSION@
datarootdir=${prefix}/share
datadir=${datarootdir}
girdir=${datadir}/gir-1.0
typelibdir=${libdir}/girepository-1.0
Name: GStreamer Tag Library
Description: Tag base classes and helper functions
Requires: gstreamer-@GST_API_VERSION@
Version: @VERSION@
Libs: -L${libdir} -lgsttag-@GST_API_VERSION@
Libs.private: @ZLIB_LIBS@
Cflags: -I${includedir}

View file

@ -1,17 +0,0 @@
# the standard variables don't make sense for an uninstalled copy
prefix=
exec_prefix=
libdir=@videolibdir@
# includedir is builddir because it is used to find gstconfig.h in places
includedir=@abs_top_builddir@/gst-libs
girdir=@abs_top_builddir@/gst-libs/gst/video
typelibdir=@abs_top_builddir@/gst-libs/gst/video
Name: GStreamer Video Library, Uninstalled
Description: Video base classes and helper functions, uninstalled
Version: @VERSION@
Requires: gstreamer-@GST_API_VERSION@ gstreamer-base-@GST_API_VERSION@
Requires.private: @ORC_PC@
Libs: -L${libdir} -lgstvideo-@GST_API_VERSION@
Cflags: -I@abs_top_srcdir@/gst-libs -I@abs_top_builddir@/gst-libs

View file

@ -1,17 +0,0 @@
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@/gstreamer-@GST_API_VERSION@
datarootdir=${prefix}/share
datadir=${datarootdir}
girdir=${datadir}/gir-1.0
typelibdir=${libdir}/girepository-1.0
Name: GStreamer Video Library
Description: Video base classes and helper functions
Requires: gstreamer-@GST_API_VERSION@ gstreamer-base-@GST_API_VERSION@
Requires.private: @ORC_PC@
Version: @VERSION@
Libs: -L${libdir} -lgstvideo-@GST_API_VERSION@
Cflags: -I${includedir}

View file

@ -1,115 +0,0 @@
pkgconf = configuration_data()
pkgconf.set('prefix', join_paths(get_option('prefix')))
pkgconf.set('exec_prefix', '${prefix}')
pkgconf.set('libdir', '${prefix}/@0@'.format(get_option('libdir')))
pkgconf.set('includedir', '${prefix}/@0@'.format(get_option('includedir')))
pkgconf.set('GST_API_VERSION', api_version)
pkgconf.set('VERSION', gst_version)
pkgconf.set('LIBM', libm.found() ? '-lm' : '')
pkgconf.set('ZLIB_LIBS', zlib_dep.found() ? '-lz' : '')
pkgconf.set('ORC_PC', have_orcc ? 'orc-0.4' : '')
# needed for generating -uninstalled.pc files
pkgconf.set('abs_top_builddir', join_paths(meson.current_build_dir(), '..'))
pkgconf.set('abs_top_srcdir', join_paths(meson.current_source_dir(), '..'))
pkgconf.set('allocatorslibdir', join_paths(meson.build_root(), gstallocators.outdir()))
pkgconf.set('applibdir', join_paths(meson.build_root(), gstapp.outdir()))
pkgconf.set('audiolibdir', join_paths(meson.build_root(), gstaudio.outdir()))
pkgconf.set('fftlibdir', join_paths(meson.build_root(), gstfft.outdir()))
pkgconf.set('pbutilslibdir', join_paths(meson.build_root(), pbutils.outdir()))
pkgconf.set('rifflibdir', join_paths(meson.build_root(), gstriff.outdir()))
pkgconf.set('rtplibdir', join_paths(meson.build_root(), gst_rtp.outdir()))
pkgconf.set('rtsplibdir', join_paths(meson.build_root(), gst_rtsp.outdir()))
pkgconf.set('sdplibdir', join_paths(meson.build_root(), gstsdp.outdir()))
pkgconf.set('taglibdir', join_paths(meson.build_root(), gsttag.outdir()))
pkgconf.set('videolibdir', join_paths(meson.build_root(), gstvideo.outdir()))
pkg_install_dir = '@0@/pkgconfig'.format(get_option('libdir'))
pkg_files = [
'gstreamer-allocators',
'gstreamer-app',
'gstreamer-audio',
'gstreamer-fft',
'gstreamer-pbutils',
'gstreamer-plugins-base',
'gstreamer-riff',
'gstreamer-rtp',
'gstreamer-rtsp',
'gstreamer-sdp',
'gstreamer-tag',
'gstreamer-video',
]
# XXX: requires the meson.build to be parsed/executed after gst-libs/gl/meson.build
if build_gstgl
gllibdir = join_paths(meson.build_root(), gstgl.outdir())
pkgconf.set('gllibdir', gllibdir)
pkgconf.set('glliblinkerflag', '-L' + gllibdir)
pkg_files += ['gstreamer-gl', 'gstreamer-gl-prototypes']
pkgconf.set('GL_APIS', ' '.join(enabled_gl_apis))
pkgconf.set('GL_WINDOWS', ' '.join(enabled_gl_winsys))
pkgconf.set('GL_PLATFORMS', ' '.join(enabled_gl_platforms))
pkgconf.set('gl_lib_name', 'gl')
gl_proto_requires = ''
gl_proto_libs = ''
if enabled_gl_apis.contains('gl')
if gl_dep.type_name() == 'pkgconfig'
gl_proto_requires += ' gl'
elif gl_dep.type_name() == 'library'
if 'wgl' in enabled_gl_platforms
gl_proto_libs += ' -lopengl32'
else
gl_proto_libs += ' -lGL'
endif
elif gl_dep.type_name() == 'appleframework'
gl_proto_libs += ' -framework OpenGL'
endif
endif
if enabled_gl_apis.contains('gles2')
if gles2_dep.type_name() == 'pkgconfig'
gl_proto_requires += ' glesv2'
elif gles2_dep.type_name() == 'library'
gl_proto_libs += ' -lGLESv2'
elif gles2_dep.type_name() == 'appleframework'
gl_proto_libs += ' -framework OpenGLES'
endif
endif
pkgconf.set('GL_PROTO_EXTRA_REQUIRES', gl_proto_requires)
pkgconf.set('GL_PROTO_EXTRA_LIBS', gl_proto_libs)
if enabled_gl_platforms.contains('egl')
pkg_files += ['gstreamer-gl-egl']
if egl_dep.type_name() == 'pkgconfig'
pkgconf.set('GL_EGL_EXTRA_REQUIRES', 'egl')
pkgconf.set('GL_EGL_EXTRA_LIBS', '')
elif egl_dep.type_name() == 'library'
pkgconf.set('GL_EGL_EXTRA_REQUIRES', '')
pkgconf.set('GL_EGL_EXTRA_LIBS', '-lEGL')
endif
endif
if enabled_gl_winsys.contains('x11')
pkg_files += ['gstreamer-gl-x11']
endif
if enabled_gl_winsys.contains('wayland')
pkg_files += ['gstreamer-gl-wayland']
endif
else
pkgconf.set('glliblinkerflag', '')
pkgconf.set('gl_lib_name', '')
endif
foreach p : pkg_files
infile = p + '.pc.in'
outfile = p + '-1.0.pc'
configure_file(input : infile,
output : outfile,
configuration : pkgconf,
install_dir : pkg_install_dir)
infile = p + '-uninstalled.pc.in'
outfile = p + '-1.0-uninstalled.pc'
configure_file(input : infile,
output : outfile,
configuration : pkgconf)
endforeach