"Fossies" - the Fresh Open Source Software Archive

Member "fuse-3.2.1/lib/meson.build" (14 Nov 2017, 1706 Bytes) of package /linux/misc/fuse-3.2.1.tar.xz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "meson.build": 3.2.0_vs_3.2.1.

    1 libfuse_sources = ['fuse.c', 'fuse_i.h', 'fuse_loop.c', 'fuse_loop_mt.c',
    2                    'fuse_lowlevel.c', 'fuse_misc.h', 'fuse_opt.c',
    3                    'fuse_signals.c', 'buffer.c', 'cuse_lowlevel.c',
    4 	           'helper.c', 'modules/subdir.c' ]
    5 
    6 if host_machine.system().startswith('linux')
    7    libfuse_sources += [ 'mount.c', 'mount_util.c' ]
    8 else
    9    libfuse_sources += [ 'mount_bsd.c' ]
   10 endif
   11 
   12 if cfg.get('HAVE_ICONV')
   13    libfuse_sources += [ 'modules/iconv.c' ]
   14 endif
   15 
   16 deps = [ thread_dep ]
   17 libdl = cc.find_library('dl', required: false)
   18 if libdl.found()
   19    deps += [ libdl ]
   20 endif
   21 
   22 if host_machine.system().startswith('netbsd')
   23    deps += [ cc.find_library('perfuse'),
   24              cc.find_library('puffs') ]
   25 else
   26    # Required for clock_gettime before glibc 2.17
   27    deps += cc.find_library('rt')
   28 endif
   29 
   30 fusermount_path = join_paths(get_option('prefix'), get_option('bindir'))
   31 libfuse = library('fuse3', libfuse_sources, version: meson.project_version(),
   32                   soversion: '3', include_directories: include_dirs,
   33                   dependencies: deps, install: true,
   34                   link_depends: 'fuse_versionscript',
   35                   c_args: [ '-DFUSE_USE_VERSION=32',
   36                             '-DFUSERMOUNT_DIR="@0@"'.format(fusermount_path) ],
   37                   link_args: ['-Wl,--version-script,' + meson.current_source_dir()
   38                               + '/fuse_versionscript' ])
   39 
   40 pkg = import('pkgconfig')
   41 pkg.generate(libraries: [ libfuse, '-lpthread' ],
   42              libraries_private: '-ldl',
   43              version: meson.project_version(),
   44              name: 'fuse3',
   45              description: 'Filesystem in Userspace',
   46              subdirs: 'fuse3')
   47