[gtk: 1/2] meson: Don't execute post-install.py if cross compiling



commit 531766fe642aec5270565ca885f423f4206c68a9
Author: Martin Storsjö <martin martin st>
Date:   Sun Apr 5 22:57:22 2020 +0300

    meson: Don't execute post-install.py if cross compiling

 meson.build | 14 +++++++++-----
 1 file changed, 9 insertions(+), 5 deletions(-)
---
diff --git a/meson.build b/meson.build
index 7eee560a6d..128c871c23 100644
--- a/meson.build
+++ b/meson.build
@@ -794,11 +794,15 @@ subdir('docs/tools')
 subdir('docs/reference')
 
 # Keep this in sync with post-install.sh expected arguments
-meson.add_install_script('build-aux/meson/post-install.py',
-                         gtk_api_version,
-                         gtk_binary_version,
-                         gtk_libdir,
-                         gtk_datadir)
+if not meson.is_cross_build()
+  meson.add_install_script('build-aux/meson/post-install.py',
+                           gtk_api_version,
+                           gtk_binary_version,
+                           gtk_libdir,
+                           gtk_datadir)
+else
+  message('Not executing post-install steps automatically when cross compiling')
+endif
 
 if host_machine.system() != 'windows'
   # Install Valgrind suppression files (except on Windows,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]