1 | # $Id: Makefile.kmk 99965 2023-05-25 08:28:24Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Sub-Makefile for VBoxTray.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2006-2023 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 | if defined(VBOX_SIGNING_MODE) && defined(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 | $(PATH_ROOT)/src/VBox/GuestHost/SharedClipboard/clipboard-transfers-provider-local.cpp
|
---|
81 | endif
|
---|
82 | endif
|
---|
83 | ifdef VBOX_WITH_DRAG_AND_DROP
|
---|
84 | VBoxTray_DEFS += \
|
---|
85 | VBOX_WITH_DRAG_AND_DROP \
|
---|
86 | $(if $(VBOX_WITH_DRAG_AND_DROP_GH),VBOX_WITH_DRAG_AND_DROP_GH,)
|
---|
87 | VBoxTray_SOURCES += \
|
---|
88 | VBoxDnD.cpp \
|
---|
89 | VBoxDnDDataObject.cpp \
|
---|
90 | VBoxDnDEnumFormat.cpp \
|
---|
91 | VBoxDnDDropSource.cpp \
|
---|
92 | VBoxDnDDropTarget.cpp
|
---|
93 | VBoxTray_LIBS += \
|
---|
94 | $(PATH_STAGE_LIB)/additions/VBoxDnDGuestR3Lib$(VBOX_SUFF_LIB)
|
---|
95 | endif
|
---|
96 | ifdef VBOX_WITH_GUEST_PROPS
|
---|
97 | VBoxTray_DEFS += _WIN32_IE=0x500 VBOX_WITH_GUEST_PROPS
|
---|
98 | VBoxTray_SOURCES += \
|
---|
99 | VBoxHostVersion.cpp \
|
---|
100 | VBoxLA.cpp
|
---|
101 | endif
|
---|
102 | ifdef VBOX_WITH_WDDM
|
---|
103 | VBoxTray_DEFS += VBOX_WITH_WDDM
|
---|
104 | VBoxTray_SOURCES += $(PATH_ROOT)/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm/shared/VBoxDispKmt.cpp
|
---|
105 | endif
|
---|
106 |
|
---|
107 | # VBoxTray.cpp uses VBOX_SVN_REV.
|
---|
108 | VBoxTray.cpp_DEFS += VBOX_SVN_REV=$(VBOX_SVN_REV)
|
---|
109 | VBoxTray.cpp_DEPS = $(VBOX_SVN_REV_KMK)
|
---|
110 |
|
---|
111 | # Version info / description + icon.
|
---|
112 | $(call VBOX_SET_VER_INFO_EXE,VBoxTray,VirtualBox Guest Additions Tray Application,$(VBOX_WINDOWS_ADDITIONS_ICON_FILE))
|
---|
113 |
|
---|
114 | include $(FILE_KBUILD_SUB_FOOTER)
|
---|