VirtualBox

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

Last change on this file since 83830 was 82968, checked in by vboxsync, 5 years ago

Copyright year updates by scm.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 6.3 KB
Line 
1# $Id: Makefile.kmk 82968 2020-02-04 10:35:17Z vboxsync $
2## @file
3# Makefile for the Windows guest video driver.
4#
5
6#
7# Copyright (C) 2011-2020 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
65 #
66 # Install the inf & cat.
67 # This has to be done here since it depends on both the
68 # miniport driver and the display dll.
69 #
70 INSTALLS += VBoxWddm-inf
71 VBoxWddm-inf_INST = $(INST_ADDITIONS)
72 VBoxWddm-inf_MODE = a+r,u+w
73 VBoxWddm-inf_SOURCES = \
74 $(PATH_TARGET)/VBoxWddmCat.dir/VBoxWddm.inf
75 ifdef VBOX_SIGN_ADDITIONS
76 VBoxWddm-inf_SOURCES += \
77 $(PATH_TARGET)/VBoxWddmCat.dir/VBoxWddm.sys \
78 $(PATH_TARGET)/VBoxWddmCat.dir/VBoxWddm.cat
79
80 ifdef VBOXWDDM_WITH_DISPD3D
81 VBoxWddm-inf_SOURCES += \
82 $(PATH_TARGET)/VBoxWddmCat.dir/VBoxDispD3D.dll
83 VBoxWddm-inf_SOURCES.amd64 += \
84 $(PATH_TARGET)/VBoxWddmCat.dir/VBoxDispD3D-x86.dll
85 endif # VBOXWDDM_WITH_DISPD3D
86
87 ifdef VBOX_WITH_MESA3D
88 VBoxWddm-inf_SOURCES += \
89 $(PATH_TARGET)/VBoxWddmCat.dir/VBoxNine.dll \
90 $(PATH_TARGET)/VBoxWddmCat.dir/VBoxSVGA.dll \
91 $(PATH_TARGET)/VBoxWddmCat.dir/VBoxICD.dll \
92 $(PATH_TARGET)/VBoxWddmCat.dir/VBoxGL.dll
93 VBoxWddm-inf_SOURCES.amd64 += \
94 $(PATH_TARGET)/VBoxWddmCat.dir/VBoxNine-x86.dll \
95 $(PATH_TARGET)/VBoxWddmCat.dir/VBoxSVGA-x86.dll \
96 $(PATH_TARGET)/VBoxWddmCat.dir/VBoxICD-x86.dll \
97 $(PATH_TARGET)/VBoxWddmCat.dir/VBoxGL-x86.dll
98 endif
99
100 endif # VBOX_SIGN_ADDITIONS
101
102 VBoxWddm-inf_CLEAN = $(VBoxWddm-inf_SOURCES)
103 VBoxWddm-inf_CLEAN.amd64 = $(VBoxWddm-inf_SOURCES.amd64)
104 VBoxWddm-inf_BLDDIRS = \
105 $(PATH_TARGET)/VBoxWddmCat.dir
106
107 VBOXWDDM_EDIT_INF_DISPD3D_FN_ARG = $(if $(VBOXWDDM_WITH_DISPD3D),-e 's/^;dispd3d *//', -e '/^;dispd3d /d')
108 VBOXWDDM_EDIT_INF_MESA3D_FN_ARG = $(if $(VBOX_WITH_MESA3D),-e 's/^;mesa3d *//', -e '/^;mesa3d /d')
109
110 $(PATH_TARGET)/VBoxWddmCat.dir/VBoxWddm.inf: \
111 $(PATH_SUB_CURRENT)/mp/wddm/VBoxWddm.inf $(MAKEFILE_CURRENT) | $$(dir $$@)
112 $(call MSG_GENERATE,VBoxWddm-inf,$@,$<)
113 $(call VBOX_EDIT_INF_FN,$<,$@ $(VBOXWDDM_EDIT_INF_DISPD3D_FN_ARG) $(VBOXWDDM_EDIT_INF_MESA3D_FN_ARG))
114
115 $(PATH_TARGET)/VBoxWddmCat.dir/VBoxWddm.sys: $$(VBoxWddm_1_TARGET) | $$(dir $$@)
116 $(INSTALL) -m 644 $< $(@D)
117
118 ifdef VBOXWDDM_WITH_DISPD3D
119 $(PATH_TARGET)/VBoxWddmCat.dir/VBoxDispD3D.dll: $$(VBoxDispD3D_1_TARGET) | $$(dir $$@)
120 $(INSTALL) -m 644 $< $(@D)
121
122 ifeq ($(KBUILD_TARGET_ARCH),amd64)
123 $(PATH_TARGET)/VBoxWddmCat.dir/VBoxDispD3D-x86.dll: $$(VBoxDispD3D-x86_1_TARGET) | $$(dir $$@)
124 $(INSTALL) -m 644 $< $(@D)
125 endif
126 endif # VBOXWDDM_WITH_DISPD3D
127
128 ifdef VBOX_WITH_MESA3D
129 $(PATH_TARGET)/VBoxWddmCat.dir/VBoxNine.dll: $$(VBoxNine_1_TARGET) | $$(dir $$@)
130 $(INSTALL) -m 644 $< $(@D)
131 $(PATH_TARGET)/VBoxWddmCat.dir/VBoxSVGA.dll: $$(VBoxSVGA_1_TARGET) | $$(dir $$@)
132 $(INSTALL) -m 644 $< $(@D)
133 $(PATH_TARGET)/VBoxWddmCat.dir/VBoxICD.dll: $$(VBoxICD_1_TARGET) | $$(dir $$@)
134 $(INSTALL) -m 644 $< $(@D)
135 $(PATH_TARGET)/VBoxWddmCat.dir/VBoxGL.dll: $$(VBoxGL_1_TARGET) | $$(dir $$@)
136 $(INSTALL) -m 644 $< $(@D)
137
138 ifeq ($(KBUILD_TARGET_ARCH),amd64)
139 $(PATH_TARGET)/VBoxWddmCat.dir/VBoxNine-x86.dll: $$(VBoxNine-x86_1_TARGET) | $$(dir $$@)
140 $(INSTALL) -m 644 $< $(@D)
141 $(PATH_TARGET)/VBoxWddmCat.dir/VBoxSVGA-x86.dll: $$(VBoxSVGA-x86_1_TARGET) | $$(dir $$@)
142 $(INSTALL) -m 644 $< $(@D)
143 $(PATH_TARGET)/VBoxWddmCat.dir/VBoxICD-x86.dll: $$(VBoxICD-x86_1_TARGET) | $$(dir $$@)
144 $(INSTALL) -m 644 $< $(@D)
145 $(PATH_TARGET)/VBoxWddmCat.dir/VBoxGL-x86.dll: $$(VBoxGL-x86_1_TARGET) | $$(dir $$@)
146 $(INSTALL) -m 644 $< $(@D)
147 endif
148 endif
149
150 $(PATH_TARGET)/VBoxWddmCat.dir/VBoxWddm.cat: \
151 $(PATH_TARGET)/VBoxWddmCat.dir/VBoxWddm.inf \
152 $(PATH_TARGET)/VBoxWddmCat.dir/VBoxWddm.sys \
153 $(if $(VBOXWDDM_WITH_DISPD3D), $(PATH_TARGET)/VBoxWddmCat.dir/VBoxDispD3D.dll, ) \
154 $(if $(VBOXWDDM_WITH_DISPD3D), $(if-expr "$(KBUILD_TARGET_ARCH)" == "amd64", $(PATH_TARGET)/VBoxWddmCat.dir/VBoxDispD3D-x86.dll, ), ) \
155 $(if $(VBOX_WITH_MESA3D), \
156 $(PATH_TARGET)/VBoxWddmCat.dir/VBoxNine.dll \
157 $(PATH_TARGET)/VBoxWddmCat.dir/VBoxSVGA.dll \
158 $(PATH_TARGET)/VBoxWddmCat.dir/VBoxICD.dll \
159 $(PATH_TARGET)/VBoxWddmCat.dir/VBoxGL.dll \
160 $(if-expr "$(KBUILD_TARGET_ARCH)" == "amd64", \
161 $(PATH_TARGET)/VBoxWddmCat.dir/VBoxNine-x86.dll \
162 $(PATH_TARGET)/VBoxWddmCat.dir/VBoxSVGA-x86.dll \
163 $(PATH_TARGET)/VBoxWddmCat.dir/VBoxICD-x86.dll \
164 $(PATH_TARGET)/VBoxWddmCat.dir/VBoxGL-x86.dll, ), )
165 $(call MSG_TOOL,Inf2Cat,VBoxWddm-inf,$@,$<)
166 $(call VBOX_MAKE_CAT_FN, $(@D),$@)
167
168endif # VBOX_WITH_WDDM
169
170include $(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