VirtualBox

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

Last change on this file was 107019, checked in by vboxsync, 5 months ago

/Config.kmk,tools/Makefile.kmk,Add/3d/VBoxICD/Makefile.kmk: Switch to VCC143 for amd64 & x86 (windows) - requires symlink creation rigths for the tools. jiraref:VBP-1439

This means we'll be using the same compiler versions for all three windows architectures (arm64 already uses VCC143).
We cannot upgrade the SDK for amd64 & x86, though, because there are no x86 kernel mode libs in 10.0.26000.0 and neither are there any amd64 libs for win7 kernel mode any more.

WARNING! For fetching the tools you need symbolic link creation rights. See comments above the win.vcc.v14.3.17.11.5 tool in tools/Makefile.kmk for details.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.7 KB
Line 
1# $Id: Makefile.kmk 107019 2024-11-15 22:15:20Z vboxsync $
2## @file
3# Sub-Makefile for OpenGL ICD loader.
4#
5
6#
7# Copyright (C) 2018-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
31VBOX_GL_ICD_DEF_FILE = $(PATH_ROOT)/src/VBox/Additions/3D/win/VBoxICD/opengl32.mingw.def
32
33DLLS += VBoxICD
34DLLS.amd64 += VBoxICD-x86
35
36VBoxICD_TEMPLATE = VBoxMesa3DGuestR3DllMinVista
37# -wd4005: '__useHeader' : redefinition
38VBoxICD_CFLAGS := -wd4005
39if "$(VBOX_VCC_TOOL_STEM)" >= "VCC141"
40 # -wd4255: 'PFND3DKMT_CHECKEXCLUSIVEOWNERSHIP': no function prototype given: converting '()' to '(void)'
41 VBoxICD_CFLAGS += -wd4255
42endif
43
44VBoxICD_INCS = \
45 $(VBOX_PATH_3D)/win/include \
46 $(PATH_ROOT)/src/VBox/Additions/WINNT/Graphics/Video \
47 $(PATH_ROOT)/src/VBox/Devices/Graphics/vmsvga_include \
48 $(VBOX_GRAPHICS_INCS)
49VBoxICD_SOURCES = \
50 opengl32.def \
51 $(VBoxICD_0_OUTDIR)/forwarders.asm \
52 $(VBoxICD_0_OUTDIR)/pfns.c \
53 VBoxICD.c \
54 VBoxICD.rc
55VBoxICD_CLEAN = \
56 $(VBoxICD_0_OUTDIR)/forwarders.asm \
57 $(VBoxICD_0_OUTDIR)/pfns.c
58VBoxICD_LIBS = \
59 $(VBOX_PATH_ADDITIONS_LIB)/VBoxWddmUmHlp$(VBOX_SUFF_LIB)
60
61$$(VBoxICD_0_OUTDIR)/forwarders.asm: \
62 $(PATH_SUB_CURRENT)/icd_forwarders.py $(VBOX_GL_ICD_DEF_FILE) | $$(dir $$@)
63 $(call MSG_GENERATE,python,$@,$(VBOX_GL_ICD_DEF_FILE))
64 $(QUIET)$(VBOX_BLD_PYTHON) $< $(VBOX_GL_ICD_DEF_FILE) $@ "$(KBUILD_TARGET_ARCH)"
65$$(VBoxICD_0_OUTDIR)/pfns.c: \
66 $(PATH_SUB_CURRENT)/icd_pfns.py $(VBOX_GL_ICD_DEF_FILE) | $$(dir $$@)
67 $(call MSG_GENERATE,python,$@,$(VBOX_GL_ICD_DEF_FILE))
68 $(QUIET)$(VBOX_BLD_PYTHON) $< $(VBOX_GL_ICD_DEF_FILE) $@
69
70if defined(VBOX_SIGNING_MODE) && defined(VBOX_SIGN_ADDITIONS)
71 VBoxICD_INSTTYPE = none
72 VBoxICD_DEBUG_INSTTYPE = both
73endif
74
75#
76# x86 version built for amd64 build
77#
78VBoxICD-x86_EXTENDS = VBoxICD
79VBoxICD-x86_BLD_TRG_ARCH = x86
80VBoxICD-x86_LIBS = \
81 $(VBOX_PATH_ADDITIONS_LIB)/VBoxWddmUmHlp-x86$(VBOX_SUFF_LIB)
82VBoxICD-x86_DEFS = $(VBoxICD_DEFS) VBOX_WOW64
83
84include $(FILE_KBUILD_SUB_FOOTER)
85
Note: See TracBrowser for help on using the repository browser.

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