1 | # $Id: Makefile.kmk 42239 2012-07-19 20:40:31Z 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 | if defined(VBOX_USE_VCC100) || defined(VBOX_USE_VCC110)
|
---|
28 | VBoxTray_SDKS = ReorderCompilerIncs $(VBOX_WINDDK_GST)
|
---|
29 | endif
|
---|
30 | VBoxTray_DEFS = VBOX_WITH_HGCM LOG_TO_BACKDOOR
|
---|
31 | VBoxTray_INCS = ../include
|
---|
32 | if !defined(VBOX_USE_VCC100) && !defined(VBOX_USE_VCC110)
|
---|
33 | include $(KBUILD_PATH)/sdks/WINDDK.kmk # WTF is this about?
|
---|
34 | VBoxTray_INCS += $(PATH_SDK_WINDDK_INC_API) $(PATH_SDK_WINDDK_INC_DDK)
|
---|
35 | endif
|
---|
36 | VBoxTray_SOURCES = \
|
---|
37 | VBoxTray.cpp \
|
---|
38 | VBoxDispIf.cpp \
|
---|
39 | VBoxSeamless.cpp \
|
---|
40 | VBoxClipboard.cpp \
|
---|
41 | VBoxDisplay.cpp \
|
---|
42 | VBoxVRDP.cpp \
|
---|
43 | VBoxRestore.cpp \
|
---|
44 | VBoxIPC.cpp \
|
---|
45 | VBoxHelpers.cpp \
|
---|
46 | VBoxTray.rc
|
---|
47 | ifdef VBOX_WITH_GUEST_PROPS
|
---|
48 | VBoxTray_DEFS += _WIN32_IE=0x500 VBOX_WITH_GUEST_PROPS
|
---|
49 | VBoxTray_SOURCES += \
|
---|
50 | VBoxHostVersion.cpp \
|
---|
51 | VBoxLA.cpp
|
---|
52 | endif
|
---|
53 | ifdef VBOX_WITH_SHARED_FOLDERS
|
---|
54 | VBoxTray_DEFS += VBOX_WITH_SHARED_FOLDERS
|
---|
55 | VBoxTray_SOURCES += \
|
---|
56 | VBoxSharedFolders.cpp
|
---|
57 | VBoxTray_LIBS.win += \
|
---|
58 | mpr.lib
|
---|
59 | endif
|
---|
60 | ifdef VBOX_WITH_MMR
|
---|
61 | VBoxTray_DEFS += VBOX_WITH_MMR
|
---|
62 | VBoxTray_SOURCES += \
|
---|
63 | VBoxMMR.cpp
|
---|
64 | endif
|
---|
65 |
|
---|
66 | ifdef VBOX_WITH_WDDM
|
---|
67 | VBoxTray_DEFS += VBOX_WITH_WDDM
|
---|
68 | # VBoxTray_DEFS += LOG_ENABLED
|
---|
69 | endif
|
---|
70 |
|
---|
71 | # VBoxTray.cpp uses VBOX_SVN_REV.
|
---|
72 | VBoxTray.cpp_DEFS += VBOX_SVN_REV=$(VBOX_SVN_REV)
|
---|
73 | VBoxTray.cpp_DEPS = $(VBOX_SVN_REV_KMK)
|
---|
74 |
|
---|
75 | # The icon location is configurable.
|
---|
76 | VBoxTray.rc_INCS = $(VBoxTray_0_OUTDIR)
|
---|
77 | VBoxTray.rc_DEPS = $(VBoxTray_0_OUTDIR)/VBoxTray-icon.rc
|
---|
78 | VBoxTray.rc_CLEAN = $(VBoxTray_0_OUTDIR)/VBoxTray-icon.rc
|
---|
79 |
|
---|
80 | # Icon include file.
|
---|
81 | $$(VBoxTray_0_OUTDIR)/VBoxTray-icon.rc: $(VBOX_WINDOWS_ADDITIONS_ICON_FILE) $$(VBoxTray_DEFPATH)/Makefile.kmk | $$(dir $$@)
|
---|
82 | $(RM) -f $@
|
---|
83 | $(APPEND) $@ 'IDI_VIRTUALBOX ICON DISCARDABLE "$(subst /,\\,$(VBOX_WINDOWS_ADDITIONS_ICON_FILE))"'
|
---|
84 |
|
---|
85 | include $(FILE_KBUILD_SUB_FOOTER)
|
---|
86 |
|
---|