VirtualBox

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

Last change on this file since 96686 was 96407, checked in by vboxsync, 2 years ago

scm copyright and license note update

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.8 KB
Line 
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
28SUB_DEPTH = ../../../../..
29include $(KBUILD_PATH)/subheader.kmk
30
31PROGRAMS += VBoxTray
32VBoxTray_TEMPLATE = VBoxGuestR3Exe
33ifdef 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 endif
81endif
82ifdef 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)
94endif
95ifdef VBOX_WITH_GUEST_PROPS
96 VBoxTray_DEFS += _WIN32_IE=0x500 VBOX_WITH_GUEST_PROPS
97 VBoxTray_SOURCES += \
98 VBoxHostVersion.cpp \
99 VBoxLA.cpp
100endif
101ifdef 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
104endif
105
106# VBoxTray.cpp uses VBOX_SVN_REV.
107VBoxTray.cpp_DEFS += VBOX_SVN_REV=$(VBOX_SVN_REV)
108VBoxTray.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
113include $(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