2016-09-28 06:16:11 +00:00
|
|
|
project ('nautilus', 'c',
|
2017-03-03 13:56:56 +00:00
|
|
|
version: '3.23.91',
|
2016-09-28 06:16:11 +00:00
|
|
|
meson_version: '>=0.37.0',
|
|
|
|
license: 'GPL2+')
|
|
|
|
|
2017-02-27 15:03:05 +00:00
|
|
|
add_global_arguments ('-Wno-deprecated-declarations', language:'c')
|
|
|
|
|
2016-09-28 06:16:11 +00:00
|
|
|
bindir = get_option ('bindir')
|
|
|
|
datadir = get_option ('datadir')
|
|
|
|
appdatadir = join_paths (datadir, 'appdata')
|
|
|
|
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.21.6'
|
|
|
|
xml_ver = '>=2.7.8'
|
|
|
|
exif_ver = '>=0.6.20'
|
|
|
|
exempi_ver = '>=2.1.0'
|
|
|
|
notify_ver = '0.7.0'
|
|
|
|
schemas_ver = '>=3.8.0'
|
2017-03-03 13:47:50 +00:00
|
|
|
autoar_ver = '>=0.2.1'
|
2016-09-28 06:16:11 +00:00
|
|
|
selinux_ver = '>=2.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)
|
|
|
|
|
|
|
|
gail = dependency ('gail-3.0')
|
|
|
|
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)
|
|
|
|
|
|
|
|
libm = cc.find_library ('libm')
|
|
|
|
|
|
|
|
exif = dependency ('libexif',
|
|
|
|
version: exif_ver,
|
|
|
|
required: get_option ('enable-exif'))
|
|
|
|
exempi = dependency ('exempi-2.0',
|
|
|
|
version: exempi_ver,
|
|
|
|
required: get_option ('enable-xmp'))
|
|
|
|
selinux = dependency ('libselinux',
|
|
|
|
version: selinux_ver,
|
|
|
|
required: get_option ('enable-selinux'))
|
|
|
|
|
|
|
|
if get_option ('enable-tracker')
|
|
|
|
tracker_sparql = dependency ('tracker-sparql-1.0')
|
|
|
|
endif
|
|
|
|
|
|
|
|
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-selinux')
|
|
|
|
conf.set10 ('HAVE_SELINUX', true)
|
|
|
|
endif
|
|
|
|
|
|
|
|
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-tracker')
|
|
|
|
conf.set10 ('ENABLE_TRACKER', true)
|
|
|
|
endif
|
|
|
|
|
|
|
|
configure_file (input: 'config.h.meson',
|
|
|
|
output: 'config.h',
|
|
|
|
configuration: conf)
|
|
|
|
|
|
|
|
nautilus_include_dirs = include_directories ('.')
|
|
|
|
|
|
|
|
subdir ('eel')
|
|
|
|
subdir ('libnautilus-extension')
|
|
|
|
|
2017-03-05 19:49:17 +00:00
|
|
|
message ('Checking for libgd…')
|
|
|
|
run_command ('check_libgd.sh')
|
2016-09-28 06:16:11 +00:00
|
|
|
|
|
|
|
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')
|
2017-03-01 16:08:50 +00:00
|
|
|
|
|
|
|
if get_option ('enable-gtk-doc')
|
|
|
|
subdir ('docs')
|
|
|
|
endif
|
2016-09-28 06:16:11 +00:00
|
|
|
|
|
|
|
if get_option ('enable-desktop')
|
|
|
|
subdir ('nautilus-desktop')
|
|
|
|
endif
|
|
|
|
|
|
|
|
if get_option ('enable-nst-extension')
|
|
|
|
subdir ('nautilus-sendto-extension')
|
|
|
|
endif
|