diff options
author | Přemysl Eric Janouch <p@janouch.name> | 2022-08-11 11:36:31 +0200 |
---|---|---|
committer | Přemysl Eric Janouch <p@janouch.name> | 2022-08-11 16:10:04 +0200 |
commit | 1a163bdb8b4878f456fb04b33978a92f3fcd8e91 (patch) | |
tree | 52d44049003bc1a338244282f8f77a1b4eaf6f47 /msys2-cross-install.sh | |
parent | cf19f8287547c523f65879b9e9477950c81a9eed (diff) | |
download | fiv-1a163bdb8b4878f456fb04b33978a92f3fcd8e91.tar.gz fiv-1a163bdb8b4878f456fb04b33978a92f3fcd8e91.tar.xz fiv-1a163bdb8b4878f456fb04b33978a92f3fcd8e91.zip |
Resolve a few issues with MSYS2 cross-builds
- Fix launching of subprocesses (missing gspawn helpers).
- Discard unused GSettings schemas.
- Make the program find its user guide.
- Bundle a somewhat suboptimal version of ExifTool.
Diffstat (limited to 'msys2-cross-install.sh')
-rwxr-xr-x | msys2-cross-install.sh | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/msys2-cross-install.sh b/msys2-cross-install.sh index f349e86..b98a227 100755 --- a/msys2-cross-install.sh +++ b/msys2-cross-install.sh @@ -3,14 +3,17 @@ export LC_ALL=C cd "$MESON_INSTALL_DESTDIR_PREFIX" msys2_root=$1 -# Copy libraries we depend on, and a few files required by GTK+. +# Copy libraries we depend on, and a few files required by GLib/GTK+. +cp -p "$msys2_root"/bin/exiftool.exe . cp -p "$msys2_root"/bin/*.dll . +# The console helper is only useful for debug builds. +cp -p "$msys2_root"/bin/gspawn-*-helper*.exe . cp -pR "$msys2_root"/etc/ . mkdir -p lib cp -pR "$msys2_root"/lib/gdk-pixbuf-2.0/ lib -mkdir -p share/glib-2.0 -cp -pR "$msys2_root"/share/glib-2.0/schemas/ share/glib-2.0 +mkdir -p share/glib-2.0/schemas +cp -pR "$msys2_root"/share/glib-2.0/schemas/*.Settings.* share/glib-2.0/schemas mkdir -p share cp -pR "$msys2_root"/share/mime/ share mkdir -p share/icons |