[gedit] build: move some code to plugins/meson.build
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit] build: move some code to plugins/meson.build
- Date: Thu, 5 Dec 2019 16:57:41 +0000 (UTC)
commit 564db996358ae6ff76320522bf2176757e98ec47
Author: Sébastien Wilmet <swilmet gnome org>
Date: Thu Dec 5 17:31:17 2019 +0100
build: move some code to plugins/meson.build
module_suffix is useful only in plugins/.
And move add_languages() just below the project() call, to group related
things together.
meson.build | 12 ++++--------
plugins/meson.build | 7 +++++++
2 files changed, 11 insertions(+), 8 deletions(-)
---
diff --git a/meson.build b/meson.build
index 9f3e29c52..289a085b3 100644
--- a/meson.build
+++ b/meson.build
@@ -4,6 +4,10 @@ project(
meson_version: '>= 0.49'
)
+if host_machine.system() == 'darwin'
+ add_languages('objc')
+endif
+
gnome = import('gnome')
i18n = import('i18n')
pkg = import('pkgconfig')
@@ -93,14 +97,6 @@ configure_file(
configuration: config_h
)
-module_suffix = []
-# Keep the autotools convention for shared module suffix because GModule
-# depends on it: https://gitlab.gnome.org/GNOME/glib/issues/520
-if host_machine.system() == 'darwin'
- module_suffix = 'so'
- add_languages('objc')
-endif
-
# Options
generate_gir = get_option('introspection')
if generate_gir and not introspection_dep.found()
diff --git a/plugins/meson.build b/plugins/meson.build
index f940a5e92..14dcb0e3f 100644
--- a/plugins/meson.build
+++ b/plugins/meson.build
@@ -1,3 +1,10 @@
+# Keep the autotools convention for shared module suffix because GModule
+# depends on it: https://gitlab.gnome.org/GNOME/glib/issues/520
+module_suffix = []
+if host_machine.system() == 'darwin'
+ module_suffix = 'so'
+endif
+
msgfmt_plugin_cmd = [
find_program('msgfmt'),
'--desktop',
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]