VirtualBox

source: vbox/trunk/src/libs/dxvk-2.3.1/Makefile.kmk@ 107544

Last change on this file since 107544 was 107544, checked in by vboxsync, 3 weeks ago

libs/dxvk-2.3.1: Make it build on Windows (optionally, for development purpose)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 16.3 KB
Line 
1# $Id: Makefile.kmk 107544 2025-01-08 17:50:33Z vboxsync $
2## @file
3# Sub-Makefile for the dxvk-native library.
4#
5
6#
7# Copyright (C) 2022-2024 Oracle and/or its affiliates.
8#
9# This file is part of VirtualBox base platform packages, as
10# available from https://www.virtualbox.org.
11#
12# This program is free software; you can redistribute it and/or
13# modify it under the terms of the GNU General Public License
14# as published by the Free Software Foundation, in version 3 of the
15# License.
16#
17# This program is distributed in the hope that it will be useful, but
18# WITHOUT ANY WARRANTY; without even the implied warranty of
19# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20# General Public License for more details.
21#
22# You should have received a copy of the GNU General Public License
23# along with this program; if not, see <https://www.gnu.org/licenses>.
24#
25# SPDX-License-Identifier: GPL-3.0-only
26#
27
28SUB_DEPTH = ../../..
29include $(KBUILD_PATH)/subheader.kmk
30
31#
32# Targets.
33#
34LIBRARIES += VBox-DxVkNativeUtil VBox-DxVkNativeDxVk VBox-DxVkNativeD3D11
35DLLS += VBoxDxVk
36
37#
38# Globals.
39#
40VBOX_PATH_DXVK := $(PATH_SUB_CURRENT)
41ifeq ($(KBUILD_TARGET),win)
42 VBOX_DXVK_PLATFORM = DXVK_PLATFORM_WINDOWS
43 VBOX_DXVK_CXXFLAGS_WIN = -GR # DXVK uses RTTI
44 VBOX_DXVK_CXXFLAGS_WIN += -wd4101 # 'e': unreferenced local variable
45 VBOX_DXVK_CXXFLAGS_WIN += -wd4146 # unary minus operator applied to unsigned type, result still unsigned
46 VBOX_DXVK_CXXFLAGS_WIN += -wd4265 # 'dxvk::DxgiMonitorInfo': class has virtual functions, but its non-trivial destructor is not virtual; instances of this class may not be destructed correctly
47 VBOX_DXVK_CXXFLAGS_WIN += -wd4355 # 'this': used in base member initializer list
48 VBOX_DXVK_CXXFLAGS_WIN += -wd4456 # declaration of 'deviceId' hides previous local declaration
49 VBOX_DXVK_CXXFLAGS_WIN += -wd4457 # declaration of 'extent' hides function parameter
50 VBOX_DXVK_CXXFLAGS_WIN += -wd4458 # declaration of 'Srgb' hides class member
51 VBOX_DXVK_CXXFLAGS_WIN += -wd4701 # potentially uninitialized local variable 'vec0' used
52 VBOX_DXVK_CXXFLAGS_WIN += -wd4800 # Implicit conversion from 'VkBool32' to bool. Possible information loss
53 VBOX_DXVK_CXXFLAGS_WIN += -wd4805 # '&=': unsafe mix of type 'bool' and type 'BOOL' in operation
54 VBOX_DXVK_CXXFLAGS_WIN += -wd4946 # reinterpret_cast used between related classes: 'dxvk::D3D9DeviceEx' and 'IDirect3DDevice9Ex'
55 VBOX_DXVK_CXXFLAGS_WIN += -wd5039 # pointer or reference to potentially throwing function passed to 'extern "C"' function under -EHc. Undefined behavior may occur if this function throws an exception.
56 VBOX_DXVK_CXXFLAGS_WIN += -wd5041 # 'DefaultFrameLatency': out-of-line definition for constexpr static data member is not needed and is deprecated in C++17
57 VBOX_DXVK_CXXFLAGS_WIN += -wd5204 # class has virtual functions, but its trivial destructor is not virtual
58 VBOX_DXVK_CXXFLAGS_WIN += -wd5219 # implicit conversion from 'int' to 'float', possible loss of data
59 VBOX_DXVK_CXXFLAGS_WIN += -wd5264 # 'MaxPendingSubmits': 'const' variable is not used
60 VBOX_DXVK_CXXFLAGS_WIN += -wd5267 # definition of implicit copy constructor for 'dxvk::DxvkSparseBindSubmission' is deprecated because it has a user-provided destructor
61else
62 VBOX_DXVK_PLATFORM = DXVK_PLATFORM_LINUX
63endif
64
65# The HLSL to Spir-V shader compiler
66VBOX_GLSLANGVALIDATOR_PATH ?= $(lastword $(sort $(wildcard $(KBUILD_DEVTOOLS_TRG)/glslang/v11*)))
67ifeq ($(VBOX_GLSLANGVALIDATOR_PATH),)
68 VBOX_GLSLANGVALIDATOR ?= glslangValidator$(HOSTSUFF_EXE)
69else
70 VBOX_GLSLANGVALIDATOR ?= $(VBOX_GLSLANGVALIDATOR_PATH)/glslangValidator$(HOSTSUFF_EXE)
71endif
72
73#
74# Some stuff for compiling shares into header files and making the target depend on these.
75#
76
77## Internal.
78## @param 1 full path to shader source.
79define def_VBoxDxVkCompileShader
80 $(1)/shaders/$(basename $(notdir $(2))).h: $(2) | $$$$(dir $$$$@)
81 $(VBOX_GLSLANGVALIDATOR) -V --vn "$(basename $(notdir $(2)))" "$$<" -o "$$@"
82endef
83
84## Process the VBOX_SHADERS for a target.
85## @param 1 target name
86define def_VBoxDxVkCompilerShaders
87 $$(call KB_FN_DO_PASS0_ON_TARGET,$(1))
88 $(1)_INCS += $$($(1)_0_OUTDIR)/shaders
89 $(1)_BLDDIRS += $$($(1)_0_OUTDIR)/shaders
90 $(1)_INTERMEDIATES := $$(foreach shader,$$($(1)_VBOX_SHADERS) \
91 ,$$($(1)_0_OUTDIR)/shaders/$$(basename $$(notdir $$(shader))).h)
92 $$(foreach shader,$$($(1)_VBOX_SHADERS),$$(evalcall2 def_VBoxDxVkCompileShader,$$($(1)_0_OUTDIR),$$(shader)))
93endef
94
95
96#
97# DXK utilities static library
98#
99VBox-DxVkNativeUtil_TEMPLATE = VBoxR3DllNonPedantic
100VBox-DxVkNativeUtil_DEFS = \
101 DXVK_NATIVE \
102 NOMINMAX \
103 _WIN32_WINNT=0xa00
104VBox-DxVkNativeUtil_DEFS += \
105 $(VBOX_DXVK_PLATFORM) \
106 DXVK_WSI_HEADLESS
107VBox-DxVkNativeUtil_CXXFLAGS.linux += \
108 -std=c++17 -Wno-deprecated-declarations # The latter is for std::iterator in util_bit.h.
109VBox-DxVkNativeUtil_CXXFLAGS.darwin += \
110 -std=c++17
111VBox-DxVkNativeUtil_CXXFLAGS.win += \
112 $(VBOX_DXVK_CXXFLAGS_WIN)
113VBox-DxVkNativeUtil_INCS = \
114 $(VBOX_PATH_DXVK) \
115 $(VBOX_PATH_DXVK)/include/ \
116 $(VBOX_PATH_DXVK)/src/util/ \
117 $(VBOX_PATH_DXVK)/include/vulkan/include \
118 $(VBOX_PATH_DXVK)/include/spirv/include
119ifneq ($(KBUILD_TARGET),win)
120VBox-DxVkNativeUtil_INCS += \
121 $(VBOX_PATH_DXVK)/include/native/ \
122 $(VBOX_PATH_DXVK)/include/native/windows \
123 $(VBOX_PATH_DXVK)/include/native/directx
124endif
125VBox-DxVkNativeUtil_SOURCES = \
126 src/util/util_env.cpp \
127 src/util/util_string.cpp \
128 src/util/util_fps_limiter.cpp \
129 src/util/util_flush.cpp \
130 src/util/util_gdi.cpp \
131 src/util/util_luid.cpp \
132 src/util/util_matrix.cpp \
133 src/util/util_shared_res.cpp \
134 src/util/util_sleep.cpp \
135 src/util/thread.cpp \
136 src/util/com/com_guid.cpp \
137 src/util/com/com_private_data.cpp \
138 src/util/config/config.cpp \
139 src/util/log/log.cpp \
140 src/util/log/log_debug.cpp \
141 src/util/sha1/sha1.c \
142 src/util/sha1/sha1_util.cpp \
143 src/util/sync/sync_recursive.cpp \
144 src/spirv/spirv_code_buffer.cpp \
145 src/spirv/spirv_compression.cpp \
146 src/spirv/spirv_module.cpp \
147 src/vulkan/vulkan_loader.cpp \
148 src/vulkan/vulkan_names.cpp \
149 src/dxgi/dxgi_adapter.cpp \
150 src/dxgi/dxgi_enums.cpp \
151 src/dxgi/dxgi_factory.cpp \
152 src/dxgi/dxgi_format.cpp \
153 src/dxgi/dxgi_main.cpp \
154 src/dxgi/dxgi_monitor.cpp \
155 src/dxgi/dxgi_options.cpp \
156 src/dxgi/dxgi_output.cpp \
157 src/dxgi/dxgi_surface.cpp \
158 src/dxgi/dxgi_swapchain.cpp \
159 src/dxbc/dxbc_analysis.cpp \
160 src/dxbc/dxbc_chunk_isgn.cpp \
161 src/dxbc/dxbc_chunk_shex.cpp \
162 src/dxbc/dxbc_common.cpp \
163 src/dxbc/dxbc_compiler.cpp \
164 src/dxbc/dxbc_decoder.cpp \
165 src/dxbc/dxbc_defs.cpp \
166 src/dxbc/dxbc_header.cpp \
167 src/dxbc/dxbc_module.cpp \
168 src/dxbc/dxbc_names.cpp \
169 src/dxbc/dxbc_options.cpp \
170 src/dxbc/dxbc_reader.cpp \
171 src/dxbc/dxbc_util.cpp \
172 src/dxso/dxso_analysis.cpp \
173 src/dxso/dxso_code.cpp \
174 src/dxso/dxso_common.cpp \
175 src/dxso/dxso_compiler.cpp \
176 src/dxso/dxso_ctab.cpp \
177 src/dxso/dxso_decoder.cpp \
178 src/dxso/dxso_enums.cpp \
179 src/dxso/dxso_header.cpp \
180 src/dxso/dxso_module.cpp \
181 src/dxso/dxso_options.cpp \
182 src/dxso/dxso_reader.cpp \
183 src/dxso/dxso_tables.cpp \
184 src/dxso/dxso_util.cpp \
185 src/wsi/wsi_edid.cpp \
186 src/wsi/headless/wsi_monitor_headless.cpp \
187 src/wsi/headless/wsi_window_headless.cpp
188
189#
190# Core DXVK library.
191#
192VBox-DxVkNativeDxVk_TEMPLATE = VBoxR3DllNonPedantic
193VBox-DxVkNativeDxVk_DEFS = \
194 DXVK_NATIVE \
195 NOMINMAX \
196 _WIN32_WINNT=0xa00
197VBox-DxVkNativeDxVk_DEFS += \
198 $(VBOX_DXVK_PLATFORM) \
199 DXVK_WSI_HEADLESS
200VBox-DxVkNativeDxVk_CXXFLAGS.linux += \
201 -std=c++17 -Wno-deprecated-declarations # The latter is for std::iterator in util_bit.h.
202VBox-DxVkNativeDxVk_CXXFLAGS.darwin += \
203 -std=c++17
204VBox-DxVkNativeDxVk_CXXFLAGS.win += \
205 $(VBOX_DXVK_CXXFLAGS_WIN)
206VBox-DxVkNativeDxVk_INCS = \
207 $(VBOX_PATH_DXVK) \
208 $(VBOX_PATH_DXVK)/include/ \
209 $(VBOX_PATH_DXVK)/src/util/ \
210 $(VBOX_PATH_DXVK)/include/vulkan/include \
211 $(VBOX_PATH_DXVK)/include/spirv/include
212ifneq ($(KBUILD_TARGET),win)
213VBox-DxVkNativeDxVk_INCS += \
214 $(VBOX_PATH_DXVK)/include/native/ \
215 $(VBOX_PATH_DXVK)/include/native/windows \
216 $(VBOX_PATH_DXVK)/include/native/directx
217endif
218VBox-DxVkNativeDxVk_SOURCES = \
219 src/dxvk/dxvk_adapter.cpp \
220 src/dxvk/dxvk_barrier.cpp \
221 src/dxvk/dxvk_buffer.cpp \
222 src/dxvk/dxvk_cmdlist.cpp \
223 src/dxvk/dxvk_compute.cpp \
224 src/dxvk/dxvk_context.cpp \
225 src/dxvk/dxvk_cs.cpp \
226 src/dxvk/dxvk_data.cpp \
227 src/dxvk/dxvk_descriptor.cpp \
228 src/dxvk/dxvk_device.cpp \
229 src/dxvk/dxvk_device_filter.cpp \
230 src/dxvk/dxvk_extensions.cpp \
231 src/dxvk/dxvk_fence.cpp \
232 src/dxvk/dxvk_format.cpp \
233 src/dxvk/dxvk_framebuffer.cpp \
234 src/dxvk/dxvk_gpu_event.cpp \
235 src/dxvk/dxvk_gpu_query.cpp \
236 src/dxvk/dxvk_graphics.cpp \
237 src/dxvk/dxvk_image.cpp \
238 src/dxvk/dxvk_instance.cpp \
239 src/dxvk/dxvk_lifetime.cpp \
240 src/dxvk/dxvk_memory.cpp \
241 src/dxvk/dxvk_meta_blit.cpp \
242 src/dxvk/dxvk_meta_clear.cpp \
243 src/dxvk/dxvk_meta_copy.cpp \
244 src/dxvk/dxvk_meta_mipgen.cpp \
245 src/dxvk/dxvk_meta_pack.cpp \
246 src/dxvk/dxvk_meta_resolve.cpp \
247 src/dxvk/dxvk_options.cpp \
248 src/dxvk/dxvk_pipelayout.cpp \
249 src/dxvk/dxvk_pipemanager.cpp \
250 src/dxvk/dxvk_presenter.cpp \
251 src/dxvk/dxvk_queue.cpp \
252 src/dxvk/dxvk_resource.cpp \
253 src/dxvk/dxvk_sampler.cpp \
254 src/dxvk/dxvk_shader.cpp \
255 src/dxvk/dxvk_shader_key.cpp \
256 src/dxvk/dxvk_signal.cpp \
257 src/dxvk/dxvk_sparse.cpp \
258 src/dxvk/dxvk_staging.cpp \
259 src/dxvk/dxvk_state_cache.cpp \
260 src/dxvk/dxvk_stats.cpp \
261 src/dxvk/dxvk_swapchain_blitter.cpp \
262 src/dxvk/dxvk_unbound.cpp \
263 src/dxvk/dxvk_util.cpp \
264 src/dxvk/hud/dxvk_hud.cpp \
265 src/dxvk/hud/dxvk_hud_font.cpp \
266 src/dxvk/hud/dxvk_hud_item.cpp \
267 src/dxvk/hud/dxvk_hud_renderer.cpp \
268 src/dxvk/platform/dxvk_headless_exts.cpp
269VBox-DxVkNativeDxVk_VBOX_SHADERS := \
270 $(PATH_SUB_CURRENT)/src/dxvk/shaders/dxvk_clear_buffer_u.comp \
271 $(PATH_SUB_CURRENT)/src/dxvk/shaders/dxvk_clear_image2d_u.comp \
272 $(PATH_SUB_CURRENT)/src/dxvk/shaders/dxvk_unpack_d32s8.comp \
273 $(PATH_SUB_CURRENT)/src/dxvk/shaders/dxvk_copy_buffer_image.comp \
274 $(PATH_SUB_CURRENT)/src/dxvk/shaders/dxvk_clear_image3d_u.comp \
275 $(PATH_SUB_CURRENT)/src/dxvk/shaders/dxvk_clear_image2d_f.comp \
276 $(PATH_SUB_CURRENT)/src/dxvk/shaders/dxvk_clear_image2darr_f.comp \
277 $(PATH_SUB_CURRENT)/src/dxvk/shaders/dxvk_clear_image2darr_u.comp \
278 $(PATH_SUB_CURRENT)/src/dxvk/shaders/dxvk_clear_image1darr_u.comp \
279 $(PATH_SUB_CURRENT)/src/dxvk/shaders/dxvk_clear_image1darr_f.comp \
280 $(PATH_SUB_CURRENT)/src/dxvk/shaders/dxvk_unpack_d24s8.comp \
281 $(PATH_SUB_CURRENT)/src/dxvk/shaders/dxvk_clear_buffer_f.comp \
282 $(PATH_SUB_CURRENT)/src/dxvk/shaders/dxvk_unpack_d24s8_as_d32s8.comp \
283 $(PATH_SUB_CURRENT)/src/dxvk/shaders/dxvk_clear_image1d_f.comp \
284 $(PATH_SUB_CURRENT)/src/dxvk/shaders/dxvk_clear_image1d_u.comp \
285 $(PATH_SUB_CURRENT)/src/dxvk/shaders/dxvk_pack_d32s8.comp \
286 $(PATH_SUB_CURRENT)/src/dxvk/shaders/dxvk_clear_image3d_f.comp \
287 $(PATH_SUB_CURRENT)/src/dxvk/shaders/dxvk_pack_d24s8.comp \
288 \
289 $(PATH_SUB_CURRENT)/src/dxvk/shaders/dxvk_fullscreen_geom.geom \
290 \
291 $(PATH_SUB_CURRENT)/src/dxvk/shaders/dxvk_present_vert.vert \
292 $(PATH_SUB_CURRENT)/src/dxvk/shaders/dxvk_fullscreen_vert.vert \
293 $(PATH_SUB_CURRENT)/src/dxvk/shaders/dxvk_fullscreen_layer_vert.vert \
294 \
295 $(PATH_SUB_CURRENT)/src/dxvk/shaders/dxvk_present_frag_blit.frag \
296 $(PATH_SUB_CURRENT)/src/dxvk/shaders/dxvk_copy_depth_stencil_ms.frag \
297 $(PATH_SUB_CURRENT)/src/dxvk/shaders/dxvk_resolve_frag_f_amd.frag \
298 $(PATH_SUB_CURRENT)/src/dxvk/shaders/dxvk_copy_color_2d.frag \
299 $(PATH_SUB_CURRENT)/src/dxvk/shaders/dxvk_blit_frag_1d.frag \
300 $(PATH_SUB_CURRENT)/src/dxvk/shaders/dxvk_dummy_frag.frag \
301 $(PATH_SUB_CURRENT)/src/dxvk/shaders/dxvk_present_frag_ms.frag \
302 $(PATH_SUB_CURRENT)/src/dxvk/shaders/dxvk_copy_color_1d.frag \
303 $(PATH_SUB_CURRENT)/src/dxvk/shaders/dxvk_resolve_frag_i.frag \
304 $(PATH_SUB_CURRENT)/src/dxvk/shaders/dxvk_resolve_frag_d.frag \
305 $(PATH_SUB_CURRENT)/src/dxvk/shaders/dxvk_present_frag_ms_amd.frag \
306 $(PATH_SUB_CURRENT)/src/dxvk/shaders/dxvk_copy_depth_stencil_2d.frag \
307 $(PATH_SUB_CURRENT)/src/dxvk/shaders/dxvk_resolve_frag_f.frag \
308 $(PATH_SUB_CURRENT)/src/dxvk/shaders/dxvk_blit_frag_2d.frag \
309 $(PATH_SUB_CURRENT)/src/dxvk/shaders/dxvk_copy_color_ms.frag \
310 $(PATH_SUB_CURRENT)/src/dxvk/shaders/dxvk_blit_frag_3d.frag \
311 $(PATH_SUB_CURRENT)/src/dxvk/shaders/dxvk_resolve_frag_u.frag \
312 $(PATH_SUB_CURRENT)/src/dxvk/shaders/dxvk_present_frag.frag \
313 $(PATH_SUB_CURRENT)/src/dxvk/shaders/dxvk_copy_depth_stencil_1d.frag \
314 $(PATH_SUB_CURRENT)/src/dxvk/shaders/dxvk_resolve_frag_ds.frag \
315 \
316 $(PATH_SUB_CURRENT)/src/d3d11/shaders/d3d11_video_blit_vert.vert \
317 $(PATH_SUB_CURRENT)/src/d3d11/shaders/d3d11_video_blit_frag.frag \
318 \
319 $(PATH_SUB_CURRENT)/src/dxvk/hud/shaders/hud_graph_frag.frag \
320 $(PATH_SUB_CURRENT)/src/dxvk/hud/shaders/hud_graph_vert.vert \
321 $(PATH_SUB_CURRENT)/src/dxvk/hud/shaders/hud_text_frag.frag \
322 $(PATH_SUB_CURRENT)/src/dxvk/hud/shaders/hud_text_vert.vert
323$(evalcall2 def_VBoxDxVkCompilerShaders,VBox-DxVkNativeDxVk)
324
325
326#
327# DXVK D3D11 interface library
328#
329VBox-DxVkNativeD3D11_TEMPLATE = VBoxR3DllNonPedantic
330VBox-DxVkNativeD3D11_DEFS = \
331 DXVK_NATIVE \
332 NOMINMAX \
333 _WIN32_WINNT=0xa00
334VBox-DxVkNativeD3D11_DEFS += \
335 $(VBOX_DXVK_PLATFORM) \
336 DXVK_WSI_HEADLESS
337VBox-DxVkNativeD3D11_CXXFLAGS.linux += \
338 -std=c++17 -Wno-deprecated-declarations # The latter is for std::iterator in util_bit.h.
339VBox-DxVkNativeD3D11_CXXFLAGS.darwin += \
340 -std=c++17
341VBox-DxVkNativeD3D11_CXXFLAGS.win += \
342 $(VBOX_DXVK_CXXFLAGS_WIN)
343VBox-DxVkNativeD3D11_INCS = \
344 $(VBOX_PATH_DXVK) \
345 $(VBOX_PATH_DXVK)/include/ \
346 $(VBOX_PATH_DXVK)/src/util/ \
347 $(VBOX_PATH_DXVK)/include/vulkan/include \
348 $(VBOX_PATH_DXVK)/include/spirv/include
349ifneq ($(KBUILD_TARGET),win)
350VBox-DxVkNativeD3D11_INCS += \
351 $(VBOX_PATH_DXVK)/include/native/ \
352 $(VBOX_PATH_DXVK)/include/native/windows \
353 $(VBOX_PATH_DXVK)/include/native/directx
354endif
355VBox-DxVkNativeD3D11_SOURCES = \
356 src/dxgi/dxgi_format.cpp \
357 src/dxgi/dxgi_monitor.cpp \
358 src/dxgi/dxgi_swapchain.cpp \
359 src/d3d11/d3d11_annotation.cpp \
360 src/d3d11/d3d11_blend.cpp \
361 src/d3d11/d3d11_buffer.cpp \
362 src/d3d11/d3d11_class_linkage.cpp \
363 src/d3d11/d3d11_cmdlist.cpp \
364 src/d3d11/d3d11_context.cpp \
365 src/d3d11/d3d11_context_def.cpp \
366 src/d3d11/d3d11_context_ext.cpp \
367 src/d3d11/d3d11_context_imm.cpp \
368 src/d3d11/d3d11_cuda.cpp \
369 src/d3d11/d3d11_depth_stencil.cpp \
370 src/d3d11/d3d11_device.cpp \
371 src/d3d11/d3d11_enums.cpp \
372 src/d3d11/d3d11_features.cpp \
373 src/d3d11/d3d11_fence.cpp \
374 src/d3d11/d3d11_gdi.cpp \
375 src/d3d11/d3d11_initializer.cpp \
376 src/d3d11/d3d11_input_layout.cpp \
377 src/d3d11/d3d11_interop.cpp \
378 src/d3d11/d3d11_main.cpp \
379 src/d3d11/d3d11_on_12.cpp \
380 src/d3d11/d3d11_options.cpp \
381 src/d3d11/d3d11_query.cpp \
382 src/d3d11/d3d11_rasterizer.cpp \
383 src/d3d11/d3d11_resource.cpp \
384 src/d3d11/d3d11_sampler.cpp \
385 src/d3d11/d3d11_shader.cpp \
386 src/d3d11/d3d11_state.cpp \
387 src/d3d11/d3d11_state_object.cpp \
388 src/d3d11/d3d11_swapchain.cpp \
389 src/d3d11/d3d11_texture.cpp \
390 src/d3d11/d3d11_util.cpp \
391 src/d3d11/d3d11_video.cpp \
392 src/d3d11/d3d11_view_dsv.cpp \
393 src/d3d11/d3d11_view_rtv.cpp \
394 src/d3d11/d3d11_view_srv.cpp \
395 src/d3d11/d3d11_view_uav.cpp \
396 src/d3d10/d3d10_blend.cpp \
397 src/d3d10/d3d10_buffer.cpp \
398 src/d3d10/d3d10_core.cpp \
399 src/d3d10/d3d10_depth_stencil.cpp \
400 src/d3d10/d3d10_device.cpp \
401 src/d3d10/d3d10_input_layout.cpp \
402 src/d3d10/d3d10_multithread.cpp \
403 src/d3d10/d3d10_query.cpp \
404 src/d3d10/d3d10_rasterizer.cpp \
405 src/d3d10/d3d10_sampler.cpp \
406 src/d3d10/d3d10_texture.cpp \
407 src/d3d10/d3d10_util.cpp \
408 src/d3d10/d3d10_view_dsv.cpp \
409 src/d3d10/d3d10_view_rtv.cpp \
410 src/d3d10/d3d10_view_srv.cpp
411VBox-DxVkNativeD3D11_VBOX_SHADERS := \
412 $(PATH_SUB_CURRENT)/src/d3d11/shaders/d3d11_video_blit_frag.frag \
413 $(PATH_SUB_CURRENT)/src/d3d11/shaders/d3d11_video_blit_vert.vert
414$(evalcall2 def_VBoxDxVkCompilerShaders,VBox-DxVkNativeD3D11)
415
416#
417# VBoxDxVk - Shared Object / DLL version.
418#
419VBoxDxVk_TEMPLATE = VBoxR3DllNonPedantic
420VBoxDxVk_DEFS = \
421 DXVK_NATIVE \
422 NOMINMAX \
423 _WIN32_WINNT=0xa00
424VBoxDxVk_INCS = \
425 $(VBOX_PATH_DXVK) \
426 $(VBOX_PATH_DXVK)/include/ \
427 $(VBOX_PATH_DXVK)/src/util/
428ifneq ($(KBUILD_TARGET),win)
429VBoxDxVk_INCS += \
430 $(VBOX_PATH_DXVK)/include/native/ \
431 $(VBOX_PATH_DXVK)/include/native/windows \
432 $(VBOX_PATH_DXVK)/include/native/directx
433endif
434VBoxDxVk_CXXFLAGS.linux += \
435 -std=c++17
436VBoxDxVk_CXXFLAGS.win += \
437 $(VBOX_DXVK_CXXFLAGS_WIN)
438VBoxDxVk_SOURCES = \
439 VBoxDxVkDeps.cpp
440VBoxDxVk_SOURCES.win = \
441 VBoxDxVk.def
442VBoxDxVk_LIBS = \
443 $(PATH_STAGE_LIB)/VBox-DxVkNativeD3D11$(VBOX_SUFF_LIB) \
444 $(PATH_STAGE_LIB)/VBox-DxVkNativeDxVk$(VBOX_SUFF_LIB) \
445 $(PATH_STAGE_LIB)/VBox-DxVkNativeUtil$(VBOX_SUFF_LIB) \
446 $(LIB_RUNTIME)
447
448include $(FILE_KBUILD_SUB_FOOTER)
449
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette