Makefile.kmk revision 7a3c0a6f8961fc1de551aaa9e3728d21f186af49
c366016ffe1788c6847d0a967a954713725cab5evboxsync# $Id$
c366016ffe1788c6847d0a967a954713725cab5evboxsync## @file
c366016ffe1788c6847d0a967a954713725cab5evboxsync# Sub-Makefile for VBoxDisp.dll.
c366016ffe1788c6847d0a967a954713725cab5evboxsync#
c366016ffe1788c6847d0a967a954713725cab5evboxsync
c366016ffe1788c6847d0a967a954713725cab5evboxsync#
c366016ffe1788c6847d0a967a954713725cab5evboxsync# Copyright (C) 2006-2007 Oracle Corporation
c58f1213e628a545081c70e26c6b67a841cff880vboxsync#
c366016ffe1788c6847d0a967a954713725cab5evboxsync# This file is part of VirtualBox Open Source Edition (OSE), as
c366016ffe1788c6847d0a967a954713725cab5evboxsync# available from http://www.virtualbox.org. This file is free software;
c366016ffe1788c6847d0a967a954713725cab5evboxsync# you can redistribute it and/or modify it under the terms of the GNU
c366016ffe1788c6847d0a967a954713725cab5evboxsync# General Public License (GPL) as published by the Free Software
c366016ffe1788c6847d0a967a954713725cab5evboxsync# Foundation, in version 2 as it comes in the "COPYING" file of the
c366016ffe1788c6847d0a967a954713725cab5evboxsync# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
c366016ffe1788c6847d0a967a954713725cab5evboxsync# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
c366016ffe1788c6847d0a967a954713725cab5evboxsync#
c366016ffe1788c6847d0a967a954713725cab5evboxsync
c366016ffe1788c6847d0a967a954713725cab5evboxsyncSUB_DEPTH = ../../../../../..
c366016ffe1788c6847d0a967a954713725cab5evboxsyncinclude $(KBUILD_PATH)/subheader.kmk
c366016ffe1788c6847d0a967a954713725cab5evboxsync
8d73b12275cff467e9a44e417d5bb7a5b7218bfevboxsyncSYSMODS += VBoxDisp
c366016ffe1788c6847d0a967a954713725cab5evboxsyncVBoxDisp_TEMPLATE = VBOXGUESTR0
c366016ffe1788c6847d0a967a954713725cab5evboxsyncifdef VBOX_SIGN_ADDITIONS # (See the parent makefile.)
c366016ffe1788c6847d0a967a954713725cab5evboxsync VBoxDisp_NOINST = true
c366016ffe1788c6847d0a967a954713725cab5evboxsyncendif
c366016ffe1788c6847d0a967a954713725cab5evboxsyncVBoxDisp_SYSSUFF = .dll
c366016ffe1788c6847d0a967a954713725cab5evboxsyncVBoxDisp_DEFS = _WIN32_WINNT=0x0501 LOG_TO_BACKDOOR VBOX_WITH_DDRAW VBOX_WITH_OPENGL
c366016ffe1788c6847d0a967a954713725cab5evboxsyncVBoxDisp_INCS = ../../include
c366016ffe1788c6847d0a967a954713725cab5evboxsync#VBoxDisp_DEFS += VBOX_VBVA_ADJUST_RECT
c366016ffe1788c6847d0a967a954713725cab5evboxsync#VBoxDisp_DEFS += LOG_ENABLED
c366016ffe1788c6847d0a967a954713725cab5evboxsyncifdef VBOX_WITH_VIDEOHWACCEL
c366016ffe1788c6847d0a967a954713725cab5evboxsyncVBoxDisp_DEFS += VBOX_WITH_VIDEOHWACCEL
c366016ffe1788c6847d0a967a954713725cab5evboxsyncendif
c366016ffe1788c6847d0a967a954713725cab5evboxsync#VBoxDisp_DEFS += STAT_sunlover
c366016ffe1788c6847d0a967a954713725cab5evboxsyncVBoxDisp_SOURCES = \
c366016ffe1788c6847d0a967a954713725cab5evboxsync color.c \
c366016ffe1788c6847d0a967a954713725cab5evboxsync debug.c \
c366016ffe1788c6847d0a967a954713725cab5evboxsync enable.c \
c366016ffe1788c6847d0a967a954713725cab5evboxsync palette.c \
pointer.c \
screen.c \
drv.c \
dd.c \
vbva.c \
vrdp.c \
vrdpbmp.c \
vrdptext.c \
vbox.c \
VBoxDisp.def \
VBoxDisp.rc
ifdef VBOX_WITH_VIDEOHWACCEL
VBoxDisp_SOURCES += vhwa.c
endif
VBoxDisp_LDFLAGS.x86 = /Entry:DrvEnableDriver@12
VBoxDisp_LDFLAGS.amd64 = /Entry:DrvEnableDriver
VBoxDisp_LIBS = \
$(PATH_SDK_W2K3DDK_LIB)/win32k.lib \
$(VBOX_LIB_IPRT_GUEST_R0)
ifdef VBOX_WITH_HGSMI
VBoxDisp_LIBS += \
$(VBOX_PATH_ADDITIONS_LIB)/HGSMIGuestR0Lib$(VBOX_SUFF_LIB)
VBoxDisp_DEFS += VBOX_WITH_HGSMI
endif
ifdef VBOXWDDM
ifeq ($(KBUILD_TARGET_ARCH), amd64)
$(warning VBoxVideoD3D: make it 32bit for 64bit builds)
endif
DLLS += VBoxDispD3D
if defined(VBOX_SIGNING_MODE)
VBoxDispD3D_NOINST = true
endif
VBoxDispD3D_TEMPLATE = VBOXGUESTR3DLL
VBoxDispD3D_DEFS = UNICODE _UNICODE
ifdef VBOX_WITH_VIDEOHWACCEL
VBoxDispD3D_DEFS += VBOX_WITH_VIDEOHWACCEL
endif
VBoxDispD3D_SOURCES = \
wddm/VBoxDispD3D.cpp \
wddm/VBoxDispD3DIf.cpp \
wddm/VBoxDispD3D.def \
wddm/VBoxDispD3D.rc
VBoxDispD3D_LIBS = \
$(VBOX_LIB_IPRT_GUEST_R3) \
$(VBOX_LIB_VBGL_R3)
VBoxDispD3D_SDKS = WINDDKWLH
# VBoxDispD3D_INCS += ../Wine/include
ifeq ($(KBUILD_TARGET_ARCH), amd64)
DLLS += VBoxDispD3D64
VBoxDispD3D64_EXTENDS = VBoxDispD3D
VBoxDispD3D64_SOURCES = $(subst VBoxDispD3D.def,VBoxDispD3D64.def,$(VBoxDispD3D_SOURCES))
endif
endif
include $(KBUILD_PATH)/subfooter.kmk