1 | # $Id: Makefile.kmk 27516 2010-03-19 07:43:30Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Sub-Makefile for VBoxDisp.dll.
|
---|
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 | SYSMODS += VBoxDisp
|
---|
26 | VBoxDisp_TEMPLATE = VBOXGUESTR0
|
---|
27 | ifdef VBOX_SIGN_ADDITIONS # (See the parent makefile.)
|
---|
28 | VBoxDisp_NOINST = true
|
---|
29 | endif
|
---|
30 | VBoxDisp_SYSSUFF = .dll
|
---|
31 | VBoxDisp_DEFS = _WIN32_WINNT=0x0501 LOG_TO_BACKDOOR VBOX_WITH_DDRAW VBOX_WITH_OPENGL
|
---|
32 | VBoxDisp_INCS = ../../include
|
---|
33 | VBoxDisp_DEFS += VBOX_VBVA_ADJUST_RECT
|
---|
34 | #VBoxDisp_DEFS += LOG_ENABLED
|
---|
35 | ifdef VBOX_WITH_VIDEOHWACCEL
|
---|
36 | VBoxDisp_DEFS += VBOX_WITH_VIDEOHWACCEL
|
---|
37 | endif
|
---|
38 | #VBoxDisp_DEFS += STAT_sunlover
|
---|
39 | VBoxDisp_SOURCES = \
|
---|
40 | color.c \
|
---|
41 | debug.c \
|
---|
42 | enable.c \
|
---|
43 | palette.c \
|
---|
44 | pointer.c \
|
---|
45 | screen.c \
|
---|
46 | drv.c \
|
---|
47 | dd.c \
|
---|
48 | vbva.c \
|
---|
49 | vrdp.c \
|
---|
50 | vrdpbmp.c \
|
---|
51 | vrdptext.c \
|
---|
52 | vbox.c \
|
---|
53 | VBoxDisp.def \
|
---|
54 | VBoxDisp.rc
|
---|
55 |
|
---|
56 | ifdef VBOX_WITH_VIDEOHWACCEL
|
---|
57 | VBoxDisp_SOURCES += vhwa.c
|
---|
58 | endif
|
---|
59 | VBoxDisp_LDFLAGS.x86 = /Entry:DrvEnableDriver@12
|
---|
60 | VBoxDisp_LDFLAGS.amd64 = /Entry:DrvEnableDriver
|
---|
61 | VBoxDisp_LIBS = \
|
---|
62 | $(PATH_SDK_W2K3DDK_LIB)/win32k.lib \
|
---|
63 | $(VBOX_LIB_IPRT_GUEST_R0)
|
---|
64 |
|
---|
65 | ifdef VBOX_WITH_HGSMI
|
---|
66 | VBoxDisp_LIBS += \
|
---|
67 | $(VBOX_PATH_ADDITIONS_LIB)/HGSMIGuestR0Lib$(VBOX_SUFF_LIB)
|
---|
68 | VBoxDisp_DEFS += VBOX_WITH_HGSMI
|
---|
69 | endif
|
---|
70 |
|
---|
71 | ifdef VBOXWDDM
|
---|
72 |
|
---|
73 | ifeq ($(KBUILD_TARGET_ARCH), amd64)
|
---|
74 | $(warning VBoxVideoD3D: make it 32bit for 64bit builds)
|
---|
75 | endif
|
---|
76 |
|
---|
77 | DLLS += VBoxDispD3D
|
---|
78 | if defined(VBOX_SIGNING_MODE)
|
---|
79 | VBoxDispD3D_NOINST = true
|
---|
80 | endif
|
---|
81 | VBoxDispD3D_TEMPLATE = VBOXGUESTR3DLL
|
---|
82 | VBoxDispD3D_DEFS = UNICODE _UNICODE
|
---|
83 | VBoxDispD3D_SOURCES = \
|
---|
84 | wddm/VBoxDispD3D.cpp \
|
---|
85 | wddm/VBoxDispD3D.def \
|
---|
86 | wddm/VBoxDispD3D.rc
|
---|
87 | VBoxDispD3D_LIBS = \
|
---|
88 | $(VBOX_LIB_IPRT_GUEST_R3) \
|
---|
89 | $(VBOX_LIB_VBGL_R3)
|
---|
90 | VBoxDispD3D_SDKS = WINDDKWLH
|
---|
91 |
|
---|
92 | ifeq ($(KBUILD_TARGET_ARCH), amd64)
|
---|
93 | DLLS += VBoxDispD3D64
|
---|
94 | VBoxDispD3D64_EXTENDS = VBoxDispD3D
|
---|
95 | VBoxDispD3D64_SOURCES = $(subst VBoxDispD3D.def,VBoxDispD3D64.def,$(VBoxDispD3D_SOURCES))
|
---|
96 | endif
|
---|
97 | endif
|
---|
98 |
|
---|
99 | include $(KBUILD_PATH)/subfooter.kmk
|
---|
100 |
|
---|