summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorMichael Maltese <michaeljosephmaltese@gmail.com>2016-10-06 16:47:03 -0700
committerMichael Maltese <michaeljosephmaltese@gmail.com>2016-10-06 16:53:55 -0700
commitf301ebf780efc6216e6548d7985a153cc986bab4 (patch)
tree6d1ad47d48368e3d9a1996c389b2012ce20701ce /Source
parent3245ca236ae076f5fa08ce6ce72b06d9c30a6ece (diff)
Don't build Vulkan video backend on macOS
There's no official implementation of the Vulkan API, and Dolphin currently isn't set-up to work with the single, commercially-available third-party implementation.
Diffstat (limited to 'Source')
-rw-r--r--Source/Core/Core/CMakeLists.txt5
-rw-r--r--Source/Core/VideoBackends/CMakeLists.txt2
-rw-r--r--Source/Core/VideoCommon/VideoBackendBase.cpp4
3 files changed, 10 insertions, 1 deletions
diff --git a/Source/Core/Core/CMakeLists.txt b/Source/Core/Core/CMakeLists.txt
index 8d62fc0668..21862dafdd 100644
--- a/Source/Core/Core/CMakeLists.txt
+++ b/Source/Core/Core/CMakeLists.txt
@@ -236,7 +236,6 @@ set(LIBS
sfml-network
sfml-system
videonull
- videovulkan
videoogl
videosoftware
z
@@ -249,6 +248,10 @@ if(LIBUSB_FOUND)
IPC_HLE/WII_IPC_HLE_Device_usb_bt_real.cpp)
endif(LIBUSB_FOUND)
+if(NOT APPLE)
+ set(LIBS ${LIBS} videovulkan)
+endif()
+
set(LIBS ${LIBS} ${MBEDTLS_LIBRARIES})
if(WIN32)
diff --git a/Source/Core/VideoBackends/CMakeLists.txt b/Source/Core/VideoBackends/CMakeLists.txt
index 64344e43f8..82f2b0c3f3 100644
--- a/Source/Core/VideoBackends/CMakeLists.txt
+++ b/Source/Core/VideoBackends/CMakeLists.txt
@@ -1,5 +1,7 @@
add_subdirectory(OGL)
add_subdirectory(Null)
add_subdirectory(Software)
+if(NOT APPLE)
add_subdirectory(Vulkan)
+endif()
# TODO: Add other backends here!
diff --git a/Source/Core/VideoCommon/VideoBackendBase.cpp b/Source/Core/VideoCommon/VideoBackendBase.cpp
index 3e07f66eb8..4daac1b194 100644
--- a/Source/Core/VideoCommon/VideoBackendBase.cpp
+++ b/Source/Core/VideoCommon/VideoBackendBase.cpp
@@ -15,7 +15,9 @@
#include "VideoBackends/Null/VideoBackend.h"
#include "VideoBackends/OGL/VideoBackend.h"
#include "VideoBackends/Software/VideoBackend.h"
+#ifndef __APPLE__
#include "VideoBackends/Vulkan/VideoBackend.h"
+#endif
#include "VideoCommon/VideoBackendBase.h"
@@ -49,7 +51,9 @@ void VideoBackendBase::PopulateList()
g_available_video_backends.push_back(std::make_unique<DX12::VideoBackend>());
}
#endif
+#ifndef __APPLE__
g_available_video_backends.push_back(std::make_unique<Vulkan::VideoBackend>());
+#endif
g_available_video_backends.push_back(std::make_unique<SW::VideoSoftware>());
g_available_video_backends.push_back(std::make_unique<Null::VideoBackend>());