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