From 268d3b890008f6b0c1a84c1686ad82e8efc84d5e Mon Sep 17 00:00:00 2001 From: Chun-wei Fan Date: Fri, 8 Jun 2018 14:38:30 +0800 Subject: build: Add post install script for MSVC builds Visual Studio builds do not assume the presence of a shell script interpreter but would normally use cmd.exe, which would make the post install shell script useless in such situations. Fix this by adding a Windows .bat port of the post install script, to be used on Visual Studio builds, which may be usable on MinGW builds if MinGW builds can be done directly in cmd.exe. --- build-aux/post-install.bat | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 build-aux/post-install.bat (limited to 'build-aux') diff --git a/build-aux/post-install.bat b/build-aux/post-install.bat new file mode 100644 index 000000000..60981ffb2 --- /dev/null +++ b/build-aux/post-install.bat @@ -0,0 +1,23 @@ +@echo off + +set libdir=%1 +set binary_version=%2 + +set libdir_windows=%libdir:/=\% + +if not "%DESTDIR%" == "" goto warn_msg +if not exist %libdir_windows%\gdk-pixbuf-2.0\%binary_version%\ mkdir %libdir_windows%\gdk-pixbuf-2.0\%binary_version% +gdk-pixbuf-query-loaders > %libdir_windows%\gdk-pixbuf-2.0\%binary_version%\loaders.cache + +goto end + +:warn_msg +echo *** +echo *** Warning: loaders.cache not built +echo *** +echo *** You should generate this file manually on the host system +echo *** using: +echo *** gdk-pixbuf-query-loaders ^> %libdir_windows%\gdk-pixbuf-2.0\%binary_version%\loaders.cache +echo *** + +:end \ No newline at end of file -- cgit v1.2.1