1 | # $Id: Makefile.kmk 63107 2016-08-06 16:41:27Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Sub-Makefile for VBoxTray.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2006-2016 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 = VBoxGuestR3Exe
|
---|
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 | VBoxIPC.cpp \
|
---|
40 | VBoxHelpers.cpp \
|
---|
41 | VBoxTray.rc
|
---|
42 | ifdef VBOX_WITH_DRAG_AND_DROP
|
---|
43 | VBoxTray_DEFS += \
|
---|
44 | VBOX_WITH_DRAG_AND_DROP \
|
---|
45 | $(if $(VBOX_WITH_DRAG_AND_DROP_GH),VBOX_WITH_DRAG_AND_DROP_GH,)
|
---|
46 | VBoxTray_SOURCES += \
|
---|
47 | VBoxDnD.cpp \
|
---|
48 | VBoxDnDDataObject.cpp \
|
---|
49 | VBoxDnDEnumFormat.cpp \
|
---|
50 | VBoxDnDDropSource.cpp \
|
---|
51 | VBoxDnDDropTarget.cpp
|
---|
52 | VBoxTray_LIBS += \
|
---|
53 | $(PATH_STAGE_LIB)/additions/VBoxDnDGuestR3Lib$(VBOX_SUFF_LIB)
|
---|
54 | endif
|
---|
55 | ifdef VBOX_WITH_GUEST_PROPS
|
---|
56 | VBoxTray_DEFS += _WIN32_IE=0x500 VBOX_WITH_GUEST_PROPS
|
---|
57 | VBoxTray_SOURCES += \
|
---|
58 | VBoxHostVersion.cpp \
|
---|
59 | VBoxLA.cpp
|
---|
60 | endif
|
---|
61 | ifdef VBOX_WITH_SHARED_FOLDERS
|
---|
62 | VBoxTray_DEFS += VBOX_WITH_SHARED_FOLDERS
|
---|
63 | VBoxTray_SOURCES += \
|
---|
64 | VBoxSharedFolders.cpp
|
---|
65 | VBoxTray_LIBS.win += \
|
---|
66 | mpr.lib
|
---|
67 | endif
|
---|
68 | ifdef VBOX_WITH_WDDM
|
---|
69 | VBoxTray_DEFS += VBOX_WITH_WDDM
|
---|
70 | # VBoxTray_DEFS += LOG_ENABLED
|
---|
71 | VBoxTray_SOURCES += ../Graphics/Video/disp/wddm/VBoxDispKmt.cpp
|
---|
72 | endif
|
---|
73 |
|
---|
74 | # VBoxTray.cpp uses VBOX_SVN_REV.
|
---|
75 | VBoxTray.cpp_DEFS += VBOX_SVN_REV=$(VBOX_SVN_REV)
|
---|
76 | VBoxTray.cpp_DEPS = $(VBOX_SVN_REV_KMK)
|
---|
77 |
|
---|
78 | # The icon location is configurable.
|
---|
79 | VBoxTray.rc_INCS = $(VBoxTray_0_OUTDIR)
|
---|
80 | VBoxTray.rc_DEPS = $(VBoxTray_0_OUTDIR)/VBoxTray-icon.rc
|
---|
81 | VBoxTray.rc_CLEAN = $(VBoxTray_0_OUTDIR)/VBoxTray-icon.rc
|
---|
82 |
|
---|
83 | # Icon include file.
|
---|
84 | $$(VBoxTray_0_OUTDIR)/VBoxTray-icon.rc: $(VBOX_WINDOWS_ADDITIONS_ICON_FILE) $$(VBoxTray_DEFPATH)/Makefile.kmk | $$(dir $$@)
|
---|
85 | $(RM) -f $@
|
---|
86 | $(APPEND) $@ 'IDI_VIRTUALBOX ICON DISCARDABLE "$(subst /,\\,$(VBOX_WINDOWS_ADDITIONS_ICON_FILE))"'
|
---|
87 |
|
---|
88 | include $(FILE_KBUILD_SUB_FOOTER)
|
---|
89 |
|
---|