Skip to content

Commit

Permalink
Fix building with Meson inside Debian build tool
Browse files Browse the repository at this point in the history
  • Loading branch information
hongquan committed Mar 5, 2021
1 parent ed69970 commit 226d3ce
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions meson.build
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
project('cobang',
version: '0.6.3',
meson_version: '>= 0.50.0',
meson_version: '>= 0.54',
default_options: [
'warning_level=2',
],
Expand All @@ -12,24 +12,12 @@ i18n = import('i18n')
pymod = import('python')

python = pymod.find_installation('python3')
pythonver = python.language_version()
# Workaround for https://github.com/mesonbuild/meson/issues/5629
# https://gitlab.freedesktop.org/gstreamer/gst-python/issues/28
python_dep = dependency('python-@0@-embed'.format(pythonver), version: '> 3.7', required: false)

# Make sure Python is installed and found
if not python_dep.found()
python_dep = python.dependency(version: '>= 3.7')
endif
python_dep = python.dependency(embed:true, required : true)

dependency('glib-2.0')
dependency('gobject-2.0')
dependency('gobject-introspection-1.0')
dependency('gtk+-3.0', version: '>=3.24')
dependency('libnm', version: '>= 1.22')

gst_dep = dependency('gstreamer-1.0', version : '>= 1.16',
fallback : ['gstreamer', 'gst_dep'])

conf = configuration_data()
conf.set('PYTHON', python.path())
Expand Down

0 comments on commit 226d3ce

Please sign in to comment.