VirtualBox

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

Last change on this file since 27791 was 27601, checked in by vboxsync, 15 years ago

Additions/x11: VBoxClient now handles dynamic resizing using library calls, not a shell script, and for older server versions too

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