16881f68fSopenharmony_cifuseconf_path = join_paths(get_option('prefix'), get_option('sysconfdir'), 'fuse.conf')
26881f68fSopenharmony_ci
36881f68fSopenharmony_ciexecutable('fusermount3', ['fusermount.c', '../lib/mount_util.c'],
46881f68fSopenharmony_ci           include_directories: include_dirs,
56881f68fSopenharmony_ci           install: true,
66881f68fSopenharmony_ci           install_dir: get_option('bindir'),
76881f68fSopenharmony_ci           c_args: '-DFUSE_CONF="@0@"'.format(fuseconf_path))
86881f68fSopenharmony_ci
96881f68fSopenharmony_ciexecutable('mount.fuse3', ['mount.fuse.c'],
106881f68fSopenharmony_ci           include_directories: include_dirs,
116881f68fSopenharmony_ci           link_with: [ libfuse ],
126881f68fSopenharmony_ci           install: true,
136881f68fSopenharmony_ci           install_dir: get_option('sbindir'),
146881f68fSopenharmony_ci           c_args: '-DFUSE_USE_VERSION=312')
156881f68fSopenharmony_ci
166881f68fSopenharmony_ci
176881f68fSopenharmony_ciudevrulesdir = get_option('udevrulesdir')
186881f68fSopenharmony_ciif udevrulesdir == ''
196881f68fSopenharmony_ci  udev = dependency('udev', required: false)
206881f68fSopenharmony_ci  if udev.found()
216881f68fSopenharmony_ci     udevrulesdir = join_paths(udev.get_variable(pkgconfig: 'udevdir'), 'rules.d')
226881f68fSopenharmony_ci  endif
236881f68fSopenharmony_ciendif
246881f68fSopenharmony_ci
256881f68fSopenharmony_ciif udevrulesdir == ''
266881f68fSopenharmony_ci  warning('could not determine udevdir, udev.rules will not be installed')
276881f68fSopenharmony_ciendif
286881f68fSopenharmony_ci
296881f68fSopenharmony_cimeson.add_install_script('install_helper.sh',
306881f68fSopenharmony_ci                         join_paths(get_option('prefix'), get_option('sysconfdir')),
316881f68fSopenharmony_ci                         join_paths(get_option('prefix'), get_option('bindir')),
326881f68fSopenharmony_ci                         udevrulesdir,
336881f68fSopenharmony_ci                         '@0@'.format(get_option('useroot')),
346881f68fSopenharmony_ci                         get_option('initscriptdir'))
35