mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 16:50:47 +00:00
vulkan: Fix build on Windows
* Fix meson build script for Windows. Since the Vulkan dependency object was declared by us in case of Windows, the dependency object shouldn't be used for finding header * Fix build error by including Windows specific header gstvkdisplay.c(563): error C2065: 'VK_KHR_WIN32_SURFACE_EXTENSION_NAME': undeclared identifier
This commit is contained in:
parent
34ff895040
commit
1e38255c97
2 changed files with 6 additions and 1 deletions
|
@ -36,6 +36,9 @@
|
|||
#if GST_VULKAN_HAVE_WINDOW_IOS
|
||||
#include "ios/gstvkdisplay_ios.h"
|
||||
#endif
|
||||
#if GST_VULKAN_HAVE_WINDOW_WIN32
|
||||
#include "win32/gstvkwindow_win32.h"
|
||||
#endif
|
||||
|
||||
/**
|
||||
* SECTION:vkdisplay
|
||||
|
|
|
@ -65,6 +65,7 @@ vulkan_defines = []
|
|||
optional_deps = []
|
||||
has_vulkan_header = false
|
||||
vulkan_dep = dependency('', required: false)
|
||||
vulkan_inc_dir = ''
|
||||
|
||||
vulkan_conf = configuration_data()
|
||||
vulkan_conf_options = [
|
||||
|
@ -200,7 +201,8 @@ endif
|
|||
if host_system == 'windows'
|
||||
gdi_dep = cc.find_library('gdi32', required : get_option('vulkan'))
|
||||
|
||||
if gdi_dep.found() and cc.has_header('vulkan/vulkan_win32.h', dependencies : vulkan_dep)
|
||||
# Cannot use internal dependency object with cc.has_header()
|
||||
if gdi_dep.found() and cc.has_header('vulkan/vulkan_win32.h', args: '-I' + vulkan_inc_dir)
|
||||
vulkan_sources += ['win32/gstvkwindow_win32.c']
|
||||
optional_deps += [gdi_dep]
|
||||
vulkan_windowing = true
|
||||
|
|
Loading…
Reference in a new issue