1 | # $Id: Makefile.kmk 33241 2010-10-19 16:37:06Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Sub-Makefile for VBoxDisp.dll.
|
---|
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 | SYSMODS += VBoxDisp
|
---|
22 | VBoxDisp_TEMPLATE = VBOXGUESTR0
|
---|
23 | ifdef VBOX_SIGN_ADDITIONS # (See the parent makefile.)
|
---|
24 | VBoxDisp_NOINST = true
|
---|
25 | endif
|
---|
26 | VBoxDisp_SYSSUFF = .dll
|
---|
27 | VBoxDisp_DEFS = _WIN32_WINNT=0x0501 LOG_TO_BACKDOOR VBOX_WITH_DDRAW VBOX_WITH_OPENGL
|
---|
28 | VBoxDisp_INCS = ../../include
|
---|
29 | #VBoxDisp_DEFS += VBOX_VBVA_ADJUST_RECT
|
---|
30 | #VBoxDisp_DEFS += LOG_ENABLED
|
---|
31 | ifdef VBOX_WITH_VIDEOHWACCEL
|
---|
32 | VBoxDisp_DEFS += VBOX_WITH_VIDEOHWACCEL
|
---|
33 | endif
|
---|
34 | #VBoxDisp_DEFS += STAT_sunlover
|
---|
35 | VBoxDisp_SOURCES = \
|
---|
36 | color.c \
|
---|
37 | debug.c \
|
---|
38 | enable.c \
|
---|
39 | palette.c \
|
---|
40 | pointer.c \
|
---|
41 | screen.c \
|
---|
42 | drv.c \
|
---|
43 | dd.c \
|
---|
44 | vbva.c \
|
---|
45 | vrdp.c \
|
---|
46 | vrdpbmp.c \
|
---|
47 | vrdptext.c \
|
---|
48 | vbox.c \
|
---|
49 | VBoxDisp.def \
|
---|
50 | VBoxDisp.rc
|
---|
51 |
|
---|
52 | ifdef VBOX_WITH_VIDEOHWACCEL
|
---|
53 | VBoxDisp_SOURCES += vhwa.c
|
---|
54 | endif
|
---|
55 | VBoxDisp_LDFLAGS.x86 = /Entry:DrvEnableDriver@12
|
---|
56 | VBoxDisp_LDFLAGS.amd64 = /Entry:DrvEnableDriver
|
---|
57 | VBoxDisp_LIBS = \
|
---|
58 | $(PATH_SDK_W2K3DDK_LIB)/win32k.lib \
|
---|
59 | $(VBOX_LIB_IPRT_GUEST_R0) \
|
---|
60 | $(VBOX_PATH_ADDITIONS_LIB)/HGSMIGuestR0Lib$(VBOX_SUFF_LIB)
|
---|
61 |
|
---|
62 | ifdef VBOX_WITH_WDDM
|
---|
63 |
|
---|
64 | ifeq ($(KBUILD_TARGET_ARCH), amd64)
|
---|
65 | $(warning VBoxVideoD3D: make it 32bit for 64bit builds)
|
---|
66 | endif
|
---|
67 |
|
---|
68 | DLLS += VBoxDispD3D
|
---|
69 | if defined(VBOX_SIGNING_MODE)
|
---|
70 | VBoxDispD3D_NOINST = true
|
---|
71 | endif
|
---|
72 | VBoxDispD3D_TEMPLATE = VBOXGUESTR3DLL
|
---|
73 | VBoxDispD3D_DEFS = UNICODE _UNICODE VBOX_WITH_WDDM VBOXWDDMDISP
|
---|
74 | # VBoxDispD3D_DEFS += VBOXDISPMP_TEST
|
---|
75 | ifdef VBOXWDDM_WITH_VBVA
|
---|
76 | VBoxDispD3D_DEFS += VBOXWDDM_WITH_VBVA
|
---|
77 | endif
|
---|
78 |
|
---|
79 | ifdef VBOX_WITH_VIDEOHWACCEL
|
---|
80 | VBoxDispD3D_DEFS += VBOX_WITH_VIDEOHWACCEL
|
---|
81 | endif
|
---|
82 | ifdef VBOX_WDDMDISP_WITH_PROFILE
|
---|
83 | VBoxDispD3D_DEFS += VBOX_WDDMDISP_WITH_PROFILE
|
---|
84 | endif
|
---|
85 | ifdef VBOXWDDM_TEST_UHGSMI
|
---|
86 | VBoxDispD3D_DEFS += VBOXWDDM_TEST_UHGSMI
|
---|
87 | endif
|
---|
88 | VBoxDispD3D_SOURCES = \
|
---|
89 | wddm/VBoxDispD3D.cpp \
|
---|
90 | wddm/VBoxDispD3DIf.cpp \
|
---|
91 | wddm/VBoxDispCm.cpp \
|
---|
92 | wddm/VBoxDispMp.cpp \
|
---|
93 | wddm/VBoxScreen.cpp \
|
---|
94 | wddm/VBoxDispMpTst.cpp \
|
---|
95 | wddm/VBoxDispD3D.def \
|
---|
96 | wddm/VBoxDispD3D.rc
|
---|
97 | #ifdef VBOX_WITH_CRHGSMI
|
---|
98 | #VBoxDispD3D_SOURCES += \
|
---|
99 | # wddm/VBoxUhgsmiDisp.cpp \
|
---|
100 | # wddm/VBoxUhgsmiKmt.cpp
|
---|
101 | #VBoxDispD3D_DEFS += VBOX_WITH_CRHGSMI
|
---|
102 | #endif
|
---|
103 | VBoxDispD3D_LIBS = \
|
---|
104 | $(VBOX_LIB_IPRT_GUEST_R3) \
|
---|
105 | $(VBOX_LIB_VBGL_R3)
|
---|
106 | VBoxDispD3D_SDKS = WINDDKWLH
|
---|
107 | # VBoxDispD3D_INCS += ../Wine/include
|
---|
108 |
|
---|
109 | ifeq ($(KBUILD_TARGET_ARCH), amd64)
|
---|
110 | DLLS += VBoxDispD3D64
|
---|
111 | VBoxDispD3D64_EXTENDS = VBoxDispD3D
|
---|
112 | VBoxDispD3D64_SOURCES = $(subst VBoxDispD3D.def,VBoxDispD3D64.def,$(VBoxDispD3D_SOURCES))
|
---|
113 | endif
|
---|
114 | endif
|
---|
115 |
|
---|
116 | ifdef VBOX_WITH_CRHGSMI
|
---|
117 | #
|
---|
118 | # VBoxCrHgsmi
|
---|
119 | #
|
---|
120 | LIBRARIES += VBoxCrHgsmi
|
---|
121 | VBoxCrHgsmi_TEMPLATE = VBOXGUESTR3LIB
|
---|
122 | VBoxCrHgsmi_DEFS = UNICODE _UNICODE VBOX_WITH_CRHGSMI IN_VBOXCRHGSMI VBOX_WITH_WDDM VBOX_WITH_VDMA
|
---|
123 | VBoxCrHgsmi_SOURCES = \
|
---|
124 | wddm/VBoxCrHgsmi.cpp \
|
---|
125 | wddm/VBoxUhgsmiKmt.cpp
|
---|
126 | VBoxCrHgsmi_SDKS = WINDDKWLH
|
---|
127 | endif
|
---|
128 |
|
---|
129 | ifdef VBOXVIDEOWINDBG
|
---|
130 | DLLS += vbvdbg
|
---|
131 | vbvdbg_TEMPLATE = VBOXR3STATIC
|
---|
132 | vbvdbg_DEFS = UNICODE _UNICODE
|
---|
133 | vbvdbg_SOURCES = \
|
---|
134 | wddm/dbg/VBoxVideoWinDbg.cpp \
|
---|
135 | wddm/dbg/VBoxVideoWinDbg.def
|
---|
136 | vbvdbg_SDKS = WINDDKWLH
|
---|
137 |
|
---|
138 | PROGRAMS += tstMvWnd
|
---|
139 | tstMvWnd_TEMPLATE = VBOXR3EXE
|
---|
140 | tstMvWnd_DEFS = UNICODE _UNICODE
|
---|
141 | tstMvWnd_SOURCES = \
|
---|
142 | wddm/dbg/tstMvWnd.cpp
|
---|
143 | tstMvWnd_LIBS = \
|
---|
144 | $(LIB_RUNTIME)
|
---|
145 | tstMvWnd_LDFLAGS.win = /SUBSYSTEM:windows
|
---|
146 | endif
|
---|
147 |
|
---|
148 |
|
---|
149 | include $(KBUILD_PATH)/subfooter.kmk
|
---|
150 |
|
---|