summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config.h.meson9
-rw-r--r--data/icons/meson.build2
-rw-r--r--data/meson.build156
-rw-r--r--docs/meson.build4
-rw-r--r--docs/reference/libnautilus-extension/meson.build32
-rw-r--r--docs/reference/meson.build2
-rw-r--r--eel/meson.build96
-rw-r--r--libnautilus-extension/meson.build124
-rw-r--r--meson.build194
-rw-r--r--meson_options.txt20
-rw-r--r--nautilus-sendto-extension/meson.build18
-rw-r--r--po/meson.build2
-rw-r--r--src/meson.build614
-rw-r--r--test/meson.build49
14 files changed, 700 insertions, 622 deletions
diff --git a/config.h.meson b/config.h.meson
deleted file mode 100644
index f1c420bb6..000000000
--- a/config.h.meson
+++ /dev/null
@@ -1,9 +0,0 @@
-#mesondefine VERSION
-#mesondefine PACKAGE_VERSION
-#mesondefine GETTEXT_PACKAGE
-#mesondefine HAVE_EXEMPI
-#mesondefine HAVE_SELINUX
-#mesondefine ENABLE_PACKAGEKIT
-#mesondefine LOCALEDIR
-#mesondefine NAUTILUS_DATADIR
-#mesondefine NAUTILUS_EXTENSIONDIR
diff --git a/data/icons/meson.build b/data/icons/meson.build
deleted file mode 100644
index 9a918f414..000000000
--- a/data/icons/meson.build
+++ /dev/null
@@ -1,2 +0,0 @@
-install_subdir ('hicolor',
- install_dir: icondir)
diff --git a/data/meson.build b/data/meson.build
index e185428f4..00a451fc9 100644
--- a/data/meson.build
+++ b/data/meson.build
@@ -1,63 +1,99 @@
-subdir ('icons')
-
-po_dir = join_paths (meson.source_root (), 'po')
-
-line_up_parameters = executable ('lineup-parameters',
- 'lineup-parameters.c',
- dependencies: [gio, gio_unix])
-
-desktop = i18n.merge_file ('desktop',
- input: 'org.gnome.Nautilus.desktop.in',
- output: 'org.gnome.Nautilus.desktop',
- install: true,
- install_dir: desktopdir,
- po_dir: po_dir,
- type: 'desktop')
-
-desktop_autorun_software = i18n.merge_file ('desktop-autorun-software',
- input: 'nautilus-autorun-software.desktop.in',
- output: 'nautilus-autorun-software.desktop',
- install: true,
- install_dir: desktopdir,
- po_dir: po_dir,
- type: 'desktop')
-
-appdata = i18n.merge_file ('appdata',
- input: 'org.gnome.Nautilus.appdata.xml.in',
- output: 'org.gnome.Nautilus.appdata.xml',
- install: true,
- install_dir: appdatadir,
- po_dir: po_dir,)
-
-service_conf = configuration_data ()
-service_conf.set ('bindir', join_paths (prefix, bindir))
-
-configure_file (input: 'org.gnome.Nautilus.service.in',
- output: 'org.gnome.Nautilus.service',
- configuration: service_conf,
- install_dir: servicedir)
-
-configure_file (input: 'org.freedesktop.FileManager1.service.in',
- output: 'org.freedesktop.FileManager1.service',
- configuration: service_conf,
- install_dir: servicedir)
-
-install_data ('nautilus-search-provider.ini',
- install_dir: searchproviderdir)
-
-install_data ('org.gnome.nautilus.gschema.xml',
- install_dir: schemadir)
-
-desktop_file_validate = find_program ('desktop-file-validate', required: false)
-if desktop_file_validate.found ()
- test ('validate-desktop', desktop_file_validate,
- args: [desktop.full_path ()])
- test ('validate-desktop-autorun-software', desktop_file_validate,
- args: [desktop_autorun_software.full_path ()])
+install_subdir(
+ join_paths('icons', 'hicolor'),
+ install_dir: join_paths(datadir, 'icons')
+)
+
+po_dir = join_paths(meson.source_root(), 'po')
+
+line_up_parameters = executable(
+ 'lineup-parameters',
+ 'lineup-parameters.c',
+ dependencies: [
+ gio,
+ gio_unix,
+ ]
+)
+
+desktop = i18n.merge_file(
+ 'desktop',
+ input: 'org.gnome.Nautilus.desktop.in',
+ output: 'org.gnome.Nautilus.desktop',
+ install: true,
+ install_dir: desktopdir,
+ po_dir: po_dir,
+ type: 'desktop'
+)
+
+desktop_autorun_software = i18n.merge_file(
+ 'desktop-autorun-software',
+ input: 'nautilus-autorun-software.desktop.in',
+ output: 'nautilus-autorun-software.desktop',
+ install: true,
+ install_dir: desktopdir,
+ po_dir: po_dir,
+ type: 'desktop'
+)
+
+appdata = i18n.merge_file(
+ 'appdata',
+ input: 'org.gnome.Nautilus.appdata.xml.in',
+ output: 'org.gnome.Nautilus.appdata.xml',
+ install: true,
+ install_dir: join_paths(datadir, 'appdata'),
+ po_dir: po_dir
+)
+
+service_conf = configuration_data()
+service_conf.set('bindir', join_paths(prefix, bindir))
+
+configure_file(
+ input: 'org.gnome.Nautilus.service.in',
+ output: 'org.gnome.Nautilus.service',
+ configuration: service_conf,
+ install_dir: servicedir
+)
+
+configure_file(
+ input: 'org.freedesktop.FileManager1.service.in',
+ output: 'org.freedesktop.FileManager1.service',
+ configuration: service_conf,
+ install_dir: servicedir
+)
+
+install_data(
+ 'nautilus-search-provider.ini',
+ install_dir: join_paths(datadir, 'gnome-shell', 'search-providers')
+)
+
+install_data(
+ 'org.gnome.nautilus.gschema.xml',
+ install_dir: join_paths(datadir, 'glib-2.0', 'schemas')
+)
+
+desktop_file_validate = find_program('desktop-file-validate', required: false)
+if desktop_file_validate.found()
+ test(
+ 'validate-desktop',
+ desktop_file_validate,
+ args: [
+ desktop.full_path()
+ ]
+ )
+ test(
+ 'validate-desktop-autorun-software',
+ desktop_file_validate,
+ args: [
+ desktop_autorun_software.full_path()
+ ]
+ )
endif
-appstream_util = find_program ('appstream-util', required: false)
-if appstream_util.found ()
- test ('validate-appdata', appstream_util,
- args: ['validate-relax', appdata.full_path ()])
+appstream_util = find_program('appstream-util', required: false)
+if appstream_util.found()
+ test(
+ 'validate-appdata', appstream_util,
+ args: [
+ 'validate-relax', appdata.full_path()
+ ]
+ )
endif
diff --git a/docs/meson.build b/docs/meson.build
index 036ecd4d8..b039cb631 100644
--- a/docs/meson.build
+++ b/docs/meson.build
@@ -1,3 +1,3 @@
-install_man ('nautilus.1')
+install_man('nautilus.1')
-subdir ('reference')
+subdir('reference')
diff --git a/docs/reference/libnautilus-extension/meson.build b/docs/reference/libnautilus-extension/meson.build
index 2921cb9ac..151c857af 100644
--- a/docs/reference/libnautilus-extension/meson.build
+++ b/docs/reference/libnautilus-extension/meson.build
@@ -1,15 +1,21 @@
-docs_conf = configuration_data ()
-docs_conf.set ('NAUTILUS_EXTENSION_VERSION_INFO', nautilus_extension_version)
+docs_conf = configuration_data()
+docs_conf.set('NAUTILUS_EXTENSION_VERSION_INFO', nautilus_extension_version)
-docs_version = configure_file (input: 'version.xml.in',
- output: 'version.xml',
- configuration: docs_conf)
+configure_file(
+ input: 'version.xml.in',
+ output: 'version.xml',
+ configuration: docs_conf
+)
-gnome.gtkdoc ('libnautilus-extension',
- main_xml: 'libnautilus-extension-docs.xml',
- src_dir: join_paths (meson.source_root (), 'libnautilus-extension'),
- dependencies: nautilus_extension,
- gobject_typesfile: 'libnautilus-extension.types',
- install: true,
- scan_args: ['--ignore-headers=nautilus-extension-private.h',
- '--rebuild-types'])
+gnome.gtkdoc(
+ 'libnautilus-extension',
+ main_xml: 'libnautilus-extension-docs.xml',
+ src_dir: join_paths(meson.source_root(), 'libnautilus-extension'),
+ dependencies: nautilus_extension,
+ gobject_typesfile: 'libnautilus-extension.types',
+ install: true,
+ scan_args: [
+ '--ignore-headers=nautilus-extension-private.h',
+ '--rebuild-types'
+ ]
+)
diff --git a/docs/reference/meson.build b/docs/reference/meson.build
index 46b538208..a352d2680 100644
--- a/docs/reference/meson.build
+++ b/docs/reference/meson.build
@@ -1 +1 @@
-subdir ('libnautilus-extension')
+subdir('libnautilus-extension')
diff --git a/eel/meson.build b/eel/meson.build
index ac2edeabc..c8e76cede 100644
--- a/eel/meson.build
+++ b/eel/meson.build
@@ -1,47 +1,63 @@
libeel_2_sources = [
- 'eel-accessibility.h',
- 'eel-accessibility.c',
- 'eel-art-extensions.h',
- 'eel-art-extensions.c',
- 'eel-canvas.h',
- 'eel-canvas.c',
- 'eel-debug.h',
- 'eel-debug.c',
- 'eel-gdk-extensions.h',
- 'eel-gdk-extensions.c',
- 'eel-glib-extensions.h',
- 'eel-glib-extensions.c',
- 'eel-gnome-extensions.h',
- 'eel-gnome-extensions.c',
- 'eel-graphic-effects.h',
- 'eel-graphic-effects.c',
- 'eel-gtk-extensions.h',
- 'eel-self-checks.h',
- 'eel-self-checks.c',
- 'eel-stock-dialogs.h',
- 'eel-stock-dialogs.c',
- 'eel-string.h',
- 'eel-string.c',
- 'eel-vfs-extensions.h',
- 'eel-vfs-extensions.c',
- 'eel.h',
- 'eel-gtk-extensions.c',
- 'eel-lib-self-check-functions.h',
- 'eel-lib-self-check-functions.c',
+ 'eel-accessibility.h',
+ 'eel-accessibility.c',
+ 'eel-art-extensions.h',
+ 'eel-art-extensions.c',
+ 'eel-canvas.h',
+ 'eel-canvas.c',
+ 'eel-debug.h',
+ 'eel-debug.c',
+ 'eel-gdk-extensions.h',
+ 'eel-gdk-extensions.c',
+ 'eel-glib-extensions.h',
+ 'eel-glib-extensions.c',
+ 'eel-gnome-extensions.h',
+ 'eel-gnome-extensions.c',
+ 'eel-graphic-effects.h',
+ 'eel-graphic-effects.c',
+ 'eel-gtk-extensions.h',
+ 'eel-self-checks.h',
+ 'eel-self-checks.c',
+ 'eel-stock-dialogs.h',
+ 'eel-stock-dialogs.c',
+ 'eel-string.h',
+ 'eel-string.c',
+ 'eel-vfs-extensions.h',
+ 'eel-vfs-extensions.c',
+ 'eel.h',
+ 'eel-gtk-extensions.c',
+ 'eel-lib-self-check-functions.h',
+ 'eel-lib-self-check-functions.c',
]
-libeel_2_deps = [glib, gtk, gail, libm, x11]
+libeel_2_deps = [
+ gail,
+ glib,
+ gtk,
+ libm,
+ x11
+]
-libeel_2 = static_library ('eel-2', libeel_2_sources,
- dependencies: libeel_2_deps,
- include_directories: nautilus_include_dirs)
+libeel_2 = static_library(
+ 'eel-2',
+ libeel_2_sources,
+ dependencies: libeel_2_deps,
+ include_directories: nautilus_include_dirs
+)
-eel_2 = declare_dependency (link_with: libeel_2,
- include_directories: nautilus_include_dirs,
- dependencies: libeel_2_deps)
+eel_2 = declare_dependency(
+ link_with: libeel_2,
+ include_directories: nautilus_include_dirs,
+ dependencies: libeel_2_deps
+)
-check_eel = executable ('check-eel',
- 'check-program.c',
- dependencies: [eel_2, xml])
+check_eel = executable(
+ 'check-eel',
+ 'check-program.c',
+ dependencies: [
+ eel_2,
+ xml
+ ]
+)
-test ('check-eel', check_eel)
+test('check-eel', check_eel)
diff --git a/libnautilus-extension/meson.build b/libnautilus-extension/meson.build
index 067ad2414..0f63f9bf8 100644
--- a/libnautilus-extension/meson.build
+++ b/libnautilus-extension/meson.build
@@ -1,67 +1,87 @@
nautilus_extension_version = '1.4.0'
libnautilus_extension_headers = [
- 'nautilus-column-provider.h',
- 'nautilus-column.h',
- 'nautilus-extension-types.h',
- 'nautilus-file-info.h',
- 'nautilus-info-provider.h',
- 'nautilus-location-widget-provider.h',
- 'nautilus-menu-item.h',
- 'nautilus-menu-provider.h',
- 'nautilus-property-page-provider.h',
- 'nautilus-property-page.h',
- 'nautilus-menu.h'
+ 'nautilus-column-provider.h',
+ 'nautilus-column.h',
+ 'nautilus-extension-types.h',
+ 'nautilus-file-info.h',
+ 'nautilus-info-provider.h',
+ 'nautilus-location-widget-provider.h',
+ 'nautilus-menu-item.h',
+ 'nautilus-menu-provider.h',
+ 'nautilus-property-page-provider.h',
+ 'nautilus-property-page.h',
+ 'nautilus-menu.h'
]
-install_headers (libnautilus_extension_headers,
- subdir: join_paths ('nautilus', 'libnautilus-extension'))
+install_headers(
+ libnautilus_extension_headers,
+ subdir: join_paths('nautilus', 'libnautilus-extension')
+)
libnautilus_extension_sources = [
- 'nautilus-column-provider.c',
- 'nautilus-column.c',
- 'nautilus-extension-types.c',
- 'nautilus-extension-private.h',
- 'nautilus-file-info.c',
- 'nautilus-info-provider.c',
- 'nautilus-location-widget-provider.c',
- 'nautilus-menu-item.c',
- 'nautilus-menu-provider.c',
- 'nautilus-property-page-provider.c',
- 'nautilus-property-page.c',
- 'nautilus-menu.c'
+ 'nautilus-column-provider.c',
+ 'nautilus-column.c',
+ 'nautilus-extension-types.c',
+ 'nautilus-extension-private.h',
+ 'nautilus-file-info.c',
+ 'nautilus-info-provider.c',
+ 'nautilus-location-widget-provider.c',
+ 'nautilus-menu-item.c',
+ 'nautilus-menu-provider.c',
+ 'nautilus-property-page-provider.c',
+ 'nautilus-property-page.c',
+ 'nautilus-menu.c'
]
-libnautilus_extension_deps = [glib, gtk]
+libnautilus_extension_deps = [
+ glib,
+ gtk
+]
-libnautilus_extension = shared_library ('nautilus-extension',
- libnautilus_extension_sources,
- dependencies: libnautilus_extension_deps,
- include_directories: nautilus_include_dirs,
- version: nautilus_extension_version,
- install: true)
+libnautilus_extension = shared_library(
+ 'nautilus-extension',
+ libnautilus_extension_sources,
+ dependencies: libnautilus_extension_deps,
+ include_directories: nautilus_include_dirs,
+ version: nautilus_extension_version,
+ install: true
+)
-gnome.generate_gir (libnautilus_extension,
- sources: libnautilus_extension_headers + libnautilus_extension_sources,
- nsversion: '3.0',
- namespace: 'Nautilus',
- includes: ['Gtk-3.0', 'Gio-2.0', 'GLib-2.0'],
- install: true)
+gnome.generate_gir(
+ libnautilus_extension,
+ sources: [
+ libnautilus_extension_headers,
+ libnautilus_extension_sources
+ ],
+ nsversion: '3.0',
+ namespace: 'Nautilus',
+ includes: [
+ 'Gtk-3.0',
+ 'Gio-2.0',
+ 'GLib-2.0'
+ ],
+ install: true
+)
-nautilus_extension = declare_dependency (link_with: libnautilus_extension,
- dependencies: libnautilus_extension_deps,
- include_directories: nautilus_include_dirs)
+nautilus_extension = declare_dependency(
+ link_with: libnautilus_extension,
+ dependencies: libnautilus_extension_deps,
+ include_directories: nautilus_include_dirs
+)
-pkgconfig_data = configuration_data ()
+pkgconfig_data = configuration_data()
-pkgconfig_data.set ('prefix', prefix)
-pkgconfig_data.set ('exec_prefix', '${prefix}')
-pkgconfig_data.set ('libdir', join_paths ('${exec_prefix}', libdir))
-pkgconfig_data.set ('includedir', join_paths ('${prefix}', includedir))
-pkgconfig_data.set ('extensiondir', join_paths ('${exec_prefix}', extensiondir))
-pkgconfig_data.set ('VERSION', meson.project_version ())
+pkgconfig_data.set('prefix', prefix)
+pkgconfig_data.set('exec_prefix', '${prefix}')
+pkgconfig_data.set('libdir', join_paths('${exec_prefix}', libdir))
+pkgconfig_data.set('includedir', join_paths('${prefix}', includedir))
+pkgconfig_data.set('extensiondir', join_paths('${exec_prefix}', extensiondir))
+pkgconfig_data.set('VERSION', meson.project_version())
-configure_file (input: 'libnautilus-extension.pc.in',
- output: 'libnautilus-extension.pc',
- configuration: pkgconfig_data,
- install_dir: join_paths (libdir, 'pkgconfig'))
+configure_file(
+ input: 'libnautilus-extension.pc.in',
+ output: 'libnautilus-extension.pc',
+ configuration: pkgconfig_data,
+ install_dir: join_paths(libdir, 'pkgconfig')
+)
diff --git a/meson.build b/meson.build
index fbc57b034..df05c022b 100644
--- a/meson.build
+++ b/meson.build
@@ -1,110 +1,106 @@
-project ('nautilus', 'c',
- version: '3.27.2',
- 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.26'
-xml_ver = '>=2.7.8'
-notify_ver = '0.7.0'
-schemas_ver = '>=3.8.0'
-autoar_ver = '>=0.2.1'
-selinux_ver = '>=2.0'
-gexiv2_ver = '>= 0.10.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)
-gexiv2 = dependency('gexiv2', version : gexiv2_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-packagekit')
- conf.set10 ('ENABLE_PACKAGEKIT', true)
+project('nautilus', 'c',
+ version: '3.27.2',
+ meson_version: '>= 0.44.0',
+ license: 'GPL3+'
+)
+
+add_global_arguments('-Wno-deprecated-declarations', language: 'c')
+
+# Directory variables
+bindir = get_option('bindir')
+datadir = get_option('datadir')
+desktopdir = join_paths(datadir, 'applications')
+includedir = get_option('includedir')
+libdir = get_option('libdir')
+extensiondir = join_paths(libdir, 'nautilus', 'extensions-3.0')
+prefix = get_option('prefix')
+servicedir = join_paths(datadir, 'dbus-1', 'services')
+#
+
+# Compiler variables
+cc = meson.get_compiler('c')
+#
+
+# Imports
+gnome = import('gnome')
+i18n = import('i18n')
+#
+
+# Dependencies
+glib_ver = '>= 2.51.2'
+
+libgd = subproject(
+ 'libgd',
+ default_options: [
+ 'static=true',
+ 'with-gtk-hacks=true',
+ 'with-main-view=true',
+ 'with-tagged-entry=true'
+ ]
+)
+libgd_dep = libgd.get_variable('libgd_dep')
+
+libm = cc.find_library('libm')
+
+gail = dependency('gail-3.0')
+gexiv = dependency('gexiv2', version: '>= 0.10.0')
+gio = dependency('gio-2.0', version: glib_ver)
+gio_unix = dependency('gio-unix-2.0', version: glib_ver)
+glib = dependency('glib-2.0', version: glib_ver)
+gmodule = dependency('gmodule-no-export-2.0', version: glib_ver)
+gnome_autoar = dependency('gnome-autoar-0', version: '>= 0.2.1')
+gnome_desktop = dependency('gnome-desktop-3.0', version: '>= 3.0.0')
+gtk = dependency('gtk+-3.0', version: '>= 3.22.26')
+selinux = disabler()
+if get_option('selinux')
+ selinux = dependency('libselinux', version: '>= 2.0')
endif
-
-if get_option ('enable-selinux')
- selinux = dependency ('libselinux', version: selinux_ver)
- conf.set10 ('HAVE_SELINUX', true)
-endif
-
-tracker_sparql = dependency ('tracker-sparql-2.0', required: false)
+tracker_sparql = dependency('tracker-sparql-2.0', required: false)
if not tracker_sparql.found()
- tracker_sparql = dependency ('tracker-sparql-1.0')
+ tracker_sparql = dependency('tracker-sparql-1.0')
+endif
+x11 = dependency('x11')
+xml = dependency('libxml-2.0', version: '>= 2.7.8')
+#
+
+# Configuration
+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, get_option('localedir')))
+conf.set_quoted('NAUTILUS_DATADIR', join_paths(datadir, 'nautilus'))
+conf.set_quoted('NAUTILUS_EXTENSIONDIR', join_paths(prefix, extensiondir))
+
+if get_option('packagekit')
+ conf.set10('ENABLE_PACKAGEKIT', true)
+endif
+if get_option('profiling')
+ conf.set10('ENABLE_PROFILING', true)
+endif
+if get_option('selinux')
+ conf.set10('HAVE_SELINUX', true)
endif
-configure_file (input: 'config.h.meson',
- output: 'config.h',
- configuration: conf)
-
-nautilus_include_dirs = include_directories ('.')
-
-subdir ('eel')
-subdir ('libnautilus-extension')
+configure_file(output: 'config.h', configuration: conf)
+#
-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')
+nautilus_include_dirs = include_directories('.')
-subdir ('src')
-subdir ('test')
-subdir ('data')
-subdir ('po')
+subdir('eel')
+subdir('libnautilus-extension')
-if get_option ('enable-gtk-doc')
- subdir ('docs')
+subdir('src')
+subdir('test')
+subdir('data')
+subdir('po')
+if get_option('docs')
+ subdir('docs')
endif
-
-if get_option ('enable-nst-extension')
- subdir ('nautilus-sendto-extension')
+if get_option('nst_extension')
+ subdir('nautilus-sendto-extension')
endif
# Compile GSettings schemas when installing from source.
-meson.add_install_script ('build-aux/meson/postinstall.py')
+meson.add_install_script('build-aux/meson/postinstall.py')
diff --git a/meson_options.txt b/meson_options.txt
index 21bc5db45..7fb56036c 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -1,15 +1,5 @@
-option ('enable-profiling',
- type: 'boolean',
- value: false)
-option ('enable-nst-extension',
- type: 'boolean',
- value: true)
-option ('enable-selinux',
- type: 'boolean',
- value: true)
-option ('enable-packagekit',
- type: 'boolean',
- value: true)
-option ('enable-gtk-doc',
- type: 'boolean',
- value: false)
+option('docs', type: 'boolean', value: false)
+option('profiling', type: 'boolean', value: false)
+option('nst_extension', type: 'boolean', value: true)
+option('packagekit', type: 'boolean', value: true)
+option('selinux', type: 'boolean', value: true)
diff --git a/nautilus-sendto-extension/meson.build b/nautilus-sendto-extension/meson.build
index 4464625c0..fde884785 100644
--- a/nautilus-sendto-extension/meson.build
+++ b/nautilus-sendto-extension/meson.build
@@ -1,11 +1,13 @@
libnautilus_sendto_sources = [
- 'nautilus-nste.c',
- 'nautilus-nste.h',
- 'nautilus-sendto-module.c'
+ 'nautilus-nste.c',
+ 'nautilus-nste.h',
+ 'nautilus-sendto-module.c'
]
-libnautilus_sendto = shared_library ('nautilus-sendto',
- libnautilus_sendto_sources,
- dependencies: nautilus_extension,
- install: true,
- install_dir: extensiondir)
+libnautilus_sendto = shared_library(
+ 'nautilus-sendto',
+ libnautilus_sendto_sources,
+ dependencies: nautilus_extension,
+ install: true,
+ install_dir: extensiondir
+)
diff --git a/po/meson.build b/po/meson.build
index db69be1c0..b1b7d9d84 100644
--- a/po/meson.build
+++ b/po/meson.build
@@ -1 +1 @@
-i18n.gettext ('nautilus', preset: 'glib')
+i18n.gettext('nautilus', preset: 'glib')
diff --git a/src/meson.build b/src/meson.build
index 801f1845d..3a381a989 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -1,306 +1,328 @@
-gdbus_sources = []
-enums = []
-
-gdbus_sources += gnome.gdbus_codegen ('nautilus-freedesktop-generated',
- join_paths (meson.source_root (), 'data', 'freedesktop-dbus-interfaces.xml'),
- interface_prefix: 'org.freedesktop',
- namespace: 'NautilusFreedesktop')
-
-gdbus_sources += gnome.gdbus_codegen ('nautilus-generated',
- join_paths (meson.source_root (), 'data', 'dbus-interfaces.xml'),
- interface_prefix: 'org.gnome.Nautilus',
- namespace: 'NautilusDBus')
-
-gdbus_sources += gnome.gdbus_codegen ('nautilus-shell-search-provider-generated',
- join_paths (meson.source_root (), 'data', 'shell-search-provider-dbus-interfaces.xml'),
- interface_prefix: 'org.gnome',
- namespace: 'Nautilus')
-
-enum_headers = [
- 'nautilus-search-popover.h',
- 'nautilus-special-location-bar.h',
- 'nautilus-query.h',
- 'nautilus-search-provider.h'
-]
-
-enums += gnome.mkenums ('nautilus-enum-types',
- c_template: 'nautilus-enum-types.c.template',
- h_template: 'nautilus-enum-types.h.template',
- sources: enum_headers)
-
-resources = gnome.compile_resources ('nautilus-resources',
- 'resources/nautilus.gresource.xml',
- source_dir: 'resources',
- c_name: 'nautilus',
- extra_args: '--manual-register')
-
libnautilus_sources = [
- enums,
- gdbus_sources,
- resources,
- 'animation/egg-animation.c',
- 'animation/egg-animation.h',
- 'animation/egg-frame-source.c',
- 'animation/egg-frame-source.h',
- 'animation/ide-box-theatric.c',
- 'animation/ide-box-theatric.h',
- 'animation/ide-cairo.c',
- 'animation/ide-cairo.h',
- 'gtk/nautilusgtkplacesview.c',
- 'gtk/nautilusgtkplacesviewprivate.h',
- 'gtk/nautilusgtkplacesviewrow.c',
- 'gtk/nautilusgtkplacesviewrowprivate.h',
- 'nautilus-application.c',
- 'nautilus-application.h',
- 'nautilus-bookmark-list.c',
- 'nautilus-bookmark-list.h',
- 'nautilus-canvas-view.c',
- 'nautilus-canvas-view.h',
- 'nautilus-canvas-view-container.c',
- 'nautilus-canvas-view-container.h',
- 'nautilus-container-max-width.c',
- 'nautilus-container-max-width.h',
- 'nautilus-dbus-manager.c',
- 'nautilus-dbus-manager.h',
- 'nautilus-desktop-item-properties.c',
- 'nautilus-desktop-item-properties.h',
- 'nautilus-error-reporting.c',
- 'nautilus-error-reporting.h',
- 'nautilus-preferences-window.c',
- 'nautilus-preferences-window.h',
- 'nautilus-files-view.c',
- 'nautilus-files-view.h',
- 'nautilus-files-view-dnd.c',
- 'nautilus-files-view-dnd.h',
- 'nautilus-floating-bar.c',
- 'nautilus-floating-bar.h',
- 'nautilus-freedesktop-dbus.c',
- 'nautilus-freedesktop-dbus.h',
- 'nautilus-image-properties-page.c',
- 'nautilus-image-properties-page.h',
- 'nautilus-list-model.c',
- 'nautilus-list-model.h',
- 'nautilus-list-view.c',
- 'nautilus-list-view.h',
- 'nautilus-list-view-private.h',
- 'nautilus-list-view-dnd.c',
- 'nautilus-list-view-dnd.h',
- 'nautilus-location-entry.c',
- 'nautilus-location-entry.h',
- 'nautilus-mime-actions.c',
- 'nautilus-mime-actions.h',
- 'nautilus-notebook.c',
- 'nautilus-notebook.h',
- 'nautilus-other-locations-window-slot.c',
- 'nautilus-other-locations-window-slot.h',
- 'nautilus-pathbar.c',
- 'nautilus-pathbar.h',
- 'nautilus-places-view.c',
- 'nautilus-places-view.h',
- 'nautilus-previewer.c',
- 'nautilus-previewer.h',
- 'nautilus-progress-info-widget.c',
- 'nautilus-progress-info-widget.h',
- 'nautilus-progress-persistence-handler.c',
- 'nautilus-progress-persistence-handler.h',
- 'nautilus-properties-window.c',
- 'nautilus-properties-window.h',
- 'nautilus-query-editor.c',
- 'nautilus-query-editor.h',
- 'nautilus-search-popover.c',
- 'nautilus-self-check-functions.c',
- 'nautilus-self-check-functions.h',
- 'nautilus-shell-search-provider.c',
- 'nautilus-special-location-bar.c',
- 'nautilus-toolbar.c',
- 'nautilus-toolbar.h',
- 'nautilus-toolbar-menu-sections.h',
- 'nautilus-trash-bar.c',
- 'nautilus-trash-bar.h',
- 'nautilus-view.c',
- 'nautilus-view.h',
- 'nautilus-view-icon-controller.c',
- 'nautilus-view-icon-controller.h',
- 'nautilus-view-icon-item-ui.c',
- 'nautilus-view-icon-item-ui.h',
- 'nautilus-view-icon-ui.c',
- 'nautilus-view-icon-ui.h',
- 'nautilus-view-item-model.c',
- 'nautilus-view-item-model.h',
- 'nautilus-view-model.c',
- 'nautilus-view-model.h',
- 'nautilus-window-slot.c',
- 'nautilus-window-slot.h',
- 'nautilus-window-slot-dnd.c',
- 'nautilus-window-slot-dnd.h',
- 'nautilus-window.c',
- 'nautilus-window.h',
- 'nautilus-x-content-bar.c',
- 'nautilus-x-content-bar.h',
- 'nautilus-bookmark.c',
- 'nautilus-bookmark.h',
- 'nautilus-canvas-container.c',
- 'nautilus-canvas-container.h',
- 'nautilus-canvas-dnd.c',
- 'nautilus-canvas-dnd.h',
- 'nautilus-canvas-item.c',
- 'nautilus-canvas-item.h',
- 'nautilus-canvas-private.h',
- 'nautilus-clipboard.c',
- 'nautilus-clipboard.h',
- 'nautilus-column-chooser.c',
- 'nautilus-column-chooser.h',
- 'nautilus-column-utilities.c',
- 'nautilus-column-utilities.h',
- 'nautilus-debug.c',
- 'nautilus-debug.h',
- 'nautilus-directory-async.c',
- 'nautilus-directory-notify.h',
- 'nautilus-directory-private.h',
- 'nautilus-directory.c',
- 'nautilus-directory.h',
- 'nautilus-dnd.c',
- 'nautilus-dnd.h',
- 'nautilus-file-attributes.h',
- 'nautilus-file-changes-queue.c',
- 'nautilus-file-changes-queue.h',
- 'nautilus-file-conflict-dialog.c',
- 'nautilus-file-conflict-dialog.h',
- 'nautilus-file-name-widget-controller.c',
- 'nautilus-file-name-widget-controller.h',
- 'nautilus-rename-file-popover-controller.c',
- 'nautilus-rename-file-popover-controller.h',
- 'nautilus-new-folder-dialog-controller.c',
- 'nautilus-new-folder-dialog-controller.h',
- 'nautilus-compress-dialog-controller.c',
- 'nautilus-compress-dialog-controller.h',
- 'nautilus-operations-ui-manager.c',
- 'nautilus-operations-ui-manager.h',
- 'nautilus-file-operations.c',
- 'nautilus-file-operations.h',
- 'nautilus-file-private.h',
- 'nautilus-file-queue.c',
- 'nautilus-file-queue.h',
- 'nautilus-file-utilities.c',
- 'nautilus-file-utilities.h',
- 'nautilus-file.c',
- 'nautilus-file.h',
- 'nautilus-global-preferences.c',
- 'nautilus-global-preferences.h',
- 'nautilus-icon-info.c',
- 'nautilus-icon-info.h',
- 'nautilus-icon-names.h',
- 'nautilus-keyfile-metadata.c',
- 'nautilus-keyfile-metadata.h',
- 'nautilus-lib-self-check-functions.c',
- 'nautilus-lib-self-check-functions.h',
- 'nautilus-link.c',
- 'nautilus-link.h',
- 'nautilus-metadata.h',
- 'nautilus-metadata.c',
- 'nautilus-mime-application-chooser.c',
- 'nautilus-mime-application-chooser.h',
- 'nautilus-module.c',
- 'nautilus-module.h',
- 'nautilus-monitor.c',
- 'nautilus-monitor.h',
- 'nautilus-profile.c',
- 'nautilus-profile.h',
- 'nautilus-progress-info.c',
- 'nautilus-progress-info.h',
- 'nautilus-progress-info-manager.c',
- 'nautilus-progress-info-manager.h',
- 'nautilus-program-choosing.c',
- 'nautilus-program-choosing.h',
- 'nautilus-recent.c',
- 'nautilus-recent.h',
- 'nautilus-search-directory.c',
- 'nautilus-search-directory.h',
- 'nautilus-search-directory-file.c',
- 'nautilus-search-directory-file.h',
- 'nautilus-search-provider.c',
- 'nautilus-search-provider.h',
- 'nautilus-search-engine.c',
- 'nautilus-search-engine.h',
- 'nautilus-search-engine-model.c',
- 'nautilus-search-engine-model.h',
- 'nautilus-search-engine-simple.c',
- 'nautilus-search-engine-simple.h',
- 'nautilus-search-hit.c',
- 'nautilus-search-hit.h',
- 'nautilus-selection-canvas-item.c',
- 'nautilus-selection-canvas-item.h',
- 'nautilus-signaller.h',
- 'nautilus-signaller.c',
- 'nautilus-query.c',
- 'nautilus-thumbnails.c',
- 'nautilus-thumbnails.h',
- 'nautilus-trash-monitor.c',
- 'nautilus-trash-monitor.h',
- 'nautilus-tree-view-drag-dest.c',
- 'nautilus-tree-view-drag-dest.h',
- 'nautilus-ui-utilities.c',
- 'nautilus-ui-utilities.h',
- 'nautilus-video-mime-types.h',
- 'nautilus-vfs-directory.c',
- 'nautilus-vfs-directory.h',
- 'nautilus-vfs-file.c',
- 'nautilus-vfs-file.h',
- 'nautilus-file-undo-operations.c',
- 'nautilus-file-undo-operations.h',
- 'nautilus-file-undo-manager.c',
- 'nautilus-file-undo-manager.h',
- 'nautilus-batch-rename-dialog.c',
- 'nautilus-batch-rename-dialog.h',
- 'nautilus-batch-rename-utilities.c',
- 'nautilus-batch-rename-utilities.h',
- 'nautilus-search-engine-tracker.c',
- 'nautilus-search-engine-tracker.h',
- 'nautilus-tag-manager.c',
- 'nautilus-tag-manager.h',
- 'nautilus-favorite-directory.c',
- 'nautilus-favorite-directory.h'
+ gnome.mkenums(
+ 'nautilus-enum-types',
+ c_template: 'nautilus-enum-types.c.template',
+ h_template: 'nautilus-enum-types.h.template',
+ sources: [
+ 'nautilus-search-popover.h',
+ 'nautilus-special-location-bar.h',
+ 'nautilus-query.h',
+ 'nautilus-search-provider.h'
+ ]
+ ),
+ gnome.compile_resources(
+ 'nautilus-resources',
+ join_paths(
+ 'resources', 'nautilus.gresource.xml'
+ ),
+ source_dir: 'resources',
+ c_name: 'nautilus',
+ extra_args: '--manual-register'
+ ),
+ gnome.gdbus_codegen(
+ 'nautilus-freedesktop-generated',
+ join_paths(
+ meson.source_root(), 'data', 'freedesktop-dbus-interfaces.xml'
+ ),
+ interface_prefix: 'org.freedesktop',
+ namespace: 'NautilusFreedesktop'
+ ),
+ gnome.gdbus_codegen(
+ 'nautilus-generated',
+ join_paths(
+ meson.source_root(), 'data', 'dbus-interfaces.xml'
+ ),
+ interface_prefix: 'org.gnome.Nautilus',
+ namespace: 'NautilusDBus'
+ ),
+ gnome.gdbus_codegen(
+ 'nautilus-shell-search-provider-generated',
+ join_paths(
+ meson.source_root(), 'data', 'shell-search-provider-dbus-interfaces.xml'
+ ),
+ interface_prefix: 'org.gnome',
+ namespace: 'Nautilus'
+ ),
+ 'animation/egg-animation.c',
+ 'animation/egg-animation.h',
+ 'animation/egg-frame-source.c',
+ 'animation/egg-frame-source.h',
+ 'animation/ide-box-theatric.c',
+ 'animation/ide-box-theatric.h',
+ 'animation/ide-cairo.c',
+ 'animation/ide-cairo.h',
+ 'gtk/nautilusgtkplacesview.c',
+ 'gtk/nautilusgtkplacesviewprivate.h',
+ 'gtk/nautilusgtkplacesviewrow.c',
+ 'gtk/nautilusgtkplacesviewrowprivate.h',
+ 'nautilus-application.c',
+ 'nautilus-application.h',
+ 'nautilus-bookmark-list.c',
+ 'nautilus-bookmark-list.h',
+ 'nautilus-canvas-view.c',
+ 'nautilus-canvas-view.h',
+ 'nautilus-canvas-view-container.c',
+ 'nautilus-canvas-view-container.h',
+ 'nautilus-container-max-width.c',
+ 'nautilus-container-max-width.h',
+ 'nautilus-dbus-manager.c',
+ 'nautilus-dbus-manager.h',
+ 'nautilus-desktop-item-properties.c',
+ 'nautilus-desktop-item-properties.h',
+ 'nautilus-error-reporting.c',
+ 'nautilus-error-reporting.h',
+ 'nautilus-preferences-window.c',
+ 'nautilus-preferences-window.h',
+ 'nautilus-files-view.c',
+ 'nautilus-files-view.h',
+ 'nautilus-files-view-dnd.c',
+ 'nautilus-files-view-dnd.h',
+ 'nautilus-floating-bar.c',
+ 'nautilus-floating-bar.h',
+ 'nautilus-freedesktop-dbus.c',
+ 'nautilus-freedesktop-dbus.h',
+ 'nautilus-image-properties-page.c',
+ 'nautilus-image-properties-page.h',
+ 'nautilus-list-model.c',
+ 'nautilus-list-model.h',
+ 'nautilus-list-view.c',
+ 'nautilus-list-view.h',
+ 'nautilus-list-view-private.h',
+ 'nautilus-list-view-dnd.c',
+ 'nautilus-list-view-dnd.h',
+ 'nautilus-location-entry.c',
+ 'nautilus-location-entry.h',
+ 'nautilus-mime-actions.c',
+ 'nautilus-mime-actions.h',
+ 'nautilus-notebook.c',
+ 'nautilus-notebook.h',
+ 'nautilus-other-locations-window-slot.c',
+ 'nautilus-other-locations-window-slot.h',
+ 'nautilus-pathbar.c',
+ 'nautilus-pathbar.h',
+ 'nautilus-places-view.c',
+ 'nautilus-places-view.h',
+ 'nautilus-previewer.c',
+ 'nautilus-previewer.h',
+ 'nautilus-progress-info-widget.c',
+ 'nautilus-progress-info-widget.h',
+ 'nautilus-progress-persistence-handler.c',
+ 'nautilus-progress-persistence-handler.h',
+ 'nautilus-properties-window.c',
+ 'nautilus-properties-window.h',
+ 'nautilus-query-editor.c',
+ 'nautilus-query-editor.h',
+ 'nautilus-search-popover.c',
+ 'nautilus-self-check-functions.c',
+ 'nautilus-self-check-functions.h',
+ 'nautilus-shell-search-provider.c',
+ 'nautilus-special-location-bar.c',
+ 'nautilus-toolbar.c',
+ 'nautilus-toolbar.h',
+ 'nautilus-toolbar-menu-sections.h',
+ 'nautilus-trash-bar.c',
+ 'nautilus-trash-bar.h',
+ 'nautilus-view.c',
+ 'nautilus-view.h',
+ 'nautilus-view-icon-controller.c',
+ 'nautilus-view-icon-controller.h',
+ 'nautilus-view-icon-item-ui.c',
+ 'nautilus-view-icon-item-ui.h',
+ 'nautilus-view-icon-ui.c',
+ 'nautilus-view-icon-ui.h',
+ 'nautilus-view-item-model.c',
+ 'nautilus-view-item-model.h',
+ 'nautilus-view-model.c',
+ 'nautilus-view-model.h',
+ 'nautilus-window-slot.c',
+ 'nautilus-window-slot.h',
+ 'nautilus-window-slot-dnd.c',
+ 'nautilus-window-slot-dnd.h',
+ 'nautilus-window.c',
+ 'nautilus-window.h',
+ 'nautilus-x-content-bar.c',
+ 'nautilus-x-content-bar.h',
+ 'nautilus-bookmark.c',
+ 'nautilus-bookmark.h',
+ 'nautilus-canvas-container.c',
+ 'nautilus-canvas-container.h',
+ 'nautilus-canvas-dnd.c',
+ 'nautilus-canvas-dnd.h',
+ 'nautilus-canvas-item.c',
+ 'nautilus-canvas-item.h',
+ 'nautilus-canvas-private.h',
+ 'nautilus-clipboard.c',
+ 'nautilus-clipboard.h',
+ 'nautilus-column-chooser.c',
+ 'nautilus-column-chooser.h',
+ 'nautilus-column-utilities.c',
+ 'nautilus-column-utilities.h',
+ 'nautilus-debug.c',
+ 'nautilus-debug.h',
+ 'nautilus-directory-async.c',
+ 'nautilus-directory-notify.h',
+ 'nautilus-directory-private.h',
+ 'nautilus-directory.c',
+ 'nautilus-directory.h',
+ 'nautilus-dnd.c',
+ 'nautilus-dnd.h',
+ 'nautilus-file-attributes.h',
+ 'nautilus-file-changes-queue.c',
+ 'nautilus-file-changes-queue.h',
+ 'nautilus-file-conflict-dialog.c',
+ 'nautilus-file-conflict-dialog.h',
+ 'nautilus-file-name-widget-controller.c',
+ 'nautilus-file-name-widget-controller.h',
+ 'nautilus-rename-file-popover-controller.c',
+ 'nautilus-rename-file-popover-controller.h',
+ 'nautilus-new-folder-dialog-controller.c',
+ 'nautilus-new-folder-dialog-controller.h',
+ 'nautilus-compress-dialog-controller.c',
+ 'nautilus-compress-dialog-controller.h',
+ 'nautilus-operations-ui-manager.c',
+ 'nautilus-operations-ui-manager.h',
+ 'nautilus-file-operations.c',
+ 'nautilus-file-operations.h',
+ 'nautilus-file-private.h',
+ 'nautilus-file-queue.c',
+ 'nautilus-file-queue.h',
+ 'nautilus-file-utilities.c',
+ 'nautilus-file-utilities.h',
+ 'nautilus-file.c',
+ 'nautilus-file.h',
+ 'nautilus-global-preferences.c',
+ 'nautilus-global-preferences.h',
+ 'nautilus-icon-info.c',
+ 'nautilus-icon-info.h',
+ 'nautilus-icon-names.h',
+ 'nautilus-keyfile-metadata.c',
+ 'nautilus-keyfile-metadata.h',
+ 'nautilus-lib-self-check-functions.c',
+ 'nautilus-lib-self-check-functions.h',
+ 'nautilus-link.c',
+ 'nautilus-link.h',
+ 'nautilus-metadata.h',
+ 'nautilus-metadata.c',
+ 'nautilus-mime-application-chooser.c',
+ 'nautilus-mime-application-chooser.h',
+ 'nautilus-module.c',
+ 'nautilus-module.h',
+ 'nautilus-monitor.c',
+ 'nautilus-monitor.h',
+ 'nautilus-profile.c',
+ 'nautilus-profile.h',
+ 'nautilus-progress-info.c',
+ 'nautilus-progress-info.h',
+ 'nautilus-progress-info-manager.c',
+ 'nautilus-progress-info-manager.h',
+ 'nautilus-program-choosing.c',
+ 'nautilus-program-choosing.h',
+ 'nautilus-recent.c',
+ 'nautilus-recent.h',
+ 'nautilus-search-directory.c',
+ 'nautilus-search-directory.h',
+ 'nautilus-search-directory-file.c',
+ 'nautilus-search-directory-file.h',
+ 'nautilus-search-provider.c',
+ 'nautilus-search-provider.h',
+ 'nautilus-search-engine.c',
+ 'nautilus-search-engine.h',
+ 'nautilus-search-engine-model.c',
+ 'nautilus-search-engine-model.h',
+ 'nautilus-search-engine-simple.c',
+ 'nautilus-search-engine-simple.h',
+ 'nautilus-search-hit.c',
+ 'nautilus-search-hit.h',
+ 'nautilus-selection-canvas-item.c',
+ 'nautilus-selection-canvas-item.h',
+ 'nautilus-signaller.h',
+ 'nautilus-signaller.c',
+ 'nautilus-query.c',
+ 'nautilus-thumbnails.c',
+ 'nautilus-thumbnails.h',
+ 'nautilus-trash-monitor.c',
+ 'nautilus-trash-monitor.h',
+ 'nautilus-tree-view-drag-dest.c',
+ 'nautilus-tree-view-drag-dest.h',
+ 'nautilus-ui-utilities.c',
+ 'nautilus-ui-utilities.h',
+ 'nautilus-video-mime-types.h',
+ 'nautilus-vfs-directory.c',
+ 'nautilus-vfs-directory.h',
+ 'nautilus-vfs-file.c',
+ 'nautilus-vfs-file.h',
+ 'nautilus-file-undo-operations.c',
+ 'nautilus-file-undo-operations.h',
+ 'nautilus-file-undo-manager.c',
+ 'nautilus-file-undo-manager.h',
+ 'nautilus-batch-rename-dialog.c',
+ 'nautilus-batch-rename-dialog.h',
+ 'nautilus-batch-rename-utilities.c',
+ 'nautilus-batch-rename-utilities.h',
+ 'nautilus-search-engine-tracker.c',
+ 'nautilus-search-engine-tracker.h',
+ 'nautilus-tag-manager.c',
+ 'nautilus-tag-manager.h',
+ 'nautilus-favorite-directory.c',
+ 'nautilus-favorite-directory.h'
]
-nautilus_deps = [glib,
- gtk,
- autoar,
- xml,
- gsettings_desktop_schemas,
- libgd_dep,
- gail,
- gnome_desktop,
- eel_2,
- nautilus_extension,
- x11,
- gmodule_no_export,
- tracker_sparql,
- gexiv2]
+nautilus_deps = [
+ eel_2,
+ gexiv,
+ gmodule,
+ gnome_autoar,
+ gnome_desktop,
+ libgd_dep,
+ nautilus_extension,
+ selinux,
+ tracker_sparql,
+ xml
+]
-if get_option ('enable-selinux')
- nautilus_deps += selinux
-endif
+libnautilus = static_library(
+ 'nautilus',
+ libnautilus_sources,
+ dependencies: nautilus_deps,
+ include_directories: nautilus_include_dirs
+)
-libnautilus = static_library ('nautilus',
- libnautilus_sources,
- dependencies: nautilus_deps,
- include_directories: nautilus_include_dirs)
+libnautilus_include_dirs = include_directories('.')
-libnautilus_include_dirs = include_directories ('.')
+libnautilus_dep = declare_dependency(
+ link_with: libnautilus,
+ include_directories: [
+ nautilus_include_dirs,
+ libnautilus_include_dirs
+ ],
+ dependencies: nautilus_deps
+)
-libnautilus_dep = declare_dependency (link_with: libnautilus,
- include_directories: [nautilus_include_dirs,
- libnautilus_include_dirs],
- dependencies: nautilus_deps)
+nautilus = executable(
+ 'nautilus',
+ 'nautilus-main.c',
+ dependencies: libnautilus_dep,
+ install: true
+)
-nautilus = executable ('nautilus',
- 'nautilus-main.c',
- dependencies: libnautilus_dep,
- install: true)
+test(
+ 'nautilus', nautilus,
+ args: [
+ '--check',
+ '--g-fatal-warnings'
+ ]
+)
-test ('nautilus', nautilus, args: ['--check', '--g-fatal-warnings'])
+nautilus_autorun_software_sources = [
+ 'nautilus-autorun-software.c',
+ 'nautilus-icon-info.c',
+ 'nautilus-icon-info.h'
+]
-nautilus_autorun_software = executable ('nautilus-autorun-software',
- 'nautilus-autorun-software.c',
- dependencies: libnautilus_dep,
- install: true)
+executable(
+ 'nautilus-autorun-software',
+ nautilus_autorun_software_sources,
+ include_directories: nautilus_include_dirs,
+ dependencies: gtk,
+ install: true
+)
diff --git a/test/meson.build b/test/meson.build
index f6ad5b007..928f9b157 100644
--- a/test/meson.build
+++ b/test/meson.build
@@ -1,26 +1,27 @@
-test_copy = executable ('test-copy',
- ['test-copy.c',
- 'test.c',
- 'test.h'],
- dependencies: libnautilus_dep)
+test_copy = executable(
+ 'test-copy', [
+ 'test-copy.c',
+ 'test.c',
+ 'test.h'
+ ],
+ dependencies: libnautilus_dep
+)
-test_nautilus_search_engine = executable ('test-nautilus-search-engine',
- 'test-nautilus-search-engine.c',
- dependencies: libnautilus_dep)
+tests = [
+ ['test-nautilus-search-engine', [
+ 'test-nautilus-search-engine.c'
+ ]],
+ ['test-nautilus-directory-async', [
+ 'test-nautilus-directory-async.c'
+ ]],
+ ['test-file-utilities-get-common-filename-prefix', [
+ 'test-file-utilities-get-common-filename-prefix.c'
+ ]],
+ ['test-eel-string-get-common-prefix', [
+ 'test-eel-string-get-common-prefix.c'
+ ]]
+]
-test_nautilus_directory_async = executable ('test-nautilus-directory-async',
- 'test-nautilus-directory-async.c',
- dependencies: libnautilus_dep)
-
-test_file_utilities_get_common_filename_prefix = executable ('test-file-utilities-get-common-filename-prefix',
- 'test-file-utilities-get-common-filename-prefix.c',
- dependencies: libnautilus_dep)
-
-test_eel_string_get_common_prefix = executable ('test-eel-string-get-common-prefix',
- 'test-eel-string-get-common-prefix.c',
- dependencies: libnautilus_dep)
-
-test ('test-nautilus-search-engine', test_nautilus_search_engine)
-test ('test-nautilus-directory-async', test_nautilus_directory_async)
-test ('test-file-utilities-get-common-filename-prefix', test_file_utilities_get_common_filename_prefix)
-test ('test-eel-string-get-common-prefix', test_eel_string_get_common_prefix)
+foreach t: tests
+ test(t[0], executable(t[0], t[1], dependencies: libnautilus_dep))
+endforeach