mirror of
https://github.com/GerbilSoft/rom-properties.git
synced 2025-06-18 11:35:38 -04:00

Also ENABLE_OPENMP in appveyor.cmd. Note that it doesn't actually do anything right now, since we're not doing OFF/ON builds in AppVeyor anymore due to taking too long and timing out after 1hr.
17 lines
620 B
Bash
Executable File
17 lines
620 B
Bash
Executable File
#!/bin/sh
|
|
set -ev
|
|
cmake --version
|
|
|
|
# Enable or disable optional features?
|
|
if [ "$1" = "OFF" ]; then
|
|
export OPTEN=OFF
|
|
else
|
|
export OPTEN=ON
|
|
fi
|
|
|
|
OPTFEAT="-DENABLE_EXTRA_SECURITY=${OPTEN} -DENABLE_JPEG=${OPTEN} -DENABLE_XML=${OPTEN} -DENABLE_DECRYPTION=${OPTEN} -DENABLE_UNICE68=${OPTEN} -DENABLE_LIBMSPACK=${OPTEN} -DENABLE_PVRTC=${OPTEN} -DENABLE_ZSTD=${OPTEN} -DENABLE_LZ4=${OPTEN} -DENABLE_LZO=${OPTEN} -DENABLE_NLS=${OPTEN} -DENABLE_OPENMP=${OPTEN} -DENABLE_ASTC=${OPTEN}"
|
|
|
|
mkdir build || true
|
|
cd build
|
|
cmake .. -G Ninja -DBUILD_TESTING=ON -DENABLE_LTO=OFF -DENABLE_PCH=OFF -DTRACKER_INSTALL_API_VERSION=3 ${OPTFEAT}
|