VirtualBox

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

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

Moved VBOX_X11_SEAMLESS_GUEST to Config.kmk so it can be overridden.

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