VirtualBox

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

Last change on this file since 78671 was 78648, checked in by vboxsync, 6 years ago

Shared Clipboard/URI: Update.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.7 KB
Line 
1# $Id: Makefile.kmk 78648 2019-05-22 09:30:34Z vboxsync $
2## @file
3# Sub-Makefile for the Shared Clipboard Host Service.
4#
5
6#
7# Copyright (C) 2006-2019 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
21# Include sub-makefile(s).
22include $(PATH_SUB_CURRENT)/testcase/Makefile.kmk
23
24#
25# The shared folder service DLL.
26#
27DLLS += VBoxSharedClipboard
28VBoxSharedClipboard_TEMPLATE = VBOXR3
29VBoxSharedClipboard_DEFS = \
30 VBOX_WITH_HGCM \
31 $(if $(VBOX_WITH_SHARED_CLIPBOARD_URI_LIST),VBOX_WITH_SHARED_CLIPBOARD_URI_LIST,)
32VBoxSharedClipboard_INCS.win = \
33 $(VBOX_PATH_SDK)
34
35VBoxSharedClipboard_SOURCES = \
36 VBoxSharedClipboardSvc.cpp
37VBoxSharedClipboard_SOURCES.win = \
38 VBoxSharedClipboardSvc-win.cpp \
39 $(PATH_ROOT)/src/VBox/GuestHost/SharedClipboard/clipboard-win.cpp \
40 VBoxSharedClipboardSvc.rc
41VBoxSharedClipboard_SOURCES.darwin = \
42 VBoxSharedClipboardSvc-darwin.cpp \
43 $(PATH_ROOT)/src/VBox/GuestHost/SharedClipboard/clipboard-common.cpp \
44 darwin-pasteboard.cpp
45ifdef VBOX_WITH_SHARED_CLIPBOARD_URI_LIST
46 VBoxSharedClipboard_SOURCES += \
47 VBoxSharedClipboardSvc-uri.cpp \
48 VBoxSharedClipboardSvc-utils.cpp \
49 $(PATH_ROOT)/src/VBox/GuestHost/SharedClipboard/ClipboardCache.cpp \
50 $(PATH_ROOT)/src/VBox/GuestHost/SharedClipboard/ClipboardMetaData.cpp \
51 $(PATH_ROOT)/src/VBox/GuestHost/SharedClipboard/ClipboardPath.cpp \
52 $(PATH_ROOT)/src/VBox/GuestHost/SharedClipboard/ClipboardURIList.cpp \
53 $(PATH_ROOT)/src/VBox/GuestHost/SharedClipboard/ClipboardURIObject.cpp
54endif
55if1of ($(KBUILD_TARGET), linux solaris freebsd) ## @todo X11
56 ifndef VBOX_HEADLESS
57 VBoxSharedClipboard_SOURCES += \
58 $(PATH_ROOT)/src/VBox/GuestHost/SharedClipboard/clipboard-common.cpp \
59 $(PATH_ROOT)/src/VBox/GuestHost/SharedClipboard/clipboard-x11.cpp \
60 VBoxSharedClipboardSvc-x11.cpp
61 else
62 VBoxSharedClipboard_SOURCES += \
63 VBoxSharedClipboardSvc-x11-stubs.cpp
64 endif
65endif
66
67VBoxSharedClipboard_LIBS = \
68 $(LIB_VMM) \
69 $(LIB_RUNTIME) \
70 $(LIB_REM)
71if1of ($(KBUILD_TARGET), linux solaris freebsd)
72 ifndef VBOX_HEADLESS
73 VBoxSharedClipboard_LIBPATH = \
74 $(VBOX_LIBPATH_X11)
75 VBoxSharedClipboard_LIBS += \
76 Xt \
77 X11
78 endif
79endif
80
81VBoxSharedClipboard_LDFLAGS.darwin = \
82 -framework ApplicationServices -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxSharedClipboard.dylib
83
84if defined(VBOX_WITH_TESTCASES) && !defined(VBOX_ONLY_ADDITIONS) && !defined(VBOX_ONLY_SDK)
85 if1of ($(KBUILD_TARGET), freebsd linux netbsd openbsd solaris)
86 #
87 # Set this in LocalConfig.kmk if you are working on the X11 clipboard service
88 # to automatically run the unit test at build time.
89 # OTHERS += $(tstClipboardX11-2_0_OUTDIR)/tstClipboardX11-2.run
90 PROGRAMS += tstClipboardX11-2
91 TESTING += $(tstClipboardX11-2_0_OUTDIR)/tstClipboardX11-2.run
92 tstClipboardX11-2_TEMPLATE = VBOXR3TSTEXE
93 tstClipboardX11-2_DEFS = VBOX_WITH_HGCM TESTCASE
94 tstClipboardX11-2_SOURCES = VBoxSharedClipboardSvc-x11.cpp
95 tstClipboardX11-2_LIBS = $(LIB_RUNTIME)
96 tstClipboardX11-2_CLEANS = $(tstClipboardX11-2_0_OUTDIR)/tstClipboardX11-2.run
97
98$$(tstClipboardX11-2_0_OUTDIR)/tstClipboardX11-2.run: $$(tstClipboardX11-2_1_STAGE_TARGET)
99 export VBOX_LOG_DEST=nofile; $(tstClipboardX11-2_1_STAGE_TARGET) quiet
100 $(QUIET)$(APPEND) -t "$@" "done"
101 endif # 1of ($(KBUILD_TARGET),freebsd linux netbsd openbsd solaris)
102endif
103
104include $(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