1fuseconf_path = join_paths(get_option('prefix'), get_option('sysconfdir'), 'fuse.conf') 2 3executable('fusermount3', ['fusermount.c', '../lib/mount_util.c'], 4 include_directories: include_dirs, 5 install: true, 6 install_dir: get_option('bindir'), 7 c_args: '-DFUSE_CONF="@0@"'.format(fuseconf_path)) 8 9executable('mount.fuse3', ['mount.fuse.c'], 10 include_directories: include_dirs, 11 link_with: [ libfuse ], 12 install: true, 13 install_dir: get_option('sbindir'), 14 c_args: '-DFUSE_USE_VERSION=312') 15 16 17udevrulesdir = get_option('udevrulesdir') 18if udevrulesdir == '' 19 udev = dependency('udev', required: false) 20 if udev.found() 21 udevrulesdir = join_paths(udev.get_variable(pkgconfig: 'udevdir'), 'rules.d') 22 endif 23endif 24 25if udevrulesdir == '' 26 warning('could not determine udevdir, udev.rules will not be installed') 27endif 28 29meson.add_install_script('install_helper.sh', 30 join_paths(get_option('prefix'), get_option('sysconfdir')), 31 join_paths(get_option('prefix'), get_option('bindir')), 32 udevrulesdir, 33 '@0@'.format(get_option('useroot')), 34 get_option('initscriptdir')) 35