VirtualBox

source: vbox/trunk/src/VBox/Additions/x11/VBoxClient/Makefile.kmk@ 23828

Last change on this file since 23828 was 23828, checked in by vboxsync, 16 years ago

VBoxClient: Added VBOX_WITH_DBUS

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 4.2 KB
Line 
1# $Id: Makefile.kmk 23828 2009-10-16 16:41:48Z vboxsync $
2## @file
3# Sub-Makefile for the VirtualBox Guest Addition X11 Client.
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# VBoxClient - clipboard and seamless.
27#
28PROGRAMS += VBoxClient
29
30VBoxClient_TEMPLATE = VBOXGUESTR3CPPEXE
31VBoxClient_DEFS += VBOX_X11_CLIPBOARD VBOX_WITH_HGCM
32ifdef VBOX_WITH_DBUS
33 VBoxClient_DEFS += VBOX_WITH_DBUS
34endif
35VBoxClient_DEFS.linux += _GNU_SOURCE
36VBoxClient_SOURCES = \
37 main.cpp
38VBoxClient_SOURCES += \
39 $(PATH_ROOT)/src/VBox/GuestHost/SharedClipboard/clipboard-helper.cpp \
40 $(PATH_ROOT)/src/VBox/GuestHost/SharedClipboard/x11-clipboard.cpp \
41 clipboard.cpp
42VBoxClient_LIBPATH = \
43 $(VBOX_LIBPATH32_X11)
44VBoxClient_LIBS.freebsd = \
45 iconv
46VBoxClient_LIBS = \
47 $(VBOX_LIB_IPRT_GUEST_R3) \
48 $(VBOX_LIB_VBGL_R3) \
49 $(VBOX_LIB_IPRT_GUEST_R3) \
50 X11 \
51 Xt
52# These are static replacements for gcc-specific parts of libstdc++
53VBoxClient_LIBS += \
54 supc++ \
55 gcc_eh
56ifdef VBOX_X11_SEAMLESS_GUEST
57 VBoxClient_DEFS += SEAMLESS_GUEST DYNAMIC_RESIZE
58 VBoxClient_SOURCES += \
59 seamless.cpp \
60 seamless-host.cpp \
61 seamless-x11.cpp \
62 thread.cpp \
63 display.cpp \
64 hostversion.cpp
65 VBoxClient_LIBS += \
66 Xext Xmu
67endif
68
69#
70# Link aginst libstdc++.a. (http://www.trilithium.com/johan/2005/06/static-libstdc/).
71# (It would've been preferred to avoid features depending on libstdc++, of course...)
72#
73# Actually, this is darn annoying and will *NOT* be tolerated for any new code!
74#
75VBoxClient_LIBPATH += $(PATH_VBoxClient)
76VBoxClient_ORDERDEPS = $(PATH_VBoxClient)/libstdc++.a
77VBoxClient_CLEAN = $(PATH_VBoxClient)/libstdc++.a
78$$(PATH_VBoxClient)/libstdc++.a:
79 $(call MSG_L1,Forcing static libstdc++)
80 $(QUIET)$(MKDIR) -p $(@D)
81 $(QUIET)$(LN_EXT) -sf `$(TOOL_$(VBOX_GCC_TOOL)_CXX) $(TEMPLATE_VBOXGUESTR3CPPEXE_CXXFLAGS.$(KBUILD_TARGET_ARCH)) -print-file-name=libstdc++.a` $@ \
82 || $(CP_EXT) -f `$(TOOL_$(VBOX_GCC_TOOL)_CXX) $(TEMPLATE_VBOXGUESTR3CPPEXE_CXXFLAGS.$(KBUILD_TARGET_ARCH)) -print-file-name=libstdc++.a` $@
83
84ifdef VBOX_X11_SEAMLESS_GUEST
85 if defined(VBOX_WITH_TESTCASES) && !defined(VBOX_ONLY_ADDITIONS) && !defined(VBOX_ONLY_SDK)
86 if1of ($(KBUILD_TARGET), freebsd linux netbsd openbsd solaris)
87
88# Set this in LocalConfig.kmk if you are working on the X11 clipboard service
89# to automatically run the unit test at build time.
90# OTHERS += $(PATH_tstSeamlessX11-auto)/tstSeamlessX11-auto.run
91
92 PROGRAMS += tstSeamlessX11-auto
93 tstSeamlessX11-auto_TEMPLATE = VBOXR3TSTEXE
94 tstSeamlessX11-auto_SOURCES = \
95 testcase/tstSeamlessX11-auto.cpp \
96 seamless-x11.cpp
97 tstSeamlessX11-auto_DEFS = TESTCASE
98 tstSeamlessX11-auto_LIBS = \
99 $(LIB_RUNTIME)
100
101 TESTING += $(PATH_tstSeamlessX11-auto)/tstSeamlessX11-auto
102$$(PATH_tstSeamlessX11-auto)/tstSeamlessX11-auto.run: \
103 $$(INSTARGET_tstSeamlessX11-auto)
104 export VBOX_LOG_DEST=nofile; $(INSTARGET_tstSeamlessX11-auto) quiet
105 $(QUIET)$(APPEND) -t "$@" "done"
106
107 #
108 # Additional testcase designed to be run manually, which initiates and starts the Linux
109 # guest client part of the seamless additions in the host, faking seamless events from
110 # the host and writing information about guest events to standard output.
111 #
112 PROGRAMS += tstSeamlessX11
113 tstSeamlessX11_TEMPLATE = VBOXR3TSTEXE
114 tstSeamlessX11_SOURCES = \
115 testcase/tstSeamlessX11.cpp \
116 seamless-host.cpp \
117 seamless-x11.cpp \
118 thread.cpp
119 tstSeamlessX11_LIBPATH = \
120 $(VBOX_LIBPATH_X11)
121 tstSeamlessX11_LIBS = \
122 $(LIB_RUNTIME) \
123 Xext \
124 Xmu \
125 X11
126 endif
127 endif
128endif
129
130include $(KBUILD_PATH)/subfooter.kmk
131
Note: See TracBrowser for help on using the repository browser.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette