VirtualBox

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

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

Additions/x11/VBoxClient: run a separate process for each service and create pidfiles to ensure uniqueness

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.2 KB
Line 
1# $Id: Makefile.kmk 18360 2009-03-26 23:46:38Z 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.cpp \
55 seamless-host.cpp \
56 seamless-x11.cpp \
57 thread.cpp \
58 autoresize.cpp
59 VBoxClient_LIBS += \
60 Xext Xmu
61endif
62
63#
64# Link aginst libstdc++.a. (http://www.trilithium.com/johan/2005/06/static-libstdc/).
65# (It would've been preferred to avoid features depending on libstdc++, of course...)
66#
67# Actually, this is darn annoying and will *NOT* be tolerated for any new code!
68#
69VBoxClient_LIBPATH += $(PATH_VBoxClient)
70VBoxClient_ORDERDEPS = $(PATH_VBoxClient)/libstdc++.a
71VBoxClient_CLEAN = $(PATH_VBoxClient)/libstdc++.a
72$$(PATH_VBoxClient)/libstdc++.a:
73 $(call MSG_L1,Forcing static libstdc++)
74 $(QUIET)$(MKDIR) -p $(@D)
75 $(QUIET)$(LN_EXT) -sf `$(TOOL_$(VBOX_GCC_TOOL)_CXX) $(TEMPLATE_VBOXGUESTR3CPPEXE_CXXFLAGS.$(KBUILD_TARGET_ARCH)) -print-file-name=libstdc++.a` $@ \
76 || $(CP_EXT) -f `$(TOOL_$(VBOX_GCC_TOOL)_CXX) $(TEMPLATE_VBOXGUESTR3CPPEXE_CXXFLAGS.$(KBUILD_TARGET_ARCH)) -print-file-name=libstdc++.a` $@
77
78
79ifdef VBOX_X11_SEAMLESS_GUEST
80 ifdef VBOX_WITH_TESTCASES
81 ifndef VBOX_ONLY_ADDITIONS
82 #
83 # Additional testcase designed to be run manually, which initiates and starts the Linux
84 # guest client part of the seamless additions in the host, faking seamless events from
85 # the host and writing information about guest events to standard output.
86 #
87 PROGRAMS += tstSeamlessX11
88 tstSeamlessX11_TEMPLATE = VBOXR3TSTEXE
89 tstSeamlessX11_SOURCES = \
90 testcase/tstSeamlessX11.cpp \
91 seamless-host.cpp \
92 seamless-x11.cpp \
93 thread.cpp
94 tstSeamlessX11_LIBPATH = \
95 $(VBOX_LIBPATH_X11)
96 tstSeamlessX11_LIBS = \
97 $(LIB_RUNTIME) \
98 Xext \
99 Xmu \
100 X11
101 endif
102 endif
103endif
104
105include $(KBUILD_PATH)/subfooter.kmk
106
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