Logo
Explore Help
Sign In
q3aql/Serious-Engine
q3aql/Serious-Engine
1
0
Fork 0
You've already forked Serious-Engine
mirror of https://github.com/ptitSeb/Serious-Engine synced 2025-06-29 17:50:05 +02:00
Code Issues Packages Projects Releases Wiki Activity
Serious-Engine/Sources/build-mac.sh

15 lines
291 B
Bash
Raw Normal View History

Added CMake and a simple Mac build script, and nuked the awful old Makefile.
2016-04-01 15:16:34 -04:00
#!/bin/bash
Build on Mac OS X with reported number of CPU cores.
2016-04-03 00:00:04 -04:00
NCPU=`sysctl -n hw.ncpu`
echo "Will build with 'make -j$NCPU' ... please edit this script if incorrect."
Added CMake and a simple Mac build script, and nuked the awful old Makefile.
2016-04-01 15:16:34 -04:00
set -e
set -x
rm -rf cmake-build
mkdir $_
cd $_
Some cmake fixes, fixing OSX build (incl 64bit) + disable i386ASM by default OSX build was a bit broken, it needs to be linked against zlib. Furthermore it now uses the systems libSDL2 framework, unless you use -DUSE_SYSTEM_SDL2=FALSE i386 ASM is now disabled by default, we have plain C fallbacks for everything that seems to work well enough (and if not they need more testing which is likely to happen this way)
2016-04-21 17:40:42 +02:00
cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_OSX_ARCHITECTURES=i386 -DUSE_I386_ASM=TRUE -DUSE_SYSTEM_SDL2=FALSE ..
Build on Mac OS X with reported number of CPU cores.
2016-04-03 00:00:04 -04:00
make -j$NCPU
Added CMake and a simple Mac build script, and nuked the awful old Makefile.
2016-04-01 15:16:34 -04:00
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.1 Page: 29ms Template: 1ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API