VirtualBox

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

Last change on this file since 56301 was 56301, checked in by vboxsync, 9 years ago

*.kmk: Updated (C) year.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.7 KB
Line 
1# $Id: Makefile.kmk 56301 2015-06-09 14:38:36Z vboxsync $
2## @file
3# Sub-Makefile for the VirtualBox Guest Addition X11 Client.
4#
5
6#
7# Copyright (C) 2006-2015 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_SOURCES = \
33 main.cpp
34VBoxClient_SOURCES += \
35 $(PATH_ROOT)/src/VBox/GuestHost/SharedClipboard/clipboard-helper.cpp \
36 $(PATH_ROOT)/src/VBox/GuestHost/SharedClipboard/x11-clipboard.cpp \
37 clipboard.cpp
38VBoxClient_LIBPATH = \
39 $(VBOX_LIBPATH32_X11)
40VBoxClient_LIBS.freebsd = \
41 iconv
42VBoxClient_LIBS.linux = \
43 dl
44VBoxClient_LIBS.solaris = \
45 dl
46VBoxClient_LIBS = \
47 X11 \
48 Xrandr \
49 Xt
50
51ifdef VBOX_WITH_DRAG_AND_DROP
52 ifdef VBOX_DND_WITH_XTEST
53 VBoxClient_DEFS += VBOX_DND_WITH_XTEST
54 VBoxClient_LIBS += \
55 Xtst
56 endif
57endif
58
59# These are static replacements for gcc-specific parts of libstdc++
60VBoxClient_LIBS += \
61 supc++ \
62 gcc_eh
63ifdef VBOX_X11_SEAMLESS_GUEST
64 VBoxClient_DEFS += SEAMLESS_GUEST DYNAMIC_RESIZE
65 VBoxClient_SOURCES += \
66 seamless.cpp \
67 seamless-x11.cpp \
68 display.cpp \
69 hostversion.cpp
70 VBoxClient_LIBS += \
71 Xext Xmu
72endif
73ifdef VBOX_WITH_GUEST_PROPS
74 VBoxClient_DEFS += VBOX_WITH_GUEST_PROPS
75endif
76ifdef VBOX_WITH_DRAG_AND_DROP
77 VBoxClient_DEFS += \
78 VBOX_WITH_DRAG_AND_DROP \
79 $(if $(VBOX_WITH_DRAG_AND_DROP_GH),VBOX_WITH_DRAG_AND_DROP_GH,)
80 VBoxClient_SOURCES += \
81 draganddrop.cpp
82 VBoxClient_LIBS += \
83 $(PATH_STAGE_LIB)/additions/VBoxDnDGuestR3Lib$(VBOX_SUFF_LIB)
84endif
85
86ifdef VBOX_X11_SEAMLESS_GUEST
87 if defined(VBOX_WITH_TESTCASES) && !defined(VBOX_ONLY_ADDITIONS) && !defined(VBOX_ONLY_SDK)
88 if1of ($(KBUILD_TARGET), freebsd linux netbsd openbsd solaris)
89
90# Set this in LocalConfig.kmk if you are working on the X11 clipboard service
91# to automatically run the unit test at build time.
92# OTHERS += $(tstSeamlessX11-auto_0_OUTDIR)/tstSeamlessX11-auto.run
93
94 PROGRAMS += tstSeamlessX11-auto
95 tstSeamlessX11-auto_TEMPLATE = VBOXR3TSTEXE
96 tstSeamlessX11-auto_SOURCES = \
97 testcase/tstSeamlessX11-auto.cpp \
98 seamless-x11.cpp
99 tstSeamlessX11-auto_DEFS = TESTCASE
100 tstSeamlessX11-auto_LIBS = \
101 $(LIB_RUNTIME)
102
103 TESTING += $(tstSeamlessX11-auto_0_OUTDIR)/tstSeamlessX11-auto
104$$(tstSeamlessX11-auto_0_OUTDIR)/tstSeamlessX11-auto.run: \
105 $$(tstSeamlessX11-auto_1_STAGE_TARGET)
106 export VBOX_LOG_DEST=nofile; $(tstSeamlessX11-auto_1_STAGE_TARGET) quiet
107 $(QUIET)$(APPEND) -t "$@" "done"
108
109 #
110 # Additional testcase designed to be run manually, which initiates and starts the Linux
111 # guest client part of the seamless additions in the host, faking seamless events from
112 # the host and writing information about guest events to standard output.
113 #
114 PROGRAMS += tstSeamlessX11
115 tstSeamlessX11_TEMPLATE = VBOXR3TSTEXE
116 tstSeamlessX11_SOURCES = \
117 testcase/tstSeamlessX11.cpp \
118 seamless.cpp \
119 seamless-x11.cpp
120 tstSeamlessX11_LIBPATH = \
121 $(VBOX_LIBPATH_X11)
122 tstSeamlessX11_LIBS = \
123 $(LIB_RUNTIME) \
124 Xext \
125 Xmu \
126 X11
127 endif
128 endif
129endif
130
131include $(FILE_KBUILD_SUB_FOOTER)
132
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