VirtualBox

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

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

Additions/x11: seamless for Linux guests now works in a limited way on X.org 1.3 and above with KDE

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.5 KB
Line 
1# $Id: Makefile.kmk 7048 2008-02-20 16:02:21Z vboxsync $
2## @file
3# Sub-Makefile for the VirtualBox Guest Addition X11 Client.
4#
5
6#
7# Copyright (C) 2006-2007 innotek GmbH
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
18DEPTH ?= ../../../../..
19SUB_DEPTH = ../..
20include $(PATH_KBUILD)/subheader.kmk
21
22#
23# VBoxClient - clipboard and seamless.
24#
25PROGRAMS += VBoxClient
26VBoxClient_TEMPLATE = VBOXGUESTR3CPPEXE
27VBoxClient_DEFS += VBOX_X11_CLIPBOARD VBOX_HGCM
28VBoxClient_DEFS.linux += _GNU_SOURCE
29VBoxClient_SOURCES = \
30 main.cpp
31VBoxClient_SOURCES += \
32 clipboard-new.cpp
33VBoxClient_LIBPATH = \
34 $(VBOX_LIBPATH32_X11)
35VBoxClient_LIBS = \
36 $(VBOX_LIB_IPRT_GUEST_R3) \
37 $(VBOX_LIB_VBGL_R3) \
38 $(VBOX_LIB_IPRT_GUEST_R3) \
39 X11 \
40 Xt
41ifdef VBOX_X11_SEAMLESS_GUEST
42 VBoxClient_DEFS += SEAMLESS_GUEST DYNAMIC_RESIZE
43 VBoxClient_SOURCES += \
44 seamless-host.cpp \
45 seamless-x11.cpp \
46 thread.cpp \
47 displaychange-x11.cpp
48 VBoxClient_LIBS += \
49 Xext Xmu
50endif
51
52#
53# Link aginst libstdc++.a. (http://www.trilithium.com/johan/2005/06/static-libstdc/).
54# (It would've been preferred to avoid features depending on libstdc++, of course...)
55#
56VBoxClient_LIBPATH += $(PATH_TARGET)/VBoxClient
57VBoxClient_ORDERDEPS = $(PATH_TARGET)/VBoxClient/libstdc++.a
58VBoxClient_CLEAN = $(PATH_TARGET)/VBoxClient/libstdc++.a
59$(PATH_TARGET)/VBoxClient/libstdc++.a:
60 $(call MSG_L1,Forcing static libstdc++)
61 $(QUIET)$(MKDIR) -p $(@D)
62 $(QUIET)$(LN_EXT) -sf `$(TOOL_$(VBOX_GCC32_TOOL)_CXX) -print-file-name=libstdc++.a` $@ \
63 || $(CP_EXT) -f `$(TOOL_$(VBOX_GCC32_TOOL)_CXX) -print-file-name=libstdc++.a` $@
64
65
66ifdef VBOX_X11_SEAMLESS_GUEST
67 ifdef VBOX_WITH_TESTCASES
68 #
69 # Additional testcase designed to be run manually, which initiates and starts the Linux
70 # guest client part of the seamless additions in the host, faking seamless events from
71 # the host and writing information about guest events to standard output.
72 #
73 PROGRAMS += tstSeamlessX11
74 tstSeamlessX11_TEMPLATE = VBOXR3TSTEXE
75 tstSeamlessX11_SOURCES = \
76 testcase/tstSeamlessX11.cpp \
77 seamless-host.cpp \
78 seamless-x11.cpp \
79 thread.cpp
80 tstSeamlessX11_LIBS = \
81 $(LIB_RUNTIME) \
82 Xext \
83 Xmu \
84 X11
85 endif
86endif
87
88include $(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