1 | # $Id: Makefile.kmk 76553 2019-01-01 01:45:53Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Sub-Makefile for OpenGL ICD loader.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2018-2019 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 | VBoxICD_INCS = \
|
---|
30 | $(VBOX_PATH_3D)/win/include \
|
---|
31 | $(PATH_ROOT)/src/VBox/Additions/WINNT/Graphics/Video \
|
---|
32 | $(VBOX_GRAPHICS_INCS)
|
---|
33 | VBoxICD_SOURCES = \
|
---|
34 | $(VBOX_PATH_MESA)/src/gallium/state_trackers/wgl/opengl32.def \
|
---|
35 | $(VBoxICD_0_OUTDIR)/forwarders.asm \
|
---|
36 | $(VBoxICD_0_OUTDIR)/pfns.c \
|
---|
37 | VBoxICD.c \
|
---|
38 | VBoxICD.rc
|
---|
39 | VBoxICD_CLEAN = \
|
---|
40 | $(VBoxICD_0_OUTDIR)/forwarders.asm \
|
---|
41 | $(VBoxICD_0_OUTDIR)/pfns.c
|
---|
42 | VBoxICD_LIBS = \
|
---|
43 | $(VBOX_PATH_ADDITIONS_LIB)/VBoxWddmUmHlp$(VBOX_SUFF_LIB)
|
---|
44 |
|
---|
45 | $$(VBoxICD_0_OUTDIR)/forwarders.asm: \
|
---|
46 | $(PATH_SUB_CURRENT)/icd_forwarders.py $(VBOX_GL_ICD_DEF_FILE) | $$(dir $$@)
|
---|
47 | $(call MSG_GENERATE,python,$@,$(VBOX_GL_ICD_DEF_FILE))
|
---|
48 | $(QUIET)$(VBOX_BLD_PYTHON) $< $(VBOX_GL_ICD_DEF_FILE) $@
|
---|
49 | $$(VBoxICD_0_OUTDIR)/pfns.c: \
|
---|
50 | $(PATH_SUB_CURRENT)/icd_pfns.py $(VBOX_GL_ICD_DEF_FILE) | $$(dir $$@)
|
---|
51 | $(call MSG_GENERATE,python,$@,$(VBOX_GL_ICD_DEF_FILE))
|
---|
52 | $(QUIET)$(VBOX_BLD_PYTHON) $< $(VBOX_GL_ICD_DEF_FILE) $@
|
---|
53 |
|
---|
54 | ifdef VBOX_SIGN_ADDITIONS
|
---|
55 | VBoxICD_INSTTYPE = none
|
---|
56 | VBoxICD_DEBUG_INSTTYPE = both
|
---|
57 | endif
|
---|
58 |
|
---|
59 | #
|
---|
60 | # x86 version built for amd64 build
|
---|
61 | #
|
---|
62 | VBoxICD-x86_EXTENDS = VBoxICD
|
---|
63 | VBoxICD-x86_BLD_TRG_ARCH = x86
|
---|
64 | VBoxICD-x86_LIBS = \
|
---|
65 | $(VBOX_PATH_ADDITIONS_LIB)/VBoxWddmUmHlp-x86$(VBOX_SUFF_LIB)
|
---|
66 | VBoxICD-x86_DEFS = $(VBoxICD_DEFS) VBOX_WOW64
|
---|
67 |
|
---|
68 | include $(FILE_KBUILD_SUB_FOOTER)
|
---|
69 |
|
---|