VirtualBox

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

Last change on this file since 25971 was 23452, checked in by vboxsync, 15 years ago

Makefiles: Corrected properties.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.0 KB
Line 
1# $Id: Makefile.kmk 23452 2009-09-30 20:33:08Z vboxsync $
2## @file
3# Sub-Makefile for the Shared Clipboard Host Service.
4#
5
6#
7# Copyright (C) 2006-2007 Sun Microsystems, Inc.
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# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
18# Clara, CA 95054 USA or visit http://www.sun.com if you need
19# additional information or have any questions.
20#
21
22SUB_DEPTH = ../../../..
23include $(KBUILD_PATH)/subheader.kmk
24
25#
26# The shared folder service DLL.
27#
28DLLS += VBoxSharedClipboard
29VBoxSharedClipboard_TEMPLATE = VBOXR3
30VBoxSharedClipboard_DEFS = VBOX_WITH_HGCM
31VBoxSharedClipboard_INCS.win = \
32 $(VBOX_PATH_SDK)
33
34VBoxSharedClipboard_SOURCES = \
35 service.cpp
36VBoxSharedClipboard_SOURCES.win = \
37 VBoxClipboard-win.cpp
38VBoxSharedClipboard_SOURCES.darwin = \
39 darwin.cpp \
40 $(PATH_ROOT)/src/VBox/GuestHost/SharedClipboard/clipboard-helper.cpp \
41 darwin-pasteboard.cpp
42if1of ($(KBUILD_TARGET), linux solaris freebsd) ## @todo X11
43 ifndef VBOX_HEADLESS
44 VBoxSharedClipboard_SOURCES += \
45 $(PATH_ROOT)/src/VBox/GuestHost/SharedClipboard/clipboard-helper.cpp \
46 $(PATH_ROOT)/src/VBox/GuestHost/SharedClipboard/x11-clipboard.cpp \
47 x11-clipboard.cpp
48 else
49 VBoxSharedClipboard_SOURCES += \
50 x11-stub.cpp
51 endif
52endif
53
54VBoxSharedClipboard_LIBS = \
55 $(LIB_VMM) \
56 $(LIB_RUNTIME) \
57 $(LIB_REM)
58if1of ($(KBUILD_TARGET), linux solaris freebsd)
59 ifndef VBOX_HEADLESS
60 VBoxSharedClipboard_LIBPATH = \
61 $(VBOX_LIBPATH_X11)
62 VBoxSharedClipboard_LIBS += \
63 Xt \
64 X11
65 endif
66endif
67
68VBoxSharedClipboard_LDFLAGS.darwin = \
69 -framework ApplicationServices -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxSharedClipboard.dylib
70
71if defined(VBOX_WITH_TESTCASES) && !defined(VBOX_ONLY_ADDITIONS) && !defined(VBOX_ONLY_SDK)
72 if1of ($(KBUILD_TARGET), freebsd linux netbsd openbsd solaris)
73 #
74 # Set this in LocalConfig.kmk if you are working on the X11 clipboard service
75 # to automatically run the unit test at build time.
76 # OTHERS += $(PATH_tstClipboardX11-2)/tstClipboardX11-2.run
77 PROGRAMS += tstClipboardX11-2
78 TESTING += $(PATH_tstClipboardX11-2)/tstClipboardX11-2.run
79 tstClipboardX11-2_TEMPLATE = VBOXR3TSTEXE
80 tstClipboardX11-2_DEFS = VBOX_WITH_HGCM TESTCASE
81 tstClipboardX11-2_SOURCES = x11-clipboard.cpp
82 tstClipboardX11-2_LIBS = $(LIB_RUNTIME)
83 tstClipboardX11-2_CLEANS = $(PATH_tstClipboardX11-2)/tstClipboardX11-2.run
84
85$$(PATH_tstClipboardX11-2)/tstClipboardX11-2.run: $$(INSTARGET_tstClipboardX11-2)
86 export VBOX_LOG_DEST=nofile; $(INSTARGET_tstClipboardX11-2) quiet
87 $(QUIET)$(APPEND) -t "$@" "done"
88 endif # 1of ($(KBUILD_TARGET),freebsd linux netbsd openbsd solaris)
89endif
90
91include $(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