1 | # $Id: Makefile.kmk 96407 2022-08-22 17:43:14Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Sub-Makefile for the shared DnD code for both, host and guest.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2014-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 |
|
---|
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_DEFS =
|
---|
51 | VBoxDnDGuestR3Lib_SOURCES = $(VBOX_DND_GUESTHOST_FILES)
|
---|
52 |
|
---|
53 | # LIBRARIES.win.amd64 += VBoxDnDGuestR3Lib-x86
|
---|
54 | # VBoxDnDGuestR3Lib-x86_EXTENDS := VBoxDnDGuestR3Lib
|
---|
55 | # VBoxDnDGuestR3Lib-x86_BLD_TRG_ARCH := x86
|
---|
56 | endif
|
---|
57 |
|
---|
58 | #
|
---|
59 | # DnDHostR3Lib - For the host side, e.g. Main
|
---|
60 | # and frontends.
|
---|
61 | #
|
---|
62 | LIBRARIES += VBoxDnDHostR3Lib
|
---|
63 | VBoxDnDHostR3Lib_TEMPLATE = VBOXR3
|
---|
64 | VBoxDnDHostR3Lib_DEFS =
|
---|
65 | VBoxDnDHostR3Lib_SOURCES = $(VBOX_DND_GUESTHOST_FILES)
|
---|
66 |
|
---|
67 | # Include the common host services code.
|
---|
68 | VBOX_PATH_HOSTSERVICES_COMMON = $(PATH_ROOT)/src/VBox/HostServices/common
|
---|
69 | VBoxDnDHostR3Lib_SOURCES += \
|
---|
70 | $(VBOX_PATH_HOSTSERVICES_COMMON)/client.cpp \
|
---|
71 | $(VBOX_PATH_HOSTSERVICES_COMMON)/message.cpp
|
---|
72 |
|
---|
73 | include $(FILE_KBUILD_SUB_FOOTER)
|
---|