VirtualBox

source: vbox/trunk/src/VBox/Additions/3D/win/VBoxNine/Makefile.kmk

Last change on this file was 106700, checked in by vboxsync, 3 months ago

Add/3d/win/VBoxNine: Library ordering issue (VbglR3WriteLog). jiraref:VBP-1253

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.6 KB
Line 
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
28SUB_DEPTH = ../../../../../..
29include $(KBUILD_PATH)/subheader.kmk
30
31DLLS += VBoxNine
32DLLS.amd64 += VBoxNine-x86
33
34VBoxNine_TEMPLATE = VBoxMesa3DGuestR3DllMinVista
35if $(VBOX_MESA_V_MAJOR) >= 24
36 VBoxNine_DEFS = \
37 VBOX_MESA_STATIC_DRIVER
38endif
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'
44VBoxNine_CFLAGS = -wd4100 -wd4200 -wd4245 -wd4255 -wd4668
45VBoxNine_INCS = \
46 $(VBOX_PATH_MESA)/src/gallium/frontends/nine
47if $(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
54endif
55VBoxNine_SOURCES = \
56 nine/nine_memory_helper.c \
57 VBoxNine.c \
58 VBoxNine.rc
59if $(VBOX_MESA_V_MAJOR) < 24
60 VBoxNine_SOURCES += \
61 VBoxNine.def
62else
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
69endif
70VBoxNine_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)
76if $(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)
80endif
81
82if defined(VBOX_SIGNING_MODE) && defined(VBOX_SIGN_ADDITIONS)
83 VBoxNine_INSTTYPE = none
84 VBoxNine_DEBUG_INSTTYPE = both
85endif
86
87#
88# VBoxNine-x86 - x86 version of VBoxNine built for amd64 build
89#
90VBoxNine-x86_EXTENDS = VBoxNine
91VBoxNine-x86_BLD_TRG_ARCH = x86
92VBoxNine-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)
98if $(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)
102endif
103VBoxNine-x86_DEFS = $(VBoxNine_DEFS) VBOX_WOW64
104
105include $(FILE_KBUILD_SUB_FOOTER)
106
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