gnome-shell/subprojects/shew/meson.build
Florian Müllner daf729de11 build: Replace deprecated meson functions
Replace deprecated functions with their direct replacements:

 - dep.get_pkgconfig_variable() → dep.get_variable()
 - prg.path() → prg.full_path()
 - source/build_root() → project_source/build_root()

In one case we need meson.global_source_root() that was only
added in meson 0.58, so bump the requirement to that.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2077>
2021-12-23 15:52:21 +00:00

29 lines
776 B
Meson

project('shew', 'c',
version: '41.0',
meson_version: '>= 0.58.0',
license: 'LGPLv2+',
)
assert(meson.is_subproject(), 'This project is only intended to be used as a subproject!')
gnome = import('gnome')
pkg = import('pkgconfig')
api_version = '0'
full_name = '@0@-@1@'.format(meson.project_name(), api_version)
package_version = meson.project_version()
package_name = get_option('package_name')
assert(package_name != '', 'package_name must be specified')
pkgdatadir = join_paths(get_option('datadir'), package_name)
pkglibdir = join_paths(get_option('libdir'), package_name)
girdir = join_paths(pkgdatadir, 'gir-1.0')
typelibdir = join_paths(pkglibdir, 'girepository-1.0')
gtk_dep = dependency('gtk4')
x11_dep = dependency('x11', required: false)
subdir('src')