VirtualBox

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

Last change on this file since 80074 was 79483, checked in by vboxsync, 6 years ago

Config.kmk,x11/VBoxClient: Disabled runtime type info for GA components (VBoxClient) and enabled RT_NEED_NEW_AND_DELETE so we can skip linking against supc++ and gcc_eh.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 5.1 KB
Line 
1# $Id: Makefile.kmk 79483 2019-07-03 02:37:12Z vboxsync $
2## @file
3# Sub-Makefile for the VirtualBox Guest Addition X11 Client.
4#
5
6#
7# Copyright (C) 2006-2019 Oracle Corporation
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
18SUB_DEPTH = ../../../../..
19include $(KBUILD_PATH)/subheader.kmk
20
21#
22# VBoxClient - clipboard and seamless.
23#
24PROGRAMS += VBoxClient
25
26VBoxClient_TEMPLATE = NewVBoxGuestR3Exe
27VBoxClient_DEFS += VBOX_X11_CLIPBOARD VBOX_WITH_HGCM
28ifdef VBOX_WITH_DBUS
29 VBoxClient_DEFS += VBOX_WITH_DBUS
30endif
31VBoxClient_DEFS.linux += _GNU_SOURCE
32VBoxClient_INCS = $(VBOX_GRAPHICS_INCS)
33VBoxClient_SOURCES = \
34 main.cpp \
35 display-svga.cpp \
36 display-svga-x11.cpp \
37 seamless.cpp \
38 seamless-x11.cpp \
39 display.cpp \
40 hostversion.cpp \
41 check3d.cpp
42
43VBoxClient_SOURCES.linux = \
44 chk_stubs.c
45VBoxClient_LIBPATH = \
46 $(VBOX_LIBPATH32_X11)
47VBoxClient_LIBS.freebsd = \
48 iconv
49VBoxClient_LIBS.linux = \
50 dl
51VBoxClient_LIBS.solaris = \
52 dl
53VBoxClient_LIBS = \
54 X11 Xrandr Xt Xext Xmu
55
56# XXX: -L comes from the template, but not rpath
57VBoxClient_LDFLAGS.netbsd = \
58 -Wl,-rpath /usr/X11R7/lib
59
60ifdef VBOX_WITH_DRAG_AND_DROP
61 ifdef VBOX_DND_WITH_XTEST
62 VBoxClient_DEFS += VBOX_DND_WITH_XTEST
63 VBoxClient_LIBS += \
64 Xtst
65 endif
66endif
67
68# This forces the memcpy references in the static libraries to go to
69# __wrap_memcpy, which we can wrap around memcpy@GLIBC_2.2.5. I do not know
70# how else to do that without recompiling or implementing our own memcpy.
71ifeq ($(KBUILD_TARGET),linux)
72VBoxClient_LDFLAGS.amd64 += \
73 -Wl,--wrap=memcpy
74endif
75
76ifdef VBOX_WITH_GUEST_PROPS
77VBoxClient_DEFS += VBOX_WITH_GUEST_PROPS
78endif
79
80ifdef VBOX_WITH_DRAG_AND_DROP
81VBoxClient_DEFS += \
82 VBOX_WITH_DRAG_AND_DROP \
83 $(if $(VBOX_WITH_DRAG_AND_DROP_GH),VBOX_WITH_DRAG_AND_DROP_GH,)
84VBoxClient_SOURCES += \
85 draganddrop.cpp
86VBoxClient_LIBS += \
87 $(VBOX_LIB_VBGL_R3) \
88 $(PATH_STAGE_LIB)/additions/VBoxDnDGuestR3Lib$(VBOX_SUFF_LIB)
89endif
90
91ifdef VBOX_WITH_SHARED_CLIPBOARD
92 VBoxClient_DEFS += \
93 VBOX_WITH_SHARED_CLIPBOARD \
94 $(if $(VBOX_WITH_SHARED_CLIPBOARD_URI_LIST),VBOX_WITH_SHARED_CLIPBOARD_URI_LIST,)
95 VBoxClient_SOURCES += \
96 $(PATH_ROOT)/src/VBox/GuestHost/SharedClipboard/clipboard-common.cpp \
97 $(PATH_ROOT)/src/VBox/GuestHost/SharedClipboard/clipboard-x11.cpp \
98 clipboard.cpp
99 ifdef VBOX_WITH_SHARED_CLIPBOARD_URI_LIST
100 VBoxClient_DEFS += VBOX_WITH_SHARED_CLIPBOARD_GUEST
101 VBoxClient_SOURCES += \
102 $(PATH_ROOT)/src/VBox/GuestHost/SharedClipboard/ClipboardURIList.cpp \
103 $(PATH_ROOT)/src/VBox/GuestHost/SharedClipboard/ClipboardURIObject.cpp \
104 $(PATH_ROOT)/src/VBox/GuestHost/SharedClipboard/ClipboardPath.cpp \
105 $(PATH_ROOT)/src/VBox/GuestHost/SharedClipboard/ClipboardProvider.cpp \
106 $(PATH_ROOT)/src/VBox/GuestHost/SharedClipboard/ClipboardProvider-VbglR3.cpp
107 ifdef VBOX_WITH_LIBFUSE_DISABLED
108 VBoxClient_SOURCES += \
109 clipboard-fuse.cpp
110 VBoxClient_LIBS += \
111 libfuse
112 endif
113 ifdef VBOX_WITH_LIBGVFS
114 VBoxClient_SOURCES += \
115 clipboard-gvfs.c
116 VBOX_VBOXCLIENT_GVFS_VER:=1.31.92
117 VBoxClient_INCS += \
118 gvfs-$(VBOX_VBOXCLIENT_GVFS_VER)/common \
119 gvfs-$(VBOX_VBOXCLIENT_GVFS_VER)/client \
120 gvfs-$(VBOX_VBOXCLIENT_GVFS_VER)/daemon \
121 /usr/lib/x86_64-linux-gnu/glib-2.0/include \
122 /usr/include/glib-2.0
123 VBoxClient_LIBS += \
124 libgio-2.0 \
125 libglib-2.0
126 endif
127 endif
128endif
129
130if defined(VBOX_WITH_TESTCASES) && !defined(VBOX_ONLY_ADDITIONS) && !defined(VBOX_ONLY_SDK)
131 if1of ($(KBUILD_TARGET), freebsd linux netbsd openbsd solaris)
132
133# Set this in LocalConfig.kmk if you are working on the X11 clipboard service
134# to automatically run the unit test at build time.
135# OTHERS += $(tstSeamlessX11-auto_0_OUTDIR)/tstSeamlessX11-auto.run
136
137 PROGRAMS += tstSeamlessX11-auto
138 tstSeamlessX11-auto_TEMPLATE = VBOXR3TSTEXE
139 tstSeamlessX11-auto_SOURCES = \
140 testcase/tstSeamlessX11-auto.cpp \
141 seamless-x11.cpp
142 tstSeamlessX11-auto_DEFS = TESTCASE
143 tstSeamlessX11-auto_LIBS = \
144 $(LIB_RUNTIME)
145
146 TESTING += $(tstSeamlessX11-auto_0_OUTDIR)/tstSeamlessX11-auto
147$$(tstSeamlessX11-auto_0_OUTDIR)/tstSeamlessX11-auto.run: \
148 $$(tstSeamlessX11-auto_1_STAGE_TARGET)
149 export VBOX_LOG_DEST=nofile; $(tstSeamlessX11-auto_1_STAGE_TARGET) quiet
150 $(QUIET)$(APPEND) -t "$@" "done"
151
152 #
153 # Additional testcase designed to be run manually, which initiates and starts the Linux
154 # guest client part of the seamless additions in the host, faking seamless events from
155 # the host and writing information about guest events to standard output.
156 #
157 PROGRAMS += tstSeamlessX11
158 tstSeamlessX11_TEMPLATE = VBOXR3TSTEXE
159 tstSeamlessX11_SOURCES = \
160 testcase/tstSeamlessX11.cpp \
161 seamless.cpp \
162 seamless-x11.cpp
163 tstSeamlessX11_LIBPATH = \
164 $(VBOX_LIBPATH_X11)
165 tstSeamlessX11_LIBS = \
166 $(LIB_RUNTIME) \
167 Xext \
168 Xmu \
169 X11
170 endif
171endif
172
173include $(FILE_KBUILD_SUB_FOOTER)
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