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
|
service = gvfs_namespace + '.Metadata.service'
metadata_service = configure_file(
input: service + '.in',
output: service,
install: true,
install_dir: dbus_service_dir,
configuration: service_conf
)
if install_systemd_user_unit_dir
service = 'gvfs-metadata.service'
configure_file(
input: service + '.in',
output: service,
install: true,
install_dir: systemd_user_unit_dir,
configuration: service_conf
)
endif
metadata_dbus = gnome.gdbus_codegen(
'metadata-dbus',
'dbus-interface.xml',
interface_prefix: gvfs_namespace + '.',
namespace: 'GVfs'
)
sources = files(
'crc32.c',
'metabuilder.c',
'metatree.c'
)
cflags = [
'-DDBUS_API_SUBJECT_TO_CHANGE',
'-DG_LOG_DOMAIN="@0@"'.format(gvfs_name.to_upper()),
'-DGVFS_LOCALEDIR="@0@"'.format(gvfs_localedir)
]
libmetadata = static_library(
'metadata',
sources: sources + [metadata_dbus],
include_directories: [top_inc, common_inc],
dependencies: glib_deps,
c_args: cflags,
pic: true
)
libmetadata_dep = declare_dependency(
sources: metadata_dbus,
link_with: libmetadata,
include_directories: include_directories('.'),
dependencies: glib_deps
)
executable(
'gvfsd-metadata',
'meta-daemon.c',
include_directories: top_inc,
dependencies: [
libgvfscommon_dep,
libmetadata_dep,
libudev_dep
],
c_args: cflags,
install: true,
install_rpath: gvfs_rpath,
install_dir: gvfs_libexecdir
)
if enable_devel_utils
apps = [
'meta-ls',
'meta-get',
'meta-set',
'meta-get-tree'
]
foreach app: apps
executable(
app,
app + '.c',
include_directories: top_inc,
dependencies: [
libgvfscommon_dep,
libmetadata_dep
],
c_args: cflags
)
endforeach
if have_libxml
executable(
'convert-nautilus-metadata',
'metadata-nautilus.c',
include_directories: top_inc,
dependencies: [
libmetadata_dep,
libxml_dep
],
c_args: cflags
)
endif
endif
|