VirtualBox

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

Last change on this file since 78233 was 78161, checked in by vboxsync, 6 years ago

Shared Clipboard: Unified naming of shared guest/host files; too many similarly named files in different directories otherwise, can be confusing.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.1 KB
Line 
1# $Id: Makefile.kmk 78161 2019-04-17 13:52:43Z 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 = VBOX_WITH_HGCM
30VBoxSharedClipboard_INCS.win = \
31 $(VBOX_PATH_SDK)
32
33VBoxSharedClipboard_SOURCES = \
34 VBoxSharedClipboardSvc.cpp
35VBoxSharedClipboard_SOURCES.win = \
36 VBoxSharedClipboardSvc-win.cpp \
37 $(PATH_ROOT)/src/VBox/GuestHost/SharedClipboard/clipboard-win.cpp \
38 VBoxSharedClipboardSvc.rc
39VBoxSharedClipboard_SOURCES.darwin = \
40 VBoxSharedClipboardSvc-darwin.cpp \
41 $(PATH_ROOT)/src/VBox/GuestHost/SharedClipboard/clipboard-common.cpp \
42 darwin-pasteboard.cpp
43if1of ($(KBUILD_TARGET), linux solaris freebsd) ## @todo X11
44 ifndef VBOX_HEADLESS
45 VBoxSharedClipboard_SOURCES += \
46 $(PATH_ROOT)/src/VBox/GuestHost/SharedClipboard/clipboard-common.cpp \
47 $(PATH_ROOT)/src/VBox/GuestHost/SharedClipboard/clipboard-x11.cpp \
48 VBoxSharedClipboardSvc-x11.cpp
49 else
50 VBoxSharedClipboard_SOURCES += \
51 VBoxSharedClipboardSvc-x11-stubs.cpp
52 endif
53endif
54
55VBoxSharedClipboard_LIBS = \
56 $(LIB_VMM) \
57 $(LIB_RUNTIME) \
58 $(LIB_REM)
59if1of ($(KBUILD_TARGET), linux solaris freebsd)
60 ifndef VBOX_HEADLESS
61 VBoxSharedClipboard_LIBPATH = \
62 $(VBOX_LIBPATH_X11)
63 VBoxSharedClipboard_LIBS += \
64 Xt \
65 X11
66 endif
67endif
68
69VBoxSharedClipboard_LDFLAGS.darwin = \
70 -framework ApplicationServices -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxSharedClipboard.dylib
71
72if defined(VBOX_WITH_TESTCASES) && !defined(VBOX_ONLY_ADDITIONS) && !defined(VBOX_ONLY_SDK)
73 if1of ($(KBUILD_TARGET), freebsd linux netbsd openbsd solaris)
74 #
75 # Set this in LocalConfig.kmk if you are working on the X11 clipboard service
76 # to automatically run the unit test at build time.
77 # OTHERS += $(tstClipboardX11-2_0_OUTDIR)/tstClipboardX11-2.run
78 PROGRAMS += tstClipboardX11-2
79 TESTING += $(tstClipboardX11-2_0_OUTDIR)/tstClipboardX11-2.run
80 tstClipboardX11-2_TEMPLATE = VBOXR3TSTEXE
81 tstClipboardX11-2_DEFS = VBOX_WITH_HGCM TESTCASE
82 tstClipboardX11-2_SOURCES = VBoxSharedClipboardSvc-x11.cpp
83 tstClipboardX11-2_LIBS = $(LIB_RUNTIME)
84 tstClipboardX11-2_CLEANS = $(tstClipboardX11-2_0_OUTDIR)/tstClipboardX11-2.run
85
86$$(tstClipboardX11-2_0_OUTDIR)/tstClipboardX11-2.run: $$(tstClipboardX11-2_1_STAGE_TARGET)
87 export VBOX_LOG_DEST=nofile; $(tstClipboardX11-2_1_STAGE_TARGET) quiet
88 $(QUIET)$(APPEND) -t "$@" "done"
89 endif # 1of ($(KBUILD_TARGET),freebsd linux netbsd openbsd solaris)
90endif
91
92include $(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