mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-06-17 13:53:57 -07:00
- Various build changes, in particular NSPR is not needed on Unix anymore - Add js/Initialization.h to source/scriptinterface/ScriptEngine.h - Use nullptr instead of JS::NullPtr(), see https://bugzilla.mozilla.org/show_bug.cgi?id=1164602 - Remove `JS::RuntimeOptionsRef.varObjFix`, see https://bugzilla.mozilla.org/show_bug.cgi?id=1171177 - Remove uses of `AutoIdArray`, see https://bugzilla.mozilla.org/show_bug.cgi?id=1191529 - `JS_InternUCStringN` has been renamed, see https://bugzilla.mozilla.org/show_bug.cgi?id=1178581 - `JS::Evaluate` now takes scope chains explicitly, see https://bugzilla.mozilla.org/show_bug.cgi?id=1097987 - Array functions (such as `JS_IsArrayObject`) are fallible and output to params, see https://bugzilla.mozilla.org/show_bug.cgi?id=f3d35d8 - Remove `JSCLASS_CACHED_PROTO_WIDTH` workaround in our code, see https://bugzilla.mozilla.org/show_bug.cgi?id=1236373 - Remove compile'n go (`setCompileAndGo`) and replace it by `setIsRunOnce` which will become the default in the future, see https://bugzilla.mozilla.org/show_bug.cgi?id=679939 - Mark shared memory in direct access operations (`JS_GetUint16ArrayData` and `JS_GetUint8ArrayData`), see https://bugzilla.mozilla.org/show_bug.cgi?id=1176214 - Use new `JS::ObjectOpResult`, see https://bugzilla.mozilla.org/show_bug.cgi?id=1113369 Thanks to wraitii, elexis, Krinkle and historic_bruno for contributions and comments, and to gentz, madpilot, s0600204 and Stan for testing and indirect contributions. Differential Revision: https://code.wildfiregames.com/D1510 This was SVN commit r22627.
65 lines
1.9 KiB
Bash
Executable file
65 lines
1.9 KiB
Bash
Executable file
#!/bin/sh
|
|
|
|
# Some of our makefiles depend on GNU make, so we set some sane defaults if MAKE
|
|
# is not set.
|
|
case "`uname -s`" in
|
|
"FreeBSD" | "OpenBSD" )
|
|
MAKE=${MAKE:="gmake"}
|
|
;;
|
|
* )
|
|
MAKE=${MAKE:="make"}
|
|
;;
|
|
esac
|
|
|
|
# Check the preserve-libs CL option
|
|
preserve_libs=false
|
|
|
|
for i in "$@"; do
|
|
case "$i" in
|
|
--preserve-libs ) preserve_libs=true ;;
|
|
esac
|
|
done
|
|
|
|
# (We don't attempt to clean up every last file here - output in
|
|
# binaries/system/ will still be there, etc. This is mostly just
|
|
# to quickly fix problems in the bundled dependencies.)
|
|
|
|
cd "$(dirname $0)"
|
|
# Now in build/workspaces/ (where we assume this script resides)
|
|
|
|
if [ "$preserve_libs" != "true" ]; then
|
|
echo "Cleaning bundled third-party dependencies..."
|
|
|
|
(cd ../../libraries/source/fcollada/src && rm -rf ./output)
|
|
(cd ../../libraries/source/nvtt/src && rm -rf ./build)
|
|
(cd ../../libraries/source/spidermonkey && rm -f .already-built)
|
|
(cd ../../libraries/source/spidermonkey && rm -rf ./mozjs-45.0.2)
|
|
fi
|
|
|
|
# Still delete the directory of previous SpiderMonkey versions to
|
|
# avoid wasting disk space if people clean workspaces after updating.
|
|
(cd ../../libraries/source/spidermonkey && rm -rf ./mozjs-38.0.0)
|
|
(cd ../../libraries/source/spidermonkey && rm -rf ./mozjs31)
|
|
(cd ../../libraries/source/spidermonkey && rm -rf ./mozjs24)
|
|
|
|
(cd ../premake/premake5/build/gmake.bsd && ${MAKE} clean)
|
|
(cd ../premake/premake5/build/gmake.macosx && ${MAKE} clean)
|
|
(cd ../premake/premake5/build/gmake.unix && ${MAKE} clean)
|
|
|
|
echo "Removing generated test files..."
|
|
|
|
find ../../source -name "test_*.cpp" -type f -not -name "test_setup.cpp" -exec rm {} \;
|
|
|
|
echo "Cleaning build output..."
|
|
|
|
# Remove workspaces/gcc if present
|
|
rm -rf ./gcc
|
|
# Remove workspaces/codeblocks if present
|
|
rm -rf ./codeblocks
|
|
# Remove workspaces/xcode3 if present
|
|
rm -rf ./xcode3
|
|
# Remove workspaces/xcode4 if present
|
|
rm -rf ./xcode4
|
|
|
|
echo
|
|
echo "Done. Try running update-workspaces.sh again now."
|