mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 02:01:12 +00:00
gstreamer-full: plugin can be registered statically.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-python/-/merge_requests/43>
This commit is contained in:
parent
2b5b0d951e
commit
7a0decbec2
2 changed files with 11 additions and 3 deletions
|
@ -84,6 +84,14 @@ cdata.set('PYTHON_VERSION', '"@0@"'.format(python_dep.version()))
|
|||
configure_file(output : 'config.h', configuration : cdata)
|
||||
configinc = include_directories('.')
|
||||
|
||||
pkgconfig = import('pkgconfig')
|
||||
plugins_install_dir = join_paths(get_option('libdir'), 'gstreamer-1.0')
|
||||
plugins_pkgconfig_install_dir = join_paths(plugins_install_dir, 'pkgconfig')
|
||||
if get_option('default_library') == 'shared'
|
||||
# If we don't build static plugins there is no need to generate pc files
|
||||
plugins_pkgconfig_install_dir = disabler()
|
||||
endif
|
||||
|
||||
subdir('gi')
|
||||
subdir('plugin')
|
||||
subdir('testsuite')
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
gst_elements_shared = shared_library('gstpython',
|
||||
gstpython = library('gstpython',
|
||||
['gstpythonplugin.c'],
|
||||
include_directories : [configinc],
|
||||
dependencies : [gst_dep, pygobject_dep, gstbase_dep, python_dep, gmodule_dep],
|
||||
install : true,
|
||||
install_dir : '@0@/gstreamer-1.0'.format(get_option('libdir')),
|
||||
)
|
||||
|
||||
plugins = [gst_elements_shared]
|
||||
pkgconfig.generate(gstpython, install_dir : plugins_pkgconfig_install_dir)
|
||||
plugins = [gstpython]
|
||||
|
|
Loading…
Reference in a new issue