-
Notifications
You must be signed in to change notification settings - Fork 0
/
meson.build
134 lines (106 loc) · 4.11 KB
/
meson.build
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
126
127
128
129
130
131
132
133
134
project ('nautilus', 'c',
version: '3.26.4',
meson_version: '>=0.40.0',
license: 'GPL3+')
add_global_arguments ('-Wno-deprecated-declarations', language:'c')
bindir = get_option ('bindir')
datadir = get_option ('datadir')
appdatadir = join_paths (datadir, 'metainfo')
desktopdir = join_paths (datadir, 'applications')
icondir = join_paths (datadir, 'icons')
includedir = get_option ('includedir')
libdir = get_option ('libdir')
extensiondir = join_paths (libdir, 'nautilus', 'extensions-3.0')
localedir = get_option ('localedir')
prefix = get_option ('prefix')
schemadir = join_paths (datadir, 'glib-2.0', 'schemas')
searchproviderdir = join_paths (datadir, 'gnome-shell', 'search-providers')
servicedir = join_paths (datadir, 'dbus-1', 'services')
sysconfdir = get_option ('sysconfdir')
glib_ver = '>=2.51.2'
gnome_desktop_ver = '>=3.0.0'
pango_ver = '1.28.3'
gtk_ver = '>=3.22.6'
xml_ver = '>=2.7.8'
notify_ver = '0.7.0'
schemas_ver = '>=3.8.0'
autoar_ver = '>=0.2.1'
unity_ver = '>=4.0.0'
dbusmenu_ver = '>=0.4.90'
selinux_ver = '>=2.0'
gexiv2_ver = '>= 0.10.0'
libunity_settings_daemon_ver = '>=1.0'
unity_settings_daemon_ver = '>=1.0'
cc = meson.get_compiler ('c')
gnome = import ('gnome')
i18n = import ('i18n')
glib = dependency ('glib-2.0', version: glib_ver)
gtk = dependency ('gtk+-3.0', version: gtk_ver)
autoar = dependency ('gnome-autoar-0', version: autoar_ver)
gnome_desktop = dependency ('gnome-desktop-3.0', version: gnome_desktop_ver)
xml = dependency ('libxml-2.0', version: xml_ver)
x11 = dependency ('x11')
gthread = dependency ('gthread-2.0', version: glib_ver)
gmodule_no_export = dependency ('gmodule-no-export-2.0', version: glib_ver)
gio = dependency ('gio-2.0', version: glib_ver)
gio_unix = dependency ('gio-unix-2.0', version: glib_ver)
gsettings_desktop_schemas = dependency ('gsettings-desktop-schemas',
version: schemas_ver)
gexiv2 = dependency('gexiv2', version : gexiv2_ver)
zeitgeist = dependency ('zeitgeist-2.0')
libunity_settings_daemon = dependency ('libunity-settings-daemon', version: libunity_settings_daemon_ver)
unity_settings_daemon = dependency ('unity-settings-daemon', version: unity_settings_daemon_ver)
libm = cc.find_library ('libm')
conf = configuration_data ()
conf.set_quoted ('VERSION', meson.project_version ())
conf.set_quoted ('PACKAGE_VERSION', meson.project_version ())
conf.set_quoted ('GETTEXT_PACKAGE', 'nautilus')
conf.set_quoted ('LOCALEDIR', join_paths (prefix, localedir))
conf.set_quoted ('NAUTILUS_DATADIR', join_paths (datadir, 'nautilus'))
conf.set_quoted ('NAUTILUS_EXTENSIONDIR', join_paths (prefix, extensiondir))
if get_option ('enable-desktop')
conf.set10 ('ENABLE_DESKTOP', true)
endif
if get_option ('enable-packagekit')
conf.set10 ('ENABLE_PACKAGEKIT', true)
endif
if get_option ('enable-selinux')
selinux = dependency ('libselinux', version: selinux_ver)
conf.set10 ('HAVE_SELINUX', true)
endif
if get_option ('enable-unity')
unity = dependency ('unity', version: unity_ver)
dbusmenu = dependency ('dbusmenu-glib-0.4', version: dbusmenu_ver)
conf.set10 ('HAVE_UNITY', true)
endif
tracker_sparql = dependency ('tracker-sparql-2.0', required: false)
if not tracker_sparql.found()
tracker_sparql = dependency ('tracker-sparql-1.0')
endif
configure_file (input: 'config.h.meson',
output: 'config.h',
configuration: conf)
nautilus_include_dirs = include_directories ('.')
subdir ('eel')
subdir ('libnautilus-extension')
libgd_options = ['static=true',
'with-gtk-hacks=true',
'with-main-view=true',
'with-tagged-entry=true']
libgd = subproject('libgd', default_options: libgd_options)
libgd_dep = libgd.get_variable ('libgd_dep')
subdir ('src')
subdir ('test')
subdir ('data')
subdir ('po')
if get_option ('enable-gtk-doc')
subdir ('docs')
endif
if get_option ('enable-desktop')
subdir ('nautilus-desktop')
endif
if get_option ('enable-nst-extension')
subdir ('nautilus-sendto-extension')
endif
# Compile GSettings schemas when installing from source.
meson.add_install_script ('build-aux/meson/postinstall.py')