1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
|
# $Id: Makefile.kmk $
## @file
# Sub-Makefile for the common guest addition code library.
#
#
# Copyright (C) 2006-2019 Oracle Corporation
#
# This file is part of VirtualBox Open Source Edition (OSE), as
# available from http://www.virtualbox.org. This file is free software;
# you can redistribute it and/or modify it under the terms of the GNU
# General Public License (GPL) as published by the Free Software
# Foundation, in version 2 as it comes in the "COPYING" file of the
# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
#
# The contents of this file may alternatively be used under the terms
# of the Common Development and Distribution License Version 1.0
# (CDDL) only, as it comes in the "COPYING.CDDL" file of the
# VirtualBox OSE distribution, in which case the provisions of the
# CDDL are applicable instead of those of the GPL.
#
# You may elect to license modified versions of this file under the
# terms and conditions of either the GPL or the CDDL or both.
#
SUB_DEPTH = ../../../../../..
include $(KBUILD_PATH)/subheader.kmk
#
# Target config.
#
if defined(VBOX_WITH_ADDITION_DRIVERS) && !defined(VBOX_ONLY_VALIDATIONKIT)
LIBRARIES += \
VBoxGuestR0Lib \
VBoxGuestR0LibBase
endif
LIBRARIES += \
VBoxGuestR3Lib \
VBoxGuestR3LibShared
ifndef VBOX_ONLY_VALIDATIONKIT
if1of ($(KBUILD_TARGET), freebsd linux netbsd openbsd)
ifndef VBOX_USE_SYSTEM_XORG_HEADERS
LIBRARIES += \
VBoxGuestR3LibXFree86
endif
endif
if1of ($(KBUILD_TARGET), freebsd linux netbsd openbsd solaris)
LIBRARIES += \
VBoxGuestR3LibXOrg
endif
endif
LIBRARIES.win.amd64 += VBoxGuestR3Lib-x86 VBoxGuestR3LibShared-x86
#
# VBoxGuestR0Lib
#
VBoxGuestR0Lib_TEMPLATE = VBOXGUESTR0LIB
VBoxGuestR0Lib_DEFS = VBOX_WITH_HGCM \
$(if $(VBOX_WITH_DRAG_AND_DROP),VBOX_WITH_DRAG_AND_DROP,) \
$(if $(VBOX_WITH_DRAG_AND_DROP_GH),VBOX_WITH_DRAG_AND_DROP_GH,)
VBoxGuestR0Lib_INCS = \
$(VBoxGuestR0Lib_0_OUTDIR)
VBoxGuestR0Lib_SOURCES = \
VBoxGuestR0LibInit.cpp \
VBoxGuestR0LibPhysHeap.cpp \
VBoxGuestR0LibGenericRequest.cpp \
VBoxGuestR0LibVMMDev.cpp \
VBoxGuestR0LibHGCM.cpp \
VbglR0CanUsePhysPageList.cpp \
\
VBoxGuestR0LibIdc.cpp \
VBoxGuestR0LibSharedFolders.c \
VBoxGuestR0LibCrOgl.cpp \
VBoxGuestR0LibMouse.cpp
VBoxGuestR0Lib_SOURCES.os2 = VBoxGuestR0LibIdc-os2.cpp
VBoxGuestR0Lib_SOURCES.solaris = VBoxGuestR0LibIdc-solaris.cpp
VBoxGuestR0Lib_SOURCES.win = VBoxGuestR0LibIdc-win.cpp
ifn1of ($(KBUILD_TARGET), os2 solaris win)
VBoxGuestR0Lib_SOURCES += VBoxGuestR0LibIdc-unix.cpp
endif
#
# VBoxGuestR0LibBase
#
VBoxGuestR0LibBase_TEMPLATE = VBOXGUESTR0LIB
VBoxGuestR0LibBase_DEFS = VBOX_WITH_HGCM VBGL_VBOXGUEST \
$(if $(VBOX_WITH_DRAG_AND_DROP),VBOX_WITH_DRAG_AND_DROP,) \
$(if $(VBOX_WITH_DRAG_AND_DROP_GH),VBOX_WITH_DRAG_AND_DROP_GH,)
VBoxGuestR0LibBase_INCS = $(VBoxGuestR0Lib_INCS)
VBoxGuestR0LibBase_INCS.win = $(VBoxGuestR0Lib_INCS.win)
VBoxGuestR0LibBase_SOURCES = \
VBoxGuestR0LibInit.cpp \
VBoxGuestR0LibPhysHeap.cpp \
VBoxGuestR0LibGenericRequest.cpp \
VBoxGuestR0LibVMMDev.cpp \
VBoxGuestR0LibHGCMInternal.cpp \
VbglR0CanUsePhysPageList.cpp
#
# VBoxGuestR3Lib
#
if "$(KBUILD_TARGET)" == "win" || defined(VBOX_WITH_MASOCHISTIC_WARNINGS) ## @todo use VBoxGuestR3Lib everywhere
VBoxGuestR3Lib_TEMPLATE = VBoxGuestR3Lib
else
VBoxGuestR3Lib_TEMPLATE = VBOXGUESTR3LIB
endif
VBoxGuestR3Lib_DEFS = \
VBOX_WITH_HGCM \
$(if $(VBOX_WITH_GUEST_PROPS),VBOX_WITH_GUEST_PROPS,) \
$(if $(VBOX_WITH_SHARED_FOLDERS),VBOX_WITH_SHARED_FOLDERS,) \
$(if $(VBOX_WITH_GUEST_CONTROL),VBOX_WITH_GUEST_CONTROL,)
VBoxGuestR3Lib_SOURCES = \
VBoxGuestR3Lib.cpp \
VBoxGuestR3LibAdditions.cpp \
VBoxGuestR3LibAutoLogon.cpp \
VBoxGuestR3LibBalloon.cpp \
VBoxGuestR3LibClipboard.cpp \
VBoxGuestR3LibCoreDump.cpp \
VBoxGuestR3LibCpuHotPlug.cpp \
VBoxGuestR3LibCredentials.cpp \
VBoxGuestR3LibEvent.cpp \
VBoxGuestR3LibGuestUser.cpp \
VBoxGuestR3LibGR.cpp \
VBoxGuestR3LibHGCM.cpp \
VBoxGuestR3LibHostChannel.cpp \
VBoxGuestR3LibLog.cpp \
VBoxGuestR3LibMisc.cpp \
VBoxGuestR3LibStat.cpp \
VBoxGuestR3LibTime.cpp \
VBoxGuestR3LibModule.cpp \
VBoxGuestR3LibPidFile.cpp \
VBoxGuestR3LibVrdp.cpp \
VBoxGuestR3LibMouse.cpp \
VBoxGuestR3LibSeamless.cpp \
VBoxGuestR3LibVideo.cpp
ifneq ($(KBUILD_TARGET),win)
VBoxGuestR3Lib_SOURCES += \
VBoxGuestR3LibDaemonize.cpp
endif
ifdef VBOX_WITH_GUEST_PROPS
VBoxGuestR3Lib_SOURCES += \
VBoxGuestR3LibGuestProp.cpp \
VBoxGuestR3LibHostVersion.cpp
endif
ifdef VBOX_WITH_SHARED_FOLDERS
VBoxGuestR3Lib_SOURCES += \
VBoxGuestR3LibSharedFolders.cpp
endif
ifdef VBOX_WITH_GUEST_CONTROL
VBoxGuestR3Lib_SOURCES += \
VBoxGuestR3LibGuestCtrl.cpp
endif
ifdef VBOX_WITH_DRAG_AND_DROP
VBoxGuestR3Lib_DEFS += \
VBOX_WITH_DRAG_AND_DROP \
$(if $(VBOX_WITH_DRAG_AND_DROP_GH),VBOX_WITH_DRAG_AND_DROP_GH,)
VBoxGuestR3Lib_SOURCES += \
VBoxGuestR3LibDragAndDrop.cpp
endif
VBoxGuestR3LibAdditions.cpp_DEFS = VBOX_SVN_REV=$(VBOX_SVN_REV)
#
# VBoxGuestR3LibShared - a PIC variant of VBoxGuestR3Lib for linking into .so/.dll/.dylib.
#
if "$(KBUILD_TARGET)" == "win" || defined(VBOX_WITH_MASOCHISTIC_WARNINGS) ## @todo use VBoxGuestR3Lib everywhere
VBoxGuestR3LibShared_TEMPLATE = VBoxGuestR3Dll
else
VBoxGuestR3LibShared_TEMPLATE = VBOXGUESTR3DLL
endif
VBoxGuestR3LibShared_DEFS := $(VBoxGuestR3Lib_DEFS)
VBoxGuestR3LibShared_SOURCES := $(VBoxGuestR3Lib_SOURCES)
VBoxGuestR3LibShared_INST := $(INST_ADDITIONS_LIB)
#
# VBoxGuestR3Lib-x86 - an x86 (32-bit) variant of VBoxGuestR3Lib for 64-bit Windows.
#
VBoxGuestR3Lib-x86_EXTENDS := VBoxGuestR3Lib
VBoxGuestR3Lib-x86_BLD_TRG_ARCH := x86
#
# VBoxGuestR3LibShared-x86 - an x86 (32-bit) variant of VBoxGuestR3LibShared for 64-bit Windows.
#
VBoxGuestR3LibShared-x86_EXTENDS := VBoxGuestR3LibShared
VBoxGuestR3LibShared-x86_BLD_TRG_ARCH := x86
#
# VBoxGuestR3LibXFree86 - a reduced version of the guest library which uses
# the X server runtime instead of IPRT, for use with old servers where the
# C library is not available.
#
VBoxGuestR3LibXFree86_TEMPLATE = VBOXGUESTR3XF86LIB
VBoxGuestR3LibXFree86_DEFS = \
VBOX_WITH_HGCM \
VBOX_VBGLR3_XFREE86 \
RTMEM_NO_WRAP_TO_EF_APIS \
$(if $(VBOX_WITH_GUEST_PROPS),VBOX_WITH_GUEST_PROPS,) \
$(if $(VBOX_WITH_DRAG_AND_DROP),VBOX_WITH_DRAG_AND_DROP,) \
$(if $(VBOX_WITH_DRAG_AND_DROP_GH),VBOX_WITH_DRAG_AND_DROP_GH,)
VBoxGuestR3LibXFree86_SOURCES = \
VBoxGuestR3Lib.cpp \
VBoxGuestR3LibGR.cpp \
$(if $(VBOX_WITH_GUEST_PROPS),VBoxGuestR3LibGuestProp.cpp,) \
VBoxGuestR3LibMouse.cpp \
VBoxGuestR3LibMisc.cpp \
VBoxGuestR3LibSeamless.cpp \
VBoxGuestR3LibVideo.cpp \
VBoxGuestR3LibRuntimeXF86.cpp
VBoxGuestR3LibXFree86_INCS = \
$(VBOX_PATH_X11_ROOT)/XFree86-4.3/Xserver \
$(VBOX_PATH_X11_ROOT)/XFree86-4.3 \
$(VBOX_PATH_X11_ROOT)/XFree86-4.3/X11
#
# VBoxGuestR3LibXOrg - a reduced version of the guest library which uses
# the C server runtime instead of IPRT.
#
VBoxGuestR3LibXOrg_TEMPLATE = VBOXGUESTR3XORGLIB
VBoxGuestR3LibXOrg_DEFS = \
VBOX_WITH_HGCM \
VBOX_VBGLR3_XORG \
RTMEM_NO_WRAP_TO_EF_APIS \
IN_RT_STATIC \
$(if $(VBOX_WITH_GUEST_PROPS),VBOX_WITH_GUEST_PROPS,) \
$(if $(VBOX_WITH_DRAG_AND_DROP),VBOX_WITH_DRAG_AND_DROP,) \
$(if $(VBOX_WITH_DRAG_AND_DROP_GH),VBOX_WITH_DRAG_AND_DROP_GH,)
VBoxGuestR3LibXOrg_SOURCES = $(VBoxGuestR3LibXFree86_SOURCES)
VBoxGuestR3LibRuntimeXF86.cpp_CXXFLAGS = -Wno-shadow
include $(FILE_KBUILD_SUB_FOOTER)
|