Skip to content

Commit 40e4e88

Browse files
committed
meson: require version 0.59.0 or later
1 parent b67299d commit 40e4e88

File tree

5 files changed

+14
-13
lines changed

5 files changed

+14
-13
lines changed

data/colorschemes/meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ add_color_scheme_sh = find_program(
3232
'add_color_scheme.sh',
3333
native: false,
3434
required: true,
35-
dirs: [join_paths(meson.source_root(), 'data', 'colorschemes')])
35+
dirs: [join_paths(meson.project_source_root(), 'data', 'colorschemes')])
3636

3737
cs_builder = [add_color_scheme_sh,
3838
eet_bin, '@OUTPUT@', '@INPUT@']

data/themes/meson.build

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
command = [edje_cc,
22
edje_offscale,
3-
'-id', join_paths(meson.source_root(), 'data', 'themes', 'images'),
4-
'-fd', join_paths(meson.source_root(), 'data', 'fonts'),
5-
'-sd', join_paths(meson.source_root(), 'data', 'themes', 'sounds'),
3+
'-id', join_paths(meson.project_source_root(), 'data', 'themes', 'images'),
4+
'-fd', join_paths(meson.project_source_root(), 'data', 'fonts'),
5+
'-sd', join_paths(meson.project_source_root(), 'data', 'themes', 'sounds'),
66
'@INPUT@',
77
'@OUTPUT@']
88

data/themes/nyanology/meson.build

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
command = [edje_cc,
2-
'-id', join_paths(meson.source_root(), 'data', 'themes',
2+
'-id', join_paths(meson.project_source_root(), 'data', 'themes',
33
'nyanology', 'images'),
4-
'-id', join_paths(meson.source_root(), 'data', 'themes', 'images'),
5-
'-fd', join_paths(meson.source_root(), 'data', 'fonts'),
6-
'-sd', join_paths(meson.source_root(), 'data', 'themes', 'sounds'),
4+
'-id', join_paths(meson.project_source_root(), 'data', 'themes', 'images'),
5+
'-fd', join_paths(meson.project_source_root(), 'data', 'fonts'),
6+
'-sd', join_paths(meson.project_source_root(), 'data', 'themes', 'sounds'),
77
'@INPUT@',
88
'@OUTPUT@']
99

meson.build

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
project('terminology', 'c',
22
version: '1.13.0',
33
default_options: ['buildtype=plain', 'c_std=gnu99'],
4-
license: 'BSD')
4+
license: 'BSD',
5+
meson_version: '>=0.59.0')
56

67
cc = meson.get_compiler('c')
78

@@ -78,10 +79,10 @@ foreach efl_dep: efl_deps
7879
dep = dependency(efl_dep, version: '>=' + efl_version)
7980
terminology_dependencies += [dep]
8081
if efl_dep == 'edje'
81-
edje_cc_path = dep.get_pkgconfig_variable('prefix') + '/bin/edje_cc'
82+
edje_cc_path = dep.get_variable(pkgconfig: 'prefix') + '/bin/edje_cc'
8283
endif
8384
if efl_dep == 'eet'
84-
eet_path = dep.get_pkgconfig_variable('prefix') + '/bin/eet'
85+
eet_path = dep.get_variable(pkgconfig: 'prefix') + '/bin/eet'
8586
endif
8687
endforeach
8788

po/meson.build

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ if get_option('nls')
44
add_project_arguments('-DGETTEXT_PACKAGE="terminology"', language:'c')
55
i18n.gettext(meson.project_name(),
66
args: [
7-
'--directory=' + meson.source_root(),
7+
'--directory=' + meson.project_source_root(),
88
'--keyword=_',
99
'--keyword=d_:1',
1010
'--keyword=P_:1,2',
@@ -19,7 +19,7 @@ endif
1919

2020
# maintainer shortcut for updating po stuff
2121
run_target ('po',
22-
command: ['ninja', '-C', meson.build_root(),
22+
command: ['ninja', '-C', meson.project_build_root(),
2323
meson.project_name() + '-pot',
2424
meson.project_name() + '-update-po']
2525
)

0 commit comments

Comments
 (0)