VirtualBox

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

Last change on this file since 83832 was 83832, checked in by vboxsync, 5 years ago

Additions/3D: VC++ 14.1 adjustments and warnings. bugref:8489

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.3 KB
Line 
1# $Id: Makefile.kmk 83832 2020-04-19 14:12:33Z vboxsync $
2## @file
3# Sub-Makefile for OpenGL ICD loader.
4#
5
6#
7# Copyright (C) 2018-2020 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 $(VBOX_GRAPHICS_INCS)
38VBoxICD_SOURCES = \
39 $(VBOX_PATH_MESA)/src/gallium/state_trackers/wgl/opengl32.def \
40 $(VBoxICD_0_OUTDIR)/forwarders.asm \
41 $(VBoxICD_0_OUTDIR)/pfns.c \
42 VBoxICD.c \
43 VBoxICD.rc
44VBoxICD_CLEAN = \
45 $(VBoxICD_0_OUTDIR)/forwarders.asm \
46 $(VBoxICD_0_OUTDIR)/pfns.c
47VBoxICD_LIBS = \
48 $(VBOX_PATH_ADDITIONS_LIB)/VBoxWddmUmHlp$(VBOX_SUFF_LIB)
49
50$$(VBoxICD_0_OUTDIR)/forwarders.asm: \
51 $(PATH_SUB_CURRENT)/icd_forwarders.py $(VBOX_GL_ICD_DEF_FILE) | $$(dir $$@)
52 $(call MSG_GENERATE,python,$@,$(VBOX_GL_ICD_DEF_FILE))
53 $(QUIET)$(VBOX_BLD_PYTHON) $< $(VBOX_GL_ICD_DEF_FILE) $@
54$$(VBoxICD_0_OUTDIR)/pfns.c: \
55 $(PATH_SUB_CURRENT)/icd_pfns.py $(VBOX_GL_ICD_DEF_FILE) | $$(dir $$@)
56 $(call MSG_GENERATE,python,$@,$(VBOX_GL_ICD_DEF_FILE))
57 $(QUIET)$(VBOX_BLD_PYTHON) $< $(VBOX_GL_ICD_DEF_FILE) $@
58
59ifdef VBOX_SIGN_ADDITIONS
60VBoxICD_INSTTYPE = none
61VBoxICD_DEBUG_INSTTYPE = both
62endif
63
64#
65# x86 version built for amd64 build
66#
67VBoxICD-x86_EXTENDS = VBoxICD
68VBoxICD-x86_BLD_TRG_ARCH = x86
69VBoxICD-x86_LIBS = \
70 $(VBOX_PATH_ADDITIONS_LIB)/VBoxWddmUmHlp-x86$(VBOX_SUFF_LIB)
71VBoxICD-x86_DEFS = $(VBoxICD_DEFS) VBOX_WOW64
72
73include $(FILE_KBUILD_SUB_FOOTER)
74
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