VirtualBox

source: vbox/trunk/src/VBox/Additions/3D/win/VBoxGL/Makefile.kmk@ 101359

Last change on this file since 101359 was 98103, checked in by vboxsync, 2 years ago

Copyright year updates by scm.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.1 KB
Line 
1# $Id: Makefile.kmk 98103 2023-01-17 14:15:46Z vboxsync $
2## @file
3# Sub-Makefile for VBoxGL OpenGL state tracker.
4#
5
6#
7# Copyright (C) 2018-2023 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
31DLLS += VBoxGL
32DLLS.amd64 += VBoxGL-x86
33
34VBoxGL_TEMPLATE = VBoxMesa3DGuestR3DllMinVista
35VBoxGL_DEFS = VBOXGL
36# -wd4005: '__useHeader' : redefinition
37VBOXGL_DISABLED_WARNINGS := -wd4005
38# -wd4204: nonstandard extension used: non-constant aggregate initializer
39# -wd4267: 'initializing': conversion from 'size_t' to 'unsigned int', possible loss of data
40# -wd4459: stw_device.h(102): warning C4459: declaration of 'stw_dev' hides global declaration
41# -wd4668: c99_compat.h(99): warning C4668: '__STDC_VERSION__' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
42VBOXGL_DISABLED_WARNINGS += -wd4204 -wd4267 -wd4459 -wd4668
43VBoxGL_CFLAGS = $(VBOXGL_DISABLED_WARNINGS)
44VBoxGL_CXXFLAGS = $(VBOXGL_DISABLED_WARNINGS)
45VBoxGL_INCS = \
46 $(VBOX_PATH_3D)/win/include \
47 $(VBOX_PATH_MESA)/include/GL \
48 $(VBOX_PATH_MESA)/src/gallium/frontends/wgl \
49 $(VBOX_PATH_MESA)/src/gallium/winsys/sw \
50 $(VBOX_PATH_MESA)/src/gallium/drivers \
51 $(PATH_ROOT)/src/VBox/Additions/WINNT/Graphics/Video \
52 $(PATH_ROOT)/src/VBox/Runtime/common/table \
53 $(VBOX_PATH_VMSVGA_INC) \
54 $(VBOX_GRAPHICS_INCS)
55VBoxGL_SOURCES = \
56 $(VBOX_PATH_MESA)/src/gallium/targets/libgl-gdi/opengl32.def \
57 VBoxGL.rc
58VBoxGL_SOURCES += \
59 GaDrvEnvKMT.cpp \
60 VBoxGL.c
61VBoxGL_LIBS = \
62 $(VBOX_PATH_ADDITIONS_LIB)/VBoxWddmUmHlp$(VBOX_SUFF_LIB) \
63 $(VBOX_PATH_ADDITIONS_LIB)/VBoxMesaGalliumAuxLib$(VBOX_SUFF_LIB) \
64 $(VBOX_PATH_ADDITIONS_LIB)/VBoxMesaWglLib$(VBOX_SUFF_LIB) \
65 $(VBOX_PATH_ADDITIONS_LIB)/VBoxMesaUtilLib$(VBOX_SUFF_LIB) \
66 $(VBOX_PATH_ADDITIONS_LIB)/VBoxMesaLib$(VBOX_SUFF_LIB)
67
68if defined(VBOX_SIGNING_MODE) && defined(VBOX_SIGN_ADDITIONS)
69 VBoxGL_INSTTYPE = none
70 VBoxGL_DEBUG_INSTTYPE = both
71endif
72
73#
74# VBoxGL-x86 - x86 version of VBoxGL built for amd64 build
75#
76VBoxGL-x86_EXTENDS = VBoxGL
77VBoxGL-x86_BLD_TRG_ARCH = x86
78VBoxGL-x86_LIBS = \
79 $(VBOX_PATH_ADDITIONS_LIB)/VBoxWddmUmHlp-x86$(VBOX_SUFF_LIB) \
80 $(VBOX_PATH_ADDITIONS_LIB)/VBoxMesaGalliumAuxLib-x86$(VBOX_SUFF_LIB) \
81 $(VBOX_PATH_ADDITIONS_LIB)/VBoxMesaWglLib-x86$(VBOX_SUFF_LIB) \
82 $(VBOX_PATH_ADDITIONS_LIB)/VBoxMesaUtilLib-x86$(VBOX_SUFF_LIB) \
83 $(VBOX_PATH_ADDITIONS_LIB)/VBoxMesaLib-x86$(VBOX_SUFF_LIB)
84VBoxGL-x86_DEFS = $(VBoxGL_DEFS) VBOX_WOW64
85
86include $(FILE_KBUILD_SUB_FOOTER)
87
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