mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-17 08:11:51 +00:00
809e880bd1
* Update MoltenVK to 1.2.236 * Change mvk_config.fastMathEnabled from a bool to Int fastMathEnabled now has three options: NEVER = 0 ALWAYS = 1 ON_DEMAND = 2 On demand seems better, since it will use fast math except for shaders that are incompatible.
16 lines
877 B
CMake
16 lines
877 B
CMake
cmake_minimum_required(VERSION 2.8.12)
|
|
project(moltenvk NONE)
|
|
include(ExternalProject)
|
|
|
|
ExternalProject_Add(moltenvk
|
|
GIT_REPOSITORY https://github.com/KhronosGroup/MoltenVK.git
|
|
GIT_TAG a307b24
|
|
BUILD_IN_SOURCE 1
|
|
SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/MoltenVK
|
|
CONFIGURE_COMMAND "${CMAKE_CURRENT_SOURCE_DIR}/MoltenVK/fetchDependencies" --macos
|
|
BUILD_COMMAND xcodebuild build -quiet -project "${CMAKE_CURRENT_SOURCE_DIR}/MoltenVK/MoltenVKPackaging.xcodeproj" -scheme "MoltenVK Package \(macOS only\)" -configuration "Release" -arch "${CMAKE_HOST_SYSTEM_PROCESSOR}"
|
|
COMMAND ln -f "${CMAKE_CURRENT_SOURCE_DIR}/MoltenVK/MoltenVK/dylib/macOS/libMoltenVK.dylib" "${CMAKE_CURRENT_SOURCE_DIR}/MoltenVK/Build/Products/Release/dynamic/libMoltenVK.dylib"
|
|
INSTALL_COMMAND ""
|
|
BUILD_BYPRODUCTS "${CMAKE_CURRENT_SOURCE_DIR}/MoltenVK/Build/Products/Release/dynamic/libMoltenVK.dylib"
|
|
)
|