VirtualBox

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

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

Additions/x11: do not build the seamless host testcase on additions-only builds

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