VirtualBox

source: vbox/trunk/src/VBox/Additions/3D/win/VBoxICD/Makefile.kmk@ 95234

Last change on this file since 95234 was 95234, checked in by vboxsync, 3 years ago

WDDM: allow gallium based d3d9 and opengl drivers to work with VGPU10. bugref:9845

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.4 KB
Line 
1# $Id: Makefile.kmk 95234 2022-06-08 16:31:28Z vboxsync $
2## @file
3# Sub-Makefile for OpenGL ICD loader.
4#
5
6#
7# Copyright (C) 2018-2022 Oracle Corporation
8#
9# This file is part of VirtualBox Open Source Edition (OSE), as
10# available from http://www.virtualbox.org. This file is free software;
11# you can redistribute it and/or modify it under the terms of the GNU
12# General Public License (GPL) as published by the Free Software
13# Foundation, in version 2 as it comes in the "COPYING" file of the
14# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
15# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
16#
17
18SUB_DEPTH = ../../../../../..
19include $(KBUILD_PATH)/subheader.kmk
20
21VBOX_GL_ICD_DEF_FILE = $(VBOX_PATH_MESA)/src/gallium/state_trackers/wgl/opengl32.mingw.def
22
23DLLS += VBoxICD
24DLLS.amd64 += VBoxICD-x86
25
26VBoxICD_TEMPLATE = VBoxMesa3DGuestR3DllMinVista
27# -wd4005: '__useHeader' : redefinition
28VBoxICD_CFLAGS := -wd4005
29if "$(VBOX_NEWER_VCC_TOOL_STEM)" >= "VCC141"
30# -wd4255: 'PFND3DKMT_CHECKEXCLUSIVEOWNERSHIP': no function prototype given: converting '()' to '(void)'
31VBoxICD_CFLAGS += -wd4255
32endif
33
34VBoxICD_INCS = \
35 $(VBOX_PATH_3D)/win/include \
36 $(PATH_ROOT)/src/VBox/Additions/WINNT/Graphics/Video \
37 $(PATH_ROOT)/src/VBox/Devices/Graphics/vmsvga_include \
38 $(VBOX_GRAPHICS_INCS)
39VBoxICD_SOURCES = \
40 $(VBOX_PATH_MESA)/src/gallium/state_trackers/wgl/opengl32.def \
41 $(VBoxICD_0_OUTDIR)/forwarders.asm \
42 $(VBoxICD_0_OUTDIR)/pfns.c \
43 VBoxICD.c \
44 VBoxICD.rc
45VBoxICD_CLEAN = \
46 $(VBoxICD_0_OUTDIR)/forwarders.asm \
47 $(VBoxICD_0_OUTDIR)/pfns.c
48VBoxICD_LIBS = \
49 $(VBOX_PATH_ADDITIONS_LIB)/VBoxWddmUmHlp$(VBOX_SUFF_LIB)
50
51$$(VBoxICD_0_OUTDIR)/forwarders.asm: \
52 $(PATH_SUB_CURRENT)/icd_forwarders.py $(VBOX_GL_ICD_DEF_FILE) | $$(dir $$@)
53 $(call MSG_GENERATE,python,$@,$(VBOX_GL_ICD_DEF_FILE))
54 $(QUIET)$(VBOX_BLD_PYTHON) $< $(VBOX_GL_ICD_DEF_FILE) $@
55$$(VBoxICD_0_OUTDIR)/pfns.c: \
56 $(PATH_SUB_CURRENT)/icd_pfns.py $(VBOX_GL_ICD_DEF_FILE) | $$(dir $$@)
57 $(call MSG_GENERATE,python,$@,$(VBOX_GL_ICD_DEF_FILE))
58 $(QUIET)$(VBOX_BLD_PYTHON) $< $(VBOX_GL_ICD_DEF_FILE) $@
59
60ifdef VBOX_SIGN_ADDITIONS
61VBoxICD_INSTTYPE = none
62VBoxICD_DEBUG_INSTTYPE = both
63endif
64
65#
66# x86 version built for amd64 build
67#
68VBoxICD-x86_EXTENDS = VBoxICD
69VBoxICD-x86_BLD_TRG_ARCH = x86
70VBoxICD-x86_LIBS = \
71 $(VBOX_PATH_ADDITIONS_LIB)/VBoxWddmUmHlp-x86$(VBOX_SUFF_LIB)
72VBoxICD-x86_DEFS = $(VBoxICD_DEFS) VBOX_WOW64
73
74include $(FILE_KBUILD_SUB_FOOTER)
75
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