You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
473 B
Bash
22 lines
473 B
Bash
#! /bin/bash
|
|
|
|
# Run mingw winres as an rc replacement
|
|
# The 64-bit version can create 32-bit and 64-bit resource files too
|
|
|
|
args=()
|
|
|
|
arch="x86-64"
|
|
while (( "$#" )); do
|
|
case "$1" in
|
|
-m32) arch="i386" ;;
|
|
-m64) arch="x86-64" ;;
|
|
/I*|/D*) args+=("-${1#/}") ;;
|
|
/fo) args+=("-o") ;;
|
|
*) args+=("$1") ;;
|
|
esac
|
|
shift
|
|
done
|
|
|
|
#set -x
|
|
exec x86_64-w64-mingw32-windres -O coff -F pe-$arch "${args[@]}"
|