VirtualBox

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

Last change on this file since 86297 was 84540, checked in by vboxsync, 5 years ago

Reverting r138262 (i.e. restoring VBOX_WITH_AUTOMATIC_DEFS_QUOTING). Corrected the conditions for it's definition instead. bugref:8489

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.5 KB
Line 
1# $Id: Makefile.kmk 84540 2020-05-26 15:06:13Z vboxsync $
2## @file
3# Sub-Makefile for VBoxTray.
4#
5
6#
7# Copyright (C) 2006-2020 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
18SUB_DEPTH = ../../../../..
19include $(KBUILD_PATH)/subheader.kmk
20
21PROGRAMS += VBoxTray
22VBoxTray_TEMPLATE = VBoxGuestR3Exe
23ifdef VBOX_SIGN_ADDITIONS # (See the parent makefile.)
24 VBoxTray_INSTTYPE = none
25 VBoxTray_DEBUG_INSTTYPE = both
26endif
27VBoxTray_SDKS = ReorderCompilerIncs $(VBOX_WINDDK_GST)
28ifdef VBOX_WITH_AUTOMATIC_DEFS_QUOTING
29 VBoxTray_DEFS := VBOX_WITH_HGCM VBOX_BUILD_TARGET="$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)"
30else
31 VBoxTray_DEFS := VBOX_WITH_HGCM VBOX_BUILD_TARGET=\"$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)\"
32endif
33VBoxTray_INCS = \
34 ../include \
35 $(PATH_ROOT)/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm/shared \
36 $(VBOX_GRAPHICS_INCS)
37VBoxTray_SOURCES = \
38 VBoxTray.cpp \
39 VBoxDispIf.cpp \
40 VBoxSeamless.cpp \
41 VBoxDisplay.cpp \
42 VBoxVRDP.cpp \
43 VBoxIPC.cpp \
44 VBoxHelpers.cpp
45VBoxTray_USES.win = vboximportchecker
46VBoxTray_VBOX_IMPORT_CHECKER.win.x86 = nt4 #nt350
47VBoxTray_VBOX_IMPORT_CHECKER.win.amd64 = xp64
48ifdef VBOX_WITH_SHARED_CLIPBOARD
49 VBoxTray_DEFS += \
50 $(if $(VBOX_WITH_SHARED_CLIPBOARD),VBOX_WITH_SHARED_CLIPBOARD,) \
51 $(if $(VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS),VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS,)
52 VBoxTray_SOURCES += \
53 VBoxClipboard.cpp \
54 $(PATH_ROOT)/src/VBox/GuestHost/SharedClipboard/clipboard-win.cpp \
55 $(PATH_ROOT)/src/VBox/GuestHost/SharedClipboard/clipboard-common.cpp
56 ifdef VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS
57 VBoxTray_DEFS += VBOX_WITH_SHARED_CLIPBOARD_GUEST
58 VBoxTray_SOURCES += \
59 $(PATH_ROOT)/src/VBox/GuestHost/SharedClipboard/ClipboardArea.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/ClipboardStreamImpl-win.cpp \
64 $(PATH_ROOT)/src/VBox/GuestHost/SharedClipboard/clipboard-transfers.cpp
65 endif
66endif
67ifdef VBOX_WITH_DRAG_AND_DROP
68 VBoxTray_DEFS += \
69 VBOX_WITH_DRAG_AND_DROP \
70 $(if $(VBOX_WITH_DRAG_AND_DROP_GH),VBOX_WITH_DRAG_AND_DROP_GH,)
71 VBoxTray_SOURCES += \
72 VBoxDnD.cpp \
73 VBoxDnDDataObject.cpp \
74 VBoxDnDEnumFormat.cpp \
75 VBoxDnDDropSource.cpp \
76 VBoxDnDDropTarget.cpp
77 VBoxTray_LIBS += \
78 $(PATH_STAGE_LIB)/additions/VBoxDnDGuestR3Lib$(VBOX_SUFF_LIB)
79endif
80ifdef VBOX_WITH_GUEST_PROPS
81 VBoxTray_DEFS += _WIN32_IE=0x500 VBOX_WITH_GUEST_PROPS
82 VBoxTray_SOURCES += \
83 VBoxHostVersion.cpp \
84 VBoxLA.cpp
85endif
86ifdef VBOX_WITH_WDDM
87 VBoxTray_DEFS += VBOX_WITH_WDDM
88 # VBoxTray_DEFS += LOG_ENABLED
89 VBoxTray_SOURCES += $(PATH_ROOT)/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm/shared/VBoxDispKmt.cpp
90endif
91
92# VBoxTray.cpp uses VBOX_SVN_REV.
93VBoxTray.cpp_DEFS += VBOX_SVN_REV=$(VBOX_SVN_REV)
94VBoxTray.cpp_DEPS = $(VBOX_SVN_REV_KMK)
95
96# Version info / description + icon.
97$(call VBOX_SET_VER_INFO_EXE,VBoxTray,VirtualBox Guest Additions Tray Application,$(VBOX_WINDOWS_ADDITIONS_ICON_FILE))
98
99include $(FILE_KBUILD_SUB_FOOTER)
100
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