mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-08-15 14:43:32 -07:00
Bump premake to 5.0.0-dev (2026-07-03)
This adds support for the compilcommands action, which allows to improve the cppcheck workflow and is a requirement for include-what-you-use. Also disable unused dependencies like is done for macOS. Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
This commit is contained in:
parent
df48ad5813
commit
ca536a8cf1
2 changed files with 23 additions and 6 deletions
|
|
@ -182,6 +182,10 @@ targetdir(rootdir.."/binaries/system")
|
|||
libdirs(rootdir.."/binaries/system")
|
||||
location(_OPTIONS["outpath"])
|
||||
configurations { "Release", "Debug" }
|
||||
-- for > 5.0.0-beta8
|
||||
if defaultconfiguration ~= nil then
|
||||
defaultconfiguration("Release")
|
||||
end
|
||||
startproject "pyrogenesis"
|
||||
|
||||
source_root = rootdir.."/source/" -- default for most projects - overridden by local in others
|
||||
|
|
|
|||
|
|
@ -8,13 +8,13 @@ set -e
|
|||
|
||||
cd "$(dirname "$0")"
|
||||
|
||||
PV=5.0.0-beta7
|
||||
PV=55fc4b2deac045ca06dc23d98426423356c507c1
|
||||
LIB_VERSION=${PV}+wfg0
|
||||
|
||||
fetch()
|
||||
{
|
||||
curl -fLo "premake-core-${PV}.tar.gz" \
|
||||
"https://github.com/premake/premake-core/archive/refs/tags/v${PV}.tar.gz"
|
||||
"https://github.com/premake/premake-core/archive/${PV}.tar.gz"
|
||||
}
|
||||
|
||||
echo "Building Premake..."
|
||||
|
|
@ -54,18 +54,31 @@ patch -d "premake-core-${PV}" -p1 <patches/0001-Make-clang-default-toolset-for-B
|
|||
#build
|
||||
(
|
||||
cd "premake-core-${PV}"
|
||||
|
||||
# Detection doesn't work on macOS, so specify manually.
|
||||
if [ "$OS" = "Darwin" ]; then
|
||||
arch=$(uname -m)
|
||||
if [ "$arch" = "arm64" ]; then
|
||||
platform="ARM64"
|
||||
elif [ "$arch" = "x86_64" ]; then
|
||||
platform="x64"
|
||||
fi
|
||||
fi
|
||||
|
||||
config="--zlib-src=none --curl-src=none"
|
||||
|
||||
case "${OS}" in
|
||||
Windows)
|
||||
${MAKE} "${JOBS}" -f Bootstrap.mak windows
|
||||
${MAKE} "${JOBS}" -f Bootstrap.mak PREMAKE_OPTS="${config}" windows
|
||||
;;
|
||||
Darwin)
|
||||
${MAKE} "${JOBS}" -f Bootstrap.mak PREMAKE_OPTS="--zlib-src=none --curl-src=none" osx
|
||||
${MAKE} "${JOBS}" -f Bootstrap.mak PLATFORM="${platform}" PREMAKE_OPTS="${config}" osx
|
||||
;;
|
||||
*BSD)
|
||||
${MAKE} "${JOBS}" -f Bootstrap.mak bsd
|
||||
${MAKE} "${JOBS}" -f Bootstrap.mak PREMAKE_OPTS="${config}" bsd
|
||||
;;
|
||||
*)
|
||||
${MAKE} "${JOBS}" -f Bootstrap.mak linux
|
||||
${MAKE} "${JOBS}" -f Bootstrap.mak PREMAKE_OPTS="${config}" linux
|
||||
;;
|
||||
esac
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue