#!/bin/sh # Use this script to build MegaGlest using cmake # ---------------------------------------------------------------------------- # 2011 Written by Mark Vejvoda # 2015 Rewritten by filux # Copyright (c) 2011-2015 under GNU GPL v3.0+ # ---------------------------------------------------------------------------- # Default to English language output so we can understand your bug reports export LANG=C SCRIPTDIR="$(cd "$(dirname "$0")"; pwd)" BUILD_BUNDLE=0 CPU_COUNT=-1 CMAKE_ONLY=0 MAKE_ONLY=0 USE_XCODE=0 GCC_FORCED=0 WANT_STATIC_LIBS="-DWANT_STATIC_LIBS=ON" FORCE_EMBEDDED_LIBS=0 LUA_FORCED_VERSION=0 COMPILATION_WITHOUT=0 while getopts "c:defhl:mnwxb" option; do case "${option}" in c) CPU_COUNT=${OPTARG};; d) WANT_STATIC_LIBS="-DWANT_STATIC_LIBS=OFF";; e) FORCE_EMBEDDED_LIBS=1;; f) GCC_FORCED=1;; h) echo "Usage: $0