Skip to content

Commit

Permalink
Fix meson.build deprecations up to 0.56.0 (#119)
Browse files Browse the repository at this point in the history
  • Loading branch information
rcalixte authored Oct 2, 2023
1 parent fb480aa commit 58d7a32
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion installed-tests/js/libgjstesttools/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ libgjstesttools = library('gjstesttools',
gjstest_tools_gir = gnome.generate_gir(libgjstesttools,
includes: ['GObject-2.0', 'Gio-2.0'], sources: gjstest_tools_sources,
namespace: 'GjsTestTools', nsversion: '1.0',
symbol_prefix: 'gjs_test_tools_', extra_args: '--warn-error',
symbol_prefix: 'gjs_test_tools_', fatal_warnings: get_option('werror'),
install: get_option('installed_tests'), install_dir_gir: false,
install_dir_typelib: installed_tests_execdir)
gjstest_tools_typelib = gjstest_tools_gir[1]
Expand Down
7 changes: 4 additions & 3 deletions installed-tests/js/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,10 @@ libregress = library('regress', regress_sources,
regress_gir = gnome.generate_gir(libregress, includes: regress_gir_includes,
sources: regress_sources, namespace: 'Regress', nsversion: '1.0',
identifier_prefix: 'Regress', symbol_prefix: 'regress_',
extra_args: ['--warn-all', '--warn-error'] + regress_gir_c_args,
extra_args: ['--warn-all'] + regress_gir_c_args,
install: get_option('installed_tests'), install_dir_gir: false,
install_dir_typelib: installed_tests_execdir)
install_dir_typelib: installed_tests_execdir,
fatal_warnings: get_option('werror'))
regress_typelib = regress_gir[1]

if not skip_warnlib
Expand Down Expand Up @@ -104,7 +105,7 @@ libgimarshallingtests = library('gimarshallingtests',
gimarshallingtests_gir = gnome.generate_gir(libgimarshallingtests,
includes: ['Gio-2.0'], sources: gimarshallingtests_sources,
namespace: 'GIMarshallingTests', nsversion: '1.0',
symbol_prefix: 'gi_marshalling_tests_', extra_args: '--warn-error',
symbol_prefix: 'gi_marshalling_tests_', fatal_warnings: get_option('werror'),
install: get_option('installed_tests'), install_dir_gir: false,
install_dir_typelib: installed_tests_execdir)
gimarshallingtests_typelib = gimarshallingtests_gir[1]
Expand Down
6 changes: 3 additions & 3 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# SPDX-FileCopyrightText: 2019 Chun-wei Fan <fanchunwei@src.gnome.org>

project('cjs', 'cpp', 'c', version: '5.8.0', license: ['MIT', 'LGPL2+'],
meson_version: '>= 0.54.0',
meson_version: '>=0.56.0',
default_options: ['cpp_std=c++17', 'cpp_rtti=false', 'c_std=c99',
'warning_level=2', 'b_pch=true' ])

Expand Down Expand Up @@ -587,7 +587,7 @@ libgjs_dep = declare_dependency(link_with: [libgjs, libgjs_jsapi],
gjs_private_gir = gnome.generate_gir(libgjs,
includes: ['GObject-2.0', 'Gio-2.0'], sources: libgjs_private_sources,
namespace: 'CjsPrivate', nsversion: '1.0', identifier_prefix: 'Gjs',
symbol_prefix: 'gjs_', extra_args: '--warn-error', install: true,
symbol_prefix: 'gjs_', fatal_warnings: get_option('werror'), install: true,
install_dir_gir: false, install_dir_typelib: pkglibdir / 'girepository-1.0')
gjs_private_typelib = gjs_private_gir[1]

Expand Down Expand Up @@ -634,7 +634,7 @@ js_tests_builddir = meson.current_build_dir() / 'installed-tests' / 'js'
libgjs_test_tools_builddir = js_tests_builddir / 'libgjstesttools'
# GJS_PATH is empty here since we want to force the use of our own
# resources. G_FILENAME_ENCODING ensures filenames are not UTF-8
tests_environment.set('TOP_BUILDDIR', meson.build_root())
tests_environment.set('TOP_BUILDDIR', meson.project_build_root())
tests_environment.set('GJS_USE_UNINSTALLED_FILES', '1')
tests_environment.set('GJS_PATH', '')
tests_environment.set('GJS_DEBUG_OUTPUT', 'stderr')
Expand Down

0 comments on commit 58d7a32

Please sign in to comment.