1 | # $Id: Makefile.kmk 39454 2011-11-29 10:57:46Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Sub-Makefile for the VirtualBox Guest Addition X11 Client.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2006-2007 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 = VBOXGUESTR3EXE
|
---|
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 | $(VBOX_LIB_IPRT_GUEST_R3) \
|
---|
48 | $(VBOX_LIB_VBGL_R3) \
|
---|
49 | $(VBOX_LIB_IPRT_GUEST_R3) \
|
---|
50 | X11 \
|
---|
51 | Xrandr \
|
---|
52 | Xt
|
---|
53 | # Xtst
|
---|
54 | # These are static replacements for gcc-specific parts of libstdc++
|
---|
55 | VBoxClient_LIBS += \
|
---|
56 | supc++ \
|
---|
57 | gcc_eh
|
---|
58 | ifdef VBOX_X11_SEAMLESS_GUEST
|
---|
59 | VBoxClient_DEFS += SEAMLESS_GUEST DYNAMIC_RESIZE
|
---|
60 | VBoxClient_SOURCES += \
|
---|
61 | seamless.cpp \
|
---|
62 | seamless-host.cpp \
|
---|
63 | seamless-x11.cpp \
|
---|
64 | thread.cpp \
|
---|
65 | display.cpp \
|
---|
66 | hostversion.cpp
|
---|
67 | VBoxClient_LIBS += \
|
---|
68 | Xext Xmu
|
---|
69 | endif
|
---|
70 | ifdef VBOX_WITH_GUEST_PROPS
|
---|
71 | VBoxClient_DEFS += VBOX_WITH_GUEST_PROPS
|
---|
72 | endif
|
---|
73 | ifdef VBOX_WITH_DRAG_AND_DROP
|
---|
74 | VBoxClient_DEFS += VBOX_WITH_DRAG_AND_DROP
|
---|
75 | VBoxClient_SOURCES += \
|
---|
76 | draganddrop.cpp
|
---|
77 | endif
|
---|
78 |
|
---|
79 | ifdef VBOX_X11_SEAMLESS_GUEST
|
---|
80 | if defined(VBOX_WITH_TESTCASES) && !defined(VBOX_ONLY_ADDITIONS) && !defined(VBOX_ONLY_SDK)
|
---|
81 | if1of ($(KBUILD_TARGET), freebsd linux netbsd openbsd solaris)
|
---|
82 |
|
---|
83 | # Set this in LocalConfig.kmk if you are working on the X11 clipboard service
|
---|
84 | # to automatically run the unit test at build time.
|
---|
85 | # OTHERS += $(tstSeamlessX11-auto_0_OUTDIR)/tstSeamlessX11-auto.run
|
---|
86 |
|
---|
87 | PROGRAMS += tstSeamlessX11-auto
|
---|
88 | tstSeamlessX11-auto_TEMPLATE = VBOXR3TSTEXE
|
---|
89 | tstSeamlessX11-auto_SOURCES = \
|
---|
90 | testcase/tstSeamlessX11-auto.cpp \
|
---|
91 | seamless-x11.cpp
|
---|
92 | tstSeamlessX11-auto_DEFS = TESTCASE
|
---|
93 | tstSeamlessX11-auto_LIBS = \
|
---|
94 | $(LIB_RUNTIME)
|
---|
95 |
|
---|
96 | TESTING += $(tstSeamlessX11-auto_0_OUTDIR)/tstSeamlessX11-auto
|
---|
97 | $$(tstSeamlessX11-auto_0_OUTDIR)/tstSeamlessX11-auto.run: \
|
---|
98 | $$(tstSeamlessX11-auto_1_STAGE_TARGET)
|
---|
99 | export VBOX_LOG_DEST=nofile; $(tstSeamlessX11-auto_1_STAGE_TARGET) quiet
|
---|
100 | $(QUIET)$(APPEND) -t "$@" "done"
|
---|
101 |
|
---|
102 | #
|
---|
103 | # Additional testcase designed to be run manually, which initiates and starts the Linux
|
---|
104 | # guest client part of the seamless additions in the host, faking seamless events from
|
---|
105 | # the host and writing information about guest events to standard output.
|
---|
106 | #
|
---|
107 | PROGRAMS += tstSeamlessX11
|
---|
108 | tstSeamlessX11_TEMPLATE = VBOXR3TSTEXE
|
---|
109 | tstSeamlessX11_SOURCES = \
|
---|
110 | testcase/tstSeamlessX11.cpp \
|
---|
111 | seamless-host.cpp \
|
---|
112 | seamless-x11.cpp \
|
---|
113 | thread.cpp
|
---|
114 | tstSeamlessX11_LIBPATH = \
|
---|
115 | $(VBOX_LIBPATH_X11)
|
---|
116 | tstSeamlessX11_LIBS = \
|
---|
117 | $(LIB_RUNTIME) \
|
---|
118 | Xext \
|
---|
119 | Xmu \
|
---|
120 | X11
|
---|
121 | endif
|
---|
122 | endif
|
---|
123 | endif
|
---|
124 |
|
---|
125 | include $(KBUILD_PATH)/subfooter.kmk
|
---|
126 |
|
---|