VirtualBox

source: vbox/trunk/src/VBox/Additions/x11/VBoxClient/Makefile.kmk@ 23794

Last change on this file since 23794 was 23452, checked in by vboxsync, 15 years ago

Makefiles: Corrected properties.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 4.2 KB
Line 
1# $Id: Makefile.kmk 23452 2009-09-30 20:33:08Z 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
22SUB_DEPTH = ../../../../..
23include $(KBUILD_PATH)/subheader.kmk
24
25#
26# VBoxClient - clipboard and seamless.
27#
28PROGRAMS += VBoxClient
29
30VBoxClient_TEMPLATE = VBOXGUESTR3CPPEXE
31VBoxClient_DEFS += VBOX_X11_CLIPBOARD VBOX_WITH_HGCM
32VBoxClient_DEFS.linux += _GNU_SOURCE
33VBoxClient_SOURCES = \
34 main.cpp
35VBoxClient_SOURCES += \
36 $(PATH_ROOT)/src/VBox/GuestHost/SharedClipboard/clipboard-helper.cpp \
37 $(PATH_ROOT)/src/VBox/GuestHost/SharedClipboard/x11-clipboard.cpp \
38 clipboard.cpp
39VBoxClient_LIBPATH = \
40 $(VBOX_LIBPATH32_X11)
41VBoxClient_LIBS.freebsd = \
42 iconv
43VBoxClient_LIBS = \
44 $(VBOX_LIB_IPRT_GUEST_R3) \
45 $(VBOX_LIB_VBGL_R3) \
46 $(VBOX_LIB_IPRT_GUEST_R3) \
47 X11 \
48 Xt
49# These are static replacements for gcc-specific parts of libstdc++
50VBoxClient_LIBS += \
51 supc++ \
52 gcc_eh
53ifdef VBOX_X11_SEAMLESS_GUEST
54 VBoxClient_DEFS += SEAMLESS_GUEST DYNAMIC_RESIZE
55 VBoxClient_SOURCES += \
56 seamless.cpp \
57 seamless-host.cpp \
58 seamless-x11.cpp \
59 thread.cpp \
60 display.cpp
61 VBoxClient_LIBS += \
62 Xext Xmu
63endif
64
65#
66# Link aginst libstdc++.a. (http://www.trilithium.com/johan/2005/06/static-libstdc/).
67# (It would've been preferred to avoid features depending on libstdc++, of course...)
68#
69# Actually, this is darn annoying and will *NOT* be tolerated for any new code!
70#
71VBoxClient_LIBPATH += $(PATH_VBoxClient)
72VBoxClient_ORDERDEPS = $(PATH_VBoxClient)/libstdc++.a
73VBoxClient_CLEAN = $(PATH_VBoxClient)/libstdc++.a
74$$(PATH_VBoxClient)/libstdc++.a:
75 $(call MSG_L1,Forcing static libstdc++)
76 $(QUIET)$(MKDIR) -p $(@D)
77 $(QUIET)$(LN_EXT) -sf `$(TOOL_$(VBOX_GCC_TOOL)_CXX) $(TEMPLATE_VBOXGUESTR3CPPEXE_CXXFLAGS.$(KBUILD_TARGET_ARCH)) -print-file-name=libstdc++.a` $@ \
78 || $(CP_EXT) -f `$(TOOL_$(VBOX_GCC_TOOL)_CXX) $(TEMPLATE_VBOXGUESTR3CPPEXE_CXXFLAGS.$(KBUILD_TARGET_ARCH)) -print-file-name=libstdc++.a` $@
79
80ifdef VBOX_X11_SEAMLESS_GUEST
81 if defined(VBOX_WITH_TESTCASES) && !defined(VBOX_ONLY_ADDITIONS) && !defined(VBOX_ONLY_SDK)
82 if1of ($(KBUILD_TARGET), freebsd linux netbsd openbsd solaris)
83
84# Set this in LocalConfig.kmk if you are working on the X11 clipboard service
85# to automatically run the unit test at build time.
86# OTHERS += $(PATH_tstSeamlessX11-auto)/tstSeamlessX11-auto.run
87
88 PROGRAMS += tstSeamlessX11-auto
89 tstSeamlessX11-auto_TEMPLATE = VBOXR3TSTEXE
90 tstSeamlessX11-auto_SOURCES = \
91 testcase/tstSeamlessX11-auto.cpp \
92 seamless-x11.cpp
93 tstSeamlessX11-auto_DEFS = TESTCASE
94 tstSeamlessX11-auto_LIBS = \
95 $(LIB_RUNTIME)
96
97 TESTING += $(PATH_tstSeamlessX11-auto)/tstSeamlessX11-auto
98$$(PATH_tstSeamlessX11-auto)/tstSeamlessX11-auto.run: \
99 $$(INSTARGET_tstSeamlessX11-auto)
100 export VBOX_LOG_DEST=nofile; $(INSTARGET_tstSeamlessX11-auto) quiet
101 $(QUIET)$(APPEND) -t "$@" "done"
102
103 #
104 # Additional testcase designed to be run manually, which initiates and starts the Linux
105 # guest client part of the seamless additions in the host, faking seamless events from
106 # the host and writing information about guest events to standard output.
107 #
108 PROGRAMS += tstSeamlessX11
109 tstSeamlessX11_TEMPLATE = VBOXR3TSTEXE
110 tstSeamlessX11_SOURCES = \
111 testcase/tstSeamlessX11.cpp \
112 seamless-host.cpp \
113 seamless-x11.cpp \
114 thread.cpp
115 tstSeamlessX11_LIBPATH = \
116 $(VBOX_LIBPATH_X11)
117 tstSeamlessX11_LIBS = \
118 $(LIB_RUNTIME) \
119 Xext \
120 Xmu \
121 X11
122 endif
123 endif
124endif
125
126include $(KBUILD_PATH)/subfooter.kmk
127
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