1 | # $Id: Makefile.kmk 35385 2010-12-30 16:35:31Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Sub-Makefile for VBoxTray.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2006-2010 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_NOINST = true
|
---|
25 | endif
|
---|
26 | VBoxTray_DEFS = VBOX_WITH_HGCM LOG_TO_BACKDOOR
|
---|
27 | VBoxTray_INCS = ../include
|
---|
28 | VBoxTray_SOURCES = \
|
---|
29 | VBoxTray.cpp \
|
---|
30 | VBoxDispIf.cpp \
|
---|
31 | VBoxSeamless.cpp \
|
---|
32 | VBoxClipboard.cpp \
|
---|
33 | VBoxDisplay.cpp \
|
---|
34 | VBoxVRDP.cpp \
|
---|
35 | VBoxRestore.cpp \
|
---|
36 | VBoxIPC.cpp \
|
---|
37 | VBoxHelpers.cpp \
|
---|
38 | VBoxTray.rc
|
---|
39 | ifdef VBOX_WITH_GUEST_PROPS
|
---|
40 | VBoxTray_DEFS += _WIN32_IE=0x500 VBOX_WITH_GUEST_PROPS
|
---|
41 | VBoxTray_SOURCES += \
|
---|
42 | VBoxHostVersion.cpp
|
---|
43 | endif
|
---|
44 | ifdef VBOX_WITH_SHARED_FOLDERS
|
---|
45 | VBoxTray_DEFS += VBOX_WITH_SHARED_FOLDERS
|
---|
46 | VBoxTray_SOURCES += \
|
---|
47 | VBoxSharedFolders.cpp
|
---|
48 | VBoxTray_LIBS.win += \
|
---|
49 | mpr.lib
|
---|
50 | endif
|
---|
51 |
|
---|
52 | VBoxTray_LIBS = \
|
---|
53 | $(VBOX_LIB_IPRT_GUEST_R3) \
|
---|
54 | $(VBOX_LIB_VBGL_R3)
|
---|
55 |
|
---|
56 | ifdef VBOX_WITH_WDDM
|
---|
57 | VBoxTray_DEFS += VBOX_WITH_WDDM
|
---|
58 | # VBoxTray_DEFS += LOG_ENABLED
|
---|
59 | # we need only includes for PFND3DKMT stuff as all we link dynamicaly to it
|
---|
60 | include $(KBUILD_PATH)/sdks/WINDDK.kmk
|
---|
61 | VBoxTray_INCS += $(PATH_SDK_WINDDK_INC_API) $(PATH_SDK_WINDDK_INC_DDK)
|
---|
62 | endif
|
---|
63 | # VBoxTray.cpp uses VBOX_SVN_REV.
|
---|
64 | VBoxTray.cpp_DEFS += VBOX_SVN_REV=$(VBOX_SVN_REV)
|
---|
65 | VBoxTray.cpp_DEPS = $(VBOX_SVN_REV_KMK)
|
---|
66 |
|
---|
67 | # The icon location is configurable.
|
---|
68 | VBoxTray.rc_INCS = $(VBoxTray_0_OUTDIR)
|
---|
69 | VBoxTray.rc_DEPS = $(VBoxTray_0_OUTDIR)/VBoxTray-icon.rc
|
---|
70 | VBoxTray.rc_CLEAN = $(VBoxTray_0_OUTDIR)/VBoxTray-icon.rc
|
---|
71 |
|
---|
72 | # Icon include file.
|
---|
73 | $$(VBoxTray_0_OUTDIR)/VBoxTray-icon.rc: $(VBOX_WINDOWS_ADDITIONS_ICON_FILE) $$(VBoxTray_DEFPATH)/Makefile.kmk | $$(dir $$@)
|
---|
74 | $(RM) -f $@
|
---|
75 | $(APPEND) $@ 'IDI_VIRTUALBOX ICON DISCARDABLE "$(subst /,\\,$(VBOX_WINDOWS_ADDITIONS_ICON_FILE))"'
|
---|
76 |
|
---|
77 | include $(KBUILD_PATH)/subfooter.kmk
|
---|
78 |
|
---|