[gedit/zbrown/deteplification-src: 91/633] build: move some code to plugins/meson.build
- From: Zander Brown <zbrown src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit/zbrown/deteplification-src: 91/633] build: move some code to plugins/meson.build
- Date: Sat, 10 Apr 2021 12:47:54 +0000 (UTC)
commit bd460ca2f5bc913e5ca120ab56c0e8396eee1387
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 ef242631c..09c4353de 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')
@@ -112,14 +116,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]