VirtualBox

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

Last change on this file since 28475 was 28228, checked in by vboxsync, 15 years ago

wddm: avoid DMA transactions on GDI rendering (for preformance)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.6 KB
Line 
1# $Id: Makefile.kmk 28228 2010-04-12 22:54:53Z vboxsync $
2## @file
3# Sub-Makefile for VBoxVideo.
4#
5
6#
7# Copyright (C) 2006-2007 Sun Microsystems, Inc.
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# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
18# Clara, CA 95054 USA or visit http://www.sun.com if you need
19# additional information or have any questions.
20#
21
22SUB_DEPTH = ../../../../../..
23include $(KBUILD_PATH)/subheader.kmk
24
25
26#
27# VBoxVideo
28#
29# Note. This has to run on NT4!
30# (VBOX_LIB_IPRT_GUEST_R0_NT4 == VBOX_LIB_IPRT_GUEST_R0 on 64-bit)
31#
32SYSMODS += VBoxVideo
33VBoxVideo_TEMPLATE = VBOXGUESTR0
34ifdef VBOX_SIGN_ADDITIONS # (See the parent makefile.)
35 VBoxVideo_NOINST = true
36endif
37VBoxVideo_DEFS = LOG_TO_BACKDOOR VBOX_WITH_8BPP_MODES
38ifdef VBOX_WITH_HGSMI
39 VBoxVideo_DEFS += VBOX_WITH_HGSMI
40endif
41ifdef VBOX_WITH_VIDEOHWACCEL
42 VBoxVideo_DEFS += VBOX_WITH_VIDEOHWACCEL
43endif
44VBoxVideo_DEFS += VBOX_WITH_MULTIMONITOR_FIX
45#VBoxVideo_DEFS += LOG_ENABLED
46VBoxVideo_INCS = ../../include
47VBoxVideo_LDFLAGS.x86 = /Entry:DriverEntry@8
48VBoxVideo_LDFLAGS.amd64 = /Entry:DriverEntry
49VBoxVideo_SOURCES = \
50 VBoxVideo.cpp \
51 Helper.cpp \
52 VBoxVideo.def \
53 VBoxVideo.rc
54ifdef VBOX_WITH_HGSMI
55 VBoxVideo_SOURCES += \
56 VBoxVideoHGSMI.cpp
57endif
58VBoxVideo_LIBS.x86 = \
59 $(PATH_SDK_W2K3DDK_LIB)/exsup.lib
60VBoxVideo_LIBS = \
61 $(PATH_SDK_W2K3DDK_LIB)/videoprt.lib \
62 $(PATH_SDK_W2K3DDK_LIB)/ntoskrnl.lib \
63 $(PATH_SDK_W2K3DDK_LIB)/hal.lib \
64 $(VBOX_LIB_VBGL_R0) \
65 $(VBOX_LIB_IPRT_GUEST_R0_NT4)
66ifdef VBOX_WITH_HGSMI
67 VBoxVideo_LIBS += \
68 $(VBOX_PATH_ADDITIONS_LIB)/HGSMIGuestR0Lib$(VBOX_SUFF_LIB)
69endif
70
71
72
73ifdef VBOXWDDM
74 #
75 # VBoxVideoWddm
76 #
77 SYSMODS += VBoxVideoWddm
78 VBoxVideoWddm_TEMPLATE = VBOXGUESTR0
79 ifdef VBOX_SIGN_ADDITIONS # (See the parent makefile.)
80 VBoxVideoWddm_NOINST = true
81 endif
82
83 VBoxVideoWddm_SDKS=WINDDKWLH
84 VBoxVideoWddm_DEFS += VBOX_WITH_8BPP_MODES
85 VBoxVideoWddm_DEFS += VBOX_WITH_HGSMI VBOXWDDM VBOXVDMA
86 ifdef VBOX_WITH_VIDEOHWACCEL
87 VBoxVideoWddm_DEFS += VBOX_WITH_VIDEOHWACCEL
88 endif
89 ifdef VBOXWDDM_WITH_VBVA
90 VBoxVideoWddm_DEFS += VBOXWDDM_WITH_VBVA
91 ifdef VBOXVDMA_WITH_VBVA
92 VBoxVideoWddm_DEFS += VBOXVDMA_WITH_VBVA
93 endif
94 endif
95 VBoxVideoWddm_DEFS += LOG_ENABLED
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 VBoxVideo.cpp \
103 Helper.cpp \
104 wddm/VBoxVideoWddm.cpp \
105 wddm/VBoxVideoVidPn.cpp \
106 wddm/VBoxVideoVdma.cpp \
107 wddm/VBoxVideoShgsmi.cpp \
108 wddm/VBoxVideoWddm.rc
109 ifdef VBOXWDDM_WITH_VBVA
110 VBoxVideoWddm_SOURCES += \
111 wddm/VBoxVideoVbva.cpp
112 endif
113 VBoxVideoWddm_LIBS.x86 = \
114 $(PATH_SDK_WINDDKWLH_LIB)/bufferoverflowk.lib
115 #VBoxVideoWddm_LIBS.x86 += \
116 # $(PATH_SDK_WINDDKWLH_LIB)/exsup.lib
117 VBoxVideoWddm_LIBS = \
118 $(PATH_SDK_WINDDKWLH_LIB)/ntoskrnl.lib \
119 $(PATH_SDK_WINDDKWLH_LIB)/hal.lib \
120 $(PATH_SDK_WINDDKWLH_LIB)/displib.lib \
121 $(VBOX_LIB_VBGL_R0) \
122 $(VBOX_LIB_IPRT_GUEST_R0_NT4) \
123 $(VBOX_PATH_ADDITIONS_LIB)/HGSMIGuestR0Lib$(VBOX_SUFF_LIB)
124endif # VBOXWDDM
125
126include $(KBUILD_PATH)/subfooter.kmk
127
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