1 | # $Id: Makefile.kmk 28800 2010-04-27 08:22:32Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Sub-Makefile for the Shared Clipboard Host Service.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2006-2007 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 | #
|
---|
22 | # The shared folder service DLL.
|
---|
23 | #
|
---|
24 | DLLS += VBoxSharedClipboard
|
---|
25 | VBoxSharedClipboard_TEMPLATE = VBOXR3
|
---|
26 | VBoxSharedClipboard_DEFS = VBOX_WITH_HGCM
|
---|
27 | VBoxSharedClipboard_INCS.win = \
|
---|
28 | $(VBOX_PATH_SDK)
|
---|
29 |
|
---|
30 | VBoxSharedClipboard_SOURCES = \
|
---|
31 | service.cpp
|
---|
32 | VBoxSharedClipboard_SOURCES.win = \
|
---|
33 | VBoxClipboard-win.cpp
|
---|
34 | VBoxSharedClipboard_SOURCES.darwin = \
|
---|
35 | darwin.cpp \
|
---|
36 | $(PATH_ROOT)/src/VBox/GuestHost/SharedClipboard/clipboard-helper.cpp \
|
---|
37 | darwin-pasteboard.cpp
|
---|
38 | if1of ($(KBUILD_TARGET), linux solaris freebsd) ## @todo X11
|
---|
39 | ifndef VBOX_HEADLESS
|
---|
40 | VBoxSharedClipboard_SOURCES += \
|
---|
41 | $(PATH_ROOT)/src/VBox/GuestHost/SharedClipboard/clipboard-helper.cpp \
|
---|
42 | $(PATH_ROOT)/src/VBox/GuestHost/SharedClipboard/x11-clipboard.cpp \
|
---|
43 | x11-clipboard.cpp
|
---|
44 | else
|
---|
45 | VBoxSharedClipboard_SOURCES += \
|
---|
46 | x11-stub.cpp
|
---|
47 | endif
|
---|
48 | endif
|
---|
49 |
|
---|
50 | VBoxSharedClipboard_LIBS = \
|
---|
51 | $(LIB_VMM) \
|
---|
52 | $(LIB_RUNTIME) \
|
---|
53 | $(LIB_REM)
|
---|
54 | if1of ($(KBUILD_TARGET), linux solaris freebsd)
|
---|
55 | ifndef VBOX_HEADLESS
|
---|
56 | VBoxSharedClipboard_LIBPATH = \
|
---|
57 | $(VBOX_LIBPATH_X11)
|
---|
58 | VBoxSharedClipboard_LIBS += \
|
---|
59 | Xt \
|
---|
60 | X11
|
---|
61 | endif
|
---|
62 | endif
|
---|
63 |
|
---|
64 | VBoxSharedClipboard_LDFLAGS.darwin = \
|
---|
65 | -framework ApplicationServices -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxSharedClipboard.dylib
|
---|
66 |
|
---|
67 | if defined(VBOX_WITH_TESTCASES) && !defined(VBOX_ONLY_ADDITIONS) && !defined(VBOX_ONLY_SDK)
|
---|
68 | if1of ($(KBUILD_TARGET), freebsd linux netbsd openbsd solaris)
|
---|
69 | #
|
---|
70 | # Set this in LocalConfig.kmk if you are working on the X11 clipboard service
|
---|
71 | # to automatically run the unit test at build time.
|
---|
72 | # OTHERS += $(PATH_tstClipboardX11-2)/tstClipboardX11-2.run
|
---|
73 | PROGRAMS += tstClipboardX11-2
|
---|
74 | TESTING += $(PATH_tstClipboardX11-2)/tstClipboardX11-2.run
|
---|
75 | tstClipboardX11-2_TEMPLATE = VBOXR3TSTEXE
|
---|
76 | tstClipboardX11-2_DEFS = VBOX_WITH_HGCM TESTCASE
|
---|
77 | tstClipboardX11-2_SOURCES = x11-clipboard.cpp
|
---|
78 | tstClipboardX11-2_LIBS = $(LIB_RUNTIME)
|
---|
79 | tstClipboardX11-2_CLEANS = $(PATH_tstClipboardX11-2)/tstClipboardX11-2.run
|
---|
80 |
|
---|
81 | $$(PATH_tstClipboardX11-2)/tstClipboardX11-2.run: $$(INSTARGET_tstClipboardX11-2)
|
---|
82 | export VBOX_LOG_DEST=nofile; $(INSTARGET_tstClipboardX11-2) quiet
|
---|
83 | $(QUIET)$(APPEND) -t "$@" "done"
|
---|
84 | endif # 1of ($(KBUILD_TARGET),freebsd linux netbsd openbsd solaris)
|
---|
85 | endif
|
---|
86 |
|
---|
87 | include $(KBUILD_PATH)/subfooter.kmk
|
---|