mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-06 00:55:50 +00:00
3be1cdef33
* [macOS, CI] Use Xcode 11.6 * [macOS, CI] Enable OpenCs build and see how it goes * [macOS, CI] Re-enable package build and check
30 lines
772 B
Bash
Executable File
30 lines
772 B
Bash
Executable File
#!/bin/sh -e
|
|
|
|
export CXX=clang++
|
|
export CC=clang
|
|
|
|
DEPENDENCIES_ROOT="/private/tmp/openmw-deps/openmw-deps"
|
|
QT_PATH=$(brew --prefix qt)
|
|
CCACHE_EXECUTABLE=$(brew --prefix ccache)/bin/ccache
|
|
mkdir build
|
|
cd build
|
|
|
|
cmake \
|
|
-D CMAKE_PREFIX_PATH="$DEPENDENCIES_ROOT;$QT_PATH" \
|
|
-D CMAKE_C_COMPILER_LAUNCHER="$CCACHE_EXECUTABLE" \
|
|
-D CMAKE_CXX_COMPILER_LAUNCHER="$CCACHE_EXECUTABLE" \
|
|
-D CMAKE_CXX_FLAGS="-std=c++11 -stdlib=libc++" \
|
|
-D CMAKE_C_FLAGS_RELEASE="-g -O0" \
|
|
-D CMAKE_CXX_FLAGS_RELEASE="-g -O0" \
|
|
-D CMAKE_OSX_DEPLOYMENT_TARGET="10.9" \
|
|
-D CMAKE_BUILD_TYPE=RELEASE \
|
|
-D OPENMW_OSX_DEPLOYMENT=TRUE \
|
|
-D BUILD_OPENMW=TRUE \
|
|
-D BUILD_OPENCS=TRUE \
|
|
-D BUILD_ESMTOOL=TRUE \
|
|
-D BUILD_BSATOOL=TRUE \
|
|
-D BUILD_ESSIMPORTER=TRUE \
|
|
-D BUILD_NIFTEST=TRUE \
|
|
-G"Unix Makefiles" \
|
|
..
|