VirtualBox

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

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

Makefiles: Added LIBPATHs corresponding to the INCS for *BSD; VBOXGUESTR3EXE needs iconv on *BSD.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.2 KB
Line 
1# $Id: Makefile.kmk 16014 2009-01-18 00:04:12Z 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
32VBoxClient_DEFS.linux += _GNU_SOURCE
33VBoxClient_SOURCES = \
34 main.cpp
35VBoxClient_SOURCES += \
36 clipboard.cpp
37VBoxClient_LIBPATH = \
38 $(VBOX_LIBPATH32_X11)
39VBoxClient_LIBS.freebsd = \
40 iconv
41VBoxClient_LIBS = \
42 $(VBOX_LIB_IPRT_GUEST_R3) \
43 $(VBOX_LIB_VBGL_R3) \
44 $(VBOX_LIB_IPRT_GUEST_R3) \
45 X11 \
46 Xt
47# These are static replacements for gcc-specific parts of libstdc++
48VBoxClient_LIBS += \
49 supc++ \
50 gcc_eh
51ifdef VBOX_X11_SEAMLESS_GUEST
52 VBoxClient_DEFS += SEAMLESS_GUEST DYNAMIC_RESIZE
53 VBoxClient_SOURCES += \
54 seamless-host.cpp \
55 seamless-x11.cpp \
56 thread.cpp \
57 displaychange-x11.cpp
58 VBoxClient_LIBS += \
59 Xext Xmu
60endif
61
62#
63# Link aginst libstdc++.a. (http://www.trilithium.com/johan/2005/06/static-libstdc/).
64# (It would've been preferred to avoid features depending on libstdc++, of course...)
65#
66# Actually, this is darn annoying and will *NOT* be tolerated for any new code!
67#
68VBoxClient_LIBPATH += $(PATH_VBoxClient)
69VBoxClient_ORDERDEPS = $(PATH_VBoxClient)/libstdc++.a
70VBoxClient_CLEAN = $(PATH_VBoxClient)/libstdc++.a
71$$(PATH_VBoxClient)/libstdc++.a:
72 $(call MSG_L1,Forcing static libstdc++)
73 $(QUIET)$(MKDIR) -p $(@D)
74 $(QUIET)$(LN_EXT) -sf `$(TOOL_$(VBOX_GCC_TOOL)_CXX) $(TEMPLATE_VBOXGUESTR3CPPEXE_CXXFLAGS.$(KBUILD_TARGET_ARCH)) -print-file-name=libstdc++.a` $@ \
75 || $(CP_EXT) -f `$(TOOL_$(VBOX_GCC_TOOL)_CXX) $(TEMPLATE_VBOXGUESTR3CPPEXE_CXXFLAGS.$(KBUILD_TARGET_ARCH)) -print-file-name=libstdc++.a` $@
76
77
78ifdef VBOX_X11_SEAMLESS_GUEST
79 ifdef VBOX_WITH_TESTCASES
80 ifndef VBOX_ONLY_ADDITIONS
81 #
82 # Additional testcase designed to be run manually, which initiates and starts the Linux
83 # guest client part of the seamless additions in the host, faking seamless events from
84 # the host and writing information about guest events to standard output.
85 #
86 PROGRAMS += tstSeamlessX11
87 tstSeamlessX11_TEMPLATE = VBOXR3TSTEXE
88 tstSeamlessX11_SOURCES = \
89 testcase/tstSeamlessX11.cpp \
90 seamless-host.cpp \
91 seamless-x11.cpp \
92 thread.cpp
93 tstSeamlessX11_LIBPATH = \
94 $(VBOX_LIBPATH_X11)
95 tstSeamlessX11_LIBS = \
96 $(LIB_RUNTIME) \
97 Xext \
98 Xmu \
99 X11
100 endif
101 endif
102endif
103
104include $(KBUILD_PATH)/subfooter.kmk
105
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