VirtualBox

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

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

Additions/Makefiles: Pushed them up to root (sub-makefile wise). Some cleanups, opengl omitted.

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