[gnome-documents/wip/rishi/meson-submodule-update: 2/2] build: Ensure that the Git submodules are kept updated
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-documents/wip/rishi/meson-submodule-update: 2/2] build: Ensure that the Git submodules are kept updated
- Date: Wed, 12 Sep 2018 11:55:21 +0000 (UTC)
commit 67c37dbc9b6eedee72cc4ef8e98f2575f3766dbe
Author: Debarshi Ray <debarshir gnome org>
Date: Wed Sep 12 09:17:14 2018 +0200
build: Ensure that the Git submodules are kept updated
It's assumed that those building release tarballs, like distributions,
might not have Git in their buildroots. Therefore, this is skipped for
'plain' builds.
meson.build | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/meson.build b/meson.build
index 8a5b5f65..c6fdb563 100644
--- a/meson.build
+++ b/meson.build
@@ -30,6 +30,10 @@ documents_pkglibdir = join_paths(documents_libdir, meson.project_name())
documents_schemadir = join_paths(documents_datadir, 'glib-2.0', 'schemas')
+if not get_option('buildtype').contains('plain')
+ run_command('git', '-C', meson.source_root(), 'submodule', 'update', '--init', '--recursive')
+endif
+
cc = meson.get_compiler('c')
config_h = configuration_data()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]