VirtualBox

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

最後變更 在這個檔案從36453是 35381,由 vboxsync 提交於 14 年 前

The DIRDEP is deprecated, use dir/ or $$(dir $$@) instead.

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Author Date Id Revision
檔案大小: 9.3 KB
 
1# $Id: Makefile.kmk 35381 2010-12-30 16:12:47Z 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.alldomusa.eu.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 include $(PATH_SUB_CURRENT)/Wine/Makefile.kmk
26endif
27
28#
29# Install the inf & cat.
30# This has to be done here since it depends on both the
31# miniport driver and the display dll.
32#
33INSTALLS += VBoxVideo-inf
34VBoxVideo-inf_INST = $(INST_ADDITIONS)
35VBoxVideo-inf_MODE = a+r,u+w
36VBoxVideo-inf_SOURCES = \
37 $(PATH_TARGET)/VBoxVideoCat.dir/VBoxVideo.inf
38ifdef VBOX_SIGN_ADDITIONS
39VBoxVideo-inf_SOURCES += \
40 $(PATH_TARGET)/VBoxVideoCat.dir/VBoxVideo.sys \
41 $(PATH_TARGET)/VBoxVideoCat.dir/VBoxDisp.dll \
42 $(PATH_TARGET)/VBoxVideoCat.dir/VBoxVideo.cat
43endif # signing
44VBoxVideo-inf_CLEAN = $(VBoxVideo-inf_SOURCES)
45VBoxVideo-inf_BLDDIRS = \
46 $(PATH_TARGET)/VBoxVideoCat.dir
47
48$(PATH_TARGET)/VBoxVideoCat.dir/VBoxVideo.inf: $(PATH_SUB_CURRENT)/Miniport/VBoxVideo.inf $(MAKEFILE_CURRENT) | $$(dir $$@)
49 $(call MSG_GENERATE,VBoxVideo-inf,$@,$<)
50 $(call VBOX_EDIT_INF_FN,$<,$@)
51
52$(PATH_TARGET)/VBoxVideoCat.dir/VBoxVideo.sys: $$(TARGET_VBoxVideo) | $$(dir $$@)
53 $(INSTALL) -m 644 $< $(@D)
54
55$(PATH_TARGET)/VBoxVideoCat.dir/VBoxDisp.dll: $$(TARGET_VBoxDisp) | $$(dir $$@)
56 $(INSTALL) -m 644 $< $(@D)
57
58$(PATH_TARGET)/VBoxVideoCat.dir/VBoxVideo.cat: \
59 $(PATH_TARGET)/VBoxVideoCat.dir/VBoxVideo.inf \
60 $(PATH_TARGET)/VBoxVideoCat.dir/VBoxVideo.sys \
61 $(PATH_TARGET)/VBoxVideoCat.dir/VBoxDisp.dll
62 $(call MSG_TOOL,Inf2Cat,VBoxVideo-inf,$@,$<)
63 $(call VBOX_MAKE_CAT_FN, $(@D),$@)
64
65ifdef VBOX_WITH_WDDM
66VBOXWDDM_WITH_DISPD3D = 1
67 ifdef VBOX_WITH_CROGL
68 VBOXWDDM_WITH_GL = 1
69 endif
70
71#
72# Install the inf & cat.
73# This has to be done here since it depends on both the
74# miniport driver and the display dll.
75#
76INSTALLS += VBoxVideoWddm-inf
77VBoxVideoWddm-inf_INST = $(INST_ADDITIONS)
78VBoxVideoWddm-inf_MODE = a+r,u+w
79VBoxVideoWddm-inf_SOURCES = \
80 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxVideoWddm.inf
81ifdef VBOX_SIGN_ADDITIONS
82VBoxVideoWddm-inf_SOURCES += \
83 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxVideoWddm.sys \
84 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxVideoWddm.cat
85
86ifdef VBOXWDDM_WITH_DISPD3D
87VBoxVideoWddm-inf_SOURCES += \
88 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxDispD3D.dll
89VBoxVideoWddm-inf_SOURCES.amd64 += \
90 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxDispD3D-x86.dll
91endif
92
93ifdef VBOXWDDM_WITH_GL
94VBoxVideoWddm-inf_SOURCES += \
95 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGL.dll \
96 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxD3D9wddm.dll \
97 $(PATH_TARGET)/VBoxVideoWddmCat.dir/wined3dwddm.dll \
98 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGLarrayspu.dll \
99 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGLcrutil.dll \
100 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGLerrorspu.dll \
101 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGLfeedbackspu.dll \
102 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGLpackspu.dll \
103 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGLpassthroughspu.dll
104VBoxVideoWddm-inf_SOURCES.amd64 += \
105 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGL-x86.dll \
106 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxD3D9wddm-x86.dll \
107 $(PATH_TARGET)/VBoxVideoWddmCat.dir/wined3dwddm-x86.dll \
108 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGLarrayspu-x86.dll \
109 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGLcrutil-x86.dll \
110 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGLerrorspu-x86.dll \
111 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGLfeedbackspu-x86.dll \
112 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGLpackspu-x86.dll \
113 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGLpassthroughspu-x86.dll
114endif
115
116endif # signing
117VBoxVideoWddm-inf_CLEAN = $(VBoxVideoWddm-inf_SOURCES)
118VBoxVideoWddm-inf_BLDDIRS = \
119 $(PATH_TARGET)/VBoxVideoWddmCat.dir
120
121VBOXWDDM_EDIT_INF_DISPD3D_FN_ARG = $(if $(VBOXWDDM_WITH_DISPD3D),-e 's/^;dispd3d *//', -e '/^;dispd3d /d')
122VBOXWDDM_EDIT_INF_GL_FN_ARG = $(if $(VBOXWDDM_WITH_GL),-e 's/^;gl *//', -e '/^;gl /d')
123
124$(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxVideoWddm.inf: $(PATH_SUB_CURRENT)/Miniport/wddm/VBoxVideoWddm.inf $(MAKEFILE_CURRENT) | $$(dir $$@)
125 $(call MSG_GENERATE,VBoxVideoWddm-inf,$@,$<)
126 $(call VBOX_EDIT_INF_FN,$<,$@ $(VBOXWDDM_EDIT_INF_DISPD3D_FN_ARG) $(VBOXWDDM_EDIT_INF_GL_FN_ARG))
127
128$(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxVideoWddm.sys: $$(TARGET_VBoxVideoWddm) | $$(dir $$@)
129 $(INSTALL) -m 644 $< $(@D)
130
131ifdef VBOXWDDM_WITH_DISPD3D
132$(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxDispD3D.dll: $$(TARGET_VBoxDispD3D) | $$(dir $$@)
133 $(INSTALL) -m 644 $< $(@D)
134
135 ifeq ($(KBUILD_TARGET_ARCH),amd64)
136$(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxDispD3D-x86.dll: $$(TARGET_VBoxDispD3D-x86) | $$(dir $$@)
137 $(INSTALL) -m 644 $< $(@D)
138 endif
139endif
140
141ifdef VBOXWDDM_WITH_GL
142$(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGL.dll: $$(TARGET_VBoxOGL) | $$(dir $$@)
143 $(INSTALL) -m 644 $< $(@D)
144
145$(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxD3D9wddm.dll: $$(TARGET_VBoxD3D9wddm) | $$(dir $$@)
146 $(INSTALL) -m 644 $< $(@D)
147
148$(PATH_TARGET)/VBoxVideoWddmCat.dir/wined3dwddm.dll: $$(TARGET_wined3dwddm) | $$(dir $$@)
149 $(INSTALL) -m 644 $< $(@D)
150
151$(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGLarrayspu.dll: $$(TARGET_VBoxOGLarrayspu) | $$(dir $$@)
152 $(INSTALL) -m 644 $< $(@D)
153
154$(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGLcrutil.dll: $$(TARGET_VBoxOGLcrutil) | $$(dir $$@)
155 $(INSTALL) -m 644 $< $(@D)
156
157$(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGLerrorspu.dll: $$(TARGET_VBoxOGLerrorspu) | $$(dir $$@)
158 $(INSTALL) -m 644 $< $(@D)
159
160$(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGLfeedbackspu.dll: $$(TARGET_VBoxOGLfeedbackspu) | $$(dir $$@)
161 $(INSTALL) -m 644 $< $(@D)
162
163$(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGLpackspu.dll: $$(TARGET_VBoxOGLpackspu) | $$(dir $$@)
164 $(INSTALL) -m 644 $< $(@D)
165
166$(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGLpassthroughspu.dll: $$(TARGET_VBoxOGLpassthroughspu) | $$(dir $$@)
167 $(INSTALL) -m 644 $< $(@D)
168
169 ifeq ($(KBUILD_TARGET_ARCH), amd64)
170$(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGL-x86.dll: $$(TARGET_VBoxOGL-x86) | $$(dir $$@)
171 $(INSTALL) -m 644 $< $(@D)
172
173$(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxD3D9wddm-x86.dll: $$(TARGET_VBoxD3D9wddm-x86) | $$(dir $$@)
174 $(INSTALL) -m 644 $< $(@D)
175
176$(PATH_TARGET)/VBoxVideoWddmCat.dir/wined3dwddm-x86.dll: $$(TARGET_wined3dwddm-x86) | $$(dir $$@)
177 $(INSTALL) -m 644 $< $(@D)
178
179$(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGLarrayspu-x86.dll: $$(TARGET_VBoxOGLarrayspu-x86) | $$(dir $$@)
180 $(INSTALL) -m 644 $< $(@D)
181
182$(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGLcrutil-x86.dll: $$(TARGET_VBoxOGLcrutil-x86) | $$(dir $$@)
183 $(INSTALL) -m 644 $< $(@D)
184
185$(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGLerrorspu-x86.dll: $$(TARGET_VBoxOGLerrorspu-x86) | $$(dir $$@)
186 $(INSTALL) -m 644 $< $(@D)
187
188$(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGLfeedbackspu-x86.dll: $$(TARGET_VBoxOGLfeedbackspu-x86) | $$(dir $$@)
189 $(INSTALL) -m 644 $< $(@D)
190
191$(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGLpackspu-x86.dll: $$(TARGET_VBoxOGLpackspu-x86) | $$(dir $$@)
192 $(INSTALL) -m 644 $< $(@D)
193
194$(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGLpassthroughspu-x86.dll: $$(TARGET_VBoxOGLpassthroughspu-x86) | $$(dir $$@)
195 $(INSTALL) -m 644 $< $(@D)
196 endif
197endif
198
199$(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxVideoWddm.cat: \
200 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxVideoWddm.inf \
201 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxVideoWddm.sys \
202 $(if $(VBOXWDDM_WITH_DISPD3D), $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxDispD3D.dll, ) \
203 $(if $(VBOXWDDM_WITH_DISPD3D), $(if-expr "$(KBUILD_TARGET_ARCH)" == "amd64", $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxDispD3D-x86.dll, ), ) \
204 $(if $(VBOXWDDM_WITH_GL), $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGL.dll \
205 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxD3D9wddm.dll \
206 $(PATH_TARGET)/VBoxVideoWddmCat.dir/wined3dwddm.dll \
207 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGLarrayspu.dll \
208 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGLcrutil.dll \
209 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGLerrorspu.dll \
210 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGLfeedbackspu.dll \
211 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGLpackspu.dll \
212 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGLpassthroughspu.dll, ) \
213 $(if $(VBOXWDDM_WITH_GL), $(if-expr "$(KBUILD_TARGET_ARCH)" == "amd64", \
214 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGL-x86.dll \
215 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxD3D9wddm-x86.dll \
216 $(PATH_TARGET)/VBoxVideoWddmCat.dir/wined3dwddm-x86.dll \
217 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGLarrayspu-x86.dll \
218 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGLcrutil-x86.dll \
219 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGLerrorspu-x86.dll \
220 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGLfeedbackspu-x86.dll \
221 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGLpackspu-x86.dll \
222 $(PATH_TARGET)/VBoxVideoWddmCat.dir/VBoxOGLpassthroughspu-x86.dll, ), )
223 $(call MSG_TOOL,Inf2Cat,VBoxVideoWddm-inf,$@,$<)
224 $(call VBOX_MAKE_CAT_FN, $(@D),$@)
225endif
226
227include $(KBUILD_PATH)/subfooter.kmk
228
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette