Some build-related improvements.

git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@243 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
meep-eep
2002-11-27 01:29:16 +00:00
parent 40ffa2a47f
commit a5e948eaa9
4 changed files with 23 additions and 6 deletions
+7 -6
View File
@@ -46,7 +46,7 @@ debug_action() {
DEBUG=1
}
CHOICE_debug_OPTION_nodebug_TITLE="No debugging information"
CHOICE_debug_OPTION_nodebug_ACTION='debug_action'
CHOICE_debug_OPTION_nodebug_ACTION='nodebug_action'
nodebug_action() {
CFLAGS="$CFLAGS -O3"
DEBUG=0
@@ -134,14 +134,15 @@ prefix="$INPUT_install_prefix_VALUE" \
CONTENTDIR="${INSTALL_LIBDIR}uqm/content"
# Export the HAVE_ symbols to config.h, using config.h.in as template
SUBSTITUTE_VARS="$HAVE_SYMBOLS CONTENTDIR"
SUBSTITUTE_FILES="src/config.h"
substitute_vars SUBSTITUTE_VARS SUBSTITUTE_FILES
CFLAGS="$CFLAGS -DHAVE_CONFIG_H"
# Make build.vars from build.vars.in, substituting variables.
SUBSTITUTE_VARS="CFLAGS LDFLAGS MAKE DEBUG SOUNDMODULE HAVE_OPENGL \
INSTALL_LIBDIR INSTALL_BINDIR"
SUBSTITUTE_FILES="build.vars"
substitute_vars SUBSTITUTE_VARS SUBSTITUTE_FILES
# Export the HAVE_ symbols to config.h, using config.h.in as template
SUBSTITUTE_VARS="$HAVE_SYMBOLS CONTENTDIR"
SUBSTITUTE_FILES="src/config.h"
substitute_vars SUBSTITUTE_VARS SUBSTITUTE_FILES