# $Id: Makefile.kmk 19842 2009-05-19 21:40:24Z vboxsync $ ## @file # Sub-Makefile for the Shared Clipboard Host Service. # # # Copyright (C) 2006-2007 Sun Microsystems, Inc. # # This file is part of VirtualBox Open Source Edition (OSE), as # available from http://www.virtualbox.org. This file is free software; # you can redistribute it and/or modify it under the terms of the GNU # General Public License (GPL) as published by the Free Software # Foundation, in version 2 as it comes in the "COPYING" file of the # VirtualBox OSE distribution. VirtualBox OSE is distributed in the # hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. # # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa # Clara, CA 95054 USA or visit http://www.sun.com if you need # additional information or have any questions. # SUB_DEPTH = ../../../.. include $(KBUILD_PATH)/subheader.kmk # # The shared folder service DLL. # DLLS += VBoxSharedClipboard VBoxSharedClipboard_TEMPLATE = VBOXR3 VBoxSharedClipboard_DEFS = VBOX_WITH_HGCM VBoxSharedClipboard_INCS.win = \ $(VBOX_PATH_SDK) VBoxSharedClipboard_SOURCES = \ service.cpp VBoxSharedClipboard_SOURCES.win = \ VBoxClipboard-win.cpp VBoxSharedClipboard_SOURCES.darwin = \ darwin.cpp \ $(PATH_ROOT)/src/VBox/GuestHost/SharedClipboard/clipboard-helper.cpp \ darwin-pasteboard.cpp if1of ($(KBUILD_TARGET), linux solaris freebsd) ## @todo X11 ifndef VBOX_HEADLESS VBoxSharedClipboard_SOURCES += \ $(PATH_ROOT)/src/VBox/GuestHost/SharedClipboard/clipboard-helper.cpp \ $(PATH_ROOT)/src/VBox/GuestHost/SharedClipboard/x11-clipboard.cpp \ x11-clipboard.cpp else VBoxSharedClipboard_SOURCES += \ x11-stub.cpp endif endif VBoxSharedClipboard_LIBS = \ $(LIB_VMM) \ $(LIB_RUNTIME) \ $(LIB_REM) if1of ($(KBUILD_TARGET), linux solaris) ifndef VBOX_HEADLESS VBoxSharedClipboard_LIBPATH = \ $(VBOX_LIBPATH_X11) VBoxSharedClipboard_LIBS += \ Xt \ X11 endif endif VBoxSharedClipboard_LDFLAGS.darwin = \ -framework ApplicationServices -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxSharedClipboard.dylib ifdef VBOX_WITH_TESTCASES ifndef VBOX_ONLY_ADDITIONS # # Case conversion testcase. # if1of ($(KBUILD_TARGET),freebsd linux netbsd openbsd solaris) PROGRAMS += tstClipboardX11-2 tstClipboardX11-2_TEMPLATE = VBOXR3TSTEXE tstClipboardX11-2_DEFS = VBOX_WITH_HGCM TESTCASE tstClipboardX11-2_SOURCES = x11-clipboard.cpp tstClipboardX11-2_LIBS = $(LIB_RUNTIME) # Set this in LocalConfig.kmk if you are working on the X11 clipboard service # to automatically run the testcase at build time. ifdef VBOX_RUN_X11_CLIPBOARD_TEST ifndef VBOX_ONLY_SDK TESTING += $(PATH_tstClipboardX11-2)/tstClipboardX11-2.run OTHERS += $(PATH_tstClipboardX11-2)/tstClipboardX11-2.run $$(PATH_tstClipboardX11-2)/tstClipboardX11-2.run: \ $$(INSTARGET_tstClipboardX11-2) export VBOX_LOG_DEST=nofile; $(INSTARGET_tstClipboardX11-2) quiet $(QUIET)$(APPEND) -t "$@" "done" endif endif endif # 1of ($(KBUILD_TARGET),freebsd linux netbsd openbsd solaris) endif # ! VBOX_ONLY_ADDITIONS endif # VBOX_WITH_TESTCASES include $(KBUILD_PATH)/subfooter.kmk