1 | # $Id: Makefile.kmk 78809 2019-05-28 10:54:53Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Sub-Makefile for VBoxTray.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2006-2019 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 = \
|
---|
32 | ../include \
|
---|
33 | $(PATH_ROOT)/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm/shared \
|
---|
34 | $(VBOX_GRAPHICS_INCS)
|
---|
35 | VBoxTray_SOURCES = \
|
---|
36 | VBoxTray.cpp \
|
---|
37 | VBoxDispIf.cpp \
|
---|
38 | VBoxSeamless.cpp \
|
---|
39 | VBoxDisplay.cpp \
|
---|
40 | VBoxVRDP.cpp \
|
---|
41 | VBoxIPC.cpp \
|
---|
42 | VBoxHelpers.cpp \
|
---|
43 | VBoxTray.rc
|
---|
44 | ifndef VBOX_WITH_SHARED_CLIPBOARD_URI_LIST # !!! HACK ALERT !!! Fix this by using dynamic imports!
|
---|
45 | VBoxTray_USES.win = vboximportchecker
|
---|
46 | VBoxTray_VBOX_IMPORT_CHECKER.win.x86 = nt4 #nt350
|
---|
47 | VBoxTray_VBOX_IMPORT_CHECKER.win.amd64 = xp64
|
---|
48 | endif
|
---|
49 | ifdef VBOX_WITH_SHARED_CLIPBOARD
|
---|
50 | VBoxTray_DEFS += \
|
---|
51 | $(if $(VBOX_WITH_SHARED_CLIPBOARD),VBOX_WITH_SHARED_CLIPBOARD,) \
|
---|
52 | $(if $(VBOX_WITH_SHARED_CLIPBOARD_URI_LIST),VBOX_WITH_SHARED_CLIPBOARD_URI_LIST,)
|
---|
53 | VBoxTray_SOURCES += \
|
---|
54 | VBoxClipboard.cpp \
|
---|
55 | $(PATH_ROOT)/src/VBox/GuestHost/SharedClipboard/clipboard-win.cpp
|
---|
56 | ifdef VBOX_WITH_SHARED_CLIPBOARD_URI_LIST
|
---|
57 | VBoxTray_DEFS += VBOX_WITH_SHARED_CLIPBOARD_GUEST
|
---|
58 | VBoxTray_SOURCES += \
|
---|
59 | $(PATH_ROOT)/src/VBox/GuestHost/SharedClipboard/ClipboardCache.cpp \
|
---|
60 | $(PATH_ROOT)/src/VBox/GuestHost/SharedClipboard/ClipboardDataObjectImpl-win.cpp \
|
---|
61 | $(PATH_ROOT)/src/VBox/GuestHost/SharedClipboard/ClipboardEnumFormatEtcImpl-win.cpp \
|
---|
62 | $(PATH_ROOT)/src/VBox/GuestHost/SharedClipboard/ClipboardPath.cpp \
|
---|
63 | $(PATH_ROOT)/src/VBox/GuestHost/SharedClipboard/ClipboardProvider.cpp \
|
---|
64 | $(PATH_ROOT)/src/VBox/GuestHost/SharedClipboard/ClipboardProvider-VbglR3.cpp \
|
---|
65 | $(PATH_ROOT)/src/VBox/GuestHost/SharedClipboard/ClipboardStreamImpl-win.cpp \
|
---|
66 | $(PATH_ROOT)/src/VBox/GuestHost/SharedClipboard/ClipboardURIList.cpp \
|
---|
67 | $(PATH_ROOT)/src/VBox/GuestHost/SharedClipboard/ClipboardURIObject.cpp
|
---|
68 | endif
|
---|
69 | endif
|
---|
70 | ifdef VBOX_WITH_DRAG_AND_DROP
|
---|
71 | VBoxTray_DEFS += \
|
---|
72 | VBOX_WITH_DRAG_AND_DROP \
|
---|
73 | $(if $(VBOX_WITH_DRAG_AND_DROP_GH),VBOX_WITH_DRAG_AND_DROP_GH,)
|
---|
74 | VBoxTray_SOURCES += \
|
---|
75 | VBoxDnD.cpp \
|
---|
76 | VBoxDnDDataObject.cpp \
|
---|
77 | VBoxDnDEnumFormat.cpp \
|
---|
78 | VBoxDnDDropSource.cpp \
|
---|
79 | VBoxDnDDropTarget.cpp
|
---|
80 | VBoxTray_LIBS += \
|
---|
81 | $(PATH_STAGE_LIB)/additions/VBoxDnDGuestR3Lib$(VBOX_SUFF_LIB)
|
---|
82 | endif
|
---|
83 | ifdef VBOX_WITH_GUEST_PROPS
|
---|
84 | VBoxTray_DEFS += _WIN32_IE=0x500 VBOX_WITH_GUEST_PROPS
|
---|
85 | VBoxTray_SOURCES += \
|
---|
86 | VBoxHostVersion.cpp \
|
---|
87 | VBoxLA.cpp
|
---|
88 | endif
|
---|
89 | ifdef VBOX_WITH_WDDM
|
---|
90 | VBoxTray_DEFS += VBOX_WITH_WDDM
|
---|
91 | # VBoxTray_DEFS += LOG_ENABLED
|
---|
92 | VBoxTray_SOURCES += $(PATH_ROOT)/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm/shared/VBoxDispKmt.cpp
|
---|
93 | endif
|
---|
94 |
|
---|
95 | # VBoxTray.cpp uses VBOX_SVN_REV.
|
---|
96 | VBoxTray.cpp_DEFS += VBOX_SVN_REV=$(VBOX_SVN_REV)
|
---|
97 | VBoxTray.cpp_DEPS = $(VBOX_SVN_REV_KMK)
|
---|
98 |
|
---|
99 | # The icon location is configurable.
|
---|
100 | VBoxTray.rc_INCS = $(VBoxTray_0_OUTDIR)
|
---|
101 | VBoxTray.rc_DEPS = $(VBoxTray_0_OUTDIR)/VBoxTray-icon.rc
|
---|
102 | VBoxTray.rc_CLEAN = $(VBoxTray_0_OUTDIR)/VBoxTray-icon.rc
|
---|
103 |
|
---|
104 | # Icon include file.
|
---|
105 | $$(VBoxTray_0_OUTDIR)/VBoxTray-icon.rc: $(VBOX_WINDOWS_ADDITIONS_ICON_FILE) $$(VBoxTray_DEFPATH)/Makefile.kmk | $$(dir $$@)
|
---|
106 | $(RM) -f $@
|
---|
107 | $(APPEND) $@ 'IDI_VIRTUALBOX ICON DISCARDABLE "$(subst /,\\,$(VBOX_WINDOWS_ADDITIONS_ICON_FILE))"'
|
---|
108 |
|
---|
109 | include $(FILE_KBUILD_SUB_FOOTER)
|
---|
110 |
|
---|