mirror of
https://github.com/id-Software/DOOM-3-BFG.git
synced 2025-04-24 18:50:20 +00:00
19 lines
1.3 KiB
Bash
Executable file
19 lines
1.3 KiB
Bash
Executable file
cd ..
|
|
rm -rf xcode-release
|
|
mkdir xcode-release
|
|
cd xcode-release
|
|
|
|
# asemarafa/SRS - Determine the Homebrew path prefix for openal-soft
|
|
if [ -z "$OPENAL_PREFIX" ]; then
|
|
OPENAL_PREFIX=$(brew --prefix openal-soft 2>/dev/null)
|
|
if [ -z "$OPENAL_PREFIX" ]; then
|
|
echo "Error: openal-soft is not installed via Homebrew."
|
|
echo "Either install it using 'brew install openal-soft' or define the path prefix via OPENAL_PREFIX."
|
|
exit 1
|
|
fi
|
|
fi
|
|
|
|
# note 1: remove or set -DCMAKE_SUPPRESS_REGENERATION=OFF to reenable ZERO_CHECK target which checks for CMakeLists.txt changes and re-runs CMake before builds
|
|
# however, if ZERO_CHECK is reenabled **must** add VULKAN_SDK location to Xcode Custom Paths (under Prefs/Locations) otherwise build failures may occur
|
|
# note 2: policy CMAKE_POLICY_DEFAULT_CMP0142=NEW suppresses non-existant per-config suffixes on Xcode library search paths, works for cmake version 3.25 and later
|
|
cmake -G Xcode -DCMAKE_BUILD_TYPE=Release -DCMAKE_CONFIGURATION_TYPES="Release;MinSizeRel;RelWithDebInfo" -DMACOSX_BUNDLE=ON -DFFMPEG=OFF -DBINKDEC=ON -DUSE_MoltenVK=ON -DCMAKE_XCODE_GENERATE_SCHEME=ON -DCMAKE_XCODE_SCHEME_ENABLE_GPU_API_VALIDATION=OFF -DCMAKE_SUPPRESS_REGENERATION=ON -DOPENAL_LIBRARY=$OPENAL_PREFIX/lib/libopenal.dylib -DOPENAL_INCLUDE_DIR=$OPENAL_PREFIX/include ../neo -DCMAKE_POLICY_DEFAULT_CMP0142=NEW -Wno-dev
|