Browse Source

Implement chbuild command for setting target build type

llvm_toolchain 2.0
Rafal Kupiec 7 months ago
parent
commit
9e200f0139
Signed by: belliash GPG Key ID: 4E829243E0CFE6B4
1 changed files with 19 additions and 0 deletions
  1. +19
    -0
      scripts/xtclib

+ 19
- 0
scripts/xtclib View File

@ -33,6 +33,24 @@ charch()
}
export -f charch
# Sets the build type
chbuild()
{
if [ "x${1}" == "x" ]; then
echo "Syntax: chbuild [DEBUG|RELEASE]"
return
fi
case ${1} in
[Rr][Ee][Ll][Ee][Aa][Ss][Ee])
export BUILD_TYPE="RELEASE"
;;
*)
export BUILD_TYPE="DEBUG"
esac
echo "Target build type: ${BUILD_TYPE}"
}
export -f chbuild
# Displays version banner
version()
{
@ -49,6 +67,7 @@ version()
echo "Wine Resource Compiler Version: $(${XTCDIR}/bin/wrc --version | grep 'version' | cut -d' ' -f5)"
echo
charch ${TARGET}
chbuild DEBUG
echo
echo
}


Loading…
Cancel
Save