diff options
author | Chun-wei Fan <fanc999@yahoo.com.tw> | 2018-06-08 14:38:30 +0800 |
---|---|---|
committer | Chun-wei Fan <fanchunwei@src.gnome.org> | 2018-06-08 17:12:37 +0800 |
commit | 268d3b890008f6b0c1a84c1686ad82e8efc84d5e (patch) | |
tree | 6893785526891d82934275c67f0ef5fce1e25674 /build-aux | |
parent | 84da85139a88b7280f6217f6154f9a95aba916c5 (diff) | |
download | gdk-pixbuf-268d3b890008f6b0c1a84c1686ad82e8efc84d5e.tar.gz |
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.
Diffstat (limited to 'build-aux')
-rw-r--r-- | build-aux/post-install.bat | 23 |
1 files changed, 23 insertions, 0 deletions
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 |