diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 17:39:48 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 17:39:48 +0000 |
commit | 3ade071f273aaa973e44bf95d6b1d4913a18f03b (patch) | |
tree | e2f99d267ae18427645404f215b984afbe73098d /libnautilus-extension/meson.build | |
parent | Initial commit. (diff) | |
download | nautilus-3ade071f273aaa973e44bf95d6b1d4913a18f03b.tar.xz nautilus-3ade071f273aaa973e44bf95d6b1d4913a18f03b.zip |
Adding upstream version 43.2.upstream/43.2upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | libnautilus-extension/meson.build | 115 |
1 files changed, 115 insertions, 0 deletions
diff --git a/libnautilus-extension/meson.build b/libnautilus-extension/meson.build new file mode 100644 index 0000000..3c2ab4b --- /dev/null +++ b/libnautilus-extension/meson.build @@ -0,0 +1,115 @@ +libnautilus_extension_headers = [ + 'nautilus-column-provider.h', + 'nautilus-column.h', + 'nautilus-file-info.h', + 'nautilus-info-provider.h', + 'nautilus-menu-provider.h', + 'nautilus-properties-model-provider.h', + 'nautilus-properties-model.h', + 'nautilus-properties-item.h', + 'nautilus-menu.h' +] + +install_headers( + 'nautilus-extension.h', + subdir: 'nautilus' +) +install_headers( + libnautilus_extension_headers, + subdir: join_paths('nautilus', 'libnautilus-extension') +) + +libnautilus_extension_enums = gnome.mkenums_simple( + 'nautilus-extension-enum-types', + install_header: true, + install_dir: join_paths(includedir, 'nautilus', 'libnautilus-extension'), + sources: [ + 'nautilus-info-provider.h' + ] +) + +libnautilus_extension_sources = [ + libnautilus_extension_enums, + libnautilus_extension_headers, + 'nautilus-column-provider.c', + 'nautilus-column.c', + 'nautilus-extension.h', + 'nautilus-extension-private.h', + 'nautilus-file-info.c', + 'nautilus-info-provider.c', + 'nautilus-menu-item.c', + 'nautilus-menu-provider.c', + 'nautilus-properties-model-provider.c', + 'nautilus-properties-model.c', + 'nautilus-properties-item.c', + 'nautilus-menu.c' +] + +libnautilus_extension_deps = [ + config_h, + glib, + gio +] + +libnautilus_extension = shared_library( + 'nautilus-extension', [ + libnautilus_extension_sources, + ], + c_args: [ + '-DNAUTILUS_COMPILATION' + ], + dependencies: libnautilus_extension_deps, + include_directories: nautilus_include_dirs, + soversion: nautilus_extension_version, + install: true +) + +if get_option('introspection') + nautilus_extension_gir = gnome.generate_gir( + libnautilus_extension, + export_packages: [ + 'libnautilus-extension' + ], + extra_args: [ + '-DNAUTILUS_COMPILATION' + ], + sources: libnautilus_extension_sources, + nsversion: nautilus_extension_version + '.0', + namespace: 'Nautilus', + includes: [ + 'Gio-2.0', + 'GLib-2.0' + ], + header: 'nautilus-extension.h', + install: true + ) +endif + +nautilus_extension = declare_dependency( + sources: libnautilus_extension_enums[1], + link_with: libnautilus_extension, + dependencies: libnautilus_extension_deps, + include_directories: nautilus_include_dirs +) + +pkgconfig.generate( + description: 'A library to create Nautilus view extensions', + filebase: 'libnautilus-extension-' + nautilus_extension_version, + libraries: [ + libnautilus_extension + ], + name: 'libnautilus-extension', + subdirs: [ + 'nautilus' + ], + requires: [ + 'gio-2.0', + 'glib-2.0', + ], + variables: [ + 'exec_prefix=${prefix}', + 'extensiondir=${libdir}/nautilus/extensions-' + nautilus_extension_version, + 'extensions_api_version=' + nautilus_extension_version + ], + version: meson.project_version() +) |