VirtualBox

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

Last change on this file since 50460 was 50460, checked in by vboxsync, 11 years ago

DnD: Update.

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