Skip to content

Commit 42c5453

Browse files
icd: Add build support for iOS and Metal surfaces
The CMakelists.txt only enabled the MACOS_MVK surface extension, so this makes MockICD more flexible for users.
1 parent 2bcf294 commit 42c5453

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

icd/CMakeLists.txt

+6-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,12 @@ option(BUILD_MOCK_ANDROID_SUPPORT "Build with Android Platform headers" OFF)
3030
if(WIN32)
3131
add_definitions(-DVK_USE_PLATFORM_WIN32_KHR -DVK_USE_PLATFORM_WIN32_KHX -DWIN32_LEAN_AND_MEAN)
3232
elseif(APPLE)
33-
add_definitions(-DVK_USE_PLATFORM_MACOS_MVK)
33+
add_definitions(-DVK_USE_PLATFORM_METAL_EXT)
34+
if (IOS)
35+
add_definitions(-DVK_USE_PLATFORM_IOS_MVK)
36+
else()
37+
add_definitions(-DVK_USE_PLATFORM_MACOS_MVK)
38+
endif()
3439
elseif(BUILD_MOCK_ANDROID_SUPPORT)
3540
add_definitions(-DVK_USE_PLATFORM_ANDROID_KHR)
3641
elseif(CMAKE_SYSTEM_NAME MATCHES "Linux|BSD|GNU")

0 commit comments

Comments
 (0)