build: Update deprecated meson functions
This commit is contained in:
+5
-5
@@ -3,7 +3,7 @@ project(
|
|||||||
'c',
|
'c',
|
||||||
version: '45.alpha',
|
version: '45.alpha',
|
||||||
license: 'GPL3+',
|
license: 'GPL3+',
|
||||||
meson_version: '>= 0.57.0'
|
meson_version: '>= 0.58.0'
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
@@ -178,9 +178,9 @@ pkg = import('pkgconfig')
|
|||||||
|
|
||||||
top_inc = include_directories('.')
|
top_inc = include_directories('.')
|
||||||
|
|
||||||
data_dir = meson.source_root() / 'data'
|
data_dir = meson.global_source_root() / 'data'
|
||||||
po_dir = meson.source_root() / 'po'
|
po_dir = meson.global_source_root() / 'po'
|
||||||
src_dir = meson.source_root() / 'src'
|
src_dir = meson.global_source_root() / 'src'
|
||||||
|
|
||||||
|
|
||||||
###########
|
###########
|
||||||
@@ -198,7 +198,7 @@ configure_file(
|
|||||||
)
|
)
|
||||||
|
|
||||||
summary({
|
summary({
|
||||||
'Source': meson.source_root(),
|
'Source': meson.global_source_root(),
|
||||||
'Prefix': calendar_prefix,
|
'Prefix': calendar_prefix,
|
||||||
})
|
})
|
||||||
summary({
|
summary({
|
||||||
|
|||||||
+3
-2
@@ -1,12 +1,12 @@
|
|||||||
test_env = [
|
test_env = [
|
||||||
'G_TEST_SRCDIR=' + meson.current_source_dir(),
|
'G_TEST_SRCDIR=' + meson.current_source_dir(),
|
||||||
'G_TEST_BUILDDIR=' + meson.current_build_dir(),
|
'G_TEST_BUILDDIR=' + meson.current_build_dir(),
|
||||||
'GSETTINGS_SCHEMA_DIR=' + meson.build_root() / 'data',
|
'GSETTINGS_SCHEMA_DIR=' + meson.current_build_dir() / 'data',
|
||||||
'GSETTINGS_BACKEND=memory',
|
'GSETTINGS_BACKEND=memory',
|
||||||
'MALLOC_CHECK_=2'
|
'MALLOC_CHECK_=2'
|
||||||
]
|
]
|
||||||
|
|
||||||
test_cflags = '-DTEST_DATA_DIR="@0@"'.format(meson.source_root() / 'data')
|
test_cflags = '-DTEST_DATA_DIR="@0@"'.format(meson.global_source_root() / 'data')
|
||||||
|
|
||||||
################
|
################
|
||||||
# libgcal-test #
|
# libgcal-test #
|
||||||
@@ -52,3 +52,4 @@ foreach test : tests
|
|||||||
|
|
||||||
test(test, test_executable, env: test_env)
|
test(test, test_executable, env: test_env)
|
||||||
endforeach
|
endforeach
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user