1 | # $Id: Makefile.kmk 98133 2023-01-19 11:40:07Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Sub-Makefile for the shared DnD code for both, host and guest.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2014-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 | ifdef VBOX_WITH_TESTCASES
|
---|
32 | include $(PATH_SUB_CURRENT)/testcase/Makefile.kmk
|
---|
33 | endif
|
---|
34 |
|
---|
35 | VBOX_DND_GUESTHOST_FILES := \
|
---|
36 | DnDDroppedFiles.cpp \
|
---|
37 | DnDMIME.cpp \
|
---|
38 | DnDPath.cpp \
|
---|
39 | DnDTransferObject.cpp \
|
---|
40 | DnDTransferList.cpp \
|
---|
41 | DnDUtils.cpp
|
---|
42 |
|
---|
43 | #
|
---|
44 | # DnDGuestR3Lib - For tools on the guest side,
|
---|
45 | # e.g. VBoxClient/VBoxTray.
|
---|
46 | #
|
---|
47 | ifdef VBOX_WITH_ADDITIONS
|
---|
48 | LIBRARIES += VBoxDnDGuestR3Lib
|
---|
49 | VBoxDnDGuestR3Lib_TEMPLATE = VBOXGUESTR3LIB
|
---|
50 | VBoxDnDGuestR3Lib_SOURCES = $(VBOX_DND_GUESTHOST_FILES)
|
---|
51 |
|
---|
52 | # LIBRARIES.win.amd64 += VBoxDnDGuestR3Lib-x86
|
---|
53 | # VBoxDnDGuestR3Lib-x86_EXTENDS := VBoxDnDGuestR3Lib
|
---|
54 | # VBoxDnDGuestR3Lib-x86_BLD_TRG_ARCH := x86
|
---|
55 | endif
|
---|
56 |
|
---|
57 | #
|
---|
58 | # DnDHostR3Lib - For the host side, e.g. Main
|
---|
59 | # and frontends.
|
---|
60 | #
|
---|
61 | LIBRARIES += VBoxDnDHostR3Lib
|
---|
62 | VBoxDnDHostR3Lib_TEMPLATE = VBoxR3Dll
|
---|
63 | VBoxDnDHostR3Lib_SOURCES = $(VBOX_DND_GUESTHOST_FILES)
|
---|
64 |
|
---|
65 | # Include the common host services code.
|
---|
66 | VBOX_PATH_HOSTSERVICES_COMMON = $(PATH_ROOT)/src/VBox/HostServices/common
|
---|
67 | VBoxDnDHostR3Lib_SOURCES += \
|
---|
68 | $(VBOX_PATH_HOSTSERVICES_COMMON)/client.cpp \
|
---|
69 | $(VBOX_PATH_HOSTSERVICES_COMMON)/message.cpp
|
---|
70 |
|
---|
71 | include $(FILE_KBUILD_SUB_FOOTER)
|
---|