VirtualBox

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

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

Additions/WINNT/Graphics and Additions/common/VBoxVideo: move the basic guest HGSMI code from WINNT into common, document it and make sure it builds without requiring Windows headers

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.9 KB
Line 
1# $Id: Makefile.kmk 34429 2010-11-27 01:56:46Z vboxsync $
2## @file
3# Sub-Makefile for VBoxVideo.
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
22#
23# VBoxVideo
24#
25# Note. This has to run on NT4!
26# (VBOX_LIB_IPRT_GUEST_R0_NT4 == VBOX_LIB_IPRT_GUEST_R0 on 64-bit)
27#
28SYSMODS += VBoxVideo
29VBoxVideo_TEMPLATE = VBOXGUESTR0
30ifdef VBOX_SIGN_ADDITIONS # (See the parent makefile.)
31 VBoxVideo_NOINST = true
32endif
33VBoxVideo_DEFS = VBOX_XPDM_MINIPORT LOG_TO_BACKDOOR VBOX_WITH_8BPP_MODES
34ifdef VBOX_WITH_VIDEOHWACCEL
35 VBoxVideo_DEFS += VBOX_WITH_VIDEOHWACCEL
36endif
37VBoxVideo_DEFS += VBOX_WITH_MULTIMONITOR_FIX
38#VBoxVideo_DEFS += LOG_ENABLED
39VBoxVideo_INCS = ../../include
40VBoxVideo_LDFLAGS.x86 = /Entry:DriverEntry@8
41VBoxVideo_LDFLAGS.amd64 = /Entry:DriverEntry
42VBoxVideo_SOURCES = \
43 VBoxVideo.cpp \
44 Helper.cpp \
45 VBoxVideo.def \
46 VBoxVideo.rc \
47 VBoxVideoHGSMI.cpp \
48 $(PATH_ROOT)/src/VBox/Additions/common/VBoxVideo/HGSMIBase.cpp
49VBoxVideo_LIBS.x86 = \
50 $(PATH_SDK_W2K3DDK_LIB)/exsup.lib
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)
58
59
60
61ifdef VBOX_WITH_WDDM
62 #
63 # VBoxVideoWddm
64 #
65 SYSMODS += VBoxVideoWddm
66 VBoxVideoWddm_TEMPLATE = VBOXGUESTR0
67 ifdef VBOX_SIGN_ADDITIONS # (See the parent makefile.)
68 VBoxVideoWddm_NOINST = true
69 endif
70
71 VBoxVideoWddm_SDKS=WINDDKWLH
72 VBoxVideoWddm_DEFS += VBOX_WITH_8BPP_MODES
73 VBoxVideoWddm_DEFS += VBOX_WITH_WDDM
74 ifdef VBOX_WITH_VIDEOHWACCEL
75 VBoxVideoWddm_DEFS += VBOX_WITH_VIDEOHWACCEL
76 endif
77 ifdef VBOXWDDM_WITH_VBVA
78 VBoxVideoWddm_DEFS += VBOXWDDM_WITH_VBVA
79 VBoxVideoWddm_DEFS += VBOXWDDM_RENDER_FROM_SHADOW
80 ifdef VBOXVDMA_WITH_VBVA
81 VBoxVideoWddm_DEFS += VBOXVDMA_WITH_VBVA
82 endif
83 endif
84 ifdef VBOX_WITH_VDMA
85 VBoxVideoWddm_DEFS += VBOX_WITH_VDMA
86 endif
87 ifdef VBOX_WITH_CRHGSMI
88 VBoxVideoWddm_DEFS += VBOX_WITH_CRHGSMI
89 endif
90
91 ifdef DEBUG_misha
92 VBoxVideoWddm_DEFS += LOG_ENABLED
93 endif
94 VBoxVideoWddm_DEFS += LOG_DISABLED
95 #VBoxVideoWddm_DEFS += VBOX_WITH_MULTIMONITOR_FIX
96 #VBoxVideoWddm_DEFS += LOG_TO_BACKDOOR
97 VBoxVideoWddm_INCS += ../../include
98 VBoxVideoWddm_LDFLAGS.x86 += /Entry:DriverEntry@8
99 VBoxVideoWddm_LDFLAGS.amd64 += /Entry:DriverEntry
100 VBoxVideoWddm_SOURCES = \
101 VBoxVideoHGSMI.cpp \
102 $(PATH_ROOT)/src/VBox/Additions/common/VBoxVideo/HGSMIBase.cpp \
103 VBoxVideo.cpp \
104 Helper.cpp \
105 wddm/VBoxVideoWddm.cpp \
106 wddm/VBoxVideoVidPn.cpp \
107 wddm/VBoxVideoVdma.cpp \
108 wddm/VBoxVideoShgsmi.cpp \
109 wddm/VBoxVideoCm.cpp \
110 wddm/VBoxVideoMisc.cpp \
111 wddm/VBoxVideoWddm.rc
112 ifdef VBOXWDDM_WITH_VBVA
113 VBoxVideoWddm_SOURCES += \
114 wddm/VBoxVideoVbva.cpp
115 endif
116 ifdef VBOX_WITH_VIDEOHWACCEL
117 VBoxVideoWddm_SOURCES += \
118 wddm/VBoxVideoVhwa.cpp
119 endif
120 VBoxVideoWddm_LIBS.x86 = \
121 $(PATH_SDK_WINDDKWLH_LIB)/BufferOverflowK.lib
122 #VBoxVideoWddm_LIBS.x86 += \
123 # $(PATH_SDK_WINDDKWLH_LIB)/exsup.lib
124 VBoxVideoWddm_LIBS = \
125 $(PATH_SDK_WINDDKWLH_LIB)/ntoskrnl.lib \
126 $(PATH_SDK_WINDDKWLH_LIB)/hal.lib \
127 $(PATH_SDK_WINDDKWLH_LIB)/displib.lib \
128 $(VBOX_LIB_VBGL_R0) \
129 $(VBOX_LIB_IPRT_GUEST_R0_NT4) \
130 $(VBOX_PATH_ADDITIONS_LIB)/HGSMIGuestR0Lib$(VBOX_SUFF_LIB)
131endif # VBOX_WITH_WDDM
132
133include $(KBUILD_PATH)/subfooter.kmk
134
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