VirtualBox

source: vbox/trunk/src/VBox/HostServices/SharedClipboard/testcase/Makefile.kmk@ 94504

Last change on this file since 94504 was 93495, checked in by vboxsync, 3 years ago

Shared Clipboard: Implemented backend callbacks and a dedicated backend context, together with a new testcase which mocks HGCM to also test the guest-side clipboard code (disabled by default for now). Work in progress, only tested on Linux so far.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 4.3 KB
Line 
1# $Id: Makefile.kmk 93495 2022-01-31 13:08:33Z vboxsync $
2## @file
3# Sub-Makefile for the Shared Clipboard Host Service testcases.
4#
5
6#
7# Copyright (C) 2011-2022 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
21if defined(VBOX_WITH_TESTCASES) && !defined(VBOX_ONLY_ADDITIONS) && !defined(VBOX_ONLY_SDK)
22
23 if 0
24 #
25 # Testcase which mocks HGCM to also test the VbglR3-side of Shared Clipboard.
26 #
27 # Goal is to use and test as much guest side code as possible as a self-contained
28 # binary on the host here.
29 #
30 # Note: No #ifdef TESTCASE hacks or similar allowed, has to run
31 # without #ifdef modifications to the core code!
32 #
33 PROGRAMS += tstClipboardMockHGCM
34 tstClipboardMockHGCM_TEMPLATE = VBOXR3TSTEXE
35 tstClipboardMockHGCM_DEFS = VBOX_WITH_HGCM VBOX_WITH_SHARED_CLIPBOARD
36 tstClipboardMockHGCM_SOURCES = \
37 ../VBoxSharedClipboardSvc.cpp \
38 $(PATH_ROOT)/src/VBox/GuestHost/SharedClipboard/clipboard-common.cpp \
39 $(PATH_ROOT)/src/VBox/Additions/common/VBoxGuest/lib/VBoxGuestR3LibClipboard.cpp \
40 $(PATH_ROOT)/src/VBox/HostServices/common/message.cpp \
41 tstClipboardMockHGCM.cpp
42 tstClipboardMockHGCM_LIBS = $(LIB_RUNTIME)
43
44 if1of ($(KBUILD_TARGET), linux)
45 tstClipboardMockHGCM_SOURCES.linux += \
46 $(PATH_ROOT)/src/VBox/GuestHost/SharedClipboard/clipboard-x11.cpp \
47 ../VBoxSharedClipboardSvc-x11.cpp
48 tstClipboardMockHGCM_LIBPATH = \
49 $(VBOX_LIBPATH_X11)
50 tstClipboardMockHGCM_LIBS += \
51 Xt \
52 X11
53 endif
54
55 tstClipboardMockHGCM_SOURCES.darwin += ../VBoxSharedClipboardSvc-darwin.cpp
56 tstClipboardMockHGCM_SOURCES.win += ../VBoxSharedClipboardSvc-win.cpp
57
58 tstClipboardMockHGCM_CLEAN = $(tstClipboardMockHGCM_0_OUTDIR)/tstClipboardMockHGCM.run
59
60 if defined(VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS)
61 tstClipboardMockHGCM_DEFS += VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS
62 tstClipboardMockHGCM_SOURCES += \
63 ../VBoxSharedClipboardSvc-transfers.cpp \
64 $(PATH_ROOT)/src/VBox/GuestHost/SharedClipboard/clipboard-transfers.cpp
65 endif
66 endif
67
68 #
69 #
70 #
71 PROGRAMS += tstClipboardServiceHost
72 tstClipboardServiceHost_TEMPLATE = VBOXR3TSTEXE
73 tstClipboardServiceHost_DEFS = VBOX_WITH_HGCM UNIT_TEST
74 tstClipboardServiceHost_SOURCES = \
75 ../VBoxSharedClipboardSvc.cpp \
76 $(PATH_ROOT)/src/VBox/GuestHost/SharedClipboard/clipboard-common.cpp \
77 $(PATH_ROOT)/src/VBox/HostServices/common/message.cpp \
78 tstClipboardServiceHost.cpp
79 tstClipboardServiceHost_LIBS = $(LIB_RUNTIME)
80 tstClipboardServiceHost_CLEAN = $(tstClipboardServiceHost_0_OUTDIR)/tstClipboardServiceHost.run
81
82 if defined(VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS)
83 tstClipboardServiceHost_DEFS += VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS
84 tstClipboardServiceHost_SOURCES += \
85 ../VBoxSharedClipboardSvc-transfers.cpp \
86 $(PATH_ROOT)/src/VBox/GuestHost/SharedClipboard/clipboard-transfers.cpp
87 endif
88
89 #
90 #
91 #
92 PROGRAMS += tstClipboardServiceImpl
93 tstClipboardServiceImpl_TEMPLATE = VBOXR3TSTEXE
94 tstClipboardServiceImpl_DEFS = VBOX_WITH_HGCM UNIT_TEST
95 tstClipboardServiceImpl_SOURCES = \
96 ../VBoxSharedClipboardSvc.cpp \
97 $(PATH_ROOT)/src/VBox/GuestHost/SharedClipboard/clipboard-common.cpp \
98 $(PATH_ROOT)/src/VBox/HostServices/common/message.cpp \
99 tstClipboardServiceImpl.cpp
100 tstClipboardServiceImpl_SOURCES.win = \
101 $(PATH_ROOT)/src/VBox/GuestHost/SharedClipboard/clipboard-win.cpp
102 tstClipboardServiceImpl_LIBS = $(LIB_RUNTIME)
103 tstClipboardServiceImpl_CLEAN = $(tstClipboardServiceImpl_0_OUTDIR)/tstClipboardServiceImpl.run
104
105 if defined(VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS)
106 #
107 #
108 #
109 PROGRAMS += tstClipboardTransfers
110 tstClipboardTransfers_TEMPLATE = VBOXR3TSTEXE
111 tstClipboardTransfers_DEFS = VBOX_WITH_HGCM UNIT_TEST VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS
112 tstClipboardTransfers_SOURCES = \
113 $(PATH_ROOT)/src/VBox/GuestHost/SharedClipboard/clipboard-common.cpp \
114 $(PATH_ROOT)/src/VBox/GuestHost/SharedClipboard/clipboard-transfers.cpp \
115 tstClipboardTransfers.cpp
116 endif
117endif
118
119include $(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