1 | # $Id: Makefile.kmk 25980 2010-01-22 17:38:13Z 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 |
|
---|
22 | SUB_DEPTH = ../../../../../..
|
---|
23 | include $(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 | #
|
---|
32 | SYSMODS += VBoxVideo
|
---|
33 | VBoxVideo_TEMPLATE = VBOXGUESTR0
|
---|
34 | ifdef VBOX_SIGN_ADDITIONS # (See the parent makefile.)
|
---|
35 | VBoxVideo_NOINST = true
|
---|
36 | endif
|
---|
37 | VBoxVideo_DEFS = LOG_TO_BACKDOOR VBOX_WITH_8BPP_MODES
|
---|
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 | VBoxVideo_LIBS.x86 = \
|
---|
48 | $(PATH_SDK_W2K3DDK_LIB)/exsup.lib
|
---|
49 | VBoxVideo_LIBS = \
|
---|
50 | $(PATH_SDK_W2K3DDK_LIB)/videoprt.lib \
|
---|
51 | $(PATH_SDK_W2K3DDK_LIB)/ntoskrnl.lib \
|
---|
52 | $(PATH_SDK_W2K3DDK_LIB)/hal.lib \
|
---|
53 | $(VBOX_LIB_VBGL_R0) \
|
---|
54 | $(VBOX_LIB_IPRT_GUEST_R0_NT4)
|
---|
55 |
|
---|
56 | ifdef VBOX_WITH_HGSMI
|
---|
57 | VBoxVideo_SOURCES += \
|
---|
58 | VBoxVideoHGSMI.cpp
|
---|
59 | VBoxVideo_LIBS += \
|
---|
60 | $(VBOX_PATH_ADDITIONS_LIB)/HGSMIGuestR0Lib$(VBOX_SUFF_LIB)
|
---|
61 | VBoxVideo_DEFS += VBOX_WITH_HGSMI
|
---|
62 | endif
|
---|
63 |
|
---|
64 | ifdef VBOX_WITH_VIDEOHWACCEL
|
---|
65 | VBoxVideo_DEFS += VBOX_WITH_VIDEOHWACCEL
|
---|
66 | endif
|
---|
67 |
|
---|
68 | ifdef VBOXWDDM
|
---|
69 | SYSMODS += VBoxVideoWddm
|
---|
70 | VBoxVideoWddm_TEMPLATE = VBOXGUESTR0
|
---|
71 | ifdef VBOX_SIGN_ADDITIONS # (See the parent makefile.)
|
---|
72 | VBoxVideoWddm_NOINST = true
|
---|
73 | endif
|
---|
74 | VBoxVideoWddm_SDKS=WINDDKWLH
|
---|
75 | VBoxVideoWddm_DEFS += LOG_TO_BACKDOOR VBOX_WITH_8BPP_MODES
|
---|
76 | #VBoxVideoWddm_DEFS += LOG_ENABLED
|
---|
77 | VBoxVideoWddm_INCS += ../../include
|
---|
78 | VBoxVideoWddm_LDFLAGS.x86 += /Entry:DriverEntry@8
|
---|
79 | VBoxVideoWddm_LDFLAGS.amd64 += /Entry:DriverEntry
|
---|
80 | VBoxVideoWddm_SOURCES = \
|
---|
81 | VBoxVideoHGSMI.cpp \
|
---|
82 | VBoxVideo.cpp \
|
---|
83 | wddm/VBoxVideoWddm.cpp \
|
---|
84 | wddm/VBoxVideoWddm.def \
|
---|
85 | wddm/VBoxVideoWddm.rc
|
---|
86 | #VBoxVideoWddm_LIBS.x86 += \
|
---|
87 | # $(PATH_SDK_WINDDKWLH_LIB)/exsup.lib
|
---|
88 | VBoxVideoWddm_LIBS.x86 += \
|
---|
89 | $(PATH_SDK_WINDDKWLH_LIB)/bufferoverflowu.lib
|
---|
90 | VBoxVideoWddm_LIBS = \
|
---|
91 | $(PATH_SDK_WINDDKWLH_LIB)/ntoskrnl.lib \
|
---|
92 | $(PATH_SDK_WINDDKWLH_LIB)/hal.lib \
|
---|
93 | $(PATH_SDK_WINDDKWLH_LIB)/displib.lib \
|
---|
94 | $(VBOX_LIB_VBGL_R0) \
|
---|
95 | $(VBOX_LIB_IPRT_GUEST_R0_NT4) \
|
---|
96 | $(VBOX_PATH_ADDITIONS_LIB)/HGSMIGuestR0Lib$(VBOX_SUFF_LIB)
|
---|
97 |
|
---|
98 | VBoxVideoWddm_DEFS += VBOX_WITH_HGSMI VBOXWDDM
|
---|
99 |
|
---|
100 | ifdef VBOX_WITH_VIDEOHWACCEL
|
---|
101 | VBoxVideoWddm_DEFS += VBOX_WITH_VIDEOHWACCEL
|
---|
102 | endif
|
---|
103 |
|
---|
104 | endif
|
---|
105 |
|
---|
106 | include $(KBUILD_PATH)/subfooter.kmk
|
---|
107 |
|
---|