From 866670e30907eb534895da26626709ed5f2e419d Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Wed, 7 Apr 2021 19:09:25 +0100 Subject: build: Port post-install script to Python Avoid the whole shell/batch file shenanigans. --- meson.build | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) (limited to 'meson.build') diff --git a/meson.build b/meson.build index 286f17c2d..b84d804c7 100644 --- a/meson.build +++ b/meson.build @@ -419,20 +419,11 @@ build_docs = get_option('gtk_doc') or get_option('docs') subdir('docs') if not meson.is_cross_build() - # On Visual Studio, we don't normally have a shell interpreter, so use a .bat - if cc.get_id() == 'msvc' - meson.add_install_script('build-aux/post-install.bat', - gdk_pixbuf_bindir, - gdk_pixbuf_libdir, - gdk_pixbuf_binary_version, - ) - else - meson.add_install_script('build-aux/post-install.sh', - gdk_pixbuf_bindir, - gdk_pixbuf_libdir, - gdk_pixbuf_binary_version, - ) - endif + meson.add_install_script('build-aux/post-install.py', + gdk_pixbuf_bindir, + gdk_pixbuf_libdir, + gdk_pixbuf_binary_version, + ) endif if not meson.is_subproject() -- cgit v1.2.1