1 | # $Id: Makefile.kmk 16014 2009-01-18 00:04:12Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Sub-Makefile for the VirtualBox Guest Addition X11 Client.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2006-2007 Sun Microsystems, Inc.
|
---|
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 | # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
|
---|
18 | # Clara, CA 95054 USA or visit http://www.sun.com if you need
|
---|
19 | # additional information or have any questions.
|
---|
20 | #
|
---|
21 |
|
---|
22 | SUB_DEPTH = ../../../../..
|
---|
23 | include $(KBUILD_PATH)/subheader.kmk
|
---|
24 |
|
---|
25 | #
|
---|
26 | # VBoxClient - clipboard and seamless.
|
---|
27 | #
|
---|
28 | PROGRAMS += VBoxClient
|
---|
29 |
|
---|
30 | VBoxClient_TEMPLATE = VBOXGUESTR3CPPEXE
|
---|
31 | VBoxClient_DEFS += VBOX_X11_CLIPBOARD VBOX_WITH_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.freebsd = \
|
---|
40 | iconv
|
---|
41 | VBoxClient_LIBS = \
|
---|
42 | $(VBOX_LIB_IPRT_GUEST_R3) \
|
---|
43 | $(VBOX_LIB_VBGL_R3) \
|
---|
44 | $(VBOX_LIB_IPRT_GUEST_R3) \
|
---|
45 | X11 \
|
---|
46 | Xt
|
---|
47 | # These are static replacements for gcc-specific parts of libstdc++
|
---|
48 | VBoxClient_LIBS += \
|
---|
49 | supc++ \
|
---|
50 | gcc_eh
|
---|
51 | ifdef VBOX_X11_SEAMLESS_GUEST
|
---|
52 | VBoxClient_DEFS += SEAMLESS_GUEST DYNAMIC_RESIZE
|
---|
53 | VBoxClient_SOURCES += \
|
---|
54 | seamless-host.cpp \
|
---|
55 | seamless-x11.cpp \
|
---|
56 | thread.cpp \
|
---|
57 | displaychange-x11.cpp
|
---|
58 | VBoxClient_LIBS += \
|
---|
59 | Xext Xmu
|
---|
60 | endif
|
---|
61 |
|
---|
62 | #
|
---|
63 | # Link aginst libstdc++.a. (http://www.trilithium.com/johan/2005/06/static-libstdc/).
|
---|
64 | # (It would've been preferred to avoid features depending on libstdc++, of course...)
|
---|
65 | #
|
---|
66 | # Actually, this is darn annoying and will *NOT* be tolerated for any new code!
|
---|
67 | #
|
---|
68 | VBoxClient_LIBPATH += $(PATH_VBoxClient)
|
---|
69 | VBoxClient_ORDERDEPS = $(PATH_VBoxClient)/libstdc++.a
|
---|
70 | VBoxClient_CLEAN = $(PATH_VBoxClient)/libstdc++.a
|
---|
71 | $$(PATH_VBoxClient)/libstdc++.a:
|
---|
72 | $(call MSG_L1,Forcing static libstdc++)
|
---|
73 | $(QUIET)$(MKDIR) -p $(@D)
|
---|
74 | $(QUIET)$(LN_EXT) -sf `$(TOOL_$(VBOX_GCC_TOOL)_CXX) $(TEMPLATE_VBOXGUESTR3CPPEXE_CXXFLAGS.$(KBUILD_TARGET_ARCH)) -print-file-name=libstdc++.a` $@ \
|
---|
75 | || $(CP_EXT) -f `$(TOOL_$(VBOX_GCC_TOOL)_CXX) $(TEMPLATE_VBOXGUESTR3CPPEXE_CXXFLAGS.$(KBUILD_TARGET_ARCH)) -print-file-name=libstdc++.a` $@
|
---|
76 |
|
---|
77 |
|
---|
78 | ifdef VBOX_X11_SEAMLESS_GUEST
|
---|
79 | ifdef VBOX_WITH_TESTCASES
|
---|
80 | ifndef VBOX_ONLY_ADDITIONS
|
---|
81 | #
|
---|
82 | # Additional testcase designed to be run manually, which initiates and starts the Linux
|
---|
83 | # guest client part of the seamless additions in the host, faking seamless events from
|
---|
84 | # the host and writing information about guest events to standard output.
|
---|
85 | #
|
---|
86 | PROGRAMS += tstSeamlessX11
|
---|
87 | tstSeamlessX11_TEMPLATE = VBOXR3TSTEXE
|
---|
88 | tstSeamlessX11_SOURCES = \
|
---|
89 | testcase/tstSeamlessX11.cpp \
|
---|
90 | seamless-host.cpp \
|
---|
91 | seamless-x11.cpp \
|
---|
92 | thread.cpp
|
---|
93 | tstSeamlessX11_LIBPATH = \
|
---|
94 | $(VBOX_LIBPATH_X11)
|
---|
95 | tstSeamlessX11_LIBS = \
|
---|
96 | $(LIB_RUNTIME) \
|
---|
97 | Xext \
|
---|
98 | Xmu \
|
---|
99 | X11
|
---|
100 | endif
|
---|
101 | endif
|
---|
102 | endif
|
---|
103 |
|
---|
104 | include $(KBUILD_PATH)/subfooter.kmk
|
---|
105 |
|
---|