[nautilus/wip/ernestask/meson] Port to meson
- From: Ernestas Kulik <ernestask src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/wip/ernestask/meson] Port to meson
- Date: Sat, 28 Jan 2017 13:33:31 +0000 (UTC)
commit 9082099b4d2aefc766920714354e8bb6814a3171
Author: Ernestas Kulik <ernestask src gnome org>
Date: Wed Sep 28 09:16:11 2016 +0300
Port to meson
.gitmodules | 3 +-
Makefile.am | 43 ---
Makefile.shared | 1 -
autogen.sh | 40 ---
config.h.meson | 11 +
configure.ac | 360 --------------------
data/Makefile.am | 93 ------
data/icons/Makefile.am | 28 --
data/icons/meson.build | 2 +
data/meson.build | 67 ++++
docs/Makefile.am | 25 --
docs/meson.build | 3 +
docs/reference/Makefile.am | 3 -
docs/reference/libnautilus-extension/Makefile.am | 80 -----
docs/reference/libnautilus-extension/meson.build | 14 +
docs/reference/meson.build | 1 +
eel/Makefile.am | 78 -----
eel/meson.build | 47 +++
git.mk | 350 -------------------
libgd | 2 +-
libnautilus-extension/Makefile.am | 89 -----
libnautilus-extension/meson.build | 67 ++++
meson.build | 128 +++++++
meson_options.txt | 32 ++
nautilus-desktop/Makefile.am | 57 ----
nautilus-desktop/meson.build | 30 ++
nautilus-sendto-extension/Makefile.am | 25 --
nautilus-sendto-extension/meson.build | 12 +
po/{POTFILES.in => POTFILES} | 0
po/meson.build | 1 +
src/Makefile.am | 387 ----------------------
src/meson.build | 285 ++++++++++++++++
src/nautilus-search-provider.c | 2 +-
test/Makefile.am | 49 ---
test/meson.build | 32 ++
35 files changed, 736 insertions(+), 1711 deletions(-)
---
diff --git a/.gitmodules b/.gitmodules
index bfd964e..9cd69ed 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -1,3 +1,4 @@
[submodule "libgd"]
path = libgd
- url = git://git.gnome.org/libgd
+ url = https://git.gnome.org/browse/libgd
+ branch = wip/meson
diff --git a/config.h.meson b/config.h.meson
new file mode 100644
index 0000000..9bedac6
--- /dev/null
+++ b/config.h.meson
@@ -0,0 +1,11 @@
+#mesondefine VERSION
+#mesondefine PACKAGE_VERSION
+#mesondefine GETTEXT_PACKAGE
+#mesondefine HAVE_SELINUX
+#mesondefine ENABLE_EMPTY_VIEW
+#mesondefine ENABLE_DESKTOP
+#mesondefine ENABLE_PACKAGEKIT
+#mesondefine ENABLE_TRACKER
+#mesondefine LOCALEDIR
+#mesondefine NAUTILUS_DATADIR
+#mesondefine NAUTILUS_EXTENSIONDIR
diff --git a/data/icons/meson.build b/data/icons/meson.build
new file mode 100644
index 0000000..9a918f4
--- /dev/null
+++ b/data/icons/meson.build
@@ -0,0 +1,2 @@
+install_subdir ('hicolor',
+ install_dir: icondir)
diff --git a/data/meson.build b/data/meson.build
new file mode 100644
index 0000000..92dec21
--- /dev/null
+++ b/data/meson.build
@@ -0,0 +1,67 @@
+subdir ('icons')
+
+po_dir = join_paths (meson.source_root (), 'po')
+
+line_up_parameters = executable ('lineup-parameters',
+ 'lineup-parameters.c',
+ dependencies: [gio, gio_unix])
+
+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')
+
+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')
+
+i18n.merge_file ('desktop-autostart',
+ input: 'nautilus-autostart.desktop.in',
+ output: 'nautilus-autostart.desktop',
+ install: true,
+ install_dir: join_paths (sysconfdir, 'xdg', 'autostart'),
+ po_dir: po_dir,
+ type: 'desktop')
+
+if get_option ('enable-desktop')
+ i18n.merge_file ('desktop',
+ input: 'nautilus-classic.desktop.in',
+ output: 'nautilus-classic.desktop',
+ install: true,
+ install_dir: desktopdir,
+ po_dir: po_dir,
+ type: 'desktop')
+endif
+
+i18n.merge_file ('desktop',
+ 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)
diff --git a/docs/meson.build b/docs/meson.build
new file mode 100644
index 0000000..036ecd4
--- /dev/null
+++ b/docs/meson.build
@@ -0,0 +1,3 @@
+install_man ('nautilus.1')
+
+subdir ('reference')
diff --git a/docs/reference/libnautilus-extension/meson.build
b/docs/reference/libnautilus-extension/meson.build
new file mode 100644
index 0000000..7de7fe9
--- /dev/null
+++ b/docs/reference/libnautilus-extension/meson.build
@@ -0,0 +1,14 @@
+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)
+
+gnome.gtkdoc ('libnautilus-extension',
+ main_xml: 'libnautilus-extension-docs.xml',
+ src_dir: join_paths (meson.source_root (), 'libnautilus-extension'),
+ dependencies: nautilus_extension,
+ install: true,
+ scan_args: ['--ignore-headers=nautilus-extension-private.h'])
+# content_files: [docs_version])
diff --git a/docs/reference/meson.build b/docs/reference/meson.build
new file mode 100644
index 0000000..46b5382
--- /dev/null
+++ b/docs/reference/meson.build
@@ -0,0 +1 @@
+subdir ('libnautilus-extension')
diff --git a/eel/meson.build b/eel/meson.build
new file mode 100644
index 0000000..ac2edea
--- /dev/null
+++ b/eel/meson.build
@@ -0,0 +1,47 @@
+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',
+]
+
+libeel_2_deps = [glib, gtk, gail, libm, x11]
+
+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)
+
+check_eel = executable ('check-eel',
+ 'check-program.c',
+ dependencies: [eel_2, xml])
+
+test ('check-eel', check_eel)
diff --git a/libgd b/libgd
index 752f65e..12d23bc 160000
--- a/libgd
+++ b/libgd
@@ -1 +1 @@
-Subproject commit 752f65e91ea0d9a2ee8a2d21343bbd97bd0d038a
+Subproject commit 12d23bc8fb0839df623599373c960947d3293b7e
diff --git a/libnautilus-extension/meson.build b/libnautilus-extension/meson.build
new file mode 100644
index 0000000..fcaf3af
--- /dev/null
+++ b/libnautilus-extension/meson.build
@@ -0,0 +1,67 @@
+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'
+]
+
+install_headers (libnautilus_extension_headers,
+ subdir: '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'
+]
+
+libnautilus_extension_deps = [glib, gtk]
+
+libnautilus_extension = shared_library ('nautilus-extension',
+ libnautilus_extension_sources,
+ dependencies: libnautilus_extension_deps,
+ include_directories: nautilus_include_dirs,
+ link_args: '--no-undefined',
+ version: nautilus_extension_version)
+
+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)
+
+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', nautilus_extension_version)
+
+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
new file mode 100644
index 0000000..c70fc73
--- /dev/null
+++ b/meson.build
@@ -0,0 +1,128 @@
+project ('nautilus', 'c', version: '3.22.2')
+
+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.49.1'
+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'
+autoar_ver = '>=0.1'
+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')
+
+update_mime_database = find_program ('update-mime-database', required: false)
+
+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', required: false)
+
+ if tracker_sparql.found () == false
+ tracker_sparql = dependency ('tracker-sparql-0.18')
+ endif
+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', localedir)
+conf.set_quoted ('NAUTILUS_DATADIR', join_paths (datadir, 'nautilus'))
+conf.set_quoted ('NAUTILUS_EXTENSIONDIR', extensiondir)
+
+if get_option ('enable-selinux')
+ conf.set10 ('HAVE_SELINUX', true)
+endif
+
+if get_option ('enable-empty-view')
+ conf.set10 ('ENABLE_EMPTY_VIEW', 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 (meson.current_build_dir (),
+ meson.source_root ())
+
+libgd_gtk_hacks = true
+libgd_main_view = true
+libgd_static = true
+libgd_tagged_entry = true
+
+subdir ('eel')
+subdir ('libnautilus-extension')
+subdir ('libgd')
+subdir ('src')
+subdir ('test')
+subdir ('data')
+subdir ('po')
+subdir ('docs')
+
+if get_option ('enable-desktop')
+ subdir ('nautilus-desktop')
+endif
+
+if get_option ('enable-nst-extension')
+ subdir ('nautilus-sendto-extension')
+endif
diff --git a/meson_options.txt b/meson_options.txt
new file mode 100644
index 0000000..99d1989
--- /dev/null
+++ b/meson_options.txt
@@ -0,0 +1,32 @@
+option ('enable-profiling',
+ type: 'boolean',
+ value: false)
+option ('enable-nst-extension',
+ type: 'boolean',
+ value: true)
+option ('enable-exif',
+ type: 'boolean',
+ value: false,
+ description: 'enable EXIF support')
+option ('enable-xmp',
+ type: 'boolean',
+ value: false,
+ description: 'enable XMP support')
+option ('enable-selinux',
+ type: 'boolean',
+ value: true)
+option ('enable-empty-view',
+ type: 'boolean',
+ value: false)
+option ('enable-desktop',
+ type: 'boolean',
+ value: true)
+option ('enable-packagekit',
+ type: 'boolean',
+ value: true)
+option ('enable-tracker',
+ type: 'boolean',
+ value: true)
+option ('enable-update-mimedb',
+ type: 'boolean',
+ value: true)
diff --git a/nautilus-desktop/meson.build b/nautilus-desktop/meson.build
new file mode 100644
index 0000000..a5e207d
--- /dev/null
+++ b/nautilus-desktop/meson.build
@@ -0,0 +1,30 @@
+nautilus_desktop_sources = [
+ 'main-desktop.c',
+ 'nautilus-desktop-application.c',
+ 'nautilus-desktop-application.h',
+ 'nautilus-desktop-canvas-view.c',
+ 'nautilus-desktop-canvas-view.h',
+ 'nautilus-desktop-canvas-view-container.c',
+ 'nautilus-desktop-canvas-view-container.h',
+ 'nautilus-desktop-directory.c',
+ 'nautilus-desktop-directory.h',
+ 'nautilus-desktop-directory-file.c',
+ 'nautilus-desktop-directory-file.h',
+ 'nautilus-desktop-icon-file.c',
+ 'nautilus-desktop-icon-file.h',
+ 'nautilus-desktop-link.c',
+ 'nautilus-desktop-link.h',
+ 'nautilus-desktop-link-monitor.c',
+ 'nautilus-desktop-link-monitor.h',
+ 'nautilus-desktop-metadata.c',
+ 'nautilus-desktop-metadata.h',
+ 'nautilus-desktop-window.c',
+ 'nautilus-desktop-window.h',
+ 'nautilus-desktop-window-slot.c',
+ 'nautilus-desktop-window-slot.h'
+]
+
+nautilus_desktop = executable ('nautilus-desktop',
+ nautilus_desktop_sources,
+ dependencies: libnautilus_dep,
+ install: true)
diff --git a/nautilus-sendto-extension/meson.build b/nautilus-sendto-extension/meson.build
new file mode 100644
index 0000000..6b3e5c9
--- /dev/null
+++ b/nautilus-sendto-extension/meson.build
@@ -0,0 +1,12 @@
+libnautilus_sendto_sources = [
+ '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,
+ link_args: '--no-undefined')
diff --git a/po/POTFILES.in b/po/POTFILES
similarity index 100%
rename from po/POTFILES.in
rename to po/POTFILES
diff --git a/po/meson.build b/po/meson.build
new file mode 100644
index 0000000..08c40c1
--- /dev/null
+++ b/po/meson.build
@@ -0,0 +1 @@
+i18n.gettext ('nautilus')
diff --git a/src/meson.build b/src/meson.build
new file mode 100644
index 0000000..a181d79
--- /dev/null
+++ b/src/meson.build
@@ -0,0 +1,285 @@
+gdbus_sources = []
+
+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-freedesktop-generated',
+ join_paths (meson.source_root (), 'data',
'freedesktop-dbus-interfaces.xml'),
+ interface_prefix: 'org.freedesktop',
+ namespace: 'NautilusFreedesktop')
+
+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 = []
+
+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,
+ '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-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-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-default-file-icon.c',
+ 'nautilus-default-file-icon.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'
+]
+
+if get_option ('enable-tracker')
+ libnautilus_sources += ['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']
+endif
+
+nautilus_deps = [glib,
+ gtk,
+ autoar,
+ xml,
+ gsettings_desktop_schemas,
+ libgd_dep,
+ gail,
+ gnome_desktop,
+ eel_2,
+ nautilus_extension,
+ x11]
+
+if get_option ('enable-tracker')
+ nautilus_deps += tracker_sparql
+endif
+
+if get_option ('enable-selinux')
+ nautilus_deps += selinux
+endif
+
+libnautilus = static_library ('nautilus',
+ libnautilus_sources,
+ dependencies: nautilus_deps,
+ include_directories: nautilus_include_dirs)
+
+libnautilus_include_dirs = include_directories (meson.current_source_dir (),
+ meson.current_build_dir ())
+
+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)
+
+test ('nautilus', nautilus, args: ['--check', '--g-fatal-warnings'])
diff --git a/src/nautilus-search-provider.c b/src/nautilus-search-provider.c
index eee91bc..9a4a655 100644
--- a/src/nautilus-search-provider.c
+++ b/src/nautilus-search-provider.c
@@ -18,7 +18,7 @@
#include <config.h>
#include "nautilus-search-provider.h"
-#include "nautilus-enum-types.c"
+#include "nautilus-enum-types.h"
#include <glib-object.h>
diff --git a/test/meson.build b/test/meson.build
new file mode 100644
index 0000000..860c30e
--- /dev/null
+++ b/test/meson.build
@@ -0,0 +1,32 @@
+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)
+
+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_rtrim_punctuation = executable ('test-eel-string-rtrim-punctuation',
+ 'test-eel-string-rtrim-punctuation.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-copy', test_copy)
+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-rtrim-punctuation', test_eel_string_rtrim_punctuation)
+test ('test-eel-string-get-common-prefix', test_eel_string_get_common_prefix)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]