File: meson.build

package info (click to toggle)
fuse3 3.17.2-3
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 37,592 kB
  • sloc: ansic: 22,937; perl: 6,044; cpp: 3,853; python: 1,128; sh: 408; javascript: 313; makefile: 59
file content (44 lines) | stat: -rw-r--r-- 1,496 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
examples = [ 'passthrough', 'passthrough_fh',
             'hello', 'hello_ll',
             'printcap', 'ioctl_client', 'poll_client',
             'ioctl', 'cuse', 'cuse_client' ]

if not platform.endswith('bsd') and platform != 'dragonfly'
    examples += [ 'passthrough_ll', 'hello_ll_uds' ]

    # According to Conrad Meyer <cem@freebsd.org>, FreeBSD doesn't
    # support mounting files, This is enforced in vfs_domount_first()
    # with the v_type != VDIR check.
    examples += [ 'null' ]
endif

threaded_examples = [ 'notify_inval_inode',
                      'invalidate_path',
                      'notify_store_retrieve',
                      'notify_inval_entry',
                      'poll' ]

foreach ex : examples
    executable(ex, ex + '.c',
               dependencies: [ libfuse_dep ],
               install: false)
endforeach


foreach ex : threaded_examples
    executable(ex, ex + '.c',
               dependencies: [ thread_dep, libfuse_dep ],
               install: false)
endforeach

if not platform.endswith('bsd') and platform != 'dragonfly' and add_languages('cpp', required : false)
    executable('passthrough_hp', 'passthrough_hp.cc',
               dependencies: [ thread_dep, libfuse_dep ],
               install: false)
    executable('memfs_ll', 'memfs_ll.cc',
               dependencies: [ thread_dep, libfuse_dep ],
               cpp_args : '-std=c++17',
               install: false)
endif

# TODO: Link passthrough_fh with ulockmgr if available