VirtualBox

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

Last change on this file since 83832 was 83832, checked in by vboxsync, 5 years ago

Additions/3D: VC++ 14.1 adjustments and warnings. bugref:8489

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 5.1 KB
Line 
1# $Id: Makefile.kmk 83832 2020-04-19 14:12:33Z vboxsync $
2## @file
3# Sub-Makefile for VBoxGL OpenGL state tracker.
4#
5
6#
7# Copyright (C) 2018-2020 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
18SUB_DEPTH = ../../../../../..
19include $(KBUILD_PATH)/subheader.kmk
20
21# Define this to build software OpenGL driver
22#VBOX_WITH_MESA3D_GL_SOFTWARE = 1
23
24DLLS += VBoxGL
25DLLS.amd64 += VBoxGL-x86
26
27VBoxGL_TEMPLATE = VBoxMesa3DGuestR3DllMinVista
28# -wd4005: '__useHeader' : redefinition
29VBoxGL_CFLAGS := -wd4005
30if "$(VBOX_NEWER_VCC_TOOL_STEM)" >= "VCC141"
31# -wd4204: nonstandard extension used: non-constant aggregate initializer
32# -wd4459: stw_device.h(102): warning C4459: declaration of 'stw_dev' hides global declaration
33# -wd4668: c99_compat.h(99): warning C4668: '__STDC_VERSION__' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
34VBoxGL_CFLAGS += -wd4204 -wd4459 -wd4668
35endif
36VBoxGL_INCS = \
37 $(VBOX_PATH_3D)/win/include \
38 $(VBOX_PATH_MESA)/include/GL \
39 $(VBOX_PATH_MESA)/src/gallium/state_trackers/wgl \
40 $(VBOX_PATH_MESA)/src/gallium/winsys/sw \
41 $(VBOX_PATH_MESA)/src/gallium/drivers \
42 $(PATH_ROOT)/src/VBox/Additions/WINNT/Graphics/Video \
43 $(PATH_ROOT)/src/VBox/Runtime/common/table \
44 $(VBOX_PATH_VMSVGA_INC) \
45 $(VBOX_GRAPHICS_INCS)
46VBoxGL_SOURCES = \
47 $(VBOX_PATH_MESA)/src/gallium/state_trackers/wgl/opengl32.def \
48 VBoxGL.rc
49ifndef VBOX_WITH_MESA3D_GL_SOFTWARE
50VBoxGL_SOURCES += \
51 GaDrvEnvKMT.cpp \
52 VBoxGL.c
53else
54VBoxGL_SOURCES += \
55 $(VBOX_PATH_MESA)/src/gallium/targets/libgl-gdi/libgl_gdi.c
56VBoxGL_SOURCES += \
57 $(VBOX_PATH_MESA)/src/gallium/winsys/sw/gdi/gdi_sw_winsys.c
58VBoxGL_SOURCES += \
59 $(VBOX_PATH_MESA)/src/gallium/drivers/softpipe/sp_buffer.c \
60 $(VBOX_PATH_MESA)/src/gallium/drivers/softpipe/sp_clear.c \
61 $(VBOX_PATH_MESA)/src/gallium/drivers/softpipe/sp_context.c \
62 $(VBOX_PATH_MESA)/src/gallium/drivers/softpipe/sp_compute.c \
63 $(VBOX_PATH_MESA)/src/gallium/drivers/softpipe/sp_draw_arrays.c \
64 $(VBOX_PATH_MESA)/src/gallium/drivers/softpipe/sp_fence.c \
65 $(VBOX_PATH_MESA)/src/gallium/drivers/softpipe/sp_flush.c \
66 $(VBOX_PATH_MESA)/src/gallium/drivers/softpipe/sp_fs_exec.c \
67 $(VBOX_PATH_MESA)/src/gallium/drivers/softpipe/sp_image.c \
68 $(VBOX_PATH_MESA)/src/gallium/drivers/softpipe/sp_prim_vbuf.c \
69 $(VBOX_PATH_MESA)/src/gallium/drivers/softpipe/sp_quad_blend.c \
70 $(VBOX_PATH_MESA)/src/gallium/drivers/softpipe/sp_quad_depth_test.c \
71 $(VBOX_PATH_MESA)/src/gallium/drivers/softpipe/sp_quad_fs.c \
72 $(VBOX_PATH_MESA)/src/gallium/drivers/softpipe/sp_quad_pipe.c \
73 $(VBOX_PATH_MESA)/src/gallium/drivers/softpipe/sp_quad_stipple.c \
74 $(VBOX_PATH_MESA)/src/gallium/drivers/softpipe/sp_query.c \
75 $(VBOX_PATH_MESA)/src/gallium/drivers/softpipe/sp_screen.c \
76 $(VBOX_PATH_MESA)/src/gallium/drivers/softpipe/sp_setup.c \
77 $(VBOX_PATH_MESA)/src/gallium/drivers/softpipe/sp_state_blend.c \
78 $(VBOX_PATH_MESA)/src/gallium/drivers/softpipe/sp_state_clip.c \
79 $(VBOX_PATH_MESA)/src/gallium/drivers/softpipe/sp_state_derived.c \
80 $(VBOX_PATH_MESA)/src/gallium/drivers/softpipe/sp_state_image.c \
81 $(VBOX_PATH_MESA)/src/gallium/drivers/softpipe/sp_state_rasterizer.c \
82 $(VBOX_PATH_MESA)/src/gallium/drivers/softpipe/sp_state_sampler.c \
83 $(VBOX_PATH_MESA)/src/gallium/drivers/softpipe/sp_state_shader.c \
84 $(VBOX_PATH_MESA)/src/gallium/drivers/softpipe/sp_state_so.c \
85 $(VBOX_PATH_MESA)/src/gallium/drivers/softpipe/sp_state_surface.c \
86 $(VBOX_PATH_MESA)/src/gallium/drivers/softpipe/sp_state_vertex.c \
87 $(VBOX_PATH_MESA)/src/gallium/drivers/softpipe/sp_surface.c \
88 $(VBOX_PATH_MESA)/src/gallium/drivers/softpipe/sp_tex_sample.c \
89 $(VBOX_PATH_MESA)/src/gallium/drivers/softpipe/sp_tex_tile_cache.c \
90 $(VBOX_PATH_MESA)/src/gallium/drivers/softpipe/sp_texture.c \
91 $(VBOX_PATH_MESA)/src/gallium/drivers/softpipe/sp_tile_cache.c
92endif
93VBoxGL_LIBS = \
94 $(VBOX_PATH_ADDITIONS_LIB)/VBoxWddmUmHlp$(VBOX_SUFF_LIB) \
95 $(VBOX_PATH_ADDITIONS_LIB)/VBoxMesaGalliumAuxLib$(VBOX_SUFF_LIB) \
96 $(VBOX_PATH_ADDITIONS_LIB)/VBoxMesaWglLib$(VBOX_SUFF_LIB) \
97 $(VBOX_PATH_ADDITIONS_LIB)/VBoxMesaUtilLib$(VBOX_SUFF_LIB) \
98 $(VBOX_PATH_ADDITIONS_LIB)/VBoxMesaLib$(VBOX_SUFF_LIB)
99
100ifdef VBOX_SIGN_ADDITIONS
101 VBoxGL_INSTTYPE = none
102 VBoxGL_DEBUG_INSTTYPE = both
103endif
104
105#
106# VBoxGL-x86 - x86 version of VBoxGL built for amd64 build
107#
108VBoxGL-x86_EXTENDS = VBoxGL
109VBoxGL-x86_BLD_TRG_ARCH = x86
110VBoxGL-x86_LIBS = \
111 $(VBOX_PATH_ADDITIONS_LIB)/VBoxWddmUmHlp-x86$(VBOX_SUFF_LIB) \
112 $(VBOX_PATH_ADDITIONS_LIB)/VBoxMesaGalliumAuxLib-x86$(VBOX_SUFF_LIB) \
113 $(VBOX_PATH_ADDITIONS_LIB)/VBoxMesaWglLib-x86$(VBOX_SUFF_LIB) \
114 $(VBOX_PATH_ADDITIONS_LIB)/VBoxMesaUtilLib-x86$(VBOX_SUFF_LIB) \
115 $(VBOX_PATH_ADDITIONS_LIB)/VBoxMesaLib-x86$(VBOX_SUFF_LIB)
116VBoxGL-x86_DEFS = $(VBoxGL_DEFS) VBOX_WOW64
117
118include $(FILE_KBUILD_SUB_FOOTER)
119
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