mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-27 10:40:34 +00:00
97b0085c48
Build fails in ext/vulkan/xcb and ext/vulkan/wayland when: * building from tarball * building out-of-tree * Only one WSI integration (xcb or wayland) is enabled by configure.ac This is because vkconfig.h from source directory gets used instead of the generated one. Add the correct build directory to "-I". Use angle bracket include in vkapi.h so that it actually looks in the include search path instead of defaulting to the same (source tree) directory. https://bugzilla.gnome.org/show_bug.cgi?id=784539
45 lines
1.3 KiB
C
45 lines
1.3 KiB
C
/*
|
|
* GStreamer
|
|
* Copyright (C) 2015 Matthew Waters <matthew@centricular.com>
|
|
*
|
|
* This library is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU Library General Public
|
|
* License as published by the Free Software Foundation; either
|
|
* version 2 of the License, or (at your option) any later version.
|
|
*
|
|
* This library is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
* Library General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Library General Public
|
|
* License along with this library; if not, write to the
|
|
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
|
|
* Boston, MA 02110-1301, USA.
|
|
*/
|
|
|
|
#ifndef _VK_API_H_
|
|
#define _VK_API_H_
|
|
|
|
#define VK_PROTOTYPES
|
|
|
|
#include <vkconfig.h>
|
|
#include "vk_fwd.h"
|
|
#include "vkmacros.h"
|
|
|
|
/* Need these defined to have access to winsys functions before including vulkan.h */
|
|
#if GST_VULKAN_HAVE_WINDOW_XCB
|
|
#ifndef VK_USE_PLATFORM_XCB_KHR
|
|
#define VK_USE_PLATFORM_XCB_KHR
|
|
#endif
|
|
#endif
|
|
|
|
#if GST_VULKAN_HAVE_WINDOW_WAYLAND
|
|
#ifndef VK_USE_PLATFORM_WAYLAND_KHR
|
|
#define VK_USE_PLATFORM_WAYLAND_KHR
|
|
#endif
|
|
#endif
|
|
|
|
#include <vulkan/vulkan.h>
|
|
|
|
#endif /* _VK_H_ */
|