Commit Graph

27 Commits

Author SHA1 Message Date
Henri Verbeet
2b7d9790d6 configure: Use AC_CHECK_TOOL to check for widl.
In particular, this will automatically pick up
x86_64-w64-mingw32-widl/i686-w64-mingw32-widl (provided by mingw-w64-tools on
Debian) when present and building for the corresponding hosts.
2024-04-11 16:12:22 -05:00
Giovanni Mascellani
0752e545e4 configure: Detect pthread support using -pthread instead of -lpthread.
The latter links the pthread library, but doesn't set the preprocessor
state that some toolchains require. The former is the supported way
to use pthread.

This allows vkd3d to be compiled with the Android NDK.
2024-01-09 23:00:56 +01:00
Zebediah Figura
f34db84c62 configure: Allow specifying the Vulkan library path with VULKAN_LIBS.
Do not define it for the vkd3d build, but restore support for overriding it as a
configure argument.

This partially reverts 99a3adcc19.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=52915
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-27 21:46:18 +02:00
Zebediah Figura
99a3adcc19 configure: Remove the no longer used check for VULKAN_LIBS.
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-25 22:11:47 +02:00
Chip Davis
73bc52c273 configure: Also extract the cross target from Clang compilers.
Signed-off-by: Chip Davis <cdavis@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-08-06 12:31:15 +02:00
Matteo Bruni
0e504e974a build: Move Vulkan library detection to m4/check-vulkan.m4.
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-03-22 16:59:18 +01:00
Zebediah Figura
83c67e76ff include: Add basic documentation for vkd3d_types.h.
This is built on Doxygen. I'm not personally attached to Doxygen, but it was
easy enough to set up and write for, and I've found its compiled HTML to be
reasonably legible.

Note that Doxygen does allow for specifying documentation in external files,
if keeping the documentation out of the header is desired.

Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-09-02 16:22:47 +02:00
Henri Verbeet
a5daebbda9 build: Assume the soname is <library>.dll when building for MinGW hosts.
That's not strictly true, but the only case we care about is the Vulkan
DLL on Windows, for which the official import library is called
vulkan-1.lib, and the DLL is called vulkan-1.dll. We can do something
more elaborate once it becomes relevant.

Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-08-13 21:45:43 +02:00
Józef Kucia
68945ffcf3 build: Redirect stderr to /dev/null in VKD3D_PROG_WIDL.
Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-04-15 21:02:14 +02:00
Józef Kucia
233caa2fb0 build: Drop hack for stripping RPC includes from widl-generated headers.
This requires widl from Wine >= 3.20:

  commit b7402ddbbecdfaa81daa657fbb5d37661f401434
  Author: Józef Kucia <jkucia@codeweavers.com>
  Date:   Mon Nov 19 15:07:02 2018 +0100

      widl: Guard RPC includes with #ifdef _WIN32.

Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-04-10 18:56:41 +02:00
Józef Kucia
fa5a15c961 build: Fix pthread tests.
Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-03-19 18:42:03 +01:00
Józef Kucia
93676365b7 build: Check VK_HEADER_VERSION.
Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-10-29 17:08:38 +01:00
Chip Davis
61697e092a build: Detect soname of libvulkan at configure time.
Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-21 19:04:48 +02:00
Józef Kucia
d9858b63b9 build: Check how many arguments pthread_setname_np() takes.
Based on a patch by Chip Davis.

Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-16 11:03:44 +02:00
Józef Kucia
89a2dc46dd libs/vkd3d: Set names for internal threads.
Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-06-27 22:43:48 +02:00
Józef Kucia
41715a2f33 build: Use linker version scripts to control visibility.
Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-15 17:51:25 +01:00
Józef Kucia
54dd321729 build: Add VKD3D_CHECK_FUNC() macro.
Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-11 22:31:40 +01:00
Józef Kucia
ee8eb9b4e4 libs/vkd3d: Validate miplevel count while creating resources.
vkd3d_log2i() is imported from wined3d.

Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-11 22:31:33 +01:00
Józef Kucia
09658e3b9b build: Use __builtin_popcount() if available. 2017-09-08 15:04:30 +02:00
Józef Kucia
f530155ff1 build: Add original copyright notice for Autoconf macros. 2016-10-10 11:22:50 +02:00
Józef Kucia
663f2b4ae1 build: Require MinGW-w64 for crossbuilds.
Since dc7504c7fc we require "-municode"
support from cross compilers. Older MinGW32 doesn't support this option.
2016-10-05 11:34:07 +02:00
Józef Kucia
30a19692af build: Rewrite checks for MinGW using polymorphic shell variables. 2016-09-28 15:24:03 +02:00
Józef Kucia
f931d3ad66 build: Move checks for __sync functions to separate macros. 2016-09-28 15:24:03 +02:00
Józef Kucia
d8ff91a9f8 build: Reindent check-cflags.m4. 2016-09-28 15:24:03 +02:00
Józef Kucia
9eb2d6bafc build: Use "vkd3d" prefix for autoconf variables. 2016-09-28 15:24:03 +02:00
Józef Kucia
6bebee9a09 build: Add "crosstest" target for tests cross-compilation. 2016-09-21 12:57:24 +02:00
Józef Kucia
9f3ffd7287 build: Add initial Autotools files. 2016-09-21 09:05:15 +02:00