vkd3d: Use CONST_VTABLE.

This commit is contained in:
Giovanni Mascellani 2023-09-28 10:39:30 +02:00 committed by Alexandre Julliard
parent ef77d78a39
commit 627cf50320
Notes: Alexandre Julliard 2023-10-02 22:33:40 +02:00
Approved-by: Henri Verbeet (@hverbeet)
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/377
3 changed files with 3 additions and 1 deletions

View File

@ -13,7 +13,7 @@ mkdir build
cd build cd build
mkdir vulkan-headers mkdir vulkan-headers
cp -r /usr/include/vulkan /usr/include/vk_video /usr/include/spirv vulkan-headers cp -r /usr/include/vulkan /usr/include/vk_video /usr/include/spirv vulkan-headers
../configure --enable-demos --disable-doxygen-doc --without-ncurses --host=$HOST SONAME_LIBVULKAN="vulkan-1.dll" CPPFLAGS="-I$PWD/vulkan-headers" CFLAGS="-g -O2 -Wno-format -Wno-array-bounds -Wno-missing-prototypes -Wno-discarded-qualifiers -Wno-incompatible-pointer-types -Werror" LDFLAGS="-static-libgcc" && \ ../configure --enable-demos --disable-doxygen-doc --without-ncurses --host=$HOST SONAME_LIBVULKAN="vulkan-1.dll" CPPFLAGS="-I$PWD/vulkan-headers" CFLAGS="-g -O2 -Wno-format -Wno-array-bounds -Wno-missing-prototypes -Wno-incompatible-pointer-types -Werror" LDFLAGS="-static-libgcc" && \
make -j$(nproc) && \ make -j$(nproc) && \
make -j$(nproc) install DESTDIR="$PWD/destdir" || \ make -j$(nproc) install DESTDIR="$PWD/destdir" || \
touch ../pipeline_failed touch ../pipeline_failed

View File

@ -18,6 +18,7 @@
#define COBJMACROS #define COBJMACROS
#define INITGUID #define INITGUID
#define CONST_VTABLE
#include "vkd3d.h" #include "vkd3d.h"
#include "vkd3d_blob.h" #include "vkd3d_blob.h"
#include "vkd3d_debug.h" #include "vkd3d_debug.h"

View File

@ -22,6 +22,7 @@
#define COBJMACROS #define COBJMACROS
#define NONAMELESSUNION #define NONAMELESSUNION
#define VK_NO_PROTOTYPES #define VK_NO_PROTOTYPES
#define CONST_VTABLE
#ifdef _WIN32 #ifdef _WIN32
# define _WIN32_WINNT 0x0600 /* for condition variables */ # define _WIN32_WINNT 0x0600 /* for condition variables */