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 |
|
---|
18 | SUB_DEPTH = ../../../../../..
|
---|
19 | include $(KBUILD_PATH)/subheader.kmk
|
---|
20 |
|
---|
21 | VBOX_GL_ICD_DEF_FILE = $(VBOX_PATH_MESA)/src/gallium/state_trackers/wgl/opengl32.mingw.def
|
---|
22 |
|
---|
23 | DLLS += VBoxICD
|
---|
24 | DLLS.amd64 += VBoxICD-x86
|
---|
25 |
|
---|
26 | VBoxICD_TEMPLATE = VBoxMesa3DGuestR3DllMinVista
|
---|
27 | # -wd4005: '__useHeader' : redefinition
|
---|
28 | VBoxICD_CFLAGS := -wd4005
|
---|
29 | if "$(VBOX_NEWER_VCC_TOOL_STEM)" >= "VCC141"
|
---|
30 | # -wd4255: 'PFND3DKMT_CHECKEXCLUSIVEOWNERSHIP': no function prototype given: converting '()' to '(void)'
|
---|
31 | VBoxICD_CFLAGS += -wd4255
|
---|
32 | endif
|
---|
33 |
|
---|
34 | VBoxICD_INCS = \
|
---|
35 | $(VBOX_PATH_3D)/win/include \
|
---|
36 | $(PATH_ROOT)/src/VBox/Additions/WINNT/Graphics/Video \
|
---|
37 | $(VBOX_GRAPHICS_INCS)
|
---|
38 | VBoxICD_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
|
---|
44 | VBoxICD_CLEAN = \
|
---|
45 | $(VBoxICD_0_OUTDIR)/forwarders.asm \
|
---|
46 | $(VBoxICD_0_OUTDIR)/pfns.c
|
---|
47 | VBoxICD_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 |
|
---|
59 | ifdef VBOX_SIGN_ADDITIONS
|
---|
60 | VBoxICD_INSTTYPE = none
|
---|
61 | VBoxICD_DEBUG_INSTTYPE = both
|
---|
62 | endif
|
---|
63 |
|
---|
64 | #
|
---|
65 | # x86 version built for amd64 build
|
---|
66 | #
|
---|
67 | VBoxICD-x86_EXTENDS = VBoxICD
|
---|
68 | VBoxICD-x86_BLD_TRG_ARCH = x86
|
---|
69 | VBoxICD-x86_LIBS = \
|
---|
70 | $(VBOX_PATH_ADDITIONS_LIB)/VBoxWddmUmHlp-x86$(VBOX_SUFF_LIB)
|
---|
71 | VBoxICD-x86_DEFS = $(VBoxICD_DEFS) VBOX_WOW64
|
---|
72 |
|
---|
73 | include $(FILE_KBUILD_SUB_FOOTER)
|
---|
74 |
|
---|