1 | # $Id: Makefile.kmk 94690 2022-04-22 18:43:31Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Makefile for the Windows guest video driver.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2011-2022 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 | # Include sub-makefiles.
|
---|
22 | include $(PATH_SUB_CURRENT)/mp/Makefile.kmk
|
---|
23 | include $(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 | #
|
---|
30 | INSTALLS += VBoxVideo-inf
|
---|
31 | VBoxVideo-inf_INST = $(INST_ADDITIONS)
|
---|
32 | VBoxVideo-inf_MODE = a+r,u+w
|
---|
33 | VBoxVideo-inf_SOURCES = \
|
---|
34 | $(PATH_TARGET)/VBoxVideoCat.dir/VBoxVideo.inf
|
---|
35 | VBoxVideo-inf_CLEAN = $(VBoxVideo-inf_SOURCES)
|
---|
36 | VBoxVideo-inf_BLDDIRS = $(PATH_TARGET)/VBoxVideoCat.dir
|
---|
37 |
|
---|
38 | $(PATH_TARGET)/VBoxVideoCat.dir/VBoxVideo.inf: $(PATH_SUB_CURRENT)/mp/xpdm/VBoxVideo.inf $(MAKEFILE_CURRENT) | $$(dir $$@)
|
---|
39 | $(call MSG_GENERATE,VBoxVideo-inf,$@,$<)
|
---|
40 | $(call VBOX_EDIT_INF_FN,$<,$@)
|
---|
41 |
|
---|
42 | if defined(VBOX_SIGNING_MODE) && defined(VBOX_SIGN_ADDITIONS)
|
---|
43 | VBoxVideo-inf_SOURCES += \
|
---|
44 | $(PATH_TARGET)/VBoxVideoCat.dir/VBoxVideo.cat \
|
---|
45 | $(PATH_TARGET)/VBoxVideoCat.dir/VBoxVideo.cat=>VBoxVideo-PreW10.cat \
|
---|
46 | $(PATH_TARGET)/VBoxVideoCat.dir/VBoxVideo.sys \
|
---|
47 | $(PATH_TARGET)/VBoxVideoCat.dir/VBoxDisp.dll
|
---|
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 | endif # signing
|
---|
62 |
|
---|
63 | ifdef VBOX_WITH_WDDM
|
---|
64 | VBOXWDDM_WITH_DISPD3D = 1
|
---|
65 |
|
---|
66 | #
|
---|
67 | # Install the inf & cat.
|
---|
68 | # This has to be done here since it depends on both the
|
---|
69 | # miniport driver and the display dll.
|
---|
70 | #
|
---|
71 | INSTALLS += VBoxWddm-inf
|
---|
72 | VBoxWddm-inf_INST = $(INST_ADDITIONS)
|
---|
73 | VBoxWddm-inf_MODE = a+r,u+w
|
---|
74 | VBoxWddm-inf_SOURCES = \
|
---|
75 | $(PATH_TARGET)/VBoxWddmCat.dir/VBoxWddm.inf
|
---|
76 | VBoxWddm-inf_CLEAN = $(VBoxWddm-inf_SOURCES)
|
---|
77 | VBoxWddm-inf_CLEAN.amd64 = $(VBoxWddm-inf_SOURCES.amd64)
|
---|
78 | VBoxWddm-inf_BLDDIRS = $(PATH_TARGET)/VBoxWddmCat.dir
|
---|
79 |
|
---|
80 | VBOXWDDM_EDIT_INF_DISPD3D_FN_ARG = $(if $(VBOXWDDM_WITH_DISPD3D),-e 's/^;dispd3d *//', -e '/^;dispd3d /d')
|
---|
81 | VBOXWDDM_EDIT_INF_DISPDX_FN_ARG = $(if $(VBOX_WITH_WDDM_DX),-e 's/^;dispdx *//', -e '/^;dispdx /d')
|
---|
82 | VBOXWDDM_EDIT_INF_MESA3D_FN_ARG = $(if $(VBOX_WITH_MESA3D),-e 's/^;mesa3d *//', -e '/^;mesa3d /d')
|
---|
83 |
|
---|
84 | $(PATH_TARGET)/VBoxWddmCat.dir/VBoxWddm.inf: \
|
---|
85 | $(PATH_SUB_CURRENT)/mp/wddm/VBoxWddm.inf $(MAKEFILE_CURRENT) | $$(dir $$@)
|
---|
86 | $(call MSG_GENERATE,VBoxWddm-inf,$@,$<)
|
---|
87 | $(call VBOX_EDIT_INF_FN,$<,$@ $(VBOXWDDM_EDIT_INF_DISPD3D_FN_ARG) $(VBOXWDDM_EDIT_INF_DISPDX_FN_ARG) $(VBOXWDDM_EDIT_INF_MESA3D_FN_ARG))
|
---|
88 |
|
---|
89 | if defined(VBOX_SIGNING_MODE) && defined(VBOX_SIGN_ADDITIONS)
|
---|
90 | VBoxWddm-inf_SOURCES += \
|
---|
91 | $(PATH_TARGET)/VBoxWddmCat.dir/VBoxWddm.cat \
|
---|
92 | $(PATH_TARGET)/VBoxWddmCat.dir/VBoxWddm.cat=>VBoxWddm-PreW10.cat \
|
---|
93 | $(PATH_TARGET)/VBoxWddmCat.dir/VBoxWddm.sys
|
---|
94 |
|
---|
95 | ifdef VBOXWDDM_WITH_DISPD3D
|
---|
96 | VBoxWddm-inf_SOURCES += \
|
---|
97 | $(PATH_TARGET)/VBoxWddmCat.dir/VBoxDispD3D.dll
|
---|
98 | VBoxWddm-inf_SOURCES.amd64 += \
|
---|
99 | $(PATH_TARGET)/VBoxWddmCat.dir/VBoxDispD3D-x86.dll
|
---|
100 | endif # VBOXWDDM_WITH_DISPD3D
|
---|
101 |
|
---|
102 | ifdef VBOX_WITH_WDDM_DX
|
---|
103 | VBoxWddm-inf_SOURCES += \
|
---|
104 | $(PATH_TARGET)/VBoxWddmCat.dir/VBoxDX.dll
|
---|
105 | VBoxWddm-inf_SOURCES.amd64 += \
|
---|
106 | $(PATH_TARGET)/VBoxWddmCat.dir/VBoxDX-x86.dll
|
---|
107 | endif
|
---|
108 |
|
---|
109 | ifdef VBOX_WITH_MESA3D
|
---|
110 | VBoxWddm-inf_SOURCES += \
|
---|
111 | $(PATH_TARGET)/VBoxWddmCat.dir/VBoxNine.dll \
|
---|
112 | $(PATH_TARGET)/VBoxWddmCat.dir/VBoxSVGA.dll \
|
---|
113 | $(PATH_TARGET)/VBoxWddmCat.dir/VBoxICD.dll \
|
---|
114 | $(PATH_TARGET)/VBoxWddmCat.dir/VBoxGL.dll
|
---|
115 | VBoxWddm-inf_SOURCES.amd64 += \
|
---|
116 | $(PATH_TARGET)/VBoxWddmCat.dir/VBoxNine-x86.dll \
|
---|
117 | $(PATH_TARGET)/VBoxWddmCat.dir/VBoxSVGA-x86.dll \
|
---|
118 | $(PATH_TARGET)/VBoxWddmCat.dir/VBoxICD-x86.dll \
|
---|
119 | $(PATH_TARGET)/VBoxWddmCat.dir/VBoxGL-x86.dll
|
---|
120 | endif
|
---|
121 |
|
---|
122 | $(PATH_TARGET)/VBoxWddmCat.dir/VBoxWddm.sys: $$(VBoxWddm_1_TARGET) | $$(dir $$@)
|
---|
123 | $(INSTALL) -m 644 $< $(@D)
|
---|
124 |
|
---|
125 | ifdef VBOXWDDM_WITH_DISPD3D
|
---|
126 | $(PATH_TARGET)/VBoxWddmCat.dir/VBoxDispD3D.dll: $$(VBoxDispD3D_1_TARGET) | $$(dir $$@)
|
---|
127 | $(INSTALL) -m 644 $< $(@D)
|
---|
128 |
|
---|
129 | ifeq ($(KBUILD_TARGET_ARCH),amd64)
|
---|
130 | $(PATH_TARGET)/VBoxWddmCat.dir/VBoxDispD3D-x86.dll: $$(VBoxDispD3D-x86_1_TARGET) | $$(dir $$@)
|
---|
131 | $(INSTALL) -m 644 $< $(@D)
|
---|
132 | endif
|
---|
133 | endif # VBOXWDDM_WITH_DISPD3D
|
---|
134 |
|
---|
135 | ifdef VBOX_WITH_WDDM_DX
|
---|
136 | $(PATH_TARGET)/VBoxWddmCat.dir/VBoxDX.dll: $$(VBoxDX_1_TARGET) | $$(dir $$@)
|
---|
137 | $(INSTALL) -m 644 $< $(@D)
|
---|
138 |
|
---|
139 | ifeq ($(KBUILD_TARGET_ARCH),amd64)
|
---|
140 | $(PATH_TARGET)/VBoxWddmCat.dir/VBoxDX-x86.dll: $$(VBoxDX-x86_1_TARGET) | $$(dir $$@)
|
---|
141 | $(INSTALL) -m 644 $< $(@D)
|
---|
142 | endif
|
---|
143 | endif
|
---|
144 |
|
---|
145 | ifdef VBOX_WITH_MESA3D
|
---|
146 | $(PATH_TARGET)/VBoxWddmCat.dir/VBoxNine.dll: $$(VBoxNine_1_TARGET) | $$(dir $$@)
|
---|
147 | $(INSTALL) -m 644 "$<" "$(@D)"
|
---|
148 |
|
---|
149 | $(PATH_TARGET)/VBoxWddmCat.dir/VBoxSVGA.dll: $$(VBoxSVGA_1_TARGET) | $$(dir $$@)
|
---|
150 | $(INSTALL) -m 644 "$<" "$(@D)"
|
---|
151 |
|
---|
152 | $(PATH_TARGET)/VBoxWddmCat.dir/VBoxICD.dll: $$(VBoxICD_1_TARGET) | $$(dir $$@)
|
---|
153 | $(INSTALL) -m 644 "$<" "$(@D)"
|
---|
154 |
|
---|
155 | $(PATH_TARGET)/VBoxWddmCat.dir/VBoxGL.dll: $$(VBoxGL_1_TARGET) | $$(dir $$@)
|
---|
156 | $(INSTALL) -m 644 "$<" "$(@D)"
|
---|
157 |
|
---|
158 | ifeq ($(KBUILD_TARGET_ARCH),amd64)
|
---|
159 | $(PATH_TARGET)/VBoxWddmCat.dir/VBoxNine-x86.dll: $$(VBoxNine-x86_1_TARGET) | $$(dir $$@)
|
---|
160 | $(INSTALL) -m 644 $< $(@D)
|
---|
161 |
|
---|
162 | $(PATH_TARGET)/VBoxWddmCat.dir/VBoxSVGA-x86.dll: $$(VBoxSVGA-x86_1_TARGET) | $$(dir $$@)
|
---|
163 | $(INSTALL) -m 644 $< $(@D)
|
---|
164 |
|
---|
165 | $(PATH_TARGET)/VBoxWddmCat.dir/VBoxICD-x86.dll: $$(VBoxICD-x86_1_TARGET) | $$(dir $$@)
|
---|
166 | $(INSTALL) -m 644 $< $(@D)
|
---|
167 |
|
---|
168 | $(PATH_TARGET)/VBoxWddmCat.dir/VBoxGL-x86.dll: $$(VBoxGL-x86_1_TARGET) | $$(dir $$@)
|
---|
169 | $(INSTALL) -m 644 $< $(@D)
|
---|
170 | endif
|
---|
171 | endif
|
---|
172 |
|
---|
173 | $(PATH_TARGET)/VBoxWddmCat.dir/VBoxWddm.cat: \
|
---|
174 | $(PATH_TARGET)/VBoxWddmCat.dir/VBoxWddm.inf \
|
---|
175 | $(PATH_TARGET)/VBoxWddmCat.dir/VBoxWddm.sys \
|
---|
176 | $(if $(VBOXWDDM_WITH_DISPD3D), $(PATH_TARGET)/VBoxWddmCat.dir/VBoxDispD3D.dll, ) \
|
---|
177 | $(if $(VBOXWDDM_WITH_DISPD3D), $(if-expr "$(KBUILD_TARGET_ARCH)" == "amd64", $(PATH_TARGET)/VBoxWddmCat.dir/VBoxDispD3D-x86.dll, ), ) \
|
---|
178 | $(if $(VBOX_WITH_WDDM_DX), $(PATH_TARGET)/VBoxWddmCat.dir/VBoxDX.dll, ) \
|
---|
179 | $(if $(VBOX_WITH_WDDM_DX), $(if-expr "$(KBUILD_TARGET_ARCH)" == "amd64", $(PATH_TARGET)/VBoxWddmCat.dir/VBoxDX-x86.dll, ), ) \
|
---|
180 | $(if $(VBOX_WITH_MESA3D), \
|
---|
181 | $(PATH_TARGET)/VBoxWddmCat.dir/VBoxNine.dll \
|
---|
182 | $(PATH_TARGET)/VBoxWddmCat.dir/VBoxSVGA.dll \
|
---|
183 | $(PATH_TARGET)/VBoxWddmCat.dir/VBoxICD.dll \
|
---|
184 | $(PATH_TARGET)/VBoxWddmCat.dir/VBoxGL.dll \
|
---|
185 | $(if-expr "$(KBUILD_TARGET_ARCH)" == "amd64", \
|
---|
186 | $(PATH_TARGET)/VBoxWddmCat.dir/VBoxNine-x86.dll \
|
---|
187 | $(PATH_TARGET)/VBoxWddmCat.dir/VBoxSVGA-x86.dll \
|
---|
188 | $(PATH_TARGET)/VBoxWddmCat.dir/VBoxICD-x86.dll \
|
---|
189 | $(PATH_TARGET)/VBoxWddmCat.dir/VBoxGL-x86.dll, ), )
|
---|
190 | $(call MSG_TOOL,Inf2Cat,VBoxWddm-inf,$@,$<)
|
---|
191 | $(call VBOX_MAKE_CAT_FN, $(@D),$@)
|
---|
192 | endif # signing
|
---|
193 | endif # VBOX_WITH_WDDM
|
---|
194 |
|
---|
195 | include $(FILE_KBUILD_SUB_FOOTER)
|
---|