VirtualBox

source: vbox/trunk/src/VBox/Additions/common/VBoxGuestLib/Makefile.kmk@ 55772

Last change on this file since 55772 was 52214, checked in by vboxsync, 10 years ago

Additions/x11: do not pull the whole (mini) run-time library into the X.Org drivers, fix for Windows.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 6.7 KB
Line 
1# $Id: Makefile.kmk 52214 2014-07-28 18:16:13Z vboxsync $
2## @file
3# Sub-Makefile for the common guest addition code library.
4#
5
6#
7# Copyright (C) 2006-2013 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# The contents of this file may alternatively be used under the terms
18# of the Common Development and Distribution License Version 1.0
19# (CDDL) only, as it comes in the "COPYING.CDDL" file of the
20# VirtualBox OSE distribution, in which case the provisions of the
21# CDDL are applicable instead of those of the GPL.
22#
23# You may elect to license modified versions of this file under the
24# terms and conditions of either the GPL or the CDDL or both.
25#
26
27SUB_DEPTH = ../../../../..
28include $(KBUILD_PATH)/subheader.kmk
29
30#
31# Target config.
32#
33if defined(VBOX_WITH_ADDITION_DRIVERS) && !defined(VBOX_ONLY_VALIDATIONKIT)
34 LIBRARIES += \
35 VBoxGuestR0Lib \
36 VBoxGuestR0LibBase
37endif
38LIBRARIES += \
39 VBoxGuestR3Lib \
40 VBoxGuestR3LibShared
41ifndef VBOX_ONLY_VALIDATIONKIT
42 if1of ($(KBUILD_TARGET), freebsd linux netbsd openbsd)
43 LIBRARIES += \
44 VBoxGuestR3LibXFree86
45 endif
46 if1of ($(KBUILD_TARGET), freebsd linux netbsd openbsd solaris)
47 LIBRARIES += \
48 VBoxGuestR3LibXOrg
49 endif
50endif
51LIBRARIES.win.amd64 += VBoxGuestR3Lib-x86 VBoxGuestR3LibShared-x86
52
53
54#
55# VBoxGuestR0Lib
56#
57VBoxGuestR0Lib_TEMPLATE = VBOXGUESTR0LIB
58VBoxGuestR0Lib_DEFS = VBOX_WITH_HGCM \
59 $(if $(VBOX_WITH_DRAG_AND_DROP),VBOX_WITH_DRAG_AND_DROP,) \
60 $(if $(VBOX_WITH_DRAG_AND_DROP_GH),VBOX_WITH_DRAG_AND_DROP_GH,)
61VBoxGuestR0Lib_INCS = \
62 $(VBoxGuestR0Lib_0_OUTDIR)
63VBoxGuestR0Lib_SOURCES = \
64 GenericRequest.cpp \
65 SysHlp.cpp \
66 PhysHeap.cpp \
67 Init.cpp \
68 Mouse.cpp \
69 VMMDev.cpp \
70 HGCM.cpp \
71 VBoxGuestR0LibSharedFolders.c \
72 VBoxGuestR0LibCrOgl.cpp \
73 VbglR0CanUsePhysPageList.cpp
74
75#
76# VBoxGuestR0LibBase
77#
78VBoxGuestR0LibBase_TEMPLATE = VBOXGUESTR0LIB
79VBoxGuestR0LibBase_DEFS = VBOX_WITH_HGCM VBGL_VBOXGUEST \
80 $(if $(VBOX_WITH_DRAG_AND_DROP),VBOX_WITH_DRAG_AND_DROP,) \
81 $(if $(VBOX_WITH_DRAG_AND_DROP_GH),VBOX_WITH_DRAG_AND_DROP_GH,)
82VBoxGuestR0LibBase_INCS = $(VBoxGuestR0Lib_INCS)
83VBoxGuestR0LibBase_INCS.win = $(VBoxGuestR0Lib_INCS.win)
84VBoxGuestR0LibBase_SOURCES = \
85 GenericRequest.cpp \
86 SysHlp.cpp \
87 PhysHeap.cpp \
88 Init.cpp \
89 VMMDev.cpp \
90 HGCMInternal.cpp \
91 VbglR0CanUsePhysPageList.cpp
92
93#
94# VBoxGuestR3Lib
95#
96VBoxGuestR3Lib_TEMPLATE = VBOXGUESTR3LIB
97VBoxGuestR3Lib_DEFS = \
98 VBOX_WITH_HGCM \
99 $(if $(VBOX_WITH_GUEST_PROPS),VBOX_WITH_GUEST_PROPS,) \
100 $(if $(VBOX_WITH_SHARED_FOLDERS),VBOX_WITH_SHARED_FOLDERS,) \
101 $(if $(VBOX_WITH_GUEST_CONTROL),VBOX_WITH_GUEST_CONTROL,)
102VBoxGuestR3Lib_SOURCES = \
103 VBoxGuestR3Lib.cpp \
104 VBoxGuestR3LibAdditions.cpp \
105 VBoxGuestR3LibAutoLogon.cpp \
106 VBoxGuestR3LibBalloon.cpp \
107 VBoxGuestR3LibClipboard.cpp \
108 VBoxGuestR3LibCoreDump.cpp \
109 VBoxGuestR3LibCpuHotPlug.cpp \
110 VBoxGuestR3LibCredentials.cpp \
111 VBoxGuestR3LibEvent.cpp \
112 VBoxGuestR3LibGuestUser.cpp \
113 VBoxGuestR3LibGR.cpp \
114 VBoxGuestR3LibHostChannel.cpp \
115 VBoxGuestR3LibLog.cpp \
116 VBoxGuestR3LibMisc.cpp \
117 VBoxGuestR3LibStat.cpp \
118 VBoxGuestR3LibTime.cpp \
119 VBoxGuestR3LibModule.cpp
120ifneq ($(KBUILD_TARGET),win) ## @todo get rid of this hack (as soon as it's all implemented / #defined).
121 VBoxGuestR3Lib_SOURCES += \
122 VBoxGuestR3LibDaemonize.cpp \
123 VBoxGuestR3LibMouse.cpp \
124 VBoxGuestR3LibSeamless.cpp \
125 VBoxGuestR3LibVideo.cpp
126endif
127ifdef VBOX_WITH_GUEST_PROPS
128 VBoxGuestR3Lib_SOURCES += \
129 VBoxGuestR3LibGuestProp.cpp \
130 VBoxGuestR3LibHostVersion.cpp
131endif
132ifdef VBOX_WITH_SHARED_FOLDERS
133 VBoxGuestR3Lib_SOURCES += \
134 VBoxGuestR3LibSharedFolders.cpp
135endif
136ifdef VBOX_WITH_GUEST_CONTROL
137 VBoxGuestR3Lib_SOURCES += \
138 VBoxGuestR3LibGuestCtrl.cpp
139endif
140ifdef VBOX_WITH_DRAG_AND_DROP
141 VBoxGuestR3Lib_DEFS += \
142 VBOX_WITH_DRAG_AND_DROP \
143 $(if $(VBOX_WITH_DRAG_AND_DROP_GH),VBOX_WITH_DRAG_AND_DROP_GH,)
144 VBoxGuestR3Lib_SOURCES += \
145 VBoxGuestR3LibDragAndDrop.cpp
146endif
147
148VBoxGuestR3LibAdditions.cpp_DEFS = VBOX_SVN_REV=$(VBOX_SVN_REV)
149
150#
151# VBoxGuestR3LibShared - a PIC variant of VBoxGuestR3Lib for linking into .so/.dll/.dylib.
152#
153VBoxGuestR3LibShared_TEMPLATE = VBOXGUESTR3DLL
154VBoxGuestR3LibShared_DEFS := $(VBoxGuestR3Lib_DEFS)
155VBoxGuestR3LibShared_SOURCES := $(VBoxGuestR3Lib_SOURCES)
156VBoxGuestR3LibShared_INST := $(INST_ADDITIONS_LIB)
157
158
159#
160# VBoxGuestR3Lib-x86 - an x86 (32-bit) variant of VBoxGuestR3Lib for 64-bit Windows.
161#
162VBoxGuestR3Lib-x86_EXTENDS := VBoxGuestR3Lib
163VBoxGuestR3Lib-x86_BLD_TRG_ARCH := x86
164
165
166#
167# VBoxGuestR3LibShared-x86 - an x86 (32-bit) variant of VBoxGuestR3LibShared for 64-bit Windows.
168#
169VBoxGuestR3LibShared-x86_EXTENDS := VBoxGuestR3LibShared
170VBoxGuestR3LibShared-x86_BLD_TRG_ARCH := x86
171
172
173#
174# VBoxGuestR3LibXFree86 - a reduced version of the guest library which uses
175# the X server runtime instead of IPRT, for use with old servers where the
176# C library is not available.
177#
178VBoxGuestR3LibXFree86_TEMPLATE = VBOXGUESTR3XF86LIB
179VBoxGuestR3LibXFree86_DEFS = \
180 VBOX_WITH_HGCM \
181 VBOX_VBGLR3_XFREE86 \
182 RTMEM_NO_WRAP_TO_EF_APIS \
183 $(if $(VBOX_WITH_GUEST_PROPS),VBOX_WITH_GUEST_PROPS,) \
184 $(if $(VBOX_WITH_DRAG_AND_DROP),VBOX_WITH_DRAG_AND_DROP,) \
185 $(if $(VBOX_WITH_DRAG_AND_DROP_GH),VBOX_WITH_DRAG_AND_DROP_GH,)
186VBoxGuestR3LibXFree86_SOURCES = \
187 VBoxGuestR3Lib.cpp \
188 VBoxGuestR3LibGR.cpp \
189 $(if $(VBOX_WITH_GUEST_PROPS),VBoxGuestR3LibGuestProp.cpp,) \
190 VBoxGuestR3LibMouse.cpp \
191 VBoxGuestR3LibMisc.cpp \
192 VBoxGuestR3LibSeamless.cpp \
193 VBoxGuestR3LibVideo.cpp \
194 VBoxGuestR3LibRuntimeXF86.cpp
195VBoxGuestR3LibXFree86_INCS = \
196 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86/common/ \
197 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86/os-support \
198 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/include \
199 $(VBOX_PATH_X11_XFREE_4_3)/include \
200 $(VBOX_PATH_X11_XFREE_4_3)/exports/include/X11
201
202#
203# VBoxGuestR3LibXOrg - a reduced version of the guest library which uses
204# the C server runtime instead of IPRT.
205#
206VBoxGuestR3LibXOrg_TEMPLATE = VBOXGUESTR3XORGLIB
207VBoxGuestR3LibXOrg_DEFS = \
208 VBOX_WITH_HGCM \
209 VBOX_VBGLR3_XORG \
210 RTMEM_NO_WRAP_TO_EF_APIS \
211 IN_RT_STATIC \
212 $(if $(VBOX_WITH_GUEST_PROPS),VBOX_WITH_GUEST_PROPS,) \
213 $(if $(VBOX_WITH_DRAG_AND_DROP),VBOX_WITH_DRAG_AND_DROP,) \
214 $(if $(VBOX_WITH_DRAG_AND_DROP_GH),VBOX_WITH_DRAG_AND_DROP_GH,)
215VBoxGuestR3LibXOrg_SOURCES = $(VBoxGuestR3LibXFree86_SOURCES)
216
217VBoxGuestR3LibRuntimeXF86.cpp_CXXFLAGS = -Wno-shadow
218
219include $(FILE_KBUILD_SUB_FOOTER)
220
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette