1 | # $Id: Makefile.kmk 106061 2024-09-16 14:03:52Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Sub-Makefile for the Shared Clipboard Guest/Host testcases.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2011-2024 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 | if defined(VBOX_WITH_TESTCASES) && !defined(VBOX_ONLY_ADDITIONS) && !defined(VBOX_ONLY_SDK)
|
---|
32 | if1of ($(KBUILD_TARGET), freebsd linux netbsd openbsd solaris)
|
---|
33 |
|
---|
34 | PROGRAMS += tstClipboardGH-X11Smoke tstClipboardGH-X11
|
---|
35 | TESTING += \
|
---|
36 | $(tstClipboardGH-X11_0_OUTDIR)/tstClipboardGH-X11.run \
|
---|
37 | $(tstClipboardGH-X11_0_OUTDIR)/tstClipboardGH-X11Smoke.run
|
---|
38 |
|
---|
39 | tstClipboardGH-X11_TEMPLATE = VBoxR3TstExe
|
---|
40 | tstClipboardGH-X11_DEFS = VBOX_WITH_HGCM UNIT_TEST TESTCASE
|
---|
41 | tstClipboardGH-X11_SOURCES = \
|
---|
42 | tstClipboardGH-X11.cpp \
|
---|
43 | ../clipboard-x11.cpp \
|
---|
44 | ../clipboard-common.cpp
|
---|
45 | tstClipboardGH-X11_CXXFLAGS += -Wno-array-bounds
|
---|
46 | tstClipboardGH-X11_LIBS = X11 Xt
|
---|
47 | tstClipboardGH-X11_CLEAN = $(tstClipboardGH-X11_0_OUTDIR)/tstClipboardGH-X11.run
|
---|
48 |
|
---|
49 | tstClipboardGH-X11Smoke_TEMPLATE = VBoxR3TstExe
|
---|
50 | tstClipboardGH-X11Smoke_DEFS = VBOX_WITH_HGCM SMOKETEST
|
---|
51 | tstClipboardGH-X11Smoke_SOURCES = \
|
---|
52 | tstClipboardGH-X11Smoke.cpp \
|
---|
53 | ../clipboard-x11.cpp \
|
---|
54 | ../clipboard-common.cpp
|
---|
55 | tstClipboardGH-X11Smoke_LIBPATH = $(VBOX_LIBPATH_X11)
|
---|
56 | tstClipboardGH-X11Smoke_LIBS = X11 Xt
|
---|
57 | tstClipboardGH-X11Smoke_CLEAN = $(tstClipboardGH-X11Smoke_0_OUTDIR)/tstClipboardGH-X11Smoke.run
|
---|
58 |
|
---|
59 | $$(tstClipboardGH-X11_0_OUTDIR)/tstClipboardGH-X11.run: $$(tstClipboardGH-X11_1_STAGE_TARGET)
|
---|
60 | export VBOX_LOG_DEST=nofile; $(tstClipboardGH-X11_1_STAGE_TARGET) quiet
|
---|
61 | $(QUIET)$(APPEND) -t "$@" "done"
|
---|
62 |
|
---|
63 | $$(tstClipboardGH-X11Smoke_0_OUTDIR)/tstClipboardGH-X11Smoke.run: $$(tstClipboardGH-X11Smoke_1_STAGE_TARGET)
|
---|
64 | export VBOX_LOG_DEST=nofile; $(tstClipboardGH-X11Smoke_1_STAGE_TARGET) quiet
|
---|
65 | $(QUIET)$(APPEND) -t "$@" "done"
|
---|
66 |
|
---|
67 | if defined(VBOX_WITH_QTGUI)
|
---|
68 | include $(PATH_SUB_CURRENT)/tstClipboardQt/Makefile.kmk
|
---|
69 | endif
|
---|
70 |
|
---|
71 | endif
|
---|
72 |
|
---|
73 | ifdef VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS
|
---|
74 | if defined(VBOX_WITH_LIBCURL) && defined(VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS_HTTP)
|
---|
75 | PROGRAMS += tstClipboardHttpServer
|
---|
76 | tstClipboardHttpServer_TEMPLATE = VBoxR3TstExe
|
---|
77 | tstClipboardHttpServer_SOURCES = \
|
---|
78 | tstClipboardHttpServer.cpp \
|
---|
79 | ../clipboard-common.cpp \
|
---|
80 | ../clipboard-transfers.cpp \
|
---|
81 | ../clipboard-transfers-http.cpp \
|
---|
82 | ../clipboard-transfers-provider-local.cpp
|
---|
83 | tstClipboardHttpServer_DEFS += VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS_HTTP
|
---|
84 |
|
---|
85 | if1of ($(KBUILD_TARGET), linux solaris)
|
---|
86 | # Derived executable which also includes X11 dependencies. Might not run on pure server installations where X isn't installed.
|
---|
87 | PROGRAMS += tstClipboardHttpServerX11
|
---|
88 | tstClipboardHttpServerX11_TEMPLATE = VBoxR3TstExe
|
---|
89 | tstClipboardHttpServerX11_EXTENDS = tstClipboardHttpServer
|
---|
90 | tstClipboardHttpServerX11_EXTENDS_BY = appending
|
---|
91 | tstClipboardHttpServerX11_NAME = tstClipboardHttpServerX11
|
---|
92 | tstClipboardHttpServerX11_DEFS += TESTCASE_WITH_X11
|
---|
93 | tstClipboardHttpServerX11_SOURCES += \
|
---|
94 | ../clipboard-x11.cpp
|
---|
95 | tstClipboardHttpServerX11_LIBS += \
|
---|
96 | Xt \
|
---|
97 | X11
|
---|
98 | endif
|
---|
99 |
|
---|
100 | endif
|
---|
101 | endif
|
---|
102 |
|
---|
103 | endif
|
---|
104 |
|
---|
105 | include $(FILE_KBUILD_SUB_FOOTER)
|
---|
106 |
|
---|