VirtualBox

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

Last change on this file since 41517 was 41477, checked in by vboxsync, 13 years ago

/Makefile.kmk: Cosmetic changes.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 4.5 KB
Line 
1# $Id: Makefile.kmk 41477 2012-05-29 11:43:27Z vboxsync $
2## @file
3# Makefile for the Windows guest miniport driver.
4#
5
6#
7# Copyright (C) 2011-2012 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#
22# VBoxVideo - Windows Guest Additions XPDM Miniport Video Driver
23#
24# Note. This has to run on NT4!
25# (VBOX_LIB_IPRT_GUEST_R0_NT4 == VBOX_LIB_IPRT_GUEST_R0 on 64-bit)
26#
27SYSMODS += VBoxVideo
28VBoxVideo_TEMPLATE = VBOXGUESTR0
29VBoxVideo_DEFS = VBOX_XPDM_MINIPORT VBOX_WITH_8BPP_MODES
30VBoxVideo_DEFS += LOG_TO_BACKDOOR #LOG_ENABLED
31ifdef VBOX_WITH_VIDEOHWACCEL
32 VBoxVideo_DEFS += VBOX_WITH_VIDEOHWACCEL
33endif
34VBoxVideo_INCS = ../../../include .. .
35VBoxVideo_LDFLAGS.x86 = /Entry:DriverEntry@8
36VBoxVideo_LDFLAGS.amd64 = /Entry:DriverEntry
37VBoxVideo_SOURCES = \
38 xpdm/VBoxMPDriver.cpp \
39 xpdm/VBoxMP.def \
40 xpdm/VBoxMP.rc \
41 xpdm/VBoxMPVideoPortAPI.cpp \
42 xpdm/VBoxMPInternal.cpp \
43 xpdm/VBoxMPRegistry.cpp \
44 xpdm/VBoxMPIOCTL.cpp \
45 common/VBoxMPUtils.cpp \
46 common/VBoxMPCommon.cpp \
47 common/VBoxMPHGSMI.cpp \
48 common/VBoxMPVidModes.cpp \
49 $(PATH_ROOT)/src/VBox/Additions/common/VBoxVideo/HGSMIBase.cpp \
50 $(PATH_ROOT)/src/VBox/Additions/common/VBoxVideo/Modesetting.cpp
51VBoxVideo_LIBS = \
52 $(PATH_SDK_W2K3DDK_LIB)/videoprt.lib \
53 $(PATH_SDK_W2K3DDK_LIB)/ntoskrnl.lib \
54 $(PATH_SDK_W2K3DDK_LIB)/hal.lib \
55 $(VBOX_LIB_VBGL_R0) \
56 $(VBOX_LIB_IPRT_GUEST_R0_NT4) \
57 $(VBOX_PATH_ADDITIONS_LIB)/HGSMIGuestR0Lib$(VBOX_SUFF_LIB)
58VBoxVideo_LIBS.x86 = \
59 $(PATH_SDK_W2K3DDK_LIB)/exsup.lib
60
61ifdef VBOX_WITH_WDDM
62 #
63 # VBoxVideoWddm - Windows Guest Additions WDDM Miniport Video Driver
64 #
65 SYSMODS += VBoxVideoWddm
66 VBoxVideoWddm_TEMPLATE = VBOXGUESTR0
67 VBoxVideoWddm_DEFS += VBOX_WITH_8BPP_MODES
68 VBoxVideoWddm_DEFS += VBOX_WDDM_MINIPORT VBOX_WITH_WDDM VBOX_WITH_HGCM
69 ifdef VBOX_WITH_VIDEOHWACCEL
70 VBoxVideoWddm_DEFS += VBOX_WITH_VIDEOHWACCEL
71 endif
72 ifdef VBOXWDDM_WITH_VBVA
73 VBoxVideoWddm_DEFS += VBOXWDDM_WITH_VBVA
74 VBoxVideoWddm_DEFS += VBOXWDDM_RENDER_FROM_SHADOW
75 ifdef VBOXVDMA_WITH_VBVA
76 VBoxVideoWddm_DEFS += VBOXVDMA_WITH_VBVA
77 endif
78 endif
79 ifdef VBOX_WITH_VDMA
80 VBoxVideoWddm_DEFS += VBOX_WITH_VDMA
81 endif
82 ifdef VBOX_WITH_CRHGSMI
83 VBoxVideoWddm_DEFS += VBOX_WITH_CRHGSMI
84 endif
85 ifdef DEBUG_misha
86 VBoxVideoWddm_DEFS += LOG_ENABLED
87 endif
88 VBoxVideoWddm_DEFS += LOG_TO_BACKDOOR
89 VBoxVideoWddm_INCS += ../../../include .. . ../../../../common/VBoxGuestLib $(VBOX_PATH_CROGL_INCLUDE) $(VBOX_PATH_CROGL_GENFILES)
90 VBoxVideoWddm_LDFLAGS.x86 += /Entry:DriverEntry@8
91 VBoxVideoWddm_LDFLAGS.amd64 += /Entry:DriverEntry
92 VBoxVideoWddm_SDKS = WINDDKWLH
93 VBoxVideoWddm_SOURCES = \
94 wddm/VBoxMPWddm.cpp \
95 wddm/VBoxMPVidPn.cpp \
96 wddm/VBoxMPVdma.cpp \
97 wddm/VBoxMPShgsmi.cpp \
98 wddm/VBoxMPCm.cpp \
99 wddm/VBoxMPCr.cpp \
100 wddm/VBoxMPMisc.cpp \
101 wddm/VBoxMPWddm.rc \
102 wddm/VBoxMPRegistry.cpp \
103 common/VBoxMPUtils.cpp \
104 common/VBoxMPCommon.cpp \
105 common/VBoxMPHGSMI.cpp \
106 common/VBoxMPVidModes.cpp \
107 $(PATH_ROOT)/src/VBox/Additions/common/VBoxVideo/HGSMIBase.cpp \
108 $(PATH_ROOT)/src/VBox/Additions/common/VBoxVideo/Modesetting.cpp
109 ifdef VBOXWDDM_WITH_VBVA
110 VBoxVideoWddm_SOURCES += \
111 wddm/VBoxMPVbva.cpp
112 endif
113 ifdef VBOX_WITH_VIDEOHWACCEL
114 VBoxVideoWddm_SOURCES += \
115 wddm/VBoxMPVhwa.cpp
116 endif
117 VBoxVideoWddm_LIBS.x86 = \
118 $(PATH_SDK_WINDDKWLH_LIB)/BufferOverflowK.lib
119 #VBoxVideoWddm_LIBS.x86 += \
120 # $(PATH_SDK_WINDDKWLH_LIB)/exsup.lib
121 VBoxVideoWddm_LIBS = \
122 $(PATH_SDK_WINDDKWLH_LIB)/ntoskrnl.lib \
123 $(PATH_SDK_WINDDKWLH_LIB)/hal.lib \
124 $(PATH_SDK_WINDDKWLH_LIB)/displib.lib \
125 $(VBOX_LIB_VBGL_R0) \
126 $(VBOX_LIB_IPRT_GUEST_R0_NT4) \
127 $(VBOX_PATH_ADDITIONS_LIB)/HGSMIGuestR0Lib$(VBOX_SUFF_LIB)
128endif # VBOX_WITH_WDDM
129
130# Signing requires both miniport and display drivers
131# so it'd be dealt with in the parent makefile.
132ifdef VBOX_SIGN_ADDITIONS
133 VBoxVideo_INSTTYPE = none
134 VBoxVideo_DEBUG_INSTTYPE = both
135 ifdef VBOX_WITH_WDDM
136 VBoxVideoWddm_INSTTYPE = none
137 VBoxVideoWddm_DEBUG_INSTTYPE = both
138 endif
139endif
140
141include $(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