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