|
@@ -49,13 +49,12 @@ set_default() {
|
|
|
binary_name="openttd"
|
|
|
enable_debug="0"
|
|
|
enable_desync_debug="0"
|
|
|
enable_profiling="0"
|
|
|
enable_lto="0"
|
|
|
enable_dedicated="0"
|
|
|
enable_network="1"
|
|
|
enable_static="1"
|
|
|
enable_translator="0"
|
|
|
enable_unicode="1"
|
|
|
enable_console="1";
|
|
|
enable_assert="1"
|
|
|
enable_strip="0"
|
|
@@ -127,13 +126,12 @@ set_default() {
|
|
|
binary_name
|
|
|
enable_debug
|
|
|
enable_desync_debug
|
|
|
enable_profiling
|
|
|
enable_lto
|
|
|
enable_dedicated
|
|
|
enable_network
|
|
|
enable_static
|
|
|
enable_translator
|
|
|
enable_unicode
|
|
|
enable_console
|
|
|
enable_assert
|
|
|
enable_strip
|
|
@@ -286,15 +284,12 @@ detect_params() {
|
|
|
--enable-lto) enable_lto="1";;
|
|
|
--enable-lto=*) enable_lto="$optarg";;
|
|
|
--enable-ipo) enable_lto="1";;
|
|
|
--enable-ipo=*) enable_lto="$optarg";;
|
|
|
--enable-dedicated) enable_dedicated="1";;
|
|
|
--enable-dedicated=*) enable_dedicated="$optarg";;
|
|
|
--enable-network) enable_network="2";;
|
|
|
--enable-network=*) enable_network="$optarg";;
|
|
|
--disable-network) enable_network="0";;
|
|
|
--disable-static) enable_static="0";;
|
|
|
--enable-static) enable_static="2";;
|
|
|
--enable-static=*) enable_static="$optarg";;
|
|
|
--disable-translator) enable_translator="0";;
|
|
|
--enable-translator) enable_translator="2";;
|
|
|
--enable-translator=*) enable_translator="$optarg";;
|
|
@@ -746,17 +741,12 @@ check_params() {
|
|
|
detect_sdl
|
|
|
detect_cocoa
|
|
|
|
|
|
if [ "$enable_dedicated" != "0" ]; then
|
|
|
log 1 "checking GDI video driver... dedicated server, skipping"
|
|
|
log 1 "checking dedicated... found"
|
|
|
|
|
|
if [ "$enable_network" = "0" ]; then
|
|
|
log 1 "configure: error: building a dedicated server without network support is pointless"
|
|
|
exit 1
|
|
|
fi
|
|
|
else
|
|
|
if [ "$os" = "MINGW" ] || [ "$os" = "CYGWIN" ]; then
|
|
|
log 1 "checking GDI video driver... found"
|
|
|
else
|
|
|
log 1 "checking GDI video driver... not Windows, skipping"
|
|
|
fi
|
|
@@ -781,18 +771,12 @@ check_params() {
|
|
|
elif [ "$enable_console" = "0" ]; then
|
|
|
log 1 "checking console application... disabled"
|
|
|
else
|
|
|
log 1 "checking console application... enabled"
|
|
|
fi
|
|
|
|
|
|
if [ "$enable_network" != "0" ]; then
|
|
|
log 1 "checking network... found"
|
|
|
else
|
|
|
log 1 "checking network... disabled"
|
|
|
fi
|
|
|
|
|
|
log 1 "checking squirrel... found"
|
|
|
SCRIPT_SRC_DIR="$ROOT_DIR/src/3rdparty/squirrel/include"
|
|
|
|
|
|
if [ "$enable_translator" != "0" ]; then
|
|
|
log 1 "checking translator... debug"
|
|
|
# -t shows TODO items, normally they are muted
|
|
@@ -1830,23 +1814,19 @@ make_cflags_and_ldflags() {
|
|
|
fi
|
|
|
|
|
|
if [ "$enable_unicode" != "0" ]; then
|
|
|
CFLAGS="$CFLAGS -DUNICODE -D_UNICODE"
|
|
|
fi
|
|
|
|
|
|
if [ "$enable_network" != "0" ]; then
|
|
|
CFLAGS="$CFLAGS -DENABLE_NETWORK"
|
|
|
|
|
|
if [ "$os" = "HAIKU" ]; then
|
|
|
LDFLAGS="$LDFLAGS -lnetwork"
|
|
|
fi
|
|
|
|
|
|
if [ "$os" = "SUNOS" ]; then
|
|
|
LDFLAGS="$LDFLAGS -lnsl -lsocket"
|
|
|
fi
|
|
|
fi
|
|
|
|
|
|
if [ "$enable_static" != "0" ]; then
|
|
|
# OSX can't handle -static in LDFLAGS
|
|
|
if [ "$os" != "OSX" ]; then
|
|
|
LDFLAGS="$LDFLAGS -static"
|
|
|
fi
|
|
@@ -3496,13 +3476,12 @@ showhelp() {
|
|
|
echo " --disable-cocoa-quickdraw disable the quickdraw window mode driver for Cocoa (OSX ONLY)"
|
|
|
echo " --disable-unicode disable unicode support to build win9x"
|
|
|
echo " version (Win32 ONLY)"
|
|
|
echo " --enable-console compile as a console application instead of as a GUI application."
|
|
|
echo " If this setting is active, debug output will appear in the same"
|
|
|
echo " console instead of opening a new window. (Win32 ONLY)"
|
|
|
echo " --disable-network disable network support"
|
|
|
echo " --disable-assert disable asserts (continue on errors)"
|
|
|
echo " --enable-strip enable any possible stripping"
|
|
|
echo " --without-osx-sysroot disable the automatic adding of sysroot "
|
|
|
echo " (OSX ONLY)"
|
|
|
echo " --without-application-bundle disable generation of application bundle"
|
|
|
echo " (OSX ONLY)"
|