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 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75
|
dbus_sources = gnome.gdbus_codegen(
'gvfsvolumemonitordbus',
'dbus-interfaces.xml',
interface_prefix: 'org.gtk.Private.',
namespace: 'GVfs',
)
sources = files(
'remote-volume-monitor-module.c',
'gproxydrive.c',
'gproxymount.c',
'gproxymountoperation.c',
'gproxyshadowmount.c',
'gproxyvolume.c',
'gproxyvolumemonitor.c',
)
deps = [
gio_unix_dep,
libgvfscommon_dep,
]
cflags = [
'-DG_LOG_DOMAIN="GVFS-RemoteVolumeMonitor"',
'-DGIO_MODULE_DIR="@0@"'.format(gio_giomoduledir),
'-DGVFS_LOCALEDIR="@0@"'.format(gvfs_prefix / gvfs_localedir),
'-DREMOTE_VOLUME_MONITORS_DIR="@0@"'.format(gvfs_prefix / gvfs_remote_volume_monitors_dir),
]
symbol_map = meson.current_source_dir() / 'symbol.map'
ldflags = []
if have_version_script
ldflags += '@0@,@1@'.format(version_script_ldflag, symbol_map)
endif
libgioremote_volume_monitor = shared_module(
'gioremote-volume-monitor',
sources: sources + [dbus_sources],
include_directories: top_inc,
dependencies: deps,
c_args: cflags,
link_args: ldflags,
link_depends: symbol_map,
install: true,
install_rpath: gvfs_rpath,
install_dir: gio_giomoduledir,
)
sources = files('gvfsproxyvolumemonitordaemon.c')
deps = [
gio_dep,
gio_unix_dep,
glib_dep,
]
cflags = [
'-DG_LOG_DOMAIN="GVFS-RemoteVolumeMonitorDaemon"',
'-DGVFS_LOCALEDIR="@0@"'.format(gvfs_prefix / gvfs_localedir),
]
libgvfsproxyvolumemonitordaemon_noin = static_library(
'gvfsproxyvolumemonitordaemon-noin',
sources: sources + [dbus_sources],
include_directories: top_inc,
dependencies: deps,
c_args: cflags,
)
libgvfsproxyvolumemonitordaemon_noin_dep = declare_dependency(
include_directories: '.',
dependencies: gio_dep,
link_with: libgvfsproxyvolumemonitordaemon_noin,
)
|