Removes bundled ENet source. NOTE: system libenet (1.3) is now required on *nix, see BuildInstructions for updates. This change requires running update-workspaces. Fixes #1568.
Updates update-workspaces.sh and build-osx-libs.sh for this change. Updates precompiled win32 ENet to 1.3.12, built with VC++ 2010, and moves it to libraries/win32, refs #864. This was SVN commit r15457.
This commit is contained in:
parent
304a7c1201
commit
6bec648833
@ -271,13 +271,13 @@ extern_lib_defs = {
|
|||||||
},
|
},
|
||||||
enet = {
|
enet = {
|
||||||
compile_settings = function()
|
compile_settings = function()
|
||||||
if not _OPTIONS["with-system-enet"] then
|
if os.is("windows") or os.is("macosx") then
|
||||||
add_source_include_paths("enet")
|
add_default_include_paths("enet")
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
link_settings = function()
|
link_settings = function()
|
||||||
if not _OPTIONS["with-system-enet"] then
|
if os.is("windows") or os.is("macosx") then
|
||||||
add_source_lib_paths("enet")
|
add_default_lib_paths("enet")
|
||||||
end
|
end
|
||||||
add_default_links({
|
add_default_links({
|
||||||
win_names = { "enet" },
|
win_names = { "enet" },
|
||||||
|
@ -40,7 +40,6 @@ premake_args=""
|
|||||||
|
|
||||||
without_nvtt=false
|
without_nvtt=false
|
||||||
with_system_nvtt=false
|
with_system_nvtt=false
|
||||||
with_system_enet=false
|
|
||||||
with_system_miniupnpc=false
|
with_system_miniupnpc=false
|
||||||
with_system_mozjs24=false
|
with_system_mozjs24=false
|
||||||
enable_atlas=true
|
enable_atlas=true
|
||||||
@ -50,7 +49,7 @@ do
|
|||||||
case $i in
|
case $i in
|
||||||
--without-nvtt ) without_nvtt=true; premake_args="${premake_args} --without-nvtt" ;;
|
--without-nvtt ) without_nvtt=true; premake_args="${premake_args} --without-nvtt" ;;
|
||||||
--with-system-nvtt ) with_system_nvtt=true; premake_args="${premake_args} --with-system-nvtt" ;;
|
--with-system-nvtt ) with_system_nvtt=true; premake_args="${premake_args} --with-system-nvtt" ;;
|
||||||
--with-system-enet ) with_system_enet=true; premake_args="${premake_args} --with-system-enet" ;;
|
--with-system-enet ) echo "NOTE: the --with-system-enet option is deprecated, system ENet is now required"; echo ;;
|
||||||
--with-system-miniupnpc ) with_system_miniupnpc=true; premake_args="${premake_args} --with-system-miniupnpc" ;;
|
--with-system-miniupnpc ) with_system_miniupnpc=true; premake_args="${premake_args} --with-system-miniupnpc" ;;
|
||||||
--with-system-mozjs24 ) with_system_mozjs24=true; premake_args="${premake_args} --with-system-mozjs24" ;;
|
--with-system-mozjs24 ) with_system_mozjs24=true; premake_args="${premake_args} --with-system-mozjs24" ;;
|
||||||
--enable-atlas ) enable_atlas=true ;;
|
--enable-atlas ) enable_atlas=true ;;
|
||||||
@ -95,10 +94,6 @@ if [ "`uname -s`" != "Darwin" ]; then
|
|||||||
(cd ../../libraries/source/nvtt && MAKE=${MAKE} JOBS=${JOBS} ./build.sh) || die "NVTT build failed"
|
(cd ../../libraries/source/nvtt && MAKE=${MAKE} JOBS=${JOBS} ./build.sh) || die "NVTT build failed"
|
||||||
fi
|
fi
|
||||||
echo
|
echo
|
||||||
if [ "$with_system_enet" = "false" ]; then
|
|
||||||
(cd ../../libraries/source/enet && MAKE=${MAKE} JOBS=${JOBS} ./build.sh) || die "ENet build failed"
|
|
||||||
fi
|
|
||||||
echo
|
|
||||||
if [ "$with_system_miniupnpc" = "false" ]; then
|
if [ "$with_system_miniupnpc" = "false" ]; then
|
||||||
(cd ../../libraries/source/miniupnpc && MAKE=${MAKE} JOBS=${JOBS} ./build.sh) || die "MiniUPnPc build failed"
|
(cd ../../libraries/source/miniupnpc && MAKE=${MAKE} JOBS=${JOBS} ./build.sh) || die "MiniUPnPc build failed"
|
||||||
fi
|
fi
|
||||||
|
@ -42,10 +42,10 @@ GLOOX_VERSION="gloox-1.0.9"
|
|||||||
NSPR_VERSION="4.10.3"
|
NSPR_VERSION="4.10.3"
|
||||||
# OS X only includes part of ICU, and only the dylib
|
# OS X only includes part of ICU, and only the dylib
|
||||||
ICU_VERSION="icu4c-52_1"
|
ICU_VERSION="icu4c-52_1"
|
||||||
|
ENET_VERSION="enet-1.3.12"
|
||||||
# --------------------------------------------------------------
|
# --------------------------------------------------------------
|
||||||
# Bundled with the game:
|
# Bundled with the game:
|
||||||
# * SpiderMonkey 24
|
# * SpiderMonkey 24
|
||||||
# * ENet 1.3.3
|
|
||||||
# * NVTT
|
# * NVTT
|
||||||
# * FCollada
|
# * FCollada
|
||||||
# * MiniUPnPc
|
# * MiniUPnPc
|
||||||
@ -595,9 +595,39 @@ else
|
|||||||
fi
|
fi
|
||||||
popd > /dev/null
|
popd > /dev/null
|
||||||
|
|
||||||
|
# --------------------------------------------------------------
|
||||||
|
echo -e "Building ENet..."
|
||||||
|
|
||||||
|
LIB_VERSION="${ENET_VERSION}"
|
||||||
|
LIB_ARCHIVE="$LIB_VERSION.tar.gz"
|
||||||
|
LIB_DIRECTORY="$LIB_VERSION"
|
||||||
|
LIB_URL="http://enet.bespin.org/download/"
|
||||||
|
|
||||||
|
mkdir -p enet
|
||||||
|
pushd enet > /dev/null
|
||||||
|
|
||||||
|
if [[ "$force_rebuild" = "true" ]] || [[ ! -e .already-built ]] || [[ .already-built -ot $LIB_DIRECTORY ]]
|
||||||
|
then
|
||||||
|
INSTALL_DIR="$(pwd)"
|
||||||
|
|
||||||
|
rm -f .already-built
|
||||||
|
download_lib $LIB_URL $LIB_ARCHIVE
|
||||||
|
|
||||||
|
rm -rf $LIB_DIRECTORY bin include lib sbin share
|
||||||
|
tar -xf $LIB_ARCHIVE
|
||||||
|
pushd $LIB_DIRECTORY
|
||||||
|
|
||||||
|
(./configure CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" --prefix=${INSTALL_DIR} --enable-shared=no && make clean && make ${JOBS} && make install) || die "ENet build failed"
|
||||||
|
popd
|
||||||
|
touch .already-built
|
||||||
|
else
|
||||||
|
already_built
|
||||||
|
fi
|
||||||
|
popd > /dev/null
|
||||||
|
|
||||||
# --------------------------------------------------------------------
|
# --------------------------------------------------------------------
|
||||||
# The following libraries are shared on different OSes and may
|
# The following libraries are shared on different OSes and may
|
||||||
# be customzied, so we build and install them from bundled sources
|
# be customized, so we build and install them from bundled sources
|
||||||
# --------------------------------------------------------------------
|
# --------------------------------------------------------------------
|
||||||
echo -e "Building Spidermonkey..."
|
echo -e "Building Spidermonkey..."
|
||||||
|
|
||||||
@ -669,25 +699,6 @@ else
|
|||||||
fi
|
fi
|
||||||
popd > /dev/null
|
popd > /dev/null
|
||||||
|
|
||||||
# --------------------------------------------------------------
|
|
||||||
echo -e "Building ENet..."
|
|
||||||
|
|
||||||
pushd ../source/enet/ > /dev/null
|
|
||||||
|
|
||||||
if [[ "$force_rebuild" = "true" ]] || [[ ! -e .already-built ]]
|
|
||||||
then
|
|
||||||
INSTALL_DIR="$(pwd)"
|
|
||||||
rm -f .already-built
|
|
||||||
|
|
||||||
pushd src
|
|
||||||
(./configure CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" --prefix=${INSTALL_DIR} --enable-shared=no && make clean && make ${JOBS} && make install) || die "ENet build failed"
|
|
||||||
popd
|
|
||||||
touch .already-built
|
|
||||||
else
|
|
||||||
already_built
|
|
||||||
fi
|
|
||||||
popd > /dev/null
|
|
||||||
|
|
||||||
# --------------------------------------------------------------
|
# --------------------------------------------------------------
|
||||||
# NVTT - no install
|
# NVTT - no install
|
||||||
echo -e "Building NVTT..."
|
echo -e "Building NVTT..."
|
||||||
|
Loading…
Reference in New Issue
Block a user