VirtualBox

source: vbox/trunk/src/VBox/Additions/WINNT/VBoxTray/Makefile.kmk@ 100541

Last change on this file since 100541 was 99965, checked in by vboxsync, 19 months ago

Shared Clipboard: Moved code for handling local filesystems with transfers into an own provider interface implementation. This cleans up the generic code a lot [build fixes]. bugref:9437

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 4.0 KB
Line 
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
28SUB_DEPTH = ../../../../..
29include $(KBUILD_PATH)/subheader.kmk
30
31PROGRAMS += VBoxTray
32VBoxTray_TEMPLATE = VBoxGuestR3Exe
33if defined(VBOX_SIGNING_MODE) && defined(VBOX_SIGN_ADDITIONS) # (See the parent makefile.)
34 VBoxTray_INSTTYPE := none
35 VBoxTray_DEBUG_INSTTYPE := both
36endif
37VBoxTray_SDKS = ReorderCompilerIncs $(VBOX_WINDDK_GST)
38ifdef VBOX_WITH_AUTOMATIC_DEFS_QUOTING
39 VBoxTray_DEFS := VBOX_WITH_HGCM VBOX_BUILD_TARGET="$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)"
40else
41 VBoxTray_DEFS := VBOX_WITH_HGCM VBOX_BUILD_TARGET=\"$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)\"
42endif
43VBoxTray_DEFS += LOG_ENABLED
44VBoxTray_LDFLAGS = -SubSystem:Windows
45VBoxTray_INCS = \
46 ../include \
47 $(PATH_ROOT)/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm/shared \
48 $(VBOX_GRAPHICS_INCS)
49VBoxTray_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
61VBoxTray_USES.win = vboximportchecker
62VBoxTray_VBOX_IMPORT_CHECKER.win.x86 = nt4 #nt350
63VBoxTray_VBOX_IMPORT_CHECKER.win.amd64 = xp64
64ifdef 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
82endif
83ifdef 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)
95endif
96ifdef VBOX_WITH_GUEST_PROPS
97 VBoxTray_DEFS += _WIN32_IE=0x500 VBOX_WITH_GUEST_PROPS
98 VBoxTray_SOURCES += \
99 VBoxHostVersion.cpp \
100 VBoxLA.cpp
101endif
102ifdef 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
105endif
106
107# VBoxTray.cpp uses VBOX_SVN_REV.
108VBoxTray.cpp_DEFS += VBOX_SVN_REV=$(VBOX_SVN_REV)
109VBoxTray.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
114include $(FILE_KBUILD_SUB_FOOTER)
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette