Meson build v0.56 deprecates meson.build_root(). This commit adds
alternative variable for the path to built stuffs.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
project('alsa-gobject', 'c',
version: '0.2.2',
license: 'LGPL-3',
- meson_version: '>= 0.47.0',
+ meson_version: '>= 0.48.0',
)
gnome = import('gnome')
'privates.h',
)
+# For test.
+build_dirs += {'alsactl': meson.current_build_dir()}
+
#
# Common part except for identifier of dependency.
#
'privates.h',
)
+# For test.
+build_dirs += {'alsahwdep': meson.current_build_dir()}
+
#
# Common part except for identifier of dependency.
#
+build_dirs = {}
+
subdir('ctl')
subdir('timer')
subdir('seq')
'privates.h',
)
+# For test.
+build_dirs += {'alsarawmidi': meson.current_build_dir()}
+
#
# Common part except for identifier of dependency.
#
'privates.h',
)
+# For test.
+build_dirs += {'alsaseq': meson.current_build_dir()}
+
#
# Common part except for identifier of dependency.
#
'privates.h',
)
+# For test.
+build_dirs += {'alsatimer': meson.current_build_dir()}
+
#
# Common part except for identifier of dependency.
#
}
dir_paths = []
-foreach path, scripts: tests
- dir_paths += join_paths(meson.build_root(), 'src', path)
+foreach name, build_dir: build_dirs
+ dir_paths += join_paths(build_dir)
endforeach
env = environment()