VirtualBox

source: vbox/trunk/src/VBox/Additions/WINNT/Graphics/Video/Makefile.kmk@ 78273

Last change on this file since 78273 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: 11.7 KB
Line 
1# $Id: Makefile.kmk 76553 2019-01-01 01:45:53Z vboxsync $
2## @file
3# Makefile for the Windows guest video driver.
4#
5
6#
7# Copyright (C) 2011-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
18SUB_DEPTH = ../../../../../..
19include $(KBUILD_PATH)/subheader.kmk
20
21# Include sub-makefiles.
22include $(PATH_SUB_CURRENT)/mp/Makefile.kmk
23include $(PATH_SUB_CURRENT)/disp/Makefile.kmk
24
25#
26# Install the inf & cat.
27# This has to be done here since it depends on both the
28# miniport driver and the display dll.
29#
30INSTALLS += VBoxVideo-inf
31VBoxVideo-inf_INST = $(INST_ADDITIONS)
32VBoxVideo-inf_MODE = a+r,u+w
33VBoxVideo-inf_SOURCES = \
34 $(PATH_TARGET)/VBoxVideoCat.dir/VBoxVideo.inf
35ifdef VBOX_SIGN_ADDITIONS
36 VBoxVideo-inf_SOURCES += \
37 $(PATH_TARGET)/VBoxVideoCat.dir/VBoxVideo.sys \
38 $(PATH_TARGET)/VBoxVideoCat.dir/VBoxDisp.dll \
39 $(PATH_TARGET)/VBoxVideoCat.dir/VBoxVideo.cat
40endif
41VBoxVideo-inf_CLEAN = $(VBoxVideo-inf_SOURCES)
42VBoxVideo-inf_BLDDIRS = \
43 $(PATH_TARGET)/VBoxVideoCat.dir
44
45$(PATH_TARGET)/VBoxVideoCat.dir/VBoxVideo.inf: $(PATH_SUB_CURRENT)/mp/xpdm/VBoxVideo.inf $(MAKEFILE_CURRENT) | $$(dir $$@)
46 $(call MSG_GENERATE,VBoxVideo-inf,$@,$<)
47 $(call VBOX_EDIT_INF_FN,$<,$@)
48
49$(PATH_TARGET)/VBoxVideoCat.dir/VBoxVideo.sys: $$(VBoxVideo_1_TARGET) | $$(dir $$@)
50 $(INSTALL) -m 644 $< $(@D)
51
52$(PATH_TARGET)/VBoxVideoCat.dir/VBoxDisp.dll: $$(VBoxDisp_1_TARGET) | $$(dir $$@)
53 $(INSTALL) -m 644 $< $(@D)
54
55$(PATH_TARGET)/VBoxVideoCat.dir/VBoxVideo.cat: \
56 $(PATH_TARGET)/VBoxVideoCat.dir/VBoxVideo.inf \
57 $(PATH_TARGET)/VBoxVideoCat.dir/VBoxVideo.sys \
58 $(PATH_TARGET)/VBoxVideoCat.dir/VBoxDisp.dll
59 $(call MSG_TOOL,Inf2Cat,VBoxVideo-inf,$@,$<)
60 $(call VBOX_MAKE_CAT_FN, $(@D),$@)
61
62ifdef VBOX_WITH_WDDM
63 VBOXWDDM_WITH_DISPD3D = 1
64 ifdef VBOX_WITH_CROGL
65 VBOXWDDM_WITH_GL = 1
66 endif
67
68 #
69 # Install the inf & cat.
70 # This has to be done here since it depends on both the
71 # miniport driver and the display dll.
72 #
73 INSTALLS += VBoxWddm-inf
74 VBoxWddm-inf_INST = $(INST_ADDITIONS)
75 VBoxWddm-inf_MODE = a+r,u+w
76 VBoxWddm-inf_SOURCES = \
77 $(PATH_TARGET)/VBoxWddmCat.dir/VBoxWddm.inf
78 ifdef VBOX_SIGN_ADDITIONS
79 VBoxWddm-inf_SOURCES += \
80 $(PATH_TARGET)/VBoxWddmCat.dir/VBoxWddm.sys \
81 $(PATH_TARGET)/VBoxWddmCat.dir/VBoxWddm.cat
82
83 ifdef VBOXWDDM_WITH_DISPD3D
84 VBoxWddm-inf_SOURCES += \
85 $(PATH_TARGET)/VBoxWddmCat.dir/VBoxDispD3D.dll
86 VBoxWddm-inf_SOURCES.amd64 += \
87 $(PATH_TARGET)/VBoxWddmCat.dir/VBoxDispD3D-x86.dll
88 endif # VBOXWDDM_WITH_DISPD3D
89
90 ifdef VBOX_WITH_MESA3D
91 VBoxWddm-inf_SOURCES += \
92 $(PATH_TARGET)/VBoxWddmCat.dir/VBoxNine.dll \
93 $(PATH_TARGET)/VBoxWddmCat.dir/VBoxSVGA.dll \
94 $(PATH_TARGET)/VBoxWddmCat.dir/VBoxICD.dll \
95 $(PATH_TARGET)/VBoxWddmCat.dir/VBoxGL.dll
96 VBoxWddm-inf_SOURCES.amd64 += \
97 $(PATH_TARGET)/VBoxWddmCat.dir/VBoxNine-x86.dll \
98 $(PATH_TARGET)/VBoxWddmCat.dir/VBoxSVGA-x86.dll \
99 $(PATH_TARGET)/VBoxWddmCat.dir/VBoxICD-x86.dll \
100 $(PATH_TARGET)/VBoxWddmCat.dir/VBoxGL-x86.dll
101 endif
102
103 ifdef VBOXWDDM_WITH_GL
104 VBoxWddm-inf_SOURCES += \
105 $(PATH_TARGET)/VBoxWddmCat.dir/VBoxOGL.dll \
106 $(PATH_TARGET)/VBoxWddmCat.dir/VBoxD3D9wddm.dll \
107 $(PATH_TARGET)/VBoxWddmCat.dir/wined3dwddm.dll \
108 $(PATH_TARGET)/VBoxWddmCat.dir/VBoxOGLarrayspu.dll \
109 $(PATH_TARGET)/VBoxWddmCat.dir/VBoxOGLcrutil.dll \
110 $(PATH_TARGET)/VBoxWddmCat.dir/VBoxOGLerrorspu.dll \
111 $(PATH_TARGET)/VBoxWddmCat.dir/VBoxOGLfeedbackspu.dll \
112 $(PATH_TARGET)/VBoxWddmCat.dir/VBoxOGLpackspu.dll \
113 $(PATH_TARGET)/VBoxWddmCat.dir/VBoxOGLpassthroughspu.dll
114 VBoxWddm-inf_SOURCES.amd64 += \
115 $(PATH_TARGET)/VBoxWddmCat.dir/VBoxOGL-x86.dll \
116 $(PATH_TARGET)/VBoxWddmCat.dir/VBoxD3D9wddm-x86.dll \
117 $(PATH_TARGET)/VBoxWddmCat.dir/wined3dwddm-x86.dll \
118 $(PATH_TARGET)/VBoxWddmCat.dir/VBoxOGLarrayspu-x86.dll \
119 $(PATH_TARGET)/VBoxWddmCat.dir/VBoxOGLcrutil-x86.dll \
120 $(PATH_TARGET)/VBoxWddmCat.dir/VBoxOGLerrorspu-x86.dll \
121 $(PATH_TARGET)/VBoxWddmCat.dir/VBoxOGLfeedbackspu-x86.dll \
122 $(PATH_TARGET)/VBoxWddmCat.dir/VBoxOGLpackspu-x86.dll \
123 $(PATH_TARGET)/VBoxWddmCat.dir/VBoxOGLpassthroughspu-x86.dll
124 endif # VBOXWDDM_WITH_GL
125 endif # VBOX_SIGN_ADDITIONS
126
127 VBoxWddm-inf_CLEAN = $(VBoxWddm-inf_SOURCES)
128 VBoxWddm-inf_BLDDIRS = \
129 $(PATH_TARGET)/VBoxWddmCat.dir
130
131 VBOXWDDM_EDIT_INF_DISPD3D_FN_ARG = $(if $(VBOXWDDM_WITH_DISPD3D),-e 's/^;dispd3d *//', -e '/^;dispd3d /d')
132 VBOXWDDM_EDIT_INF_MESA3D_FN_ARG = $(if $(VBOX_WITH_MESA3D),-e 's/^;mesa3d *//', -e '/^;mesa3d /d')
133 VBOXWDDM_EDIT_INF_GL_FN_ARG = $(if $(VBOXWDDM_WITH_GL),-e 's/^;gl *//', -e '/^;gl /d')
134 # Depends on VBOXWDDM_WITH_GL. ";icd" prefix is used for telling which lines are for OpenGL ICD
135 VBOXWDDM_EDIT_INF_ICD_FN_ARG = $(if $(VBOXWDDM_WITH_GL),-e 's/^;icd *//', -e '/^;icd /d')
136
137 $(PATH_TARGET)/VBoxWddmCat.dir/VBoxWddm.inf: \
138 $(PATH_SUB_CURRENT)/mp/wddm/VBoxWddm.inf $(MAKEFILE_CURRENT) | $$(dir $$@)
139 $(call MSG_GENERATE,VBoxWddm-inf,$@,$<)
140 $(call VBOX_EDIT_INF_FN,$<,$@ $(VBOXWDDM_EDIT_INF_DISPD3D_FN_ARG) $(VBOXWDDM_EDIT_INF_MESA3D_FN_ARG) $(VBOXWDDM_EDIT_INF_GL_FN_ARG) $(VBOXWDDM_EDIT_INF_ICD_FN_ARG))
141
142 $(PATH_TARGET)/VBoxWddmCat.dir/VBoxWddm.sys: $$(VBoxWddm_1_TARGET) | $$(dir $$@)
143 $(INSTALL) -m 644 $< $(@D)
144
145 ifdef VBOXWDDM_WITH_DISPD3D
146 $(PATH_TARGET)/VBoxWddmCat.dir/VBoxDispD3D.dll: $$(VBoxDispD3D_1_TARGET) | $$(dir $$@)
147 $(INSTALL) -m 644 $< $(@D)
148
149 ifeq ($(KBUILD_TARGET_ARCH),amd64)
150 $(PATH_TARGET)/VBoxWddmCat.dir/VBoxDispD3D-x86.dll: $$(VBoxDispD3D-x86_1_TARGET) | $$(dir $$@)
151 $(INSTALL) -m 644 $< $(@D)
152 endif
153 endif # VBOXWDDM_WITH_DISPD3D
154
155 ifdef VBOX_WITH_MESA3D
156 $(PATH_TARGET)/VBoxWddmCat.dir/VBoxNine.dll: $$(VBoxNine_1_TARGET) | $$(dir $$@)
157 $(INSTALL) -m 644 $< $(@D)
158 $(PATH_TARGET)/VBoxWddmCat.dir/VBoxSVGA.dll: $$(VBoxSVGA_1_TARGET) | $$(dir $$@)
159 $(INSTALL) -m 644 $< $(@D)
160 $(PATH_TARGET)/VBoxWddmCat.dir/VBoxICD.dll: $$(VBoxICD_1_TARGET) | $$(dir $$@)
161 $(INSTALL) -m 644 $< $(@D)
162 $(PATH_TARGET)/VBoxWddmCat.dir/VBoxGL.dll: $$(VBoxGL_1_TARGET) | $$(dir $$@)
163 $(INSTALL) -m 644 $< $(@D)
164
165 ifeq ($(KBUILD_TARGET_ARCH),amd64)
166 $(PATH_TARGET)/VBoxWddmCat.dir/VBoxNine-x86.dll: $$(VBoxNine-x86_1_TARGET) | $$(dir $$@)
167 $(INSTALL) -m 644 $< $(@D)
168 $(PATH_TARGET)/VBoxWddmCat.dir/VBoxSVGA-x86.dll: $$(VBoxSVGA-x86_1_TARGET) | $$(dir $$@)
169 $(INSTALL) -m 644 $< $(@D)
170 $(PATH_TARGET)/VBoxWddmCat.dir/VBoxICD-x86.dll: $$(VBoxICD-x86_1_TARGET) | $$(dir $$@)
171 $(INSTALL) -m 644 $< $(@D)
172 $(PATH_TARGET)/VBoxWddmCat.dir/VBoxGL-x86.dll: $$(VBoxGL-x86_1_TARGET) | $$(dir $$@)
173 $(INSTALL) -m 644 $< $(@D)
174 endif
175 endif
176
177 ifdef VBOXWDDM_WITH_GL
178 $(PATH_TARGET)/VBoxWddmCat.dir/VBoxOGL.dll: $(PATH_OBJ)/VBoxOGL/VBoxOGL.dll | $$(dir $$@)
179 $(INSTALL) -m 644 $< $(@D)
180
181 $(PATH_TARGET)/VBoxWddmCat.dir/VBoxD3D9wddm.dll: $(PATH_OBJ)/VBoxD3D9wddm/VBoxD3D9wddm.dll | $$(dir $$@)
182 $(INSTALL) -m 644 $< $(@D)
183
184 $(PATH_TARGET)/VBoxWddmCat.dir/wined3dwddm.dll: $(PATH_OBJ)/wined3dwddm/wined3dwddm.dll | $$(dir $$@)
185 $(INSTALL) -m 644 $< $(@D)
186
187 $(PATH_TARGET)/VBoxWddmCat.dir/VBoxOGLarrayspu.dll: $(PATH_OBJ)/VBoxOGLarrayspu/VBoxOGLarrayspu.dll | $$(dir $$@)
188 $(INSTALL) -m 644 $< $(@D)
189
190 $(PATH_TARGET)/VBoxWddmCat.dir/VBoxOGLcrutil.dll: $(PATH_OBJ)/VBoxOGLcrutil/VBoxOGLcrutil.dll | $$(dir $$@)
191 $(INSTALL) -m 644 $< $(@D)
192
193 $(PATH_TARGET)/VBoxWddmCat.dir/VBoxOGLerrorspu.dll: $(PATH_OBJ)/VBoxOGLerrorspu/VBoxOGLerrorspu.dll | $$(dir $$@)
194 $(INSTALL) -m 644 $< $(@D)
195
196 $(PATH_TARGET)/VBoxWddmCat.dir/VBoxOGLfeedbackspu.dll: $(PATH_OBJ)/VBoxOGLfeedbackspu/VBoxOGLfeedbackspu.dll | $$(dir $$@)
197 $(INSTALL) -m 644 $< $(@D)
198
199 $(PATH_TARGET)/VBoxWddmCat.dir/VBoxOGLpackspu.dll: $(PATH_OBJ)/VBoxOGLpackspu/VBoxOGLpackspu.dll | $$(dir $$@)
200 $(INSTALL) -m 644 $< $(@D)
201
202 $(PATH_TARGET)/VBoxWddmCat.dir/VBoxOGLpassthroughspu.dll: $(PATH_OBJ)/VBoxOGLpassthroughspu/VBoxOGLpassthroughspu.dll | $$(dir $$@)
203 $(INSTALL) -m 644 $< $(@D)
204
205 ifeq ($(KBUILD_TARGET_ARCH),amd64)
206 $(PATH_TARGET)/VBoxWddmCat.dir/VBoxOGL-x86.dll: $(PATH_OBJ)/VBoxOGL-x86/VBoxOGL-x86.dll | $$(dir $$@)
207 $(INSTALL) -m 644 $< $(@D)
208
209 $(PATH_TARGET)/VBoxWddmCat.dir/VBoxD3D9wddm-x86.dll: $(PATH_OBJ)/VBoxD3D9wddm-x86/VBoxD3D9wddm-x86.dll | $$(dir $$@)
210 $(INSTALL) -m 644 $< $(@D)
211
212 $(PATH_TARGET)/VBoxWddmCat.dir/wined3dwddm-x86.dll: $(PATH_OBJ)/wined3dwddm-x86/wined3dwddm-x86.dll | $$(dir $$@)
213 $(INSTALL) -m 644 $< $(@D)
214
215 $(PATH_TARGET)/VBoxWddmCat.dir/VBoxOGLarrayspu-x86.dll: $(PATH_OBJ)/VBoxOGLarrayspu-x86/VBoxOGLarrayspu-x86.dll | $$(dir $$@)
216 $(INSTALL) -m 644 $< $(@D)
217
218 $(PATH_TARGET)/VBoxWddmCat.dir/VBoxOGLcrutil-x86.dll: $(PATH_OBJ)/VBoxOGLcrutil-x86/VBoxOGLcrutil-x86.dll | $$(dir $$@)
219 $(INSTALL) -m 644 $< $(@D)
220
221 $(PATH_TARGET)/VBoxWddmCat.dir/VBoxOGLerrorspu-x86.dll: $(PATH_OBJ)/VBoxOGLerrorspu-x86/VBoxOGLerrorspu-x86.dll | $$(dir $$@)
222 $(INSTALL) -m 644 $< $(@D)
223
224 $(PATH_TARGET)/VBoxWddmCat.dir/VBoxOGLfeedbackspu-x86.dll: $(PATH_OBJ)/VBoxOGLfeedbackspu-x86/VBoxOGLfeedbackspu-x86.dll | $$(dir $$@)
225 $(INSTALL) -m 644 $< $(@D)
226
227 $(PATH_TARGET)/VBoxWddmCat.dir/VBoxOGLpackspu-x86.dll: $(PATH_OBJ)/VBoxOGLpackspu-x86/VBoxOGLpackspu-x86.dll | $$(dir $$@)
228 $(INSTALL) -m 644 $< $(@D)
229
230 $(PATH_TARGET)/VBoxWddmCat.dir/VBoxOGLpassthroughspu-x86.dll: $(PATH_OBJ)/VBoxOGLpassthroughspu-x86/VBoxOGLpassthroughspu-x86.dll | $$(dir $$@)
231 $(INSTALL) -m 644 $< $(@D)
232 endif # ($(KBUILD_TARGET_ARCH), amd64)
233 endif # VBOXWDDM_WITH_GL
234
235 $(PATH_TARGET)/VBoxWddmCat.dir/VBoxWddm.cat: \
236 $(PATH_TARGET)/VBoxWddmCat.dir/VBoxWddm.inf \
237 $(PATH_TARGET)/VBoxWddmCat.dir/VBoxWddm.sys \
238 $(if $(VBOXWDDM_WITH_DISPD3D), $(PATH_TARGET)/VBoxWddmCat.dir/VBoxDispD3D.dll, ) \
239 $(if $(VBOXWDDM_WITH_DISPD3D), $(if-expr "$(KBUILD_TARGET_ARCH)" == "amd64", $(PATH_TARGET)/VBoxWddmCat.dir/VBoxDispD3D-x86.dll, ), ) \
240 $(if $(VBOX_WITH_MESA3D), \
241 $(PATH_TARGET)/VBoxWddmCat.dir/VBoxNine.dll \
242 $(PATH_TARGET)/VBoxWddmCat.dir/VBoxSVGA.dll \
243 $(PATH_TARGET)/VBoxWddmCat.dir/VBoxICD.dll \
244 $(PATH_TARGET)/VBoxWddmCat.dir/VBoxGL.dll \
245 $(if-expr "$(KBUILD_TARGET_ARCH)" == "amd64", \
246 $(PATH_TARGET)/VBoxWddmCat.dir/VBoxNine-x86.dll \
247 $(PATH_TARGET)/VBoxWddmCat.dir/VBoxSVGA-x86.dll \
248 $(PATH_TARGET)/VBoxWddmCat.dir/VBoxICD-x86.dll \
249 $(PATH_TARGET)/VBoxWddmCat.dir/VBoxGL-x86.dll, ), ) \
250 $(if $(VBOXWDDM_WITH_GL), $(PATH_TARGET)/VBoxWddmCat.dir/VBoxOGL.dll \
251 $(PATH_TARGET)/VBoxWddmCat.dir/VBoxD3D9wddm.dll \
252 $(PATH_TARGET)/VBoxWddmCat.dir/wined3dwddm.dll \
253 $(PATH_TARGET)/VBoxWddmCat.dir/VBoxOGLarrayspu.dll \
254 $(PATH_TARGET)/VBoxWddmCat.dir/VBoxOGLcrutil.dll \
255 $(PATH_TARGET)/VBoxWddmCat.dir/VBoxOGLerrorspu.dll \
256 $(PATH_TARGET)/VBoxWddmCat.dir/VBoxOGLfeedbackspu.dll \
257 $(PATH_TARGET)/VBoxWddmCat.dir/VBoxOGLpackspu.dll \
258 $(PATH_TARGET)/VBoxWddmCat.dir/VBoxOGLpassthroughspu.dll, ) \
259 $(if $(VBOXWDDM_WITH_GL), $(if-expr "$(KBUILD_TARGET_ARCH)" == "amd64", \
260 $(PATH_TARGET)/VBoxWddmCat.dir/VBoxOGL-x86.dll \
261 $(PATH_TARGET)/VBoxWddmCat.dir/VBoxD3D9wddm-x86.dll \
262 $(PATH_TARGET)/VBoxWddmCat.dir/wined3dwddm-x86.dll \
263 $(PATH_TARGET)/VBoxWddmCat.dir/VBoxOGLarrayspu-x86.dll \
264 $(PATH_TARGET)/VBoxWddmCat.dir/VBoxOGLcrutil-x86.dll \
265 $(PATH_TARGET)/VBoxWddmCat.dir/VBoxOGLerrorspu-x86.dll \
266 $(PATH_TARGET)/VBoxWddmCat.dir/VBoxOGLfeedbackspu-x86.dll \
267 $(PATH_TARGET)/VBoxWddmCat.dir/VBoxOGLpackspu-x86.dll \
268 $(PATH_TARGET)/VBoxWddmCat.dir/VBoxOGLpassthroughspu-x86.dll, ), )
269 $(call MSG_TOOL,Inf2Cat,VBoxWddm-inf,$@,$<)
270 $(call VBOX_MAKE_CAT_FN, $(@D),$@)
271
272endif # VBOX_WITH_WDDM
273
274include $(FILE_KBUILD_SUB_FOOTER)
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