1 | # $Id: Makefile.kmk 76553 2019-01-01 01:45:53Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Sub-Makefile for VBoxGL OpenGL state tracker.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2018-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 |
|
---|
18 | SUB_DEPTH = ../../../../../..
|
---|
19 | include $(KBUILD_PATH)/subheader.kmk
|
---|
20 |
|
---|
21 | # Define this to build software OpenGL driver
|
---|
22 | #VBOX_WITH_MESA3D_GL_SOFTWARE = 1
|
---|
23 |
|
---|
24 | DLLS += VBoxGL
|
---|
25 | DLLS.amd64 += VBoxGL-x86
|
---|
26 |
|
---|
27 | VBoxGL_TEMPLATE = VBoxMesa3DGuestR3DllMinVista
|
---|
28 | # -wd4005: '__useHeader' : redefinition
|
---|
29 | VBoxGL_CFLAGS = -wd4005
|
---|
30 | VBoxGL_INCS = \
|
---|
31 | $(VBOX_PATH_3D)/win/include \
|
---|
32 | $(VBOX_PATH_MESA)/include/GL \
|
---|
33 | $(VBOX_PATH_MESA)/src/gallium/state_trackers/wgl \
|
---|
34 | $(VBOX_PATH_MESA)/src/gallium/winsys/sw \
|
---|
35 | $(VBOX_PATH_MESA)/src/gallium/drivers \
|
---|
36 | $(PATH_ROOT)/src/VBox/Additions/WINNT/Graphics/Video \
|
---|
37 | $(PATH_ROOT)/src/VBox/Runtime/common/table \
|
---|
38 | $(VBOX_PATH_VMSVGA_INC) \
|
---|
39 | $(VBOX_GRAPHICS_INCS)
|
---|
40 | VBoxGL_SOURCES = \
|
---|
41 | $(VBOX_PATH_MESA)/src/gallium/state_trackers/wgl/opengl32.def \
|
---|
42 | VBoxGL.rc
|
---|
43 | ifndef VBOX_WITH_MESA3D_GL_SOFTWARE
|
---|
44 | VBoxGL_SOURCES += \
|
---|
45 | GaDrvEnvKMT.cpp \
|
---|
46 | VBoxGL.c
|
---|
47 | else
|
---|
48 | VBoxGL_SOURCES += \
|
---|
49 | $(VBOX_PATH_MESA)/src/gallium/targets/libgl-gdi/libgl_gdi.c
|
---|
50 | VBoxGL_SOURCES += \
|
---|
51 | $(VBOX_PATH_MESA)/src/gallium/winsys/sw/gdi/gdi_sw_winsys.c
|
---|
52 | VBoxGL_SOURCES += \
|
---|
53 | $(VBOX_PATH_MESA)/src/gallium/drivers/softpipe/sp_buffer.c \
|
---|
54 | $(VBOX_PATH_MESA)/src/gallium/drivers/softpipe/sp_clear.c \
|
---|
55 | $(VBOX_PATH_MESA)/src/gallium/drivers/softpipe/sp_context.c \
|
---|
56 | $(VBOX_PATH_MESA)/src/gallium/drivers/softpipe/sp_compute.c \
|
---|
57 | $(VBOX_PATH_MESA)/src/gallium/drivers/softpipe/sp_draw_arrays.c \
|
---|
58 | $(VBOX_PATH_MESA)/src/gallium/drivers/softpipe/sp_fence.c \
|
---|
59 | $(VBOX_PATH_MESA)/src/gallium/drivers/softpipe/sp_flush.c \
|
---|
60 | $(VBOX_PATH_MESA)/src/gallium/drivers/softpipe/sp_fs_exec.c \
|
---|
61 | $(VBOX_PATH_MESA)/src/gallium/drivers/softpipe/sp_image.c \
|
---|
62 | $(VBOX_PATH_MESA)/src/gallium/drivers/softpipe/sp_prim_vbuf.c \
|
---|
63 | $(VBOX_PATH_MESA)/src/gallium/drivers/softpipe/sp_quad_blend.c \
|
---|
64 | $(VBOX_PATH_MESA)/src/gallium/drivers/softpipe/sp_quad_depth_test.c \
|
---|
65 | $(VBOX_PATH_MESA)/src/gallium/drivers/softpipe/sp_quad_fs.c \
|
---|
66 | $(VBOX_PATH_MESA)/src/gallium/drivers/softpipe/sp_quad_pipe.c \
|
---|
67 | $(VBOX_PATH_MESA)/src/gallium/drivers/softpipe/sp_quad_stipple.c \
|
---|
68 | $(VBOX_PATH_MESA)/src/gallium/drivers/softpipe/sp_query.c \
|
---|
69 | $(VBOX_PATH_MESA)/src/gallium/drivers/softpipe/sp_screen.c \
|
---|
70 | $(VBOX_PATH_MESA)/src/gallium/drivers/softpipe/sp_setup.c \
|
---|
71 | $(VBOX_PATH_MESA)/src/gallium/drivers/softpipe/sp_state_blend.c \
|
---|
72 | $(VBOX_PATH_MESA)/src/gallium/drivers/softpipe/sp_state_clip.c \
|
---|
73 | $(VBOX_PATH_MESA)/src/gallium/drivers/softpipe/sp_state_derived.c \
|
---|
74 | $(VBOX_PATH_MESA)/src/gallium/drivers/softpipe/sp_state_image.c \
|
---|
75 | $(VBOX_PATH_MESA)/src/gallium/drivers/softpipe/sp_state_rasterizer.c \
|
---|
76 | $(VBOX_PATH_MESA)/src/gallium/drivers/softpipe/sp_state_sampler.c \
|
---|
77 | $(VBOX_PATH_MESA)/src/gallium/drivers/softpipe/sp_state_shader.c \
|
---|
78 | $(VBOX_PATH_MESA)/src/gallium/drivers/softpipe/sp_state_so.c \
|
---|
79 | $(VBOX_PATH_MESA)/src/gallium/drivers/softpipe/sp_state_surface.c \
|
---|
80 | $(VBOX_PATH_MESA)/src/gallium/drivers/softpipe/sp_state_vertex.c \
|
---|
81 | $(VBOX_PATH_MESA)/src/gallium/drivers/softpipe/sp_surface.c \
|
---|
82 | $(VBOX_PATH_MESA)/src/gallium/drivers/softpipe/sp_tex_sample.c \
|
---|
83 | $(VBOX_PATH_MESA)/src/gallium/drivers/softpipe/sp_tex_tile_cache.c \
|
---|
84 | $(VBOX_PATH_MESA)/src/gallium/drivers/softpipe/sp_texture.c \
|
---|
85 | $(VBOX_PATH_MESA)/src/gallium/drivers/softpipe/sp_tile_cache.c
|
---|
86 | endif
|
---|
87 | VBoxGL_LIBS = \
|
---|
88 | $(VBOX_PATH_ADDITIONS_LIB)/VBoxWddmUmHlp$(VBOX_SUFF_LIB) \
|
---|
89 | $(VBOX_PATH_ADDITIONS_LIB)/VBoxMesaGalliumAuxLib$(VBOX_SUFF_LIB) \
|
---|
90 | $(VBOX_PATH_ADDITIONS_LIB)/VBoxMesaWglLib$(VBOX_SUFF_LIB) \
|
---|
91 | $(VBOX_PATH_ADDITIONS_LIB)/VBoxMesaUtilLib$(VBOX_SUFF_LIB) \
|
---|
92 | $(VBOX_PATH_ADDITIONS_LIB)/VBoxMesaLib$(VBOX_SUFF_LIB)
|
---|
93 |
|
---|
94 | ifdef VBOX_SIGN_ADDITIONS
|
---|
95 | VBoxGL_INSTTYPE = none
|
---|
96 | VBoxGL_DEBUG_INSTTYPE = both
|
---|
97 | endif
|
---|
98 |
|
---|
99 | #
|
---|
100 | # VBoxGL-x86 - x86 version of VBoxGL built for amd64 build
|
---|
101 | #
|
---|
102 | VBoxGL-x86_EXTENDS = VBoxGL
|
---|
103 | VBoxGL-x86_BLD_TRG_ARCH = x86
|
---|
104 | VBoxGL-x86_LIBS = \
|
---|
105 | $(VBOX_PATH_ADDITIONS_LIB)/VBoxWddmUmHlp-x86$(VBOX_SUFF_LIB) \
|
---|
106 | $(VBOX_PATH_ADDITIONS_LIB)/VBoxMesaGalliumAuxLib-x86$(VBOX_SUFF_LIB) \
|
---|
107 | $(VBOX_PATH_ADDITIONS_LIB)/VBoxMesaWglLib-x86$(VBOX_SUFF_LIB) \
|
---|
108 | $(VBOX_PATH_ADDITIONS_LIB)/VBoxMesaUtilLib-x86$(VBOX_SUFF_LIB) \
|
---|
109 | $(VBOX_PATH_ADDITIONS_LIB)/VBoxMesaLib-x86$(VBOX_SUFF_LIB)
|
---|
110 | VBoxGL-x86_DEFS = $(VBoxGL_DEFS) VBOX_WOW64
|
---|
111 |
|
---|
112 | include $(FILE_KBUILD_SUB_FOOTER)
|
---|
113 |
|
---|