Makefile.kmk revision 0412c212ede05017a46044b407f58c82374f6fe4
# $Id$
## @file
# Makefile for the Wine D3D related dlls for VirtualBox.
#
#
# Copyright (C) 2009 Oracle Corporation
#
# 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.
#
SUB_DEPTH = ../../../../../..
include $(KBUILD_PATH)/subheader.kmk
DLLS += libWine
libWine_TEMPLATE = VBOXGUESTR3NPDLL
if defined(VBOX_SIGNING_MODE) && defined(VBOXWDDM)
libWine_NOINST.win.x86 = true
endif
libWine_DEFS = __WINESRC__ WINE_UNICODE_API="" _REENTRANT WINE_NOWINSOCK USE_WIN32_OPENGL __i386__ \
DLLDIR=\"\" \
BINDIR=\"\" \
LIB_TO_BINDIR=\"\" \
LIB_TO_DLLDIR=\"\" \
BIN_TO_DLLDIR=\"\" \
LIB_TO_DATADIR=\"\" \
BIN_TO_DATADIR=\"\"
libWine_INCS := $(PATH_SUB_CURRENT)/include
libWine_SOURCES := \
DLLS += wined3d
wined3d_TEMPLATE = VBOXGUESTR3NPDLL
wined3d_DEFS = __WINESRC__ WINE_UNICODE_API="" _REENTRANT WINE_NOWINSOCK USE_WIN32_OPENGL __i386__ _USE_MATH_DEFINES\
DLLDIR=\"\" \
BINDIR=\"\" \
LIB_TO_BINDIR=\"\" \
LIB_TO_DLLDIR=\"\" \
BIN_TO_DLLDIR=\"\" \
LIB_TO_DATADIR=\"\" \
BIN_TO_DATADIR=\"\"
if "$(KBUILD_TYPE)" != "debug" || defined(DEBUG_misha)
wined3d_DEFS += WINE_NO_DEBUG_MSGS
endif
wined3d_INCS := $(PATH_SUB_CURRENT)/include
wined3d_SOURCES := \
wined3d_LIBS = \
$(PATH_LIB)/libWine$(VBOX_SUFF_LIB)
ifdef VBOXWDDM
DLLS += wined3dwddm
wined3dwddm_EXTENDS = wined3d
if defined(VBOX_SIGNING_MODE) && defined(VBOXWDDM)
wined3dwddm_NOINST.win.x86 = true
endif
wined3dwddm_DEFS += $(wined3d_DEFS) VBOXWDDM
wined3dwddm_SOURCES = $(subst wined3d.def,wined3dwddm.def,$(wined3d_SOURCES))
endif
DLLS += VBoxD3D8
VBoxD3D8_TEMPLATE = VBOXGUESTR3NPDLL
VBoxD3D8_DEFS = __WINESRC__ WINE_UNICODE_API="" _REENTRANT WINE_NOWINSOCK USE_WIN32_OPENGL __i386__ _USE_MATH_DEFINES\
DLLDIR=\"\" \
BINDIR=\"\" \
LIB_TO_BINDIR=\"\" \
LIB_TO_DLLDIR=\"\" \
BIN_TO_DLLDIR=\"\" \
LIB_TO_DATADIR=\"\" \
BIN_TO_DATADIR=\"\"
if "$(KBUILD_TYPE)" != "debug" || defined(DEBUG_misha)
VBoxD3D8_DEFS += WINE_NO_DEBUG_MSGS
endif
#ifdef VBOXWDDM
# VBoxD3D8_DEFS += VBOXWDDM IN_VBOXWINEEX
#endif
VBoxD3D8_INCS := $(PATH_SUB_CURRENT)/include
VBoxD3D8_SOURCES := \
VBoxD3D8_LIBS = \
$(PATH_LIB)/libWine$(VBOX_SUFF_LIB) \
$(PATH_LIB)/wined3d$(VBOX_SUFF_LIB)
DLLS += VBoxD3D9
VBoxD3D9_TEMPLATE = VBOXGUESTR3NPDLL
VBoxD3D9_DEFS = __WINESRC__ WINE_UNICODE_API="" _REENTRANT WINE_NOWINSOCK USE_WIN32_OPENGL __i386__ _USE_MATH_DEFINES\
DLLDIR=\"\" \
BINDIR=\"\" \
LIB_TO_BINDIR=\"\" \
LIB_TO_DLLDIR=\"\" \
BIN_TO_DLLDIR=\"\" \
LIB_TO_DATADIR=\"\" \
BIN_TO_DATADIR=\"\"
if "$(KBUILD_TYPE)" != "debug" || defined(DEBUG_misha)
VBoxD3D9_DEFS += WINE_NO_DEBUG_MSGS
endif
VBoxD3D9_INCS := $(PATH_SUB_CURRENT)/include
VBoxD3D9_SOURCES := \
VBoxD3D9_LIBS = \
$(PATH_LIB)/libWine$(VBOX_SUFF_LIB) \
$(PATH_LIB)/wined3d$(VBOX_SUFF_LIB)
ifdef VBOXWDDM
DLLS += VBoxD3D9wddm
VBoxD3D9wddm_EXTENDS = VBoxD3D9
if defined(VBOX_SIGNING_MODE) && defined(VBOXWDDM)
VBoxD3D9wddm_NOINST.win.x86 = true
endif
VBoxD3D9wddm_DEFS += $(VBoxD3D9_DEFS) VBOXWDDM IN_VBOXWINEEX
VBoxD3D9wddm_SOURCES = $(subst d3d9.def,d3d9wddm.def,$(VBoxD3D9_SOURCES))
VBoxD3D9wddm_LIBS = $(subst wined3d$(VBOX_SUFF_LIB),wined3dwddm$(VBOX_SUFF_LIB),$(VBoxD3D9_LIBS))
endif
DLLS += d3d8
d3d8_TEMPLATE = VBOXGUESTR3NPDLL
d3d8_DEFS = __i386__
d3d8_INCS := $(PATH_SUB_CURRENT)/include
d3d8_SOURCES = \
DLLS += d3d9
d3d9_TEMPLATE = VBOXGUESTR3NPDLL
d3d9_DEFS = __i386__
d3d9_INCS := $(PATH_SUB_CURRENT)/include
d3d9_SOURCES = \
include $(KBUILD_PATH)/subfooter.kmk