1 | # $Id: Makefile.kmk 30405 2010-06-23 20:52:35Z 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_HGSMI
|
---|
35 | VBoxVideo_DEFS += VBOX_WITH_HGSMI
|
---|
36 | endif
|
---|
37 | ifdef VBOX_WITH_VIDEOHWACCEL
|
---|
38 | VBoxVideo_DEFS += VBOX_WITH_VIDEOHWACCEL
|
---|
39 | endif
|
---|
40 | VBoxVideo_DEFS += VBOX_WITH_MULTIMONITOR_FIX
|
---|
41 | #VBoxVideo_DEFS += LOG_ENABLED
|
---|
42 | VBoxVideo_INCS = ../../include
|
---|
43 | VBoxVideo_LDFLAGS.x86 = /Entry:DriverEntry@8
|
---|
44 | VBoxVideo_LDFLAGS.amd64 = /Entry:DriverEntry
|
---|
45 | VBoxVideo_SOURCES = \
|
---|
46 | VBoxVideo.cpp \
|
---|
47 | Helper.cpp \
|
---|
48 | VBoxVideo.def \
|
---|
49 | VBoxVideo.rc
|
---|
50 | ifdef VBOX_WITH_HGSMI
|
---|
51 | VBoxVideo_SOURCES += \
|
---|
52 | VBoxVideoHGSMI.cpp
|
---|
53 | endif
|
---|
54 | VBoxVideo_LIBS.x86 = \
|
---|
55 | $(PATH_SDK_W2K3DDK_LIB)/exsup.lib
|
---|
56 | VBoxVideo_LIBS = \
|
---|
57 | $(PATH_SDK_W2K3DDK_LIB)/videoprt.lib \
|
---|
58 | $(PATH_SDK_W2K3DDK_LIB)/ntoskrnl.lib \
|
---|
59 | $(PATH_SDK_W2K3DDK_LIB)/hal.lib \
|
---|
60 | $(VBOX_LIB_VBGL_R0) \
|
---|
61 | $(VBOX_LIB_IPRT_GUEST_R0_NT4)
|
---|
62 | ifdef VBOX_WITH_HGSMI
|
---|
63 | VBoxVideo_LIBS += \
|
---|
64 | $(VBOX_PATH_ADDITIONS_LIB)/HGSMIGuestR0Lib$(VBOX_SUFF_LIB)
|
---|
65 | endif
|
---|
66 |
|
---|
67 |
|
---|
68 |
|
---|
69 | ifdef VBOXWDDM
|
---|
70 | #
|
---|
71 | # VBoxVideoWddm
|
---|
72 | #
|
---|
73 | SYSMODS += VBoxVideoWddm
|
---|
74 | VBoxVideoWddm_TEMPLATE = VBOXGUESTR0
|
---|
75 | ifdef VBOX_SIGN_ADDITIONS # (See the parent makefile.)
|
---|
76 | VBoxVideoWddm_NOINST = true
|
---|
77 | endif
|
---|
78 |
|
---|
79 | VBoxVideoWddm_SDKS=WINDDKWLH
|
---|
80 | VBoxVideoWddm_DEFS += VBOX_WITH_8BPP_MODES
|
---|
81 | VBoxVideoWddm_DEFS += VBOX_WITH_HGSMI VBOXWDDM VBOXVDMA
|
---|
82 | ifdef VBOX_WITH_VIDEOHWACCEL
|
---|
83 | VBoxVideoWddm_DEFS += VBOX_WITH_VIDEOHWACCEL
|
---|
84 | endif
|
---|
85 | ifdef VBOXWDDM_WITH_VBVA
|
---|
86 | VBoxVideoWddm_DEFS += VBOXWDDM_WITH_VBVA
|
---|
87 | ifdef VBOXVDMA_WITH_VBVA
|
---|
88 | VBoxVideoWddm_DEFS += VBOXVDMA_WITH_VBVA
|
---|
89 | endif
|
---|
90 | endif
|
---|
91 | VBoxVideoWddm_DEFS += LOG_ENABLED
|
---|
92 | #VBoxVideoWddm_DEFS += LOG_TO_BACKDOOR
|
---|
93 | VBoxVideoWddm_INCS += ../../include
|
---|
94 | VBoxVideoWddm_LDFLAGS.x86 += /Entry:DriverEntry@8
|
---|
95 | VBoxVideoWddm_LDFLAGS.amd64 += /Entry:DriverEntry
|
---|
96 | VBoxVideoWddm_SOURCES = \
|
---|
97 | VBoxVideoHGSMI.cpp \
|
---|
98 | VBoxVideo.cpp \
|
---|
99 | Helper.cpp \
|
---|
100 | wddm/VBoxVideoWddm.cpp \
|
---|
101 | wddm/VBoxVideoVidPn.cpp \
|
---|
102 | wddm/VBoxVideoVdma.cpp \
|
---|
103 | wddm/VBoxVideoShgsmi.cpp \
|
---|
104 | wddm/VBoxVideoCm.cpp \
|
---|
105 | wddm/VBoxVideoWddm.rc
|
---|
106 | ifdef VBOXWDDM_WITH_VBVA
|
---|
107 | VBoxVideoWddm_SOURCES += \
|
---|
108 | wddm/VBoxVideoVbva.cpp
|
---|
109 | endif
|
---|
110 | ifdef VBOX_WITH_VIDEOHWACCEL
|
---|
111 | VBoxVideoWddm_SOURCES += \
|
---|
112 | wddm/VBoxVideoVhwa.cpp
|
---|
113 | endif
|
---|
114 | VBoxVideoWddm_LIBS.x86 = \
|
---|
115 | $(PATH_SDK_WINDDKWLH_LIB)/bufferoverflowk.lib
|
---|
116 | #VBoxVideoWddm_LIBS.x86 += \
|
---|
117 | # $(PATH_SDK_WINDDKWLH_LIB)/exsup.lib
|
---|
118 | VBoxVideoWddm_LIBS = \
|
---|
119 | $(PATH_SDK_WINDDKWLH_LIB)/ntoskrnl.lib \
|
---|
120 | $(PATH_SDK_WINDDKWLH_LIB)/hal.lib \
|
---|
121 | $(PATH_SDK_WINDDKWLH_LIB)/displib.lib \
|
---|
122 | $(VBOX_LIB_VBGL_R0) \
|
---|
123 | $(VBOX_LIB_IPRT_GUEST_R0_NT4) \
|
---|
124 | $(VBOX_PATH_ADDITIONS_LIB)/HGSMIGuestR0Lib$(VBOX_SUFF_LIB)
|
---|
125 | endif # VBOXWDDM
|
---|
126 |
|
---|
127 | include $(KBUILD_PATH)/subfooter.kmk
|
---|
128 |
|
---|