VirtualBox

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

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

Added VBOXGUESTR3CPPEXE.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.8 KB
Line 
1# $Id: Makefile.kmk 6599 2008-01-30 13:30:33Z vboxsync $
2## @file
3# 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 = ../../../../..
19include $(PATH_KBUILD)/header.kmk
20
21#
22# VBoxClient (clipboard)
23#
24PROGRAMS += VBoxClient
25ifneq ($(BUILD_TARGET),linux) ## @todo Elimiate this too.
26 VBoxClient_TEMPLATE = VBOXGUESTR3CPPEXE
27else
28 VBoxClient_TEMPLATE = VBOXLNX32GUESTR3EXE
29endif
30VBoxClient_DEFS += VBOX_X11_CLIPBOARD VBOX_HGCM
31VBoxClient_DEFS += _GNU_SOURCE
32VBoxClient_SOURCES = \
33 main.cpp
34
35ifneq ($(BUILD_TARGET),linux)
36 VBoxClient_SOURCES += \
37 clipboard-new.cpp
38 VBoxClient_LIBS = \
39 $(VBOX_LIB_IPRT_GUEST_R3) \
40 $(VBOX_LIB_VBGL_R3) \
41 X11 \
42 Xt
43else
44 VBoxClient_SOURCES += \
45 clipboard.cpp
46 VBoxClient_LIBPATH = \
47 $(VBOX_LIBPATH32_X11)
48 VBoxClient_LIBS = \
49 $(PATH_LIB)/RuntimeLnx32GuestR3.a \
50 $(PATH_LIB)/VBoxGuestR3LibLinux.a \
51 $(PATH_LIB)/RuntimeLnx32GuestR3.a \
52 pthread \
53 rt \
54 Xt \
55 X11
56endif # target linux
57
58#
59# VBoxClient (seamless)
60#
61ifdef VBOX_X11_SEAMLESS_GUEST
62 VBoxClient_DEFS += SEAMLESS_X11
63 VBoxClient_SOURCES += \
64 seamless-host.cpp \
65 seamless-x11.cpp \
66 thread.cpp
67 VBoxClient_LIBS += \
68 Xext
69
70 ifdef VBOX_WITH_TESTCASES
71 #
72 # Additional testcase designed to be run manually, which initiates and starts the Linux
73 # guest client part of the seamless additions in the host, faking seamless events from
74 # the host and writing information about guest events to standard output.
75 #
76 PROGRAMS += tstSeamlessX11
77 tstSeamlessX11_TEMPLATE = VBOXR3TSTEXE
78 tstSeamlessX11_SOURCES = \
79 testcase/tstSeamlessX11.cpp \
80 seamless-host.cpp \
81 seamless-x11.cpp \
82 thread.cpp
83 tstSeamlessX11_LIBS = \
84 $(LIB_RUNTIME) \
85 Xext \
86 X11
87 endif
88endif
89
90
91#
92# Link aginst libstdc++.a. (http://www.trilithium.com/johan/2005/06/static-libstdc/).
93# (It would've been preferred to avoid features depending on libstdc++, of course...)
94#
95VBoxClient_LIBPATH = $(PATH_TARGET)/VBoxClient
96VBoxClient_ORDERDEPS = $(PATH_TARGET)/VBoxClient/libstdc++.a
97VBoxClient_CLEAN = $(PATH_TARGET)/VBoxClient/libstdc++.a
98$(PATH_TARGET)/VBoxClient/libstdc++.a:
99 $(call MSG_L1,Forcing static libstdc++)
100 $(QUIET)$(MKDIR) -p $(@D)
101 $(QUIET)$(LN_EXT) -sf `$(TOOL_$(VBOX_GCC32_TOOL)_CXX) -print-file-name=libstdc++.a` $@ \
102 || $(CP_EXT) -f `$(TOOL_$(VBOX_GCC32_TOOL)_CXX) -print-file-name=libstdc++.a` $@
103
104include $(PATH_KBUILD)/footer.kmk
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