1 | # $Id: Makefile.kmk 78307 2019-04-26 06:41:46Z 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 |
|
---|
18 | SUB_DEPTH = ../../../..
|
---|
19 | include $(KBUILD_PATH)/subheader.kmk
|
---|
20 |
|
---|
21 | # Include sub-makefile(s).
|
---|
22 | include $(PATH_SUB_CURRENT)/testcase/Makefile.kmk
|
---|
23 |
|
---|
24 | #
|
---|
25 | # The shared folder service DLL.
|
---|
26 | #
|
---|
27 | DLLS += VBoxSharedClipboard
|
---|
28 | VBoxSharedClipboard_TEMPLATE = VBOXR3
|
---|
29 | VBoxSharedClipboard_DEFS = \
|
---|
30 | VBOX_WITH_HGCM \
|
---|
31 | $(if $(VBOX_WITH_SHARED_CLIPBOARD_URI_LIST),VBOX_WITH_SHARED_CLIPBOARD_URI_LIST,)
|
---|
32 | VBoxSharedClipboard_INCS.win = \
|
---|
33 | $(VBOX_PATH_SDK)
|
---|
34 |
|
---|
35 | VBoxSharedClipboard_SOURCES = \
|
---|
36 | VBoxSharedClipboardSvc.cpp
|
---|
37 | VBoxSharedClipboard_SOURCES.win = \
|
---|
38 | VBoxSharedClipboardSvc-win.cpp \
|
---|
39 | $(PATH_ROOT)/src/VBox/GuestHost/SharedClipboard/clipboard-win.cpp \
|
---|
40 | VBoxSharedClipboardSvc.rc
|
---|
41 | VBoxSharedClipboard_SOURCES.darwin = \
|
---|
42 | VBoxSharedClipboardSvc-darwin.cpp \
|
---|
43 | $(PATH_ROOT)/src/VBox/GuestHost/SharedClipboard/clipboard-common.cpp \
|
---|
44 | darwin-pasteboard.cpp
|
---|
45 | if1of ($(KBUILD_TARGET), linux solaris freebsd) ## @todo X11
|
---|
46 | ifndef VBOX_HEADLESS
|
---|
47 | VBoxSharedClipboard_SOURCES += \
|
---|
48 | $(PATH_ROOT)/src/VBox/GuestHost/SharedClipboard/clipboard-common.cpp \
|
---|
49 | $(PATH_ROOT)/src/VBox/GuestHost/SharedClipboard/clipboard-x11.cpp \
|
---|
50 | VBoxSharedClipboardSvc-x11.cpp
|
---|
51 | else
|
---|
52 | VBoxSharedClipboard_SOURCES += \
|
---|
53 | VBoxSharedClipboardSvc-x11-stubs.cpp
|
---|
54 | endif
|
---|
55 | endif
|
---|
56 |
|
---|
57 | VBoxSharedClipboard_LIBS = \
|
---|
58 | $(LIB_VMM) \
|
---|
59 | $(LIB_RUNTIME) \
|
---|
60 | $(LIB_REM)
|
---|
61 | if1of ($(KBUILD_TARGET), linux solaris freebsd)
|
---|
62 | ifndef VBOX_HEADLESS
|
---|
63 | VBoxSharedClipboard_LIBPATH = \
|
---|
64 | $(VBOX_LIBPATH_X11)
|
---|
65 | VBoxSharedClipboard_LIBS += \
|
---|
66 | Xt \
|
---|
67 | X11
|
---|
68 | endif
|
---|
69 | endif
|
---|
70 |
|
---|
71 | VBoxSharedClipboard_LDFLAGS.darwin = \
|
---|
72 | -framework ApplicationServices -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxSharedClipboard.dylib
|
---|
73 |
|
---|
74 | if defined(VBOX_WITH_TESTCASES) && !defined(VBOX_ONLY_ADDITIONS) && !defined(VBOX_ONLY_SDK)
|
---|
75 | if1of ($(KBUILD_TARGET), freebsd linux netbsd openbsd solaris)
|
---|
76 | #
|
---|
77 | # Set this in LocalConfig.kmk if you are working on the X11 clipboard service
|
---|
78 | # to automatically run the unit test at build time.
|
---|
79 | # OTHERS += $(tstClipboardX11-2_0_OUTDIR)/tstClipboardX11-2.run
|
---|
80 | PROGRAMS += tstClipboardX11-2
|
---|
81 | TESTING += $(tstClipboardX11-2_0_OUTDIR)/tstClipboardX11-2.run
|
---|
82 | tstClipboardX11-2_TEMPLATE = VBOXR3TSTEXE
|
---|
83 | tstClipboardX11-2_DEFS = VBOX_WITH_HGCM TESTCASE
|
---|
84 | tstClipboardX11-2_SOURCES = VBoxSharedClipboardSvc-x11.cpp
|
---|
85 | tstClipboardX11-2_LIBS = $(LIB_RUNTIME)
|
---|
86 | tstClipboardX11-2_CLEANS = $(tstClipboardX11-2_0_OUTDIR)/tstClipboardX11-2.run
|
---|
87 |
|
---|
88 | $$(tstClipboardX11-2_0_OUTDIR)/tstClipboardX11-2.run: $$(tstClipboardX11-2_1_STAGE_TARGET)
|
---|
89 | export VBOX_LOG_DEST=nofile; $(tstClipboardX11-2_1_STAGE_TARGET) quiet
|
---|
90 | $(QUIET)$(APPEND) -t "$@" "done"
|
---|
91 | endif # 1of ($(KBUILD_TARGET),freebsd linux netbsd openbsd solaris)
|
---|
92 | endif
|
---|
93 |
|
---|
94 | include $(FILE_KBUILD_SUB_FOOTER)
|
---|