VirtualBox

source: vbox/trunk/src/VBox/Additions/x11/xclient/Makefile.kmk@ 10645

Last change on this file since 10645 was 10645, checked in by vboxsync, 17 years ago

Additions/xll: removed some more gcc libstdc++ dependencies in VBoxClient

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.5 KB
Line 
1# $Id: Makefile.kmk 10645 2008-07-15 12:07:10Z 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
22ifdef VBOX_KBUILD_HACKING
23SUB_DEPTH = ../../../../..
24else
25DEPTH ?= ../../../../..
26SUB_DEPTH = ../..
27endif
28include $(KBUILD_PATH)/subheader.kmk
29
30#
31# VBoxClient - clipboard and seamless.
32#
33PROGRAMS += VBoxClient
34
35VBoxClient_TEMPLATE = VBOXGUESTR3CPPEXE
36VBoxClient_DEFS += VBOX_X11_CLIPBOARD VBOX_HGCM
37VBoxClient_DEFS.linux += _GNU_SOURCE
38VBoxClient_SOURCES = \
39 main.cpp
40VBoxClient_SOURCES += \
41 clipboard.cpp
42VBoxClient_LIBPATH = \
43 $(VBOX_LIBPATH32_X11)
44VBoxClient_LIBS = \
45 $(VBOX_LIB_IPRT_GUEST_R3) \
46 $(VBOX_LIB_VBGL_R3) \
47 $(VBOX_LIB_IPRT_GUEST_R3) \
48 X11 \
49 Xt
50ifeq ($(KBUILD_TARGET),linux)
51# These are static replacements for gcc-specific parts of libstdc++
52VBoxClient_LIBS += \
53 supc++ \
54 gcc_eh
55endif
56## @todo r=bird: move to the template (that's what they are there for). ditto for VBoxService.
57VBoxClient_LIBPATH.freebsd += \
58 /usr/local/lib
59VBoxClient_LIBS.freebsd += \
60 iconv
61ifdef VBOX_X11_SEAMLESS_GUEST
62 VBoxClient_DEFS += SEAMLESS_GUEST DYNAMIC_RESIZE
63 VBoxClient_SOURCES += \
64 seamless-host.cpp \
65 seamless-x11.cpp \
66 thread.cpp \
67 displaychange-x11.cpp
68 VBoxClient_LIBS += \
69 Xext Xmu
70endif
71
72#
73# Link aginst libstdc++.a. (http://www.trilithium.com/johan/2005/06/static-libstdc/).
74# (It would've been preferred to avoid features depending on libstdc++, of course...)
75#
76# Actually, this is darn annoying and will *NOT* be tolerated for any new code!
77#
78VBoxClient_LIBPATH += $(PATH_TARGET)/VBoxClient
79VBoxClient_ORDERDEPS = $(PATH_TARGET)/VBoxClient/libstdc++.a
80VBoxClient_CLEAN = $(PATH_TARGET)/VBoxClient/libstdc++.a
81$(PATH_TARGET)/VBoxClient/libstdc++.a:
82 $(call MSG_L1,Forcing static libstdc++)
83 $(QUIET)$(MKDIR) -p $(@D)
84 $(QUIET)$(LN_EXT) -sf `$(TOOL_$(VBOX_GCC_TOOL)_CXX) $(TEMPLATE_VBOXGUESTR3CPPEXE_CXXFLAGS.$(KBUILD_TARGET_ARCH)) -print-file-name=libstdc++.a` $@ \
85 || $(CP_EXT) -f `$(TOOL_$(VBOX_GCC_TOOL)_CXX) $(TEMPLATE_VBOXGUESTR3CPPEXE_CXXFLAGS.$(KBUILD_TARGET_ARCH)) -print-file-name=libstdc++.a` $@
86
87
88ifdef VBOX_X11_SEAMLESS_GUEST
89 ifdef VBOX_WITH_TESTCASES
90 ifndef VBOX_ONLY_ADDITIONS
91 #
92 # Additional testcase designed to be run manually, which initiates and starts the Linux
93 # guest client part of the seamless additions in the host, faking seamless events from
94 # the host and writing information about guest events to standard output.
95 #
96 PROGRAMS += tstSeamlessX11
97 tstSeamlessX11_TEMPLATE = VBOXR3TSTEXE
98 tstSeamlessX11_SOURCES = \
99 testcase/tstSeamlessX11.cpp \
100 seamless-host.cpp \
101 seamless-x11.cpp \
102 thread.cpp
103 tstSeamlessX11_LIBPATH = \
104 $(VBOX_LIBPATH_X11)
105 tstSeamlessX11_LIBS = \
106 $(LIB_RUNTIME) \
107 Xext \
108 Xmu \
109 X11
110 endif
111 endif
112endif
113
114include $(KBUILD_PATH)/subfooter.kmk
115
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