VirtualBox

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

Last change on this file since 75621 was 75621, checked in by vboxsync, 6 years ago

Additions/3D/win: ICD forwarder dll 32 bit fixes. bugref:9296

  • 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 75621 2018-11-20 14:44:39Z vboxsync $
2## @file
3# Sub-Makefile for OpenGL ICD loader.
4#
5
6#
7# Copyright (C) 2018 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_PATH_GL_GEN = $(PATH_OBJ)/VBoxGLgen
22VBOX_GL_ICD_DEF_FILE = $(VBOX_PATH_MESA)/src/gallium/state_trackers/wgl/opengl32.mingw.def
23
24BLDDIRS += $(VBOX_PATH_GL_GEN)/
25
26DLLS += VBoxICD
27VBoxICD_TEMPLATE = VBOXMESA3DGUESTR3DLLMinVista
28# -wd4005: '__useHeader' : redefinition
29VBoxICD_CFLAGS = -wd4005
30
31VBoxICD_INCS += \
32 $(VBOX_PATH_3D)/win/include \
33 $(PATH_ROOT)/src/VBox/Additions/WINNT/Graphics/Video \
34 $(VBOX_GRAPHICS_INCS)
35
36VBoxICD_SOURCES = \
37 $(VBOX_PATH_MESA)/src/gallium/state_trackers/wgl/opengl32.def \
38 $(VBOX_PATH_GL_GEN)/forwarders.asm \
39 $(VBOX_PATH_GL_GEN)/pfns.c \
40 VBoxICD.c \
41 VBoxICD.rc
42
43VBoxICD_LIBS = \
44 $(VBOX_PATH_ADDITIONS_LIB)/VBoxWddmUmHlp$(VBOX_SUFF_LIB)
45
46$(VBOX_PATH_GL_GEN)/forwarders.asm: \
47 $(PATH_SUB_CURRENT)/icd_forwarders.py \
48 $(VBOX_GL_ICD_DEF_FILE) \
49 Makefile.kmk \
50 | $$(dir $$@)
51 $(call MSG_GENERATE,python,$@,$(VBOX_GL_ICD_DEF_FILE))
52 $(QUIET)$(VBOX_BLD_PYTHON) $< $(VBOX_GL_ICD_DEF_FILE) $@
53$(VBOX_PATH_GL_GEN)/pfns.c: \
54 $(PATH_SUB_CURRENT)/icd_pfns.py \
55 $(VBOX_GL_ICD_DEF_FILE) \
56 Makefile.kmk \
57 | $$(dir $$@)
58 $(call MSG_GENERATE,python,$@,$(VBOX_GL_ICD_DEF_FILE))
59 $(QUIET)$(VBOX_BLD_PYTHON) $< $(VBOX_GL_ICD_DEF_FILE) $@
60
61VBoxICD_CLEAN = \
62 $(VBOX_PATH_GL_GEN)/forwarders.asm \
63 $(VBOX_PATH_GL_GEN)/pfns.c
64
65ifdef VBOX_SIGN_ADDITIONS
66VBoxICD_INSTTYPE = none
67VBoxICD_DEBUG_INSTTYPE = both
68endif
69
70#
71# x86 version built for amd64 build
72#
73DLLS.win.amd64 += VBoxICD-x86
74VBoxICD-x86_EXTENDS = VBoxICD
75VBoxICD-x86_BLD_TRG_ARCH = x86
76VBoxICD-x86_LIBS = \
77 $(VBOX_PATH_ADDITIONS_LIB)/VBoxWddmUmHlp-x86$(VBOX_SUFF_LIB)
78VBoxICD-x86_DEFS = $(VBoxICD_DEFS) VBOX_WOW64
79
80include $(FILE_KBUILD_SUB_FOOTER)
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