2018-07-03 17:06:48 +02:00
|
|
|
if not get_option('fam')
|
|
|
|
subdir_done()
|
|
|
|
endif
|
|
|
|
|
|
|
|
fam_dep = cc.find_library('fam')
|
2019-05-27 19:19:07 +02:00
|
|
|
fam_c_args = gio_c_args
|
2018-07-03 17:06:48 +02:00
|
|
|
if cc.has_function('FAMNoExists', dependencies : fam_dep)
|
|
|
|
fam_c_args += '-DHAVE_FAM_NO_EXISTS=1'
|
|
|
|
endif
|
2018-06-07 15:50:59 +02:00
|
|
|
|
2018-07-03 17:06:48 +02:00
|
|
|
deps = [
|
|
|
|
fam_dep,
|
|
|
|
libglib_dep,
|
|
|
|
libgobject_dep,
|
|
|
|
libgio_dep,
|
|
|
|
]
|
2018-06-07 15:50:59 +02:00
|
|
|
|
2018-07-03 17:06:48 +02:00
|
|
|
symbol_map = join_paths(meson.current_source_dir(), 'gfamfilemonitor.map')
|
|
|
|
fam_ldflags = cc.get_supported_link_arguments([
|
|
|
|
'-Wl,--version-script,' + symbol_map,
|
|
|
|
'-Wl,-no-undefined',
|
|
|
|
])
|
2018-06-07 15:50:59 +02:00
|
|
|
|
2018-07-03 17:06:48 +02:00
|
|
|
module = shared_module('giofam', 'gfamfilemonitor.c',
|
|
|
|
include_directories : [gmoduleinc],
|
|
|
|
dependencies : deps,
|
|
|
|
c_args : fam_c_args,
|
|
|
|
link_args : fam_ldflags,
|
|
|
|
link_depends : symbol_map,
|
|
|
|
install_dir : glib_giomodulesdir,
|
|
|
|
install : true,
|
|
|
|
)
|
2018-06-07 15:50:59 +02:00
|
|
|
|
2018-07-03 17:06:48 +02:00
|
|
|
if not meson.is_cross_build()
|
|
|
|
meson.add_install_script('../gio-querymodules-wrapper.py', gio_querymodules.full_path(), glib_giomodulesdir)
|
2018-06-07 15:50:59 +02:00
|
|
|
endif
|