1 | # $Id: Makefile.kmk 106700 2024-10-25 14:42:15Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Sub-Makefile for VBoxNine D3D9 state tracker.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2016-2024 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 |
|
---|
28 | SUB_DEPTH = ../../../../../..
|
---|
29 | include $(KBUILD_PATH)/subheader.kmk
|
---|
30 |
|
---|
31 | DLLS += VBoxNine
|
---|
32 | DLLS.amd64 += VBoxNine-x86
|
---|
33 |
|
---|
34 | VBoxNine_TEMPLATE = VBoxMesa3DGuestR3DllMinVista
|
---|
35 | if $(VBOX_MESA_V_MAJOR) >= 24
|
---|
36 | VBoxNine_DEFS = \
|
---|
37 | VBOX_MESA_STATIC_DRIVER
|
---|
38 | endif
|
---|
39 | # -wd4100: unreferenced formal parameter
|
---|
40 | # -wd4200: nonstandard extension used : zero-sized array in struct/union
|
---|
41 | # -wd4245: 'return' : conversion from 'int' to 'unsigned int', signed/unsigned mismatch
|
---|
42 | # -wd4255: no function prototype given
|
---|
43 | # -wd4668: 'something' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
|
---|
44 | VBoxNine_CFLAGS = -wd4100 -wd4200 -wd4245 -wd4255 -wd4668
|
---|
45 | VBoxNine_INCS = \
|
---|
46 | $(VBOX_PATH_MESA)/src/gallium/frontends/nine
|
---|
47 | if $(VBOX_MESA_V_MAJOR) >= 24
|
---|
48 | VBoxNine_INCS += \
|
---|
49 | $(VBOX_PATH_3D)/win/include \
|
---|
50 | $(VBOX_PATH_3D)/win/VBoxSVGA \
|
---|
51 | $(VBOX_PATH_MESA)/src/gallium/drivers/svga \
|
---|
52 | $(VBOX_PATH_MESA)/src/gallium/drivers/svga/include \
|
---|
53 | $(VBOX_PATH_MESA)/src/gallium/winsys/svga/drm
|
---|
54 | endif
|
---|
55 | VBoxNine_SOURCES = \
|
---|
56 | nine/nine_memory_helper.c \
|
---|
57 | VBoxNine.c \
|
---|
58 | VBoxNine.rc
|
---|
59 | if $(VBOX_MESA_V_MAJOR) < 24
|
---|
60 | VBoxNine_SOURCES += \
|
---|
61 | VBoxNine.def
|
---|
62 | else
|
---|
63 | VBoxNine_SOURCES += \
|
---|
64 | VBoxNine_static_drv.def \
|
---|
65 | ../VBoxSVGA/VBoxSVGA.c \
|
---|
66 | ../VBoxSVGA/winsys/vmw_screen.c \
|
---|
67 | ../VBoxSVGA/winsys/vmw_screen_wddm.c \
|
---|
68 | ../VBoxSVGA/winsys/vmw_screen_ioctl.c
|
---|
69 | endif
|
---|
70 | VBoxNine_LIBS = \
|
---|
71 | $(VBOX_PATH_ADDITIONS_LIB)/VBoxMesaGalliumAuxLib$(VBOX_SUFF_LIB) \
|
---|
72 | $(VBOX_PATH_ADDITIONS_LIB)/VBoxMesaLib$(VBOX_SUFF_LIB) \
|
---|
73 | $(VBOX_PATH_ADDITIONS_LIB)/VBoxMesaUtilLib$(VBOX_SUFF_LIB) \
|
---|
74 | $(VBOX_PATH_ADDITIONS_LIB)/VBoxMesaNineLib$(VBOX_SUFF_LIB) \
|
---|
75 | $(VBOX_PATH_ADDITIONS_LIB)/VBoxWddmUmHlp$(VBOX_SUFF_LIB)
|
---|
76 | if $(VBOX_MESA_V_MAJOR) >= 24
|
---|
77 | VBoxNine_LIBS += \
|
---|
78 | $(VBOX_PATH_ADDITIONS_LIB)/VBoxMesaSVGAWinsysLib$(VBOX_SUFF_LIB) \
|
---|
79 | $(VBOX_PATH_ADDITIONS_LIB)/VBoxMesaSVGALib$(VBOX_SUFF_LIB)
|
---|
80 | endif
|
---|
81 |
|
---|
82 | if defined(VBOX_SIGNING_MODE) && defined(VBOX_SIGN_ADDITIONS)
|
---|
83 | VBoxNine_INSTTYPE = none
|
---|
84 | VBoxNine_DEBUG_INSTTYPE = both
|
---|
85 | endif
|
---|
86 |
|
---|
87 | #
|
---|
88 | # VBoxNine-x86 - x86 version of VBoxNine built for amd64 build
|
---|
89 | #
|
---|
90 | VBoxNine-x86_EXTENDS = VBoxNine
|
---|
91 | VBoxNine-x86_BLD_TRG_ARCH = x86
|
---|
92 | VBoxNine-x86_LIBS = \
|
---|
93 | $(VBOX_PATH_ADDITIONS_LIB)/VBoxWddmUmHlp-x86$(VBOX_SUFF_LIB) \
|
---|
94 | $(VBOX_PATH_ADDITIONS_LIB)/VBoxMesaGalliumAuxLib-x86$(VBOX_SUFF_LIB) \
|
---|
95 | $(VBOX_PATH_ADDITIONS_LIB)/VBoxMesaLib-x86$(VBOX_SUFF_LIB) \
|
---|
96 | $(VBOX_PATH_ADDITIONS_LIB)/VBoxMesaUtilLib-x86$(VBOX_SUFF_LIB) \
|
---|
97 | $(VBOX_PATH_ADDITIONS_LIB)/VBoxMesaNineLib-x86$(VBOX_SUFF_LIB)
|
---|
98 | if $(VBOX_MESA_V_MAJOR) >= 24
|
---|
99 | VBoxNine-x86_LIBS += \
|
---|
100 | $(VBOX_PATH_ADDITIONS_LIB)/VBoxMesaSVGAWinsysLib-x86$(VBOX_SUFF_LIB) \
|
---|
101 | $(VBOX_PATH_ADDITIONS_LIB)/VBoxMesaSVGALib-x86$(VBOX_SUFF_LIB)
|
---|
102 | endif
|
---|
103 | VBoxNine-x86_DEFS = $(VBoxNine_DEFS) VBOX_WOW64
|
---|
104 |
|
---|
105 | include $(FILE_KBUILD_SUB_FOOTER)
|
---|
106 |
|
---|