Separate config files for MinGW/Cygwin.

git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1921 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
meep-eep
2005-10-25 10:52:10 +00:00
parent 6effc2b53e
commit 4d95b7b771
7 changed files with 96 additions and 11 deletions
+20 -2
View File
@@ -236,9 +236,16 @@ uqm_process_config() {
CFLAGS="$CFLAGS -I \"$BUILD_WORK\""
# Export the HAVE_ symbols to config_unix.h, using config_unix.h.in
# as template.
# as template (or config_win.h/config_win.h.in).
SUBSTITUTE_VARS="$HAVE_SYMBOLS CONTENTDIR"
SUBSTITUTE_FILES="config_unix.h"
case "$HOST_SYSTEM" in
MINGW32*|CYGWIN*)
SUBSTITUTE_FILES="config_win.h"
;;
*)
SUBSTITUTE_FILES="config_unix.h"
;;
esac
substitute_vars SUBSTITUTE_VARS SUBSTITUTE_FILES src "$BUILD_WORK"
# Make build.vars from build.vars.in, substituting variables.
@@ -379,4 +386,15 @@ uqm_install_osx() {
cp $uqm_NAME "$INSTROOT/MacOS/The Ur-Quan Masters"
}
uqm_clean() {
case "$HOST_SYSTEM" in
MINGW32*|CYGWIN*)
rm -f "$BUILD_WORK/config_win.h"
;;
*)
rm -f "$BUILD_WORK/config_unix.h"
;;
esac
}