1 | # $Id: Makefile.kmk 42261 2012-07-20 13:27:47Z 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 |
|
---|
18 | SUB_DEPTH = ../../../../..
|
---|
19 | include $(KBUILD_PATH)/subheader.kmk
|
---|
20 |
|
---|
21 | #
|
---|
22 | # VBoxClient - clipboard and seamless.
|
---|
23 | #
|
---|
24 | PROGRAMS += VBoxClient
|
---|
25 |
|
---|
26 | VBoxClient_TEMPLATE = NewVBoxGuestR3Exe
|
---|
27 | VBoxClient_DEFS += VBOX_X11_CLIPBOARD VBOX_WITH_HGCM
|
---|
28 | ifdef VBOX_WITH_DBUS
|
---|
29 | VBoxClient_DEFS += VBOX_WITH_DBUS
|
---|
30 | endif
|
---|
31 | VBoxClient_DEFS.linux += _GNU_SOURCE
|
---|
32 | VBoxClient_SOURCES = \
|
---|
33 | main.cpp
|
---|
34 | VBoxClient_SOURCES += \
|
---|
35 | $(PATH_ROOT)/src/VBox/GuestHost/SharedClipboard/clipboard-helper.cpp \
|
---|
36 | $(PATH_ROOT)/src/VBox/GuestHost/SharedClipboard/x11-clipboard.cpp \
|
---|
37 | clipboard.cpp
|
---|
38 | VBoxClient_LIBPATH = \
|
---|
39 | $(VBOX_LIBPATH32_X11)
|
---|
40 | VBoxClient_LIBS.freebsd = \
|
---|
41 | iconv
|
---|
42 | VBoxClient_LIBS.linux = \
|
---|
43 | dl
|
---|
44 | VBoxClient_LIBS.solaris = \
|
---|
45 | dl
|
---|
46 | VBoxClient_LIBS = \
|
---|
47 | X11 \
|
---|
48 | Xrandr \
|
---|
49 | Xt
|
---|
50 | # Xtst
|
---|
51 | # These are static replacements for gcc-specific parts of libstdc++
|
---|
52 | VBoxClient_LIBS += \
|
---|
53 | supc++ \
|
---|
54 | gcc_eh
|
---|
55 | ifdef VBOX_X11_SEAMLESS_GUEST
|
---|
56 | VBoxClient_DEFS += SEAMLESS_GUEST DYNAMIC_RESIZE
|
---|
57 | VBoxClient_SOURCES += \
|
---|
58 | seamless.cpp \
|
---|
59 | seamless-host.cpp \
|
---|
60 | seamless-x11.cpp \
|
---|
61 | thread.cpp \
|
---|
62 | display.cpp \
|
---|
63 | hostversion.cpp
|
---|
64 | VBoxClient_LIBS += \
|
---|
65 | Xext Xmu
|
---|
66 | endif
|
---|
67 | ifdef VBOX_WITH_GUEST_PROPS
|
---|
68 | VBoxClient_DEFS += VBOX_WITH_GUEST_PROPS
|
---|
69 | endif
|
---|
70 | ifdef VBOX_WITH_DRAG_AND_DROP
|
---|
71 | VBoxClient_DEFS += \
|
---|
72 | VBOX_WITH_DRAG_AND_DROP \
|
---|
73 | $(if $(VBOX_WITH_DRAG_AND_DROP_GH),VBOX_WITH_DRAG_AND_DROP_GH,)
|
---|
74 | VBoxClient_SOURCES += \
|
---|
75 | draganddrop.cpp
|
---|
76 | endif
|
---|
77 |
|
---|
78 | ifdef VBOX_X11_SEAMLESS_GUEST
|
---|
79 | if defined(VBOX_WITH_TESTCASES) && !defined(VBOX_ONLY_ADDITIONS) && !defined(VBOX_ONLY_SDK)
|
---|
80 | if1of ($(KBUILD_TARGET), freebsd linux netbsd openbsd solaris)
|
---|
81 |
|
---|
82 | # Set this in LocalConfig.kmk if you are working on the X11 clipboard service
|
---|
83 | # to automatically run the unit test at build time.
|
---|
84 | # OTHERS += $(tstSeamlessX11-auto_0_OUTDIR)/tstSeamlessX11-auto.run
|
---|
85 |
|
---|
86 | PROGRAMS += tstSeamlessX11-auto
|
---|
87 | tstSeamlessX11-auto_TEMPLATE = VBOXR3TSTEXE
|
---|
88 | tstSeamlessX11-auto_SOURCES = \
|
---|
89 | testcase/tstSeamlessX11-auto.cpp \
|
---|
90 | seamless-x11.cpp
|
---|
91 | tstSeamlessX11-auto_DEFS = TESTCASE
|
---|
92 | tstSeamlessX11-auto_LIBS = \
|
---|
93 | $(LIB_RUNTIME)
|
---|
94 |
|
---|
95 | TESTING += $(tstSeamlessX11-auto_0_OUTDIR)/tstSeamlessX11-auto
|
---|
96 | $$(tstSeamlessX11-auto_0_OUTDIR)/tstSeamlessX11-auto.run: \
|
---|
97 | $$(tstSeamlessX11-auto_1_STAGE_TARGET)
|
---|
98 | export VBOX_LOG_DEST=nofile; $(tstSeamlessX11-auto_1_STAGE_TARGET) quiet
|
---|
99 | $(QUIET)$(APPEND) -t "$@" "done"
|
---|
100 |
|
---|
101 | #
|
---|
102 | # Additional testcase designed to be run manually, which initiates and starts the Linux
|
---|
103 | # guest client part of the seamless additions in the host, faking seamless events from
|
---|
104 | # the host and writing information about guest events to standard output.
|
---|
105 | #
|
---|
106 | PROGRAMS += tstSeamlessX11
|
---|
107 | tstSeamlessX11_TEMPLATE = VBOXR3TSTEXE
|
---|
108 | tstSeamlessX11_SOURCES = \
|
---|
109 | testcase/tstSeamlessX11.cpp \
|
---|
110 | seamless-host.cpp \
|
---|
111 | seamless-x11.cpp \
|
---|
112 | thread.cpp
|
---|
113 | tstSeamlessX11_LIBPATH = \
|
---|
114 | $(VBOX_LIBPATH_X11)
|
---|
115 | tstSeamlessX11_LIBS = \
|
---|
116 | $(LIB_RUNTIME) \
|
---|
117 | Xext \
|
---|
118 | Xmu \
|
---|
119 | X11
|
---|
120 | endif
|
---|
121 | endif
|
---|
122 | endif
|
---|
123 |
|
---|
124 | include $(FILE_KBUILD_SUB_FOOTER)
|
---|
125 |
|
---|