mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-15 13:19:56 +00:00
22 lines
575 B
Bash
Executable file
22 lines
575 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_OSX_DEPLOYMENT_TARGET="10.9" \
|
|
-D CMAKE_BUILD_TYPE=DEBUG \
|
|
-D OPENMW_OSX_DEPLOYMENT=TRUE \
|
|
-D BUILD_ESMTOOL=FALSE \
|
|
-G"Unix Makefiles" \
|
|
..
|