This Trac instance is not used for development anymore!

We migrated our development workflow to git and Gitea.
To test the future redirection, replace trac by ariadne in the page URL.

source: ps/trunk/build/premake/build.sh

Last change on this file was 28187, checked in by Stan, 5 months ago

Add a custom script to build premake, like NVTT, FCollada, and Spidermonkey.
Fix an issue on newer GNU/Linux and macOS where the build would fail due to missing unistd includes.
Fixes: #6847
Accepted by: @vv221
Comments by: @sera
Differential Revision: https://code.wildfiregames.com/D4894

  • Property svn:executable set to *
File size: 821 bytes
RevLine 
[28187]1#!/bin/sh
2set -e
3
4LIB_VERSION="premake-5-alpha-14+wildfiregames.1"
5
6if [ -e .already-built ] && [ "$(cat .already-built)" = "${LIB_VERSION}" ]
7then
8 echo "Premake 5 is already up to date."
9 exit
10fi
11
12JOBS=${JOBS:="-j2"}
13MAKE=${MAKE:="make"}
14CFLAGS="${CFLAGS:=""} -Wno-error=implicit-function-declaration"
15OS="${OS:=$(uname -s)}"
16
17echo "Building Premake 5..."
18echo
19
20PREMAKE_BUILD_DIR=premake5/build/gmake2.unix
21# BSD and OS X need different Makefiles
22case "$OS" in
23"GNU/kFreeBSD" )
24 # use default gmake2.unix (needs -ldl as we have a GNU userland and libc)
25 ;;
26*"BSD" )
27 PREMAKE_BUILD_DIR=premake5/build/gmake2.bsd
28 ;;
29"Darwin" )
30 PREMAKE_BUILD_DIR=premake5/build/gmake2.macosx
31 ;;
32esac
33${MAKE} -C "${PREMAKE_BUILD_DIR}" "${JOBS}" CFLAGS="$CFLAGS" config=release
34
35echo "${LIB_VERSION}" > .already-built
Note: See TracBrowser for help on using the repository browser.