Synchronize cross-compilation scripts
This commit is contained in:
		@@ -62,7 +62,7 @@ for Windows.  It isn't particularly usable on that system, if only because
 | 
				
			|||||||
selection watching is a very X11/Wayland-specific feature.  Beware that build
 | 
					selection watching is a very X11/Wayland-specific feature.  Beware that build
 | 
				
			||||||
dependencies take up almost a gigabyte of disk space.
 | 
					dependencies take up almost a gigabyte of disk space.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 $ sh cmake/Win64Depends.sh
 | 
					 $ sh -e cmake/Win64Depends.sh
 | 
				
			||||||
 $ cmake -DCMAKE_TOOLCHAIN_FILE=cmake/Win64CrossToolchain.cmake \
 | 
					 $ cmake -DCMAKE_TOOLCHAIN_FILE=cmake/Win64CrossToolchain.cmake \
 | 
				
			||||||
   -DCMAKE_BUILD_TYPE=Release -B build
 | 
					   -DCMAKE_BUILD_TYPE=Release -B build
 | 
				
			||||||
 $ cmake --build build -- package
 | 
					 $ cmake --build build -- package
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,6 +1,6 @@
 | 
				
			|||||||
#!/bin/sh -e
 | 
					#!/bin/sh -e
 | 
				
			||||||
# Removes unused icons from the Adwaita theme, it could be even more aggressive,
 | 
					# Removes unused icons from the Adwaita theme. It could be even more aggressive,
 | 
				
			||||||
# since it keeps around lots of sizes and all the GTK+ stock icons
 | 
					# since it keeps around lots of sizes and all the GTK+ stock icons.
 | 
				
			||||||
export LC_ALL=C
 | 
					export LC_ALL=C
 | 
				
			||||||
find share/icons/Adwaita -type f | awk 'BEGIN {
 | 
					find share/icons/Adwaita -type f | awk 'BEGIN {
 | 
				
			||||||
	while (("grep -aho \"[a-z][a-z-]*\" *.dll *.exe" | getline) > 0)
 | 
						while (("grep -aho \"[a-z][a-z-]*\" *.dll *.exe" | getline) > 0)
 | 
				
			||||||
@@ -17,4 +17,4 @@ find share/icons/Adwaita -type f | awk 'BEGIN {
 | 
				
			|||||||
		sub(/-(ltr|rtl|symbolic)$/, "", base)) {}
 | 
							sub(/-(ltr|rtl|symbolic)$/, "", base)) {}
 | 
				
			||||||
	if (!keep)
 | 
						if (!keep)
 | 
				
			||||||
		print
 | 
							print
 | 
				
			||||||
}' | xargs rm
 | 
					}' | xargs rm --
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,5 +1,5 @@
 | 
				
			|||||||
#!/bin/sh -e
 | 
					#!/bin/sh -e
 | 
				
			||||||
# Win64Depends.sh: download dependencies from MSYS2 for cross-compilation
 | 
					# Win64Depends.sh: download dependencies from MSYS2 for cross-compilation.
 | 
				
			||||||
# Dependencies: AWK, sed, sha256sum, cURL, bsdtar, wine64
 | 
					# Dependencies: AWK, sed, sha256sum, cURL, bsdtar, wine64
 | 
				
			||||||
repository=https://repo.msys2.org/mingw/mingw64/
 | 
					repository=https://repo.msys2.org/mingw/mingw64/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -57,12 +57,12 @@ configure() {
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# This directory name matches the prefix in .pc files, so we don't need to
 | 
					# This directory name matches the prefix in .pc files, so we don't need to
 | 
				
			||||||
# modify them (pkgconf has --prefix-variable, but CMake can't pass that option)
 | 
					# modify them (pkgconf has --prefix-variable, but CMake can't pass that option).
 | 
				
			||||||
mkdir -p mingw64
 | 
					mkdir -p mingw64
 | 
				
			||||||
cd mingw64
 | 
					cd mingw64
 | 
				
			||||||
dbsync
 | 
					dbsync
 | 
				
			||||||
fetch mingw-w64-x86_64-gtk3 mingw-w64-x86_64-icu \
 | 
					fetch mingw-w64-x86_64-gtk3 mingw-w64-x86_64-icu \
 | 
				
			||||||
	mingw-w64-x86_64-libwinpthread-git # because we don't do "provides"?
 | 
						mingw-w64-x86_64-libwinpthread-git # Because we don't do "provides"?
 | 
				
			||||||
verify
 | 
					verify
 | 
				
			||||||
extract
 | 
					extract
 | 
				
			||||||
configure
 | 
					configure
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user