VirtualBox

source: vbox/trunk/src/VBox/Additions/3D/Config.kmk@ 78393

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

scm --update-copyright-year

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 4.7 KB
Line 
1# $Id: Config.kmk 76553 2019-01-01 01:45:53Z vboxsync $
2## @file
3# kBuild Configuration file for the Mesa3D.
4#
5
6#
7# Copyright (C) 2016-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
18VBOX_MESA3D_CONFIG_KMK_INCLUDED := 1
19
20# Include the top-level configure file.
21ifndef VBOX_ROOT_CONFIG_KMK_INCLUDED
22include $(PATH_ROOT)/Config.kmk
23endif
24
25VBOX_MESA := mesa-17.3.9
26VBOX_PATH_3D := $(PATH_ROOT)/src/VBox/Additions/3D
27VBOX_PATH_MESA := $(PATH_ROOT)/src/VBox/Additions/3D/mesa/$(VBOX_MESA)
28VBOX_PATH_WDDM := $(PATH_ROOT)/src/VBox/Additions/WINNT/Graphics/Video
29VBOX_PATH_VMSVGA_INC := $(VBOX_PATH_MESA)/src/gallium/drivers/svga/include
30
31#
32# Base template for Mesa3D code and code which uses Mesa3D libraries.
33#
34TEMPLATE_VBoxMesa3DGuestR3Dll = VBox Mesa 3D Guest User Mode DLL
35TEMPLATE_VBoxMesa3DGuestR3Dll_EXTENDS = NewerVccVBoxGuestR3Dll
36TEMPLATE_VBoxMesa3DGuestR3Dll_INST = $(INST_ADDITIONS)
37TEMPLATE_VBoxMesa3DGuestR3Dll_DEFS = $(TEMPLATE_NewerVccVBoxGuestR3Dll_DEFS) \
38 VBOX_WITH_MESA3D
39TEMPLATE_VBoxMesa3DGuestR3Dll_SDKS.win = $(TEMPLATE_NewerVccVBoxGuestR3Dll_SDKS) \
40 $(VBOX_WINDDK_GST_W8)
41# VirtualBox specific modifications of the Mesa3D code.
42# All modified places can be found by searching for VBOX
43#
44# Each define represents a group of related modifications.
45# The purpose of the separation is to document why each modification was necessary.
46#
47# Modifications which would be nice to have in upstream Mesa code are marked with '*' here.
48#
49# VBOX Modifications in headers shared with VBox WDDM driver code (see comments).
50# VBOX_WITH_MESA3D_COMPILE Tweaks to compile Mesa as part of VBox WDDM.
51# VBOX_WITH_MESA3D_D3D_FROM_SYSTEMMEM Create D3DPOOL_SYSTEMMEM textures from provided system memory pointer.
52# VBOX_WITH_MESA3D_D3D_THREADPOOL (No) threadpool for VBox build.
53# VBOX_WITH_MESA3D_DBG Tweaks for easier debugging and better logging.
54# VBOX_WITH_MESA3D_HACKS Hacks to make it work (need a proper solutions).
55# *VBOX_WITH_MESA3D_MSC Tweaks for Microsoft VCC.
56# VBOX_WITH_MESA3D_NINE_SVGA Make the D3D state tracker to work together with VMSVGA.
57# VBOX_WITH_MESA3D_SVGA_GPU_FINISHED PIPE_QUERY_GPU_FINISHED in VMSVGA driver.
58# VBOX_WITH_MESA3D_SVGA_HALFZ D3D Z coord [0.0;1.0] in the Gallium SVGA driver (VGPU9 only).
59# VBOX_WITH_MESA3D_SVGA_INSTANCING Instancing for DrawPrimitives in the Gallium SVGA driver
60# (VGPU9 only, VGPU10 has it).
61TEMPLATE_VBoxMesa3DGuestR3Dll_DEFS += \
62 VBOX_WITH_MESA3D_COMPILE \
63 VBOX_WITH_MESA3D_D3D_FROM_SYSTEMMEM \
64 VBOX_WITH_MESA3D_D3D_THREADPOOL \
65 VBOX_WITH_MESA3D_DBG \
66 VBOX_WITH_MESA3D_HACKS \
67 VBOX_WITH_MESA3D_MSC \
68 VBOX_WITH_MESA3D_NINE_SVGA \
69 VBOX_WITH_MESA3D_SVGA_GPU_FINISHED \
70 VBOX_WITH_MESA3D_SVGA_HALFZ \
71 VBOX_WITH_MESA3D_SVGA_INSTANCING
72TEMPLATE_VBoxMesa3DGuestR3Dll_DEFS.win = $(TEMPLATE_NewerVccVBoxGuestR3Dll_DEFS.win) \
73 _USE_MATH_DEFINES \
74 WINAPI=__stdcall \
75 _WIN32
76TEMPLATE_VBoxMesa3DGuestR3Dll_INCS = $(TEMPLATE_NewerVccVBoxGuestR3Dll_INCS) \
77 $(VBOX_PATH_MESA)/include \
78 $(VBOX_PATH_MESA)/include/c99 \
79 $(VBOX_PATH_MESA)/src \
80 $(VBOX_PATH_MESA)/src/mesa \
81 $(VBOX_PATH_MESA)/src/gallium/auxiliary \
82 $(VBOX_PATH_MESA)/src/gallium/include \
83 $(VBOX_PATH_3D)/win/VBoxWddmUmHlp
84
85#
86# Variant of VBoxMesa3DGuestR3Dll that requires Windows Vista or later.
87#
88TEMPLATE_VBoxMesa3DGuestR3DllMinVista = VBox Mesa 3D Guest User Mode DLL (Windows Vista or newer)
89TEMPLATE_VBoxMesa3DGuestR3DllMinVista_EXTENDS = VBoxMesa3DGuestR3Dll
90ifeq ($(KBUILD_TARGET),win)
91TEMPLATE_VBoxMesa3DGuestR3DllMinVista_LDFLAGS.win.x86 = $(filter-out -Section:.bss$(COMMA)RW!K,$(TEMPLATE_VBoxMesa3DGuestR3Dll_LDFLAGS.win.x86))
92TEMPLATE_VBoxMesa3DGuestR3DllMinVista_POST_CMDS.win.x86 = $(subst $(VBOX_PE_SET_VERSION), $(VBOX_PE_SET_VERSION) --vista,$(TEMPLATE_VBoxMesa3DGuestR3Dll_POST_CMDS.win.x86))
93TEMPLATE_VBoxMesa3DGuestR3DllMinVista_POST_CMDS.win.amd64 = $(if $(eq $(tool_do),LINK_LIBRARY),,$(VBOX_PE_SET_VERSION) --vista $(out)$$(NLTAB)$(TEMPLATE_VBoxMesa3DGuestR3Dll_POST_CMDS.win.amd64))
94TEMPLATE_VBoxMesa3DGuestR3DllMinVista_LNK_DEPS.win.amd64 = $(if $(eq $(tool_do),LINK_LIBRARY),,$(VBOX_PE_SET_VERSION)) $(TEMPLATE_VBoxMesa3DGuestR3Dll_LNK_DEPS.win.amd64)
95endif
96
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