1 | # $Id: Makefile.kmk 49891 2013-12-12 20:09:20Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Sub-Makefile for VBoxTray.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2006-2012 Oracle Corporation
|
---|
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 |
|
---|
18 | SUB_DEPTH = ../../../../..
|
---|
19 | include $(KBUILD_PATH)/subheader.kmk
|
---|
20 |
|
---|
21 | PROGRAMS += VBoxTray
|
---|
22 | VBoxTray_TEMPLATE = NewVBoxGuestR3Exe
|
---|
23 | ifdef VBOX_SIGN_ADDITIONS # (See the parent makefile.)
|
---|
24 | VBoxTray_INSTTYPE = none
|
---|
25 | VBoxTray_DEBUG_INSTTYPE = both
|
---|
26 | endif
|
---|
27 | VBoxTray_SDKS = ReorderCompilerIncs $(VBOX_WINDDK_GST)
|
---|
28 | VBoxTray_DEFS = \
|
---|
29 | VBOX_WITH_HGCM \
|
---|
30 | VBOX_BUILD_TARGET=\"$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)\"
|
---|
31 | VBoxTray_INCS = ../include
|
---|
32 | VBoxTray_SOURCES = \
|
---|
33 | VBoxTray.cpp \
|
---|
34 | VBoxDispIf.cpp \
|
---|
35 | VBoxSeamless.cpp \
|
---|
36 | VBoxClipboard.cpp \
|
---|
37 | VBoxDisplay.cpp \
|
---|
38 | VBoxVRDP.cpp \
|
---|
39 | VBoxRestore.cpp \
|
---|
40 | VBoxIPC.cpp \
|
---|
41 | VBoxHelpers.cpp \
|
---|
42 | VBoxTray.rc
|
---|
43 | ifdef VBOX_WITH_DRAG_AND_DROP
|
---|
44 | VBoxTray_DEFS += \
|
---|
45 | VBOX_WITH_DRAG_AND_DROP \
|
---|
46 | $(if $(VBOX_WITH_DRAG_AND_DROP_GH),VBOX_WITH_DRAG_AND_DROP_GH,)
|
---|
47 | VBoxTray_SOURCES += \
|
---|
48 | VBoxDnD.cpp \
|
---|
49 | VBoxDnDDataObject.cpp \
|
---|
50 | VBoxDnDEnumFormat.cpp \
|
---|
51 | VBoxDnDDropSource.cpp
|
---|
52 | endif
|
---|
53 | ifdef VBOX_WITH_GUEST_PROPS
|
---|
54 | VBoxTray_DEFS += _WIN32_IE=0x500 VBOX_WITH_GUEST_PROPS
|
---|
55 | VBoxTray_SOURCES += \
|
---|
56 | VBoxHostVersion.cpp \
|
---|
57 | VBoxLA.cpp
|
---|
58 | endif
|
---|
59 | ifdef VBOX_WITH_SHARED_FOLDERS
|
---|
60 | VBoxTray_DEFS += VBOX_WITH_SHARED_FOLDERS
|
---|
61 | VBoxTray_SOURCES += \
|
---|
62 | VBoxSharedFolders.cpp
|
---|
63 | VBoxTray_LIBS.win += \
|
---|
64 | mpr.lib
|
---|
65 | endif
|
---|
66 | ifdef VBOX_WITH_MMR
|
---|
67 | VBoxTray_DEFS += VBOX_WITH_MMR
|
---|
68 | VBoxTray_SOURCES += \
|
---|
69 | VBoxMMR.cpp
|
---|
70 | endif
|
---|
71 | ifdef VBOX_WITH_WDDM
|
---|
72 | VBoxTray_DEFS += VBOX_WITH_WDDM
|
---|
73 | # VBoxTray_DEFS += LOG_ENABLED
|
---|
74 | VBoxTray_SOURCES += ../Graphics/Video/disp/wddm/VBoxDispKmt.cpp
|
---|
75 | endif
|
---|
76 |
|
---|
77 | # VBoxTray.cpp uses VBOX_SVN_REV.
|
---|
78 | VBoxTray.cpp_DEFS += VBOX_SVN_REV=$(VBOX_SVN_REV)
|
---|
79 | VBoxTray.cpp_DEPS = $(VBOX_SVN_REV_KMK)
|
---|
80 |
|
---|
81 | # The icon location is configurable.
|
---|
82 | VBoxTray.rc_INCS = $(VBoxTray_0_OUTDIR)
|
---|
83 | VBoxTray.rc_DEPS = $(VBoxTray_0_OUTDIR)/VBoxTray-icon.rc
|
---|
84 | VBoxTray.rc_CLEAN = $(VBoxTray_0_OUTDIR)/VBoxTray-icon.rc
|
---|
85 |
|
---|
86 | # Icon include file.
|
---|
87 | $$(VBoxTray_0_OUTDIR)/VBoxTray-icon.rc: $(VBOX_WINDOWS_ADDITIONS_ICON_FILE) $$(VBoxTray_DEFPATH)/Makefile.kmk | $$(dir $$@)
|
---|
88 | $(RM) -f $@
|
---|
89 | $(APPEND) $@ 'IDI_VIRTUALBOX ICON DISCARDABLE "$(subst /,\\,$(VBOX_WINDOWS_ADDITIONS_ICON_FILE))"'
|
---|
90 |
|
---|
91 | include $(FILE_KBUILD_SUB_FOOTER)
|
---|
92 |
|
---|