Makefile.kmk revision e068057c82b010bc7cc663e8f57ac3ef1890a33c
1403063c7e0c0a072d59e323b66068b06278fb9avboxsync# $Id$
1403063c7e0c0a072d59e323b66068b06278fb9avboxsync## @file
1403063c7e0c0a072d59e323b66068b06278fb9avboxsync# Sub-Makefile for VBoxDisp.dll.
1403063c7e0c0a072d59e323b66068b06278fb9avboxsync#
1403063c7e0c0a072d59e323b66068b06278fb9avboxsync
e64031e20c39650a7bc902a3e1aba613b9415deevboxsync#
1403063c7e0c0a072d59e323b66068b06278fb9avboxsync# Copyright (C) 2006-2007 Oracle Corporation
fcae7923a3c756b333f1e33eba002edf4448fb54vboxsync#
fcae7923a3c756b333f1e33eba002edf4448fb54vboxsync# This file is part of VirtualBox Open Source Edition (OSE), as
fcae7923a3c756b333f1e33eba002edf4448fb54vboxsync# available from http://www.virtualbox.org. This file is free software;
fcae7923a3c756b333f1e33eba002edf4448fb54vboxsync# you can redistribute it and/or modify it under the terms of the GNU
fcae7923a3c756b333f1e33eba002edf4448fb54vboxsync# General Public License (GPL) as published by the Free Software
fcae7923a3c756b333f1e33eba002edf4448fb54vboxsync# Foundation, in version 2 as it comes in the "COPYING" file of the
fcae7923a3c756b333f1e33eba002edf4448fb54vboxsync# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
1403063c7e0c0a072d59e323b66068b06278fb9avboxsync# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
1403063c7e0c0a072d59e323b66068b06278fb9avboxsync#
1403063c7e0c0a072d59e323b66068b06278fb9avboxsync
1403063c7e0c0a072d59e323b66068b06278fb9avboxsyncSUB_DEPTH = ../../../../../..
1403063c7e0c0a072d59e323b66068b06278fb9avboxsyncinclude $(KBUILD_PATH)/subheader.kmk
1403063c7e0c0a072d59e323b66068b06278fb9avboxsync
1403063c7e0c0a072d59e323b66068b06278fb9avboxsyncSYSMODS += VBoxDisp
1403063c7e0c0a072d59e323b66068b06278fb9avboxsyncVBoxDisp_TEMPLATE = VBOXGUESTR0
1403063c7e0c0a072d59e323b66068b06278fb9avboxsyncifdef VBOX_SIGN_ADDITIONS # (See the parent makefile.)
1403063c7e0c0a072d59e323b66068b06278fb9avboxsync VBoxDisp_NOINST = true
1403063c7e0c0a072d59e323b66068b06278fb9avboxsyncendif
1403063c7e0c0a072d59e323b66068b06278fb9avboxsyncVBoxDisp_SYSSUFF = .dll
1403063c7e0c0a072d59e323b66068b06278fb9avboxsyncVBoxDisp_DEFS = _WIN32_WINNT=0x0501 LOG_TO_BACKDOOR VBOX_WITH_DDRAW VBOX_WITH_OPENGL
1403063c7e0c0a072d59e323b66068b06278fb9avboxsyncVBoxDisp_INCS = ../../include
1403063c7e0c0a072d59e323b66068b06278fb9avboxsync#VBoxDisp_DEFS += VBOX_VBVA_ADJUST_RECT
1403063c7e0c0a072d59e323b66068b06278fb9avboxsync#VBoxDisp_DEFS += LOG_ENABLED
1403063c7e0c0a072d59e323b66068b06278fb9avboxsyncifdef VBOX_WITH_VIDEOHWACCEL
1403063c7e0c0a072d59e323b66068b06278fb9avboxsyncVBoxDisp_DEFS += VBOX_WITH_VIDEOHWACCEL
1403063c7e0c0a072d59e323b66068b06278fb9avboxsyncendif
1403063c7e0c0a072d59e323b66068b06278fb9avboxsync#VBoxDisp_DEFS += STAT_sunlover
1403063c7e0c0a072d59e323b66068b06278fb9avboxsyncVBoxDisp_SOURCES = \
1403063c7e0c0a072d59e323b66068b06278fb9avboxsync color.c \
1403063c7e0c0a072d59e323b66068b06278fb9avboxsync debug.c \
1403063c7e0c0a072d59e323b66068b06278fb9avboxsync enable.c \
1403063c7e0c0a072d59e323b66068b06278fb9avboxsync palette.c \
1403063c7e0c0a072d59e323b66068b06278fb9avboxsync pointer.c \
1403063c7e0c0a072d59e323b66068b06278fb9avboxsync screen.c \
1403063c7e0c0a072d59e323b66068b06278fb9avboxsync drv.c \
1403063c7e0c0a072d59e323b66068b06278fb9avboxsync dd.c \
1403063c7e0c0a072d59e323b66068b06278fb9avboxsync vbva.c \
1403063c7e0c0a072d59e323b66068b06278fb9avboxsync vrdp.c \
1403063c7e0c0a072d59e323b66068b06278fb9avboxsync vrdpbmp.c \
1403063c7e0c0a072d59e323b66068b06278fb9avboxsync vrdptext.c \
1403063c7e0c0a072d59e323b66068b06278fb9avboxsync vbox.c \
1403063c7e0c0a072d59e323b66068b06278fb9avboxsync VBoxDisp.def \
1403063c7e0c0a072d59e323b66068b06278fb9avboxsync VBoxDisp.rc
1403063c7e0c0a072d59e323b66068b06278fb9avboxsync
1403063c7e0c0a072d59e323b66068b06278fb9avboxsyncifdef VBOX_WITH_VIDEOHWACCEL
1403063c7e0c0a072d59e323b66068b06278fb9avboxsyncVBoxDisp_SOURCES += vhwa.c
1403063c7e0c0a072d59e323b66068b06278fb9avboxsyncendif
1403063c7e0c0a072d59e323b66068b06278fb9avboxsyncVBoxDisp_LDFLAGS.x86 = /Entry:DrvEnableDriver@12
1403063c7e0c0a072d59e323b66068b06278fb9avboxsyncVBoxDisp_LDFLAGS.amd64 = /Entry:DrvEnableDriver
1403063c7e0c0a072d59e323b66068b06278fb9avboxsyncVBoxDisp_LIBS = \
1403063c7e0c0a072d59e323b66068b06278fb9avboxsync $(PATH_SDK_W2K3DDK_LIB)/win32k.lib \
1403063c7e0c0a072d59e323b66068b06278fb9avboxsync $(VBOX_LIB_IPRT_GUEST_R0)
1403063c7e0c0a072d59e323b66068b06278fb9avboxsync
1403063c7e0c0a072d59e323b66068b06278fb9avboxsyncifdef VBOX_WITH_HGSMI
1403063c7e0c0a072d59e323b66068b06278fb9avboxsyncVBoxDisp_LIBS += \
1403063c7e0c0a072d59e323b66068b06278fb9avboxsync $(VBOX_PATH_ADDITIONS_LIB)/HGSMIGuestR0Lib$(VBOX_SUFF_LIB)
1403063c7e0c0a072d59e323b66068b06278fb9avboxsyncVBoxDisp_DEFS += VBOX_WITH_HGSMI
1403063c7e0c0a072d59e323b66068b06278fb9avboxsyncendif
1403063c7e0c0a072d59e323b66068b06278fb9avboxsync
1403063c7e0c0a072d59e323b66068b06278fb9avboxsyncifdef VBOX_WITH_WDDM
1403063c7e0c0a072d59e323b66068b06278fb9avboxsync
1403063c7e0c0a072d59e323b66068b06278fb9avboxsync ifeq ($(KBUILD_TARGET_ARCH), amd64)
1403063c7e0c0a072d59e323b66068b06278fb9avboxsync $(warning VBoxVideoD3D: make it 32bit for 64bit builds)
1403063c7e0c0a072d59e323b66068b06278fb9avboxsync endif
1403063c7e0c0a072d59e323b66068b06278fb9avboxsync
1403063c7e0c0a072d59e323b66068b06278fb9avboxsyncDLLS += VBoxDispD3D
1403063c7e0c0a072d59e323b66068b06278fb9avboxsync if defined(VBOX_SIGNING_MODE)
1403063c7e0c0a072d59e323b66068b06278fb9avboxsyncVBoxDispD3D_NOINST = true
1403063c7e0c0a072d59e323b66068b06278fb9avboxsync endif
1403063c7e0c0a072d59e323b66068b06278fb9avboxsyncVBoxDispD3D_TEMPLATE = VBOXGUESTR3DLL
1403063c7e0c0a072d59e323b66068b06278fb9avboxsyncVBoxDispD3D_DEFS = UNICODE _UNICODE VBOX_WITH_WDDM VBOXVDMA VBOXWDDMDISP
1403063c7e0c0a072d59e323b66068b06278fb9avboxsync# VBoxDispD3D_DEFS += VBOXDISPMP_TEST
1403063c7e0c0a072d59e323b66068b06278fb9avboxsyncifdef VBOXWDDM_WITH_VBVA
1403063c7e0c0a072d59e323b66068b06278fb9avboxsyncVBoxDispD3D_DEFS += VBOXWDDM_WITH_VBVA
1403063c7e0c0a072d59e323b66068b06278fb9avboxsyncendif
1403063c7e0c0a072d59e323b66068b06278fb9avboxsync
1403063c7e0c0a072d59e323b66068b06278fb9avboxsyncifdef VBOX_WITH_VIDEOHWACCEL
1403063c7e0c0a072d59e323b66068b06278fb9avboxsync VBoxDispD3D_DEFS += VBOX_WITH_VIDEOHWACCEL
1403063c7e0c0a072d59e323b66068b06278fb9avboxsyncendif
1403063c7e0c0a072d59e323b66068b06278fb9avboxsyncVBoxDispD3D_SOURCES = \
1403063c7e0c0a072d59e323b66068b06278fb9avboxsync wddm/VBoxDispD3D.cpp \
1403063c7e0c0a072d59e323b66068b06278fb9avboxsync wddm/VBoxDispD3DIf.cpp \
1403063c7e0c0a072d59e323b66068b06278fb9avboxsync wddm/VBoxDispCm.cpp \
1403063c7e0c0a072d59e323b66068b06278fb9avboxsync wddm/VBoxDispMp.cpp \
1403063c7e0c0a072d59e323b66068b06278fb9avboxsync wddm/VBoxScreen.cpp \
1403063c7e0c0a072d59e323b66068b06278fb9avboxsync wddm/VBoxDispMpTst.cpp \
1403063c7e0c0a072d59e323b66068b06278fb9avboxsync wddm/VBoxDispD3D.def \
1403063c7e0c0a072d59e323b66068b06278fb9avboxsync wddm/VBoxDispD3D.rc
1403063c7e0c0a072d59e323b66068b06278fb9avboxsyncVBoxDispD3D_LIBS = \
1403063c7e0c0a072d59e323b66068b06278fb9avboxsync $(VBOX_LIB_IPRT_GUEST_R3) \
1403063c7e0c0a072d59e323b66068b06278fb9avboxsync $(VBOX_LIB_VBGL_R3)
1403063c7e0c0a072d59e323b66068b06278fb9avboxsyncVBoxDispD3D_SDKS = WINDDKWLH
1403063c7e0c0a072d59e323b66068b06278fb9avboxsync# VBoxDispD3D_INCS += ../Wine/include
1403063c7e0c0a072d59e323b66068b06278fb9avboxsync
1403063c7e0c0a072d59e323b66068b06278fb9avboxsync ifeq ($(KBUILD_TARGET_ARCH), amd64)
1403063c7e0c0a072d59e323b66068b06278fb9avboxsyncDLLS += VBoxDispD3D64
1403063c7e0c0a072d59e323b66068b06278fb9avboxsyncVBoxDispD3D64_EXTENDS = VBoxDispD3D
1403063c7e0c0a072d59e323b66068b06278fb9avboxsyncVBoxDispD3D64_SOURCES = $(subst VBoxDispD3D.def,VBoxDispD3D64.def,$(VBoxDispD3D_SOURCES))
1403063c7e0c0a072d59e323b66068b06278fb9avboxsync endif
1403063c7e0c0a072d59e323b66068b06278fb9avboxsyncendif
1403063c7e0c0a072d59e323b66068b06278fb9avboxsync
1403063c7e0c0a072d59e323b66068b06278fb9avboxsyncifdef VBOXVIDEOWINDBG
1403063c7e0c0a072d59e323b66068b06278fb9avboxsyncDLLS += vbvdbg
1403063c7e0c0a072d59e323b66068b06278fb9avboxsyncvbvdbg_TEMPLATE = VBOXR3STATIC
1403063c7e0c0a072d59e323b66068b06278fb9avboxsyncvbvdbg_DEFS = UNICODE _UNICODE
1403063c7e0c0a072d59e323b66068b06278fb9avboxsyncvbvdbg_SOURCES = \
1403063c7e0c0a072d59e323b66068b06278fb9avboxsync wddm/dbg/VBoxVideoWinDbg.cpp \
1403063c7e0c0a072d59e323b66068b06278fb9avboxsync wddm/dbg/VBoxVideoWinDbg.def
1403063c7e0c0a072d59e323b66068b06278fb9avboxsyncvbvdbg_SDKS = WINDDKWLH
1403063c7e0c0a072d59e323b66068b06278fb9avboxsync
1403063c7e0c0a072d59e323b66068b06278fb9avboxsyncPROGRAMS += tstMvWnd
1403063c7e0c0a072d59e323b66068b06278fb9avboxsynctstMvWnd_TEMPLATE = VBOXR3EXE
1403063c7e0c0a072d59e323b66068b06278fb9avboxsynctstMvWnd_DEFS = UNICODE _UNICODE
1403063c7e0c0a072d59e323b66068b06278fb9avboxsynctstMvWnd_SOURCES = \
1403063c7e0c0a072d59e323b66068b06278fb9avboxsync wddm/dbg/tstMvWnd.cpp
1403063c7e0c0a072d59e323b66068b06278fb9avboxsynctstMvWnd_LIBS = \
1403063c7e0c0a072d59e323b66068b06278fb9avboxsync $(LIB_RUNTIME)
1403063c7e0c0a072d59e323b66068b06278fb9avboxsynctstMvWnd_LDFLAGS.win = /SUBSYSTEM:windows
1403063c7e0c0a072d59e323b66068b06278fb9avboxsyncendif
1403063c7e0c0a072d59e323b66068b06278fb9avboxsync
1403063c7e0c0a072d59e323b66068b06278fb9avboxsync
1403063c7e0c0a072d59e323b66068b06278fb9avboxsyncinclude $(KBUILD_PATH)/subfooter.kmk
1403063c7e0c0a072d59e323b66068b06278fb9avboxsync
1403063c7e0c0a072d59e323b66068b06278fb9avboxsync