VirtualBox

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

Last change on this file since 34079 was 28800, checked in by vboxsync, 15 years ago

Automated rebranding to Oracle copyright/license strings via filemuncher

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.8 KB
Line 
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
18SUB_DEPTH = ../../../..
19include $(KBUILD_PATH)/subheader.kmk
20
21#
22# The shared folder service DLL.
23#
24DLLS += VBoxSharedClipboard
25VBoxSharedClipboard_TEMPLATE = VBOXR3
26VBoxSharedClipboard_DEFS = VBOX_WITH_HGCM
27VBoxSharedClipboard_INCS.win = \
28 $(VBOX_PATH_SDK)
29
30VBoxSharedClipboard_SOURCES = \
31 service.cpp
32VBoxSharedClipboard_SOURCES.win = \
33 VBoxClipboard-win.cpp
34VBoxSharedClipboard_SOURCES.darwin = \
35 darwin.cpp \
36 $(PATH_ROOT)/src/VBox/GuestHost/SharedClipboard/clipboard-helper.cpp \
37 darwin-pasteboard.cpp
38if1of ($(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
48endif
49
50VBoxSharedClipboard_LIBS = \
51 $(LIB_VMM) \
52 $(LIB_RUNTIME) \
53 $(LIB_REM)
54if1of ($(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
62endif
63
64VBoxSharedClipboard_LDFLAGS.darwin = \
65 -framework ApplicationServices -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxSharedClipboard.dylib
66
67if 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)
85endif
86
87include $(KBUILD_PATH)/subfooter.kmk
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