VirtualBox

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

Last change on this file since 32632 was 32622, checked in by vboxsync, 14 years ago

wddm: VBOXWDDM->VBOX_WITH_WDDM

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 10.5 KB
Line 
1# $Id: Makefile.kmk 32622 2010-09-17 20:18:39Z vboxsync $
2## @file
3# Sub-Makefile for the Windows guest graphics driver.
4#
5
6#
7# Copyright (C) 2006-2007 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)/Miniport/Makefile.kmk
23include $(PATH_SUB_CURRENT)/Display/Makefile.kmk
24ifdef VBOX_WITH_CROGL
25 ifeq ($(KBUILD_TARGET_ARCH),x86)
26 include $(PATH_SUB_CURRENT)/Wine/Makefile.kmk
27 endif
28endif
29
30#
31# Install the inf & cat.
32# This has to be done here since it depends on both the
33# miniport driver and the display dll.
34#
35INSTALLS += VBoxVideo-inf
36VBoxVideo-inf_INST = $(INST_ADDITIONS)
37VBoxVideo-inf_MODE = a+r,u+w
38VBoxVideo-inf_SOURCES = \
39 $(PATH_TARGET)/VBoxVideoCat.dir/VBoxVideo.inf
40ifdef VBOX_SIGN_ADDITIONS
41VBoxVideo-inf_SOURCES += \
42 $(PATH_TARGET)/VBoxVideoCat.dir/VBoxVideo.sys \
43 $(PATH_TARGET)/VBoxVideoCat.dir/VBoxDisp.dll \
44 $(PATH_TARGET)/VBoxVideoCat.dir/VBoxVideo.cat
45endif # signing
46VBoxVideo-inf_CLEAN = $(VBoxVideo-inf_SOURCES)
47VBoxVideo-inf_BLDDIRS = \
48 $(PATH_TARGET)/VBoxVideoCat.dir
49
50$(PATH_TARGET)/VBoxVideoCat.dir/VBoxVideo.inf: $(PATH_SUB_CURRENT)/Miniport/VBoxVideo.inf $(MAKEFILE_CURRENT) | $$(call DIRDEP,$$(@D))
51 $(call MSG_GENERATE,VBoxVideo-inf,$@,$<)
52 $(call VBOX_EDIT_INF_FN,$<,$@)
53
54$(PATH_TARGET)/VBoxVideoCat.dir/VBoxVideo.sys: $$(TARGET_VBoxVideo) | $$(call DIRDEP,$$(@D))
55 $(INSTALL) -m 644 $< $(@D)
56
57$(PATH_TARGET)/VBoxVideoCat.dir/VBoxDisp.dll: $$(TARGET_VBoxDisp) | $$(call DIRDEP,$$(@D))
58 $(INSTALL) -m 644 $< $(@D)
59
60$(PATH_TARGET)/VBoxVideoCat.dir/VBoxVideo.cat: \
61 $(PATH_TARGET)/VBoxVideoCat.dir/VBoxVideo.inf \
62 $(PATH_TARGET)/VBoxVideoCat.dir/VBoxVideo.sys \
63 $(PATH_TARGET)/VBoxVideoCat.dir/VBoxDisp.dll
64 $(call MSG_TOOL,Inf2Cat,VBoxVideo-inf,$@,$<)
65 $(call VBOX_MAKE_CAT_FN, $(@D),$@)
66
67ifdef VBOX_WITH_WDDM
68VBOXWDDM_WITH_DISPD3D = 1
69ifeq ($(KBUILD_TARGET_ARCH), x86)
70VBOXWDDM_WITH_GL = 1
71endif
72
73#
74# Install the inf & cat.
75# This has to be done here since it depends on both the
76# miniport driver and the display dll.
77#
78INSTALLS += VBoxVideoWddm-inf
79VBoxVideoWddm-inf_INST = $(INST_ADDITIONS)
80VBoxVideoWddm-inf_MODE = a+r,u+w
81VBoxVideoWddm-inf_SOURCES = \
82 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxVideoWddm.inf
83ifdef VBOX_SIGN_ADDITIONS
84VBoxVideoWddm-inf_SOURCES += \
85 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxVideoWddm.sys \
86 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxVideoWddm.cat
87
88ifdef VBOXWDDM_WITH_DISPD3D
89VBoxVideoWddm-inf_SOURCES += \
90 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxDispD3D.dll
91VBoxVideoWddm-inf_SOURCES.amd64 += \
92 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxDispD3D64.dll
93endif
94
95ifdef VBOXWDDM_WITH_GL
96VBoxVideoWddm-inf_SOURCES += \
97 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGL.dll \
98 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxD3D9wddm.dll \
99 $(PATH_TARGET)/VBoxVideoWddmCat.dir/wined3dwddm.dll \
100 $(PATH_TARGET)/VBoxVideoWddmCat.dir/libWine.dll \
101 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGLarrayspu.dll \
102 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGLcrutil.dll \
103 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGLerrorspu.dll \
104 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGLfeedbackspu.dll \
105 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGLpackspu.dll \
106 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGLpassthroughspu.dll
107VBoxVideoWddm-inf_SOURCES.amd64 += \
108 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGL64.dll \
109 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxD3D964.dll \
110 $(PATH_TARGET)/VBoxVideoWddmCat.dir/wined3d64.dll \
111 $(PATH_TARGET)/VBoxVideoWddmCat.dir/libWine64.dll \
112 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGLarrayspu64.dll \
113 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGLcrutil64.dll \
114 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGLerrorspu64.dll \
115 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGLfeedbackspu64.dll \
116 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGLpackspu64.dll \
117 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGLpassthroughspu64.dll
118endif
119
120endif # signing
121VBoxVideoWddm-inf_CLEAN = $(VBoxVideoWddm-inf_SOURCES)
122VBoxVideoWddm-inf_BLDDIRS = \
123 $(PATH_TARGET)/VBoxVideoWddmCat.dir
124
125VBOXWDDM_EDIT_INF_DISPD3D_FN_ARG = $(if $(VBOXWDDM_WITH_DISPD3D),-e 's/^;dispd3d *//', -e '/^;dispd3d /d')
126VBOXWDDM_EDIT_INF_GL_FN_ARG = $(if $(VBOXWDDM_WITH_GL),-e 's/^;gl *//', -e '/^;gl /d')
127
128$(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxVideoWddm.inf: $(PATH_SUB_CURRENT)/Miniport/wddm/VBoxVideoWddm.inf $(MAKEFILE_CURRENT) | $$(call DIRDEP,$$(@D))
129 $(call MSG_GENERATE,VBoxVideoWddm-inf,$@,$<)
130 $(call VBOX_EDIT_INF_FN,$<,$@ $(VBOXWDDM_EDIT_INF_DISPD3D_FN_ARG) $(VBOXWDDM_EDIT_INF_GL_FN_ARG))
131
132$(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxVideoWddm.sys: $$(TARGET_VBoxVideoWddm) | $$(call DIRDEP,$$(@D))
133 $(INSTALL) -m 644 $< $(@D)
134
135ifdef VBOXWDDM_WITH_DISPD3D
136$(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxDispD3D.dll: $$(TARGET_VBoxDispD3D) | $$(call DIRDEP,$$(@D))
137 $(INSTALL) -m 644 $< $(@D)
138
139 ifeq ($(KBUILD_TARGET_ARCH), amd64)
140$(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxDispD3D64.dll: $$(TARGET_VBoxDispD3D64) | $$(call DIRDEP,$$(@D))
141 $(INSTALL) -m 644 $< $(@D)
142 endif
143endif
144
145ifdef VBOXWDDM_WITH_GL
146$(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGL.dll: $$(TARGET_VBoxOGL) | $$(call DIRDEP,$$(@D))
147 $(INSTALL) -m 644 $< $(@D)
148
149$(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxD3D9wddm.dll: $$(TARGET_VBoxD3D9wddm) | $$(call DIRDEP,$$(@D))
150 $(INSTALL) -m 644 $< $(@D)
151
152$(PATH_TARGET)/VBoxVideoWddmCat.dir/wined3dwddm.dll: $$(TARGET_wined3dwddm) | $$(call DIRDEP,$$(@D))
153 $(INSTALL) -m 644 $< $(@D)
154
155$(PATH_TARGET)/VBoxVideoWddmCat.dir/libWine.dll: $$(TARGET_libWine) | $$(call DIRDEP,$$(@D))
156 $(INSTALL) -m 644 $< $(@D)
157
158$(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGLarrayspu.dll: $$(TARGET_VBoxOGLarrayspu) | $$(call DIRDEP,$$(@D))
159 $(INSTALL) -m 644 $< $(@D)
160
161$(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGLcrutil.dll: $$(TARGET_VBoxOGLcrutil) | $$(call DIRDEP,$$(@D))
162 $(INSTALL) -m 644 $< $(@D)
163
164$(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGLerrorspu.dll: $$(TARGET_VBoxOGLerrorspu) | $$(call DIRDEP,$$(@D))
165 $(INSTALL) -m 644 $< $(@D)
166
167$(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGLfeedbackspu.dll: $$(TARGET_VBoxOGLfeedbackspu) | $$(call DIRDEP,$$(@D))
168 $(INSTALL) -m 644 $< $(@D)
169
170$(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGLpackspu.dll: $$(TARGET_VBoxOGLpackspu) | $$(call DIRDEP,$$(@D))
171 $(INSTALL) -m 644 $< $(@D)
172
173$(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGLpassthroughspu.dll: $$(TARGET_VBoxOGLpassthroughspu) | $$(call DIRDEP,$$(@D))
174 $(INSTALL) -m 644 $< $(@D)
175
176 ifeq ($(KBUILD_TARGET_ARCH), amd64)
177$(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGL64.dll: $$(TARGET_VBoxOGL64) | $$(call DIRDEP,$$(@D))
178 $(INSTALL) -m 644 $< $(@D)
179
180$(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxD3D964.dll: $$(TARGET_VBoxD3D964) | $$(call DIRDEP,$$(@D))
181 $(INSTALL) -m 644 $< $(@D)
182
183$(PATH_TARGET)/VBoxVideoWddmCat.dir/wined3d64.dll: $$(TARGET_wined3d64) | $$(call DIRDEP,$$(@D))
184 $(INSTALL) -m 644 $< $(@D)
185
186$(PATH_TARGET)/VBoxVideoWddmCat.dir/libWine64.dll: $$(TARGET_libWine64) | $$(call DIRDEP,$$(@D))
187 $(INSTALL) -m 644 $< $(@D)
188
189$(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGLarrayspu64.dll: $$(TARGET_VBoxOGLarrayspu64) | $$(call DIRDEP,$$(@D))
190 $(INSTALL) -m 644 $< $(@D)
191
192$(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGLcrutil64.dll: $$(TARGET_VBoxOGLcrutil64) | $$(call DIRDEP,$$(@D))
193 $(INSTALL) -m 644 $< $(@D)
194
195$(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGLerrorspu64.dll: $$(TARGET_VBoxOGLerrorspu64) | $$(call DIRDEP,$$(@D))
196 $(INSTALL) -m 644 $< $(@D)
197
198$(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGLfeedbackspu64.dll: $$(TARGET_VBoxOGLfeedbackspu64) | $$(call DIRDEP,$$(@D))
199 $(INSTALL) -m 644 $< $(@D)
200
201$(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGLpackspu64.dll: $$(TARGET_VBoxOGLpackspu64) | $$(call DIRDEP,$$(@D))
202 $(INSTALL) -m 644 $< $(@D)
203
204$(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGLpassthroughspu64.dll: $$(TARGET_VBoxOGLpassthroughspu64) | $$(call DIRDEP,$$(@D))
205 $(INSTALL) -m 644 $< $(@D)
206 endif
207endif
208
209$(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxVideoWddm.cat: \
210 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxVideoWddm.inf \
211 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxVideoWddm.sys \
212 $(if $(VBOXWDDM_WITH_DISPD3D), $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxDispD3D.dll, ) \
213 $(if $(VBOXWDDM_WITH_DISPD3D), $(if-expr "$(KBUILD_TARGET_ARCH)" == "amd64", $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxDispD3D64.dll, ), ) \
214 $(if $(VBOXWDDM_WITH_GL), $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGL.dll \
215 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxD3D9wddm.dll \
216 $(PATH_TARGET)/VBoxVideoWddmCat.dir/wined3dwddm.dll \
217 $(PATH_TARGET)/VBoxVideoWddmCat.dir/libWine.dll \
218 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGLarrayspu.dll \
219 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGLcrutil.dll \
220 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGLerrorspu.dll \
221 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGLfeedbackspu.dll \
222 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGLpackspu.dll \
223 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGLpassthroughspu.dll, ) \
224 $(if $(VBOXWDDM_WITH_GL), $(if-expr "$(KBUILD_TARGET_ARCH)" == "amd64", \
225 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGL64.dll \
226 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxD3D964.dll \
227 $(PATH_TARGET)/VBoxVideoWddmCat.dir/wined3d64.dll \
228 $(PATH_TARGET)/VBoxVideoWddmCat.dir/libWine64.dll \
229 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGLarrayspu64.dll \
230 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGLcrutil64.dll \
231 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGLerrorspu64.dll \
232 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGLfeedbackspu64.dll \
233 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGLpackspu64.dll \
234 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGLpassthroughspu64.dll, ), )
235 $(call MSG_TOOL,Inf2Cat,VBoxVideoWddm-inf,$@,$<)
236 $(call VBOX_MAKE_CAT_FN, $(@D),$@)
237endif
238
239include $(KBUILD_PATH)/subfooter.kmk
240
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