VirtualBox

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

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

The Big Sun Rebranding Header Change

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.1 KB
Line 
1# $Id: Makefile.kmk 8155 2008-04-18 15:16:47Z 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
22DEPTH ?= ../../../../..
23SUB_DEPTH = ../..
24include $(PATH_KBUILD)/subheader.kmk
25
26#
27# VBoxClient - clipboard and seamless.
28#
29PROGRAMS += VBoxClient
30
31VBoxClient_TEMPLATE = VBOXGUESTR3CPPEXE
32VBoxClient_DEFS += VBOX_X11_CLIPBOARD VBOX_HGCM
33VBoxClient_DEFS.linux += _GNU_SOURCE
34VBoxClient_SOURCES = \
35 main.cpp
36VBoxClient_SOURCES += \
37 clipboard.cpp
38VBoxClient_LIBPATH = \
39 $(VBOX_LIBPATH32_X11)
40VBoxClient_LIBS = \
41 $(VBOX_LIB_IPRT_GUEST_R3) \
42 $(VBOX_LIB_VBGL_R3) \
43 $(VBOX_LIB_IPRT_GUEST_R3) \
44 X11 \
45 Xt
46## @todo r=bird: move to the template (that's what they are there for). ditto for VBoxService.
47VBoxClient_LIBPATH.freebsd += \
48 /usr/local/lib
49VBoxClient_LIBS.freebsd += \
50 iconv
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#
66VBoxClient_LIBPATH += $(PATH_TARGET)/VBoxClient
67VBoxClient_ORDERDEPS = $(PATH_TARGET)/VBoxClient/libstdc++.a
68VBoxClient_CLEAN = $(PATH_TARGET)/VBoxClient/libstdc++.a
69$(PATH_TARGET)/VBoxClient/libstdc++.a:
70 $(call MSG_L1,Forcing static libstdc++)
71 $(QUIET)$(MKDIR) -p $(@D)
72 $(QUIET)$(LN_EXT) -sf `$(TOOL_$(VBOX_GCC32_TOOL)_CXX) -print-file-name=libstdc++.a` $@ \
73 || $(CP_EXT) -f `$(TOOL_$(VBOX_GCC32_TOOL)_CXX) -print-file-name=libstdc++.a` $@
74
75
76ifdef VBOX_X11_SEAMLESS_GUEST
77 ifdef VBOX_WITH_TESTCASES
78 ifndef VBOX_ONLY_ADDITIONS
79 #
80 # Additional testcase designed to be run manually, which initiates and starts the Linux
81 # guest client part of the seamless additions in the host, faking seamless events from
82 # the host and writing information about guest events to standard output.
83 #
84 PROGRAMS += tstSeamlessX11
85 tstSeamlessX11_TEMPLATE = VBOXR3TSTEXE
86 tstSeamlessX11_SOURCES = \
87 testcase/tstSeamlessX11.cpp \
88 seamless-host.cpp \
89 seamless-x11.cpp \
90 thread.cpp
91 tstSeamlessX11_LIBPATH = \
92 $(VBOX_LIBPATH_X11)
93 tstSeamlessX11_LIBS = \
94 $(LIB_RUNTIME) \
95 Xext \
96 Xmu \
97 X11
98 endif
99 endif
100endif
101
102include $(PATH_KBUILD)/subfooter.kmk
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