1 | # $Id: Makefile.kmk 33676 2010-11-02 09:48:24Z 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 |
|
---|
18 | SUB_DEPTH = ../../../../../..
|
---|
19 | include $(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 | #
|
---|
28 | SYSMODS += VBoxVideo
|
---|
29 | VBoxVideo_TEMPLATE = VBOXGUESTR0
|
---|
30 | ifdef VBOX_SIGN_ADDITIONS # (See the parent makefile.)
|
---|
31 | VBoxVideo_NOINST = true
|
---|
32 | endif
|
---|
33 | VBoxVideo_DEFS = LOG_TO_BACKDOOR VBOX_WITH_8BPP_MODES
|
---|
34 | ifdef VBOX_WITH_VIDEOHWACCEL
|
---|
35 | VBoxVideo_DEFS += VBOX_WITH_VIDEOHWACCEL
|
---|
36 | endif
|
---|
37 | VBoxVideo_DEFS += VBOX_WITH_MULTIMONITOR_FIX
|
---|
38 | #VBoxVideo_DEFS += LOG_ENABLED
|
---|
39 | VBoxVideo_INCS = ../../include
|
---|
40 | VBoxVideo_LDFLAGS.x86 = /Entry:DriverEntry@8
|
---|
41 | VBoxVideo_LDFLAGS.amd64 = /Entry:DriverEntry
|
---|
42 | VBoxVideo_SOURCES = \
|
---|
43 | VBoxVideo.cpp \
|
---|
44 | Helper.cpp \
|
---|
45 | VBoxVideo.def \
|
---|
46 | VBoxVideo.rc \
|
---|
47 | VBoxVideoHGSMI.cpp
|
---|
48 | VBoxVideo_LIBS.x86 = \
|
---|
49 | $(PATH_SDK_W2K3DDK_LIB)/exsup.lib
|
---|
50 | VBoxVideo_LIBS = \
|
---|
51 | $(PATH_SDK_W2K3DDK_LIB)/videoprt.lib \
|
---|
52 | $(PATH_SDK_W2K3DDK_LIB)/ntoskrnl.lib \
|
---|
53 | $(PATH_SDK_W2K3DDK_LIB)/hal.lib \
|
---|
54 | $(VBOX_LIB_VBGL_R0) \
|
---|
55 | $(VBOX_LIB_IPRT_GUEST_R0_NT4) \
|
---|
56 | $(VBOX_PATH_ADDITIONS_LIB)/HGSMIGuestR0Lib$(VBOX_SUFF_LIB)
|
---|
57 |
|
---|
58 |
|
---|
59 |
|
---|
60 | ifdef VBOX_WITH_WDDM
|
---|
61 | #
|
---|
62 | # VBoxVideoWddm
|
---|
63 | #
|
---|
64 | SYSMODS += VBoxVideoWddm
|
---|
65 | VBoxVideoWddm_TEMPLATE = VBOXGUESTR0
|
---|
66 | ifdef VBOX_SIGN_ADDITIONS # (See the parent makefile.)
|
---|
67 | VBoxVideoWddm_NOINST = true
|
---|
68 | endif
|
---|
69 |
|
---|
70 | VBoxVideoWddm_SDKS=WINDDKWLH
|
---|
71 | VBoxVideoWddm_DEFS += VBOX_WITH_8BPP_MODES
|
---|
72 | VBoxVideoWddm_DEFS += VBOX_WITH_WDDM
|
---|
73 | ifdef VBOX_WITH_VIDEOHWACCEL
|
---|
74 | VBoxVideoWddm_DEFS += VBOX_WITH_VIDEOHWACCEL
|
---|
75 | endif
|
---|
76 | ifdef VBOXWDDM_WITH_VBVA
|
---|
77 | VBoxVideoWddm_DEFS += VBOXWDDM_WITH_VBVA
|
---|
78 | VBoxVideoWddm_DEFS += VBOXWDDM_RENDER_FROM_SHADOW
|
---|
79 | ifdef VBOXVDMA_WITH_VBVA
|
---|
80 | VBoxVideoWddm_DEFS += VBOXVDMA_WITH_VBVA
|
---|
81 | endif
|
---|
82 | endif
|
---|
83 | ifdef VBOX_WITH_VDMA
|
---|
84 | VBoxVideoWddm_DEFS += VBOX_WITH_VDMA
|
---|
85 | endif
|
---|
86 | ifdef VBOX_WITH_CRHGSMI
|
---|
87 | VBoxVideoWddm_DEFS += VBOX_WITH_CRHGSMI
|
---|
88 | endif
|
---|
89 |
|
---|
90 | ifdef DEBUG_misha
|
---|
91 | VBoxVideoWddm_DEFS += LOG_ENABLED
|
---|
92 | endif
|
---|
93 | #VBoxVideoWddm_DEFS += VBOX_WITH_MULTIMONITOR_FIX
|
---|
94 | #VBoxVideoWddm_DEFS += LOG_TO_BACKDOOR
|
---|
95 | VBoxVideoWddm_INCS += ../../include
|
---|
96 | VBoxVideoWddm_LDFLAGS.x86 += /Entry:DriverEntry@8
|
---|
97 | VBoxVideoWddm_LDFLAGS.amd64 += /Entry:DriverEntry
|
---|
98 | VBoxVideoWddm_SOURCES = \
|
---|
99 | VBoxVideoHGSMI.cpp \
|
---|
100 | VBoxVideo.cpp \
|
---|
101 | Helper.cpp \
|
---|
102 | wddm/VBoxVideoWddm.cpp \
|
---|
103 | wddm/VBoxVideoVidPn.cpp \
|
---|
104 | wddm/VBoxVideoVdma.cpp \
|
---|
105 | wddm/VBoxVideoShgsmi.cpp \
|
---|
106 | wddm/VBoxVideoCm.cpp \
|
---|
107 | wddm/VBoxVideoMisc.cpp \
|
---|
108 | wddm/VBoxVideoWddm.rc
|
---|
109 | ifdef VBOXWDDM_WITH_VBVA
|
---|
110 | VBoxVideoWddm_SOURCES += \
|
---|
111 | wddm/VBoxVideoVbva.cpp
|
---|
112 | endif
|
---|
113 | ifdef VBOX_WITH_VIDEOHWACCEL
|
---|
114 | VBoxVideoWddm_SOURCES += \
|
---|
115 | wddm/VBoxVideoVhwa.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)
|
---|
128 | endif # VBOX_WITH_WDDM
|
---|
129 |
|
---|
130 | include $(KBUILD_PATH)/subfooter.kmk
|
---|
131 |
|
---|