2018-07-16 03:12:43 +02:00
|
|
|
export CCACHE_SLOPPINESS=pch_defines,time_macros
|
|
|
|
export CMAKE_PREFIX_PATH=/usr/local/opt/qt5/
|
|
|
|
export PATH="/usr/local/opt/ccache/libexec:$PATH"
|
|
|
|
|
|
|
|
# Setup vulkan and gfx-rs/portability
|
|
|
|
curl -sLO https://github.com/gfx-rs/portability/releases/download/latest/gfx-portability-macos-latest.zip
|
|
|
|
unzip -: gfx-portability-macos-latest.zip
|
2019-06-02 09:44:05 +02:00
|
|
|
curl -sLO https://github.com/KhronosGroup/Vulkan-Headers/archive/sdk-1.1.106.0.zip
|
2018-07-16 03:12:43 +02:00
|
|
|
unzip -: sdk-*.zip
|
|
|
|
mkdir vulkan-sdk
|
|
|
|
ln -s ${PWD}/Vulkan-Headers*/include vulkan-sdk/include
|
|
|
|
mkdir vulkan-sdk/lib
|
2018-11-24 01:27:33 +01:00
|
|
|
cp target/release/libportability.dylib vulkan-sdk/lib/libVulkan.dylib
|
|
|
|
# Let macdeployqt locate and install Vulkan library
|
|
|
|
install_name_tool -id ${PWD}/vulkan-sdk/lib/libVulkan.dylib vulkan-sdk/lib/libVulkan.dylib
|
2018-07-16 03:12:43 +02:00
|
|
|
export VULKAN_SDK=${PWD}/vulkan-sdk
|
|
|
|
|
2019-11-09 16:43:10 +01:00
|
|
|
git submodule update --quiet --init asmjit 3rdparty/ffmpeg 3rdparty/pugixml 3rdparty/span 3rdparty/libpng 3rdparty/cereal 3rdparty/hidapi 3rdparty/libusb 3rdparty/xxHash 3rdparty/yaml-cpp 3rdparty/FAudio Vulkan/glslang
|
2018-07-16 03:12:43 +02:00
|
|
|
|
|
|
|
mkdir build; cd build
|
2018-12-20 06:55:05 +01:00
|
|
|
cmake .. -DWITH_LLVM=OFF -DUSE_NATIVE_INSTRUCTIONS=OFF -G Ninja
|
2018-07-16 03:12:43 +02:00
|
|
|
ninja
|