Makefile.kmk revision 2084a447d1acb619df7c393fac41b79d517e4b3d
# $Id$
## @file
# Sub-Makefile for VBoxVideo.
#
#
# Copyright (C) 2006-2007 Sun Microsystems, Inc.
#
# This file is part of VirtualBox Open Source Edition (OSE), as
# available from http://www.virtualbox.org. This file is free software;
# you can redistribute it and/or modify it under the terms of the GNU
# General Public License (GPL) as published by the Free Software
# Foundation, in version 2 as it comes in the "COPYING" file of the
# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
#
# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
# Clara, CA 95054 USA or visit http://www.sun.com if you need
# additional information or have any questions.
#
SUB_DEPTH = ../../../../../..
include $(KBUILD_PATH)/subheader.kmk
#
# VBoxVideo
#
# Note. This has to run on NT4!
# (VBOX_LIB_IPRT_GUEST_R0_NT4 == VBOX_LIB_IPRT_GUEST_R0 on 64-bit)
#
SYSMODS += VBoxVideo
VBoxVideo_TEMPLATE = VBOXGUESTR0
ifdef VBOX_SIGN_ADDITIONS # (See the parent makefile.)
VBoxVideo_NOINST = true
endif
VBoxVideo_DEFS = LOG_TO_BACKDOOR VBOX_WITH_8BPP_MODES
ifdef VBOX_WITH_HGSMI
VBoxVideo_DEFS += VBOX_WITH_HGSMI
endif
ifdef VBOX_WITH_VIDEOHWACCEL
VBoxVideo_DEFS += VBOX_WITH_VIDEOHWACCEL
endif
#VBoxVideo_DEFS += LOG_ENABLED
VBoxVideo_INCS = ../../include
VBoxVideo_LDFLAGS.x86 = /Entry:DriverEntry@8
VBoxVideo_LDFLAGS.amd64 = /Entry:DriverEntry
VBoxVideo_SOURCES = \
VBoxVideo.cpp \
Helper.cpp \
VBoxVideo.def \
VBoxVideo.rc
ifdef VBOX_WITH_HGSMI
VBoxVideo_SOURCES += \
VBoxVideoHGSMI.cpp
endif
VBoxVideo_LIBS.x86 = \
$(PATH_SDK_W2K3DDK_LIB)/exsup.lib
VBoxVideo_LIBS = \
$(PATH_SDK_W2K3DDK_LIB)/videoprt.lib \
$(PATH_SDK_W2K3DDK_LIB)/ntoskrnl.lib \
$(PATH_SDK_W2K3DDK_LIB)/hal.lib \
$(VBOX_LIB_VBGL_R0) \
$(VBOX_LIB_IPRT_GUEST_R0_NT4)
ifdef VBOX_WITH_HGSMI
VBoxVideo_LIBS += \
$(VBOX_PATH_ADDITIONS_LIB)/HGSMIGuestR0Lib$(VBOX_SUFF_LIB)
endif
ifdef VBOXWDDM
#
# VBoxVideoWddm
#
SYSMODS += VBoxVideoWddm
VBoxVideoWddm_TEMPLATE = VBOXGUESTR0
ifdef VBOX_SIGN_ADDITIONS # (See the parent makefile.)
# driver signing rules will be written once there are all files necessary for that are available,
# i.e. a u/m display driver miniport inf
$(warning FIXME: !!!define wddm driver signing & install rules !!!)
VBoxVideoWddm_NOINST = true
endif
VBoxVideoWddm_SDKS=WINDDKWLH
VBoxVideoWddm_DEFS += LOG_TO_BACKDOOR VBOX_WITH_8BPP_MODES
VBoxVideoWddm_DEFS += VBOX_WITH_HGSMI VBOXWDDM
ifdef VBOX_WITH_VIDEOHWACCEL
VBoxVideoWddm_DEFS += VBOX_WITH_VIDEOHWACCEL
endif
#VBoxVideoWddm_DEFS += LOG_ENABLED
VBoxVideoWddm_INCS += ../../include
VBoxVideoWddm_LDFLAGS.x86 += /Entry:DriverEntry@8
VBoxVideoWddm_LDFLAGS.amd64 += /Entry:DriverEntry
VBoxVideoWddm_SOURCES = \
VBoxVideoHGSMI.cpp \
VBoxVideo.cpp \
Helper.cpp \
wddm/VBoxVideoWddm.cpp \
wddm/VBoxVideoVidPn.cpp \
wddm/VBoxVideoWddm.def \
wddm/VBoxVideoWddm.rc
#VBoxVideoWddm_LIBS.x86 += \
# $(PATH_SDK_WINDDKWLH_LIB)/exsup.lib
VBoxVideoWddm_LIBS.x86 += \
$(PATH_SDK_WINDDKWLH_LIB)/bufferoverflowu.lib
VBoxVideoWddm_LIBS = \
$(PATH_SDK_WINDDKWLH_LIB)/ntoskrnl.lib \
$(PATH_SDK_WINDDKWLH_LIB)/hal.lib \
$(PATH_SDK_WINDDKWLH_LIB)/displib.lib \
$(VBOX_LIB_VBGL_R0) \
$(VBOX_LIB_IPRT_GUEST_R0_NT4) \
$(VBOX_PATH_ADDITIONS_LIB)/HGSMIGuestR0Lib$(VBOX_SUFF_LIB)
endif # VBOXWDDM
include $(KBUILD_PATH)/subfooter.kmk