Skip to content

Commit

Permalink
meson: bump minimal dependency version up to 0.56.0 for meson.project…
Browse files Browse the repository at this point in the history
…_build_root()

The meson.project_build_root() was newly available to refer to build
directory wherever the meson file locates.

Reference: https://mesonbuild.com/Release-notes-for-0-56-0.html#mesonbuild_root-and-mesonsource_root-are-deprecated
Signed-off-by: Takashi Sakamoto <[email protected]>
  • Loading branch information
takaswie committed Oct 11, 2023
1 parent b9a73e0 commit db82871
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Dependencies
Requirements to build
=====================

- Meson 0.54.0 or later
- Meson 0.56.0 or later
- Ninja
- PyGObject (optional to run unit tests)
- gi-docgen (optional to generate API documentation)
Expand Down
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
project('libhinawa', 'c',
version: '2.6.1',
license: 'LGPL-2.1+',
meson_version: '>= 0.54.0',
meson_version: '>= 0.56.0',
)

# Detect support level in Linux sound subsystem.
Expand Down
3 changes: 0 additions & 3 deletions src/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,6 @@ hinawa_gir = gnome.generate_gir(myself,
install: true,
)

# For test.
builddir = meson.current_build_dir()

# For wrap dependency system.
hinawa_dep = declare_dependency(
link_with: myself,
Expand Down
3 changes: 3 additions & 0 deletions tests/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ tests = [
'hinawa-functions',
]


builddir = join_paths(meson.project_build_root(), 'src')

envs = environment()
envs.append('LD_LIBRARY_PATH', builddir, separator : ':')
envs.append('GI_TYPELIB_PATH', builddir, separator : ':')
Expand Down

0 comments on commit db82871

Please sign in to comment.