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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
|
common_inc = include_directories('.')
common_cflags = ['-DG_LOG_DOMAIN="@0@"'.format(gvfs_name.to_upper())]
sources = files(
'gmountoperationdbus.c',
'gmountsource.c',
'gmountspec.c',
'gmounttracker.c',
'gvfsdaemonprotocol.c',
'gvfsfileinfo.c',
'gvfsicon.c',
'gvfsmonitorimpl.c',
'gvfsutils.c'
)
# FIXME: Ugly workaround that simulates the generation of
# two different targets.
namespace = 'GVfsDBus'
name = namespace.to_lower()
dbus_sources = custom_target(
name,
input: gvfs_namespace + '.xml',
output: [name + '.c', name + '.h'],
command: [codegen, gvfs_namespace + '.', name, namespace, meson.current_build_dir(), '@INPUT@', '@OUTPUT@']
)
deps = [
gio_dep,
glib_dep,
gobject_dep
]
cflags = common_cflags + ['-DREMOTE_VOLUME_MONITORS_DIR="@0@"'.format(gvfs_remote_volume_monitors_dir)]
libgvfscommon = shared_library(
'gvfscommon',
sources: sources + [dbus_sources],
include_directories: top_inc,
dependencies: deps + [gio_unix_dep],
c_args: cflags,
install: true,
install_dir: gvfs_pkglibdir
)
libgvfscommon_dep = declare_dependency(
sources: dbus_sources[1],
include_directories: common_inc,
dependencies: deps,
link_with: libgvfscommon
)
deps = [
gio_dep,
glib_dep
]
if enable_bluray
deps += libbluray_dep
endif
libgvfscommon_monitor = static_library(
'gvfscommon-monitor',
sources: 'gvfsmountinfo.c',
include_directories: top_inc,
dependencies: deps,
c_args: common_cflags,
link_with: libgvfscommon
)
libgvfscommon_monitor_dep = declare_dependency(
include_directories: common_inc,
dependencies: gio_dep,
link_with: libgvfscommon_monitor
)
if enable_dnssd
sources = files(
'gvfsdnssdresolver.c',
'gvfsdnssdutils.c'
)
deps = [
avahi_client_dep,
avahi_glib_dep,
gio_dep,
glib_dep
]
libgvfscommon_dnssd = static_library(
'gvfscommon-dnssd',
sources: sources,
include_directories: top_inc,
dependencies: deps,
c_args: common_cflags,
link_with: libgvfscommon
)
libgvfscommon_dnssd_dep = declare_dependency(
include_directories: common_inc,
dependencies: gio_dep,
link_with: libgvfscommon_dnssd
)
endif
if enable_mtp or enable_gphoto2
deps = [
glib_dep,
gudev_dep
]
libgvfscommon_gphoto2 = static_library(
'gvfscommon-gphoto2',
sources: 'gvfsgphoto2utils.c',
include_directories: top_inc,
dependencies: deps
)
libgvfscommon_gphoto2_dep = declare_dependency(
include_directories: common_inc,
dependencies: deps,
link_with: libgvfscommon_gphoto2
)
endif
|