2018-03-13 21:58:52 +03:00
|
|
|
#!/bin/sh -e
|
2014-10-04 15:23:23 +04:00
|
|
|
|
2016-03-06 14:49:34 +01:00
|
|
|
export CXX=clang++
|
|
|
|
export CC=clang
|
|
|
|
|
|
|
|
DEPENDENCIES_ROOT="/private/tmp/openmw-deps/openmw-deps"
|
2019-03-31 17:41:16 +02:00
|
|
|
QT_PATH=$(brew --prefix qt)
|
|
|
|
CCACHE_EXECUTABLE=$(brew --prefix ccache)/bin/ccache
|
2014-10-04 15:23:23 +04:00
|
|
|
mkdir build
|
|
|
|
cd build
|
2016-03-06 14:49:34 +01:00
|
|
|
|
|
|
|
cmake \
|
|
|
|
-D CMAKE_PREFIX_PATH="$DEPENDENCIES_ROOT;$QT_PATH" \
|
2019-03-31 17:41:16 +02:00
|
|
|
-D CMAKE_C_COMPILER_LAUNCHER="$CCACHE_EXECUTABLE" \
|
|
|
|
-D CMAKE_CXX_COMPILER_LAUNCHER="$CCACHE_EXECUTABLE" \
|
2020-07-01 17:52:34 +02:00
|
|
|
-D CMAKE_CXX_FLAGS="-std=c++11 -stdlib=libc++" \
|
2020-07-06 07:47:31 +02:00
|
|
|
-D CMAKE_C_FLAGS_RELEASE="-g -O0" \
|
|
|
|
-D CMAKE_CXX_FLAGS_RELEASE="-g -O0" \
|
2016-10-31 17:09:29 +01:00
|
|
|
-D CMAKE_OSX_DEPLOYMENT_TARGET="10.9" \
|
2020-07-06 07:47:31 +02:00
|
|
|
-D CMAKE_BUILD_TYPE=RELEASE \
|
2016-03-06 14:49:34 +01:00
|
|
|
-D OPENMW_OSX_DEPLOYMENT=TRUE \
|
2020-07-04 11:54:19 +02:00
|
|
|
-D BUILD_OPENMW=TRUE \
|
2020-07-22 21:54:18 +02:00
|
|
|
-D BUILD_OPENCS=TRUE \
|
2020-07-06 07:47:31 +02:00
|
|
|
-D BUILD_ESMTOOL=TRUE \
|
|
|
|
-D BUILD_BSATOOL=TRUE \
|
|
|
|
-D BUILD_ESSIMPORTER=TRUE \
|
|
|
|
-D BUILD_NIFTEST=TRUE \
|
2016-03-06 14:49:34 +01:00
|
|
|
-G"Unix Makefiles" \
|
|
|
|
..
|