1 | # $Id: Makefile.kmk 7363 2008-03-07 13:43:50Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Sub-Makefile for the VirtualBox Guest Addition X11 Client.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2006-2007 innotek GmbH
|
---|
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 | DEPTH ?= ../../../../..
|
---|
19 | SUB_DEPTH = ../..
|
---|
20 | include $(PATH_KBUILD)/subheader.kmk
|
---|
21 |
|
---|
22 | #
|
---|
23 | # VBoxClient - clipboard and seamless.
|
---|
24 | #
|
---|
25 | PROGRAMS += VBoxClient
|
---|
26 |
|
---|
27 | VBoxClient_TEMPLATE = VBOXGUESTR3CPPEXE
|
---|
28 | VBoxClient_DEFS += VBOX_X11_CLIPBOARD VBOX_HGCM
|
---|
29 | VBoxClient_DEFS.linux += _GNU_SOURCE
|
---|
30 | VBoxClient_SOURCES = \
|
---|
31 | main.cpp
|
---|
32 | VBoxClient_SOURCES += \
|
---|
33 | clipboard.cpp
|
---|
34 | VBoxClient_LIBPATH = \
|
---|
35 | $(VBOX_LIBPATH32_X11)
|
---|
36 | VBoxClient_LIBS = \
|
---|
37 | $(VBOX_LIB_IPRT_GUEST_R3) \
|
---|
38 | $(VBOX_LIB_VBGL_R3) \
|
---|
39 | $(VBOX_LIB_IPRT_GUEST_R3) \
|
---|
40 | X11 \
|
---|
41 | Xt
|
---|
42 | ifdef VBOX_X11_SEAMLESS_GUEST
|
---|
43 | VBoxClient_DEFS += SEAMLESS_GUEST DYNAMIC_RESIZE
|
---|
44 | VBoxClient_SOURCES += \
|
---|
45 | seamless-host.cpp \
|
---|
46 | seamless-x11.cpp \
|
---|
47 | thread.cpp \
|
---|
48 | displaychange-x11.cpp
|
---|
49 | VBoxClient_LIBS += \
|
---|
50 | Xext Xmu
|
---|
51 | endif
|
---|
52 |
|
---|
53 | #
|
---|
54 | # Link aginst libstdc++.a. (http://www.trilithium.com/johan/2005/06/static-libstdc/).
|
---|
55 | # (It would've been preferred to avoid features depending on libstdc++, of course...)
|
---|
56 | #
|
---|
57 | VBoxClient_LIBPATH += $(PATH_TARGET)/VBoxClient
|
---|
58 | VBoxClient_ORDERDEPS = $(PATH_TARGET)/VBoxClient/libstdc++.a
|
---|
59 | VBoxClient_CLEAN = $(PATH_TARGET)/VBoxClient/libstdc++.a
|
---|
60 | $(PATH_TARGET)/VBoxClient/libstdc++.a:
|
---|
61 | $(call MSG_L1,Forcing static libstdc++)
|
---|
62 | $(QUIET)$(MKDIR) -p $(@D)
|
---|
63 | $(QUIET)$(LN_EXT) -sf `$(TOOL_$(VBOX_GCC32_TOOL)_CXX) -print-file-name=libstdc++.a` $@ \
|
---|
64 | || $(CP_EXT) -f `$(TOOL_$(VBOX_GCC32_TOOL)_CXX) -print-file-name=libstdc++.a` $@
|
---|
65 |
|
---|
66 |
|
---|
67 | ifdef VBOX_X11_SEAMLESS_GUEST
|
---|
68 | ifdef VBOX_WITH_TESTCASES
|
---|
69 | ifndef VBOX_ONLY_ADDITIONS
|
---|
70 | #
|
---|
71 | # Additional testcase designed to be run manually, which initiates and starts the Linux
|
---|
72 | # guest client part of the seamless additions in the host, faking seamless events from
|
---|
73 | # the host and writing information about guest events to standard output.
|
---|
74 | #
|
---|
75 | PROGRAMS += tstSeamlessX11
|
---|
76 | tstSeamlessX11_TEMPLATE = VBOXR3TSTEXE
|
---|
77 | tstSeamlessX11_SOURCES = \
|
---|
78 | testcase/tstSeamlessX11.cpp \
|
---|
79 | seamless-host.cpp \
|
---|
80 | seamless-x11.cpp \
|
---|
81 | thread.cpp
|
---|
82 | tstSeamlessX11_LIBPATH = \
|
---|
83 | $(VBOX_LIBPATH_X11)
|
---|
84 | tstSeamlessX11_LIBS = \
|
---|
85 | $(LIB_RUNTIME) \
|
---|
86 | Xext \
|
---|
87 | Xmu \
|
---|
88 | X11
|
---|
89 | endif
|
---|
90 | endif
|
---|
91 | endif
|
---|
92 |
|
---|
93 | include $(PATH_KBUILD)/subfooter.kmk
|
---|