1 | # $Id: Makefile.kmk 96407 2022-08-22 17:43:14Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Sub-Makefile for VBoxTray.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2006-2022 Oracle and/or its affiliates.
|
---|
8 | #
|
---|
9 | # This file is part of VirtualBox base platform packages, as
|
---|
10 | # available from https://www.virtualbox.org.
|
---|
11 | #
|
---|
12 | # This program is free software; you can redistribute it and/or
|
---|
13 | # modify it under the terms of the GNU General Public License
|
---|
14 | # as published by the Free Software Foundation, in version 3 of the
|
---|
15 | # License.
|
---|
16 | #
|
---|
17 | # This program is distributed in the hope that it will be useful, but
|
---|
18 | # WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
19 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
---|
20 | # General Public License for more details.
|
---|
21 | #
|
---|
22 | # You should have received a copy of the GNU General Public License
|
---|
23 | # along with this program; if not, see <https://www.gnu.org/licenses>.
|
---|
24 | #
|
---|
25 | # SPDX-License-Identifier: GPL-3.0-only
|
---|
26 | #
|
---|
27 |
|
---|
28 | SUB_DEPTH = ../../../../..
|
---|
29 | include $(KBUILD_PATH)/subheader.kmk
|
---|
30 |
|
---|
31 | PROGRAMS += VBoxTray
|
---|
32 | VBoxTray_TEMPLATE = VBoxGuestR3Exe
|
---|
33 | ifdef VBOX_SIGN_ADDITIONS # (See the parent makefile.)
|
---|
34 | VBoxTray_INSTTYPE = none
|
---|
35 | VBoxTray_DEBUG_INSTTYPE = both
|
---|
36 | endif
|
---|
37 | VBoxTray_SDKS = ReorderCompilerIncs $(VBOX_WINDDK_GST)
|
---|
38 | ifdef VBOX_WITH_AUTOMATIC_DEFS_QUOTING
|
---|
39 | VBoxTray_DEFS := VBOX_WITH_HGCM VBOX_BUILD_TARGET="$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)"
|
---|
40 | else
|
---|
41 | VBoxTray_DEFS := VBOX_WITH_HGCM VBOX_BUILD_TARGET=\"$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)\"
|
---|
42 | endif
|
---|
43 | VBoxTray_DEFS += LOG_ENABLED
|
---|
44 | VBoxTray_LDFLAGS = -SubSystem:Windows
|
---|
45 | VBoxTray_INCS = \
|
---|
46 | ../include \
|
---|
47 | $(PATH_ROOT)/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm/shared \
|
---|
48 | $(VBOX_GRAPHICS_INCS)
|
---|
49 | VBoxTray_SOURCES = \
|
---|
50 | VBoxTray.cpp \
|
---|
51 | VBoxCaps.cpp \
|
---|
52 | VBoxConsole.cpp \
|
---|
53 | VBoxDesktopTracking.cpp \
|
---|
54 | VBoxDispIf.cpp \
|
---|
55 | VBoxSeamless.cpp \
|
---|
56 | VBoxSessionTracking.cpp \
|
---|
57 | VBoxDisplay.cpp \
|
---|
58 | VBoxVRDP.cpp \
|
---|
59 | VBoxIPC.cpp \
|
---|
60 | VBoxHelpers.cpp
|
---|
61 | VBoxTray_USES.win = vboximportchecker
|
---|
62 | VBoxTray_VBOX_IMPORT_CHECKER.win.x86 = nt4 #nt350
|
---|
63 | VBoxTray_VBOX_IMPORT_CHECKER.win.amd64 = xp64
|
---|
64 | ifdef VBOX_WITH_SHARED_CLIPBOARD
|
---|
65 | VBoxTray_DEFS += \
|
---|
66 | $(if $(VBOX_WITH_SHARED_CLIPBOARD),VBOX_WITH_SHARED_CLIPBOARD,) \
|
---|
67 | $(if $(VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS),VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS,)
|
---|
68 | VBoxTray_SOURCES += \
|
---|
69 | VBoxClipboard.cpp \
|
---|
70 | $(PATH_ROOT)/src/VBox/GuestHost/SharedClipboard/clipboard-win.cpp \
|
---|
71 | $(PATH_ROOT)/src/VBox/GuestHost/SharedClipboard/clipboard-common.cpp
|
---|
72 | ifdef VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS
|
---|
73 | VBoxTray_DEFS += VBOX_WITH_SHARED_CLIPBOARD_GUEST
|
---|
74 | VBoxTray_SOURCES += \
|
---|
75 | $(PATH_ROOT)/src/VBox/GuestHost/SharedClipboard/ClipboardDataObjectImpl-win.cpp \
|
---|
76 | $(PATH_ROOT)/src/VBox/GuestHost/SharedClipboard/ClipboardEnumFormatEtcImpl-win.cpp \
|
---|
77 | $(PATH_ROOT)/src/VBox/GuestHost/SharedClipboard/ClipboardPath.cpp \
|
---|
78 | $(PATH_ROOT)/src/VBox/GuestHost/SharedClipboard/ClipboardStreamImpl-win.cpp \
|
---|
79 | $(PATH_ROOT)/src/VBox/GuestHost/SharedClipboard/clipboard-transfers.cpp
|
---|
80 | endif
|
---|
81 | endif
|
---|
82 | ifdef VBOX_WITH_DRAG_AND_DROP
|
---|
83 | VBoxTray_DEFS += \
|
---|
84 | VBOX_WITH_DRAG_AND_DROP \
|
---|
85 | $(if $(VBOX_WITH_DRAG_AND_DROP_GH),VBOX_WITH_DRAG_AND_DROP_GH,)
|
---|
86 | VBoxTray_SOURCES += \
|
---|
87 | VBoxDnD.cpp \
|
---|
88 | VBoxDnDDataObject.cpp \
|
---|
89 | VBoxDnDEnumFormat.cpp \
|
---|
90 | VBoxDnDDropSource.cpp \
|
---|
91 | VBoxDnDDropTarget.cpp
|
---|
92 | VBoxTray_LIBS += \
|
---|
93 | $(PATH_STAGE_LIB)/additions/VBoxDnDGuestR3Lib$(VBOX_SUFF_LIB)
|
---|
94 | endif
|
---|
95 | ifdef VBOX_WITH_GUEST_PROPS
|
---|
96 | VBoxTray_DEFS += _WIN32_IE=0x500 VBOX_WITH_GUEST_PROPS
|
---|
97 | VBoxTray_SOURCES += \
|
---|
98 | VBoxHostVersion.cpp \
|
---|
99 | VBoxLA.cpp
|
---|
100 | endif
|
---|
101 | ifdef VBOX_WITH_WDDM
|
---|
102 | VBoxTray_DEFS += VBOX_WITH_WDDM
|
---|
103 | VBoxTray_SOURCES += $(PATH_ROOT)/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm/shared/VBoxDispKmt.cpp
|
---|
104 | endif
|
---|
105 |
|
---|
106 | # VBoxTray.cpp uses VBOX_SVN_REV.
|
---|
107 | VBoxTray.cpp_DEFS += VBOX_SVN_REV=$(VBOX_SVN_REV)
|
---|
108 | VBoxTray.cpp_DEPS = $(VBOX_SVN_REV_KMK)
|
---|
109 |
|
---|
110 | # Version info / description + icon.
|
---|
111 | $(call VBOX_SET_VER_INFO_EXE,VBoxTray,VirtualBox Guest Additions Tray Application,$(VBOX_WINDOWS_ADDITIONS_ICON_FILE))
|
---|
112 |
|
---|
113 | include $(FILE_KBUILD_SUB_FOOTER)
|
---|