mirror of
https://github.com/GerbilSoft/rom-properties.git
synced 2025-06-18 19:45:41 -04:00

- appveyor.sh: %OPTFEAT% -> ${OPTFEAT} - appveyor.yml: ${configuration} -> ${CONFIGURATION}
17 lines
510 B
Bash
Executable File
17 lines
510 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}"
|
|
|
|
mkdir build
|
|
cd build
|
|
cmake .. -G Ninja -DBUILD_TESTING=ON -DENABLE_LTO=OFF -DENABLE_PCH=OFF ${OPTFEAT}
|