capture : true,
build_by_default : get_option('manpages'),
install : true,
- install_dir : join_paths(get_option('mandir'), 'man@0@'.format(section))
+ install_dir : get_option('mandir') / 'man@0@'.format(section)
)
endforeach
capture : true,
build_by_default : get_option('manpages'),
install : true,
- install_dir : join_paths(get_option('mandir'), 'man@0@'.format(section))
+ install_dir : get_option('mandir') / 'man@0@'.format(section)
)
endforeach
sysconfdir = get_option('sysconfdir')
cdata.set_quoted('SYSCONFDIR', sysconfdir)
-bindir = join_paths(get_option('prefix'), get_option('bindir'))
-includedir = join_paths(get_option('prefix'), get_option('includedir'))
-libdir = join_paths(get_option('prefix'), get_option('libdir'))
+bindir = get_option('prefix') / get_option('bindir')
+includedir = get_option('prefix') / get_option('includedir')
+libdir = get_option('prefix') / get_option('libdir')
distconfdir = get_option('distconfdir')
if distconfdir == ''
if completion.found()
completiondir = completion.get_variable(pkgconfig : 'completionsdir')
else
- completiondir = join_paths(get_option('prefix'), get_option('datadir'),
- def_path)
+ completiondir = get_option('prefix') / get_option('datadir') / def_path
endif
endif
libkmod_files,
dependencies : libkmod_deps,
link_with : libshared,
- link_args : ['-Wl,--version-script', join_paths(meson.current_source_dir(),
- 'libkmod/libkmod.sym')],
+ link_args : ['-Wl,--version-script', meson.current_source_dir() /
+ 'libkmod/libkmod.sym'],
link_depends : files('libkmod/libkmod.sym'),
gnu_symbol_visibility : 'hidden',
version : '2.5.0',
pkg.generate(
name : 'kmod',
description : 'Tools to deal with kernel modules',
- install_dir : join_paths(get_option('datadir'), 'pkgconfig'),
+ install_dir : get_option('datadir') / 'pkgconfig',
variables : _kmod_variables,
)
kmod_symlink = find_program('scripts/kmod-symlink.sh')
foreach tool : _tools
if get_option('tools')
- symlink = join_paths(bindir, tool)
+ symlink = bindir / tool
meson.add_install_script(kmod_symlink, symlink)
endif
endforeach
'create-rootfs',
command : [
setup_rootfs,
- join_paths(meson.project_source_root(), 'testsuite/rootfs-pristine'),
- join_paths(meson.project_build_root(), 'testsuite/rootfs'),
- join_paths(meson.project_build_root(), 'testsuite/module-playground'),
- join_paths(meson.project_build_root(), 'config.h'),
+ meson.project_source_root() / 'testsuite/rootfs-pristine',
+ meson.project_build_root() / 'testsuite/rootfs',
+ meson.project_build_root() / 'testsuite/module-playground',
+ meson.project_build_root() / 'config.h',
sysconfdir,
moduledir,
],