VirtualBox

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

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

VBOX_KBUILD_HACKING.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.3 KB
Line 
1# $Id: Makefile.kmk 10128 2008-07-03 02:53:54Z 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
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_TARGET)/VBoxClient
73VBoxClient_ORDERDEPS = $(PATH_TARGET)/VBoxClient/libstdc++.a
74VBoxClient_CLEAN = $(PATH_TARGET)/VBoxClient/libstdc++.a
75$(PATH_TARGET)/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.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette