2020-10-17 00:09:15 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
if [ "${COMPILER}" = "gcc" ]; then
|
|
|
|
export CC=gcc
|
|
|
|
export CXX=g++
|
|
|
|
else
|
|
|
|
export CC=clang
|
|
|
|
export CXX=clang++
|
|
|
|
fi
|
2020-11-24 00:44:30 +00:00
|
|
|
|
2020-10-17 00:09:15 +00:00
|
|
|
if [ "${PLATFORM}" = "x86" ]; then
|
2020-11-24 00:44:30 +00:00
|
|
|
ADDITIONAL_CMAKE_ARGS="$ADDITIONAL_CMAKE_ARGS -DCMAKE_TOOLCHAIN_FILE=cmake/linux-compiler-i386-multilib.cmake"
|
2020-10-17 00:09:15 +00:00
|
|
|
fi
|
|
|
|
echo "Additional CMake Args - ${ADDITIONAL_CMAKE_ARGS}"
|
|
|
|
|
|
|
|
# Generate CMake into ./build
|
|
|
|
cmake \
|
2020-11-24 05:00:59 +00:00
|
|
|
-D CMAKE_CXX_COMPILER_LAUNCHER=ccache \
|
2020-11-24 05:41:10 +00:00
|
|
|
-D DISABLE_ADVANCE_SIMD=TRUE \
|
2020-10-17 00:09:15 +00:00
|
|
|
-D CMAKE_BUILD_TYPE=Release \
|
|
|
|
-D BUILD_REPLAY_LOADERS=TRUE \
|
|
|
|
-D CMAKE_BUILD_PO=FALSE \
|
|
|
|
-D GTK3_API=TRUE ${ADDITIONAL_CMAKE_ARGS} \
|
|
|
|
-B build
|