VirtualBox

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

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

Makefiles: VBOX_KBUILD_HACKING -> VBOX_SINGLE_MAKEFILE

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