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
|
# $Id: Makefile.kmk $
## @file
# Top-level makefile for the external libraries.
#
#
# Copyright (C) 2006-2023 Oracle and/or its affiliates.
#
# This file is part of VirtualBox base platform packages, as
# available from https://www.virtualbox.org.
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation, in version 3 of the
# License.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, see <https://www.gnu.org/licenses>.
#
# SPDX-License-Identifier: GPL-3.0-only
#
SUB_DEPTH = ../..
include $(KBUILD_PATH)/subheader.kmk
#
# Note! A number of the libs may be detected on the host system by the configure script.
# The usual way for testing for this is to see whether the Config.kmk default
# include path specific to the lib has been changed.
#
# Note! Mostly alphabetical ordering here, please.
#
# cURL/libcurl used by the IPRT http API.
if defined(VBOX_WITH_LIBCURL) \
&& !defined(VBOX_ONLY_ADDITIONS) \
&& !defined(VBOX_ONLY_EXTPACKS_USE_IMPLIBS) \
&& !defined(VBOX_ONLY_SDK) \
&& (!defined(VBOX_ONLY_VALIDATIONKIT) || defined(VBOX_WITH_VALIDATIONKIT_UNITTESTS_PACKING)) \
&& "$(SDK_VBoxLibCurl_INCS)" == "$(PATH_ROOT)/src/libs/curl-8.7.1/include"
include $(PATH_SUB_CURRENT)/curl-8.7.1/Makefile.kmk
endif
# dxvk-native for supporting DirectX over Vulkan on platforms other than Windows.
if defined(VBOX_WITH_DXVK) \
&& !defined(VBOX_ONLY_BUILD) \
&& "$(SDK_VBoxDxVk_INCS)" == "$(SDK_VBoxDxVk_DEFAULT_INCS)" \
&& "$(intersects $(KBUILD_TARGET_ARCH),$(VBOX_SUPPORTED_HOST_ARCHS))" != ""
include $(PATH_SUB_CURRENT)/dxvk-native-1.9.2a/Makefile.kmk
endif
# libjpeg for VRDP video redirection and ExtPack's DrvHostWebcam.
if (defined(VBOX_WITH_VRDP) || defined(VBOX_WITH_EXTPACK_PUEL)) \
&& !defined(VBOX_ONLY_ADDITIONS) \
&& !defined(VBOX_ONLY_SDK)
include $(PATH_SUB_CURRENT)/libjpeg-turbo-2.1.3/Makefile.kmk
endif
# liblzf is used by the IPRT compression code (saved state compression).
if "$(SDK_VBoxLzf_INCS)" == "$(PATH_ROOT)/src/libs/liblzf-3.6" \
&& !defined(VBOX_ONLY_SDK)
include $(PATH_SUB_CURRENT)/liblzf-3.6/Makefile.kmk
endif
# libssh for cloud integration.
if defined(VBOX_WITH_LIBSSH) \
&& !defined(VBOX_ONLY_BUILD) \
&& "$(intersects $(KBUILD_TARGET_ARCH),$(VBOX_SUPPORTED_HOST_ARCHS))" != ""
include $(PATH_SUB_CURRENT)/libssh-0.10.6/Makefile.kmk
endif
# libtpms for supporting the in process TPM emulation.
if defined(VBOX_WITH_LIBTPMS) \
&& !defined(VBOX_ONLY_BUILD) \
&& ("$(SDK_VBoxLibTpms_INCS)" == "$(SDK_VBoxLibTpms_DEFAULT_INCS)")
include $(PATH_SUB_CURRENT)/libtpms-0.9.6/Makefile.kmk
endif
# libxml2 used by the IPRT xml C++ API.
if !defined(VBOX_ONLY_EXTPACKS_USE_IMPLIBS) \
&& !defined(VBOX_ONLY_ADDITIONS) \
&& !defined(VBOX_ONLY_SDK)
ifeq ($(SDK_VBoxLibXml2_INCS),$(PATH_ROOT)/src/libs/libxml2-2.12.6/include)
include $(PATH_SUB_CURRENT)/libxml2-2.12.6/Makefile.kmk
endif
endif
# OpenSSL.
if !defined(VBOX_ONLY_SDK) \
&& (!defined(VBOX_ONLY_ADDITIONS) || !defined(VBOX_ONLY_ADDITIONS_WITHOUT_RTISOMAKER)) \
&& (!defined(VBOX_ONLY_EXTPACKS) || defined(VBOX_NEED_EXTPACK_OPENSSL) || defined(VBOX_WITH_BLD_RTSIGNTOOL_SIGNING) || !defined(VBOX_ONLY_EXTPACKS_USE_IMPLIBS)) \
&& ("$(SDK_VBoxOpenSslStatic_INCS)" == "$(SDK_VBoxOpenSslStatic_VBOX_DEFAULT_INCS)" || defined(VBOX_NEED_EXTPACK_OPENSSL))
include $(PATH_SUB_CURRENT)/openssl-3.1.5/Makefile.kmk
endif
# SoftFloat is used by the VMM for FPU emulation.
if (!defined(VBOX_ONLY_BUILD) && "$(intersects $(KBUILD_TARGET_ARCH),$(VBOX_SUPPORTED_HOST_ARCHS))" != "") \
|| ( defined(VBOX_WITH_NOCRT_STATIC) \
&& "$(KBUILD_TARGET)" == "win" \
&& ( defined(VBOX_ONLY_ADDITIONS) \
|| (!defined(VBOX_ONLY_BUILD) && defined(VBOX_WITH_ADDITIONS))))
include $(PATH_SUB_CURRENT)/softfloat-3e/Makefile.kmk
endif
# zlib is used by the IPRT compression code, libpng and others.
if !defined(VBOX_ONLY_SDK) \
&& "$(SDK_VBoxZlib_INCS)" == "$(PATH_ROOT)/src/libs/zlib-1.2.13"
include $(PATH_SUB_CURRENT)/zlib-1.2.13/Makefile.kmk
endif
# liblzma is used by the IPRT compression code and the iPXE ROM tool.
if defined(VBOX_WITH_LIBLZMA) \
&& !defined(VBOX_ONLY_SDK) \
&& "$(SDK_VBoxLibLzma_INCS)" == "$(PATH_ROOT)/src/libs/liblzma-5.4.1/api"
include $(PATH_SUB_CURRENT)/liblzma-5.4.1/Makefile.kmk
endif
#
# Main related things - XPCOM and XSLT.
#
if defined(VBOX_WITH_MAIN) \
&& !defined(VBOX_ONLY_ADDITIONS) \
&& !defined(VBOX_ONLY_VALIDATIONKIT) \
&& "$(intersects $(KBUILD_TARGET_ARCH),$(VBOX_SUPPORTED_HOST_ARCHS))" != ""
if !defined(VBOX_ONLY_DOCS) \
&& !defined(VBOX_ONLY_EXTPACKS) \
&& !defined(VBOX_ONLY_SDK)
# libogg, needed for building libvorbis.
if defined(VBOX_WITH_LIBOGG) \
&& ("$(SDK_VBoxLibOgg_INCS)" == "$(SDK_VBoxLibOgg_DEFAULT_INCS)")
include $(PATH_SUB_CURRENT)/libogg-1.3.5/Makefile.kmk
endif
# libvorbis for supporting audio with video recording.
if defined(VBOX_WITH_LIBVORBIS) \
&& ("$(SDK_VBoxLibVorbis_INCS)" == "$(SDK_VBoxLibVorbis_DEFAULT_INCS)")
include $(PATH_SUB_CURRENT)/libvorbis-1.3.7/Makefile.kmk
endif
# libpng for screenshots in main.
if !defined(VBOX_ONLY_DOCS) \
&& "$(SDK_VBoxLibPng_INCS)" == "$(PATH_ROOT)/src/libs/libpng-1.6.37"
include $(PATH_SUB_CURRENT)/libpng-1.6.37/Makefile.kmk
endif
# libvpx is used for video capture.
if defined(VBOX_WITH_LIBVPX) \
&& ("$(SDK_VBoxLibVpx_INCS)" == "$(SDK_VBoxLibVpx_DEFAULT_INCS)")
include $(PATH_SUB_CURRENT)/libvpx-1.11.0/Makefile.kmk
endif
endif # !VBOX_ONLY_DOCS && !VBOX_ONLY_EXTPACKS && !VBOX_ONLY_SDK
# XPCOM is used as a COM on non-Windows platforms.
if defined(VBOX_WITH_XPCOM) && !defined(VBOX_ONLY_DOCS)
include $(PATH_SUB_CURRENT)/xpcom18a4/Makefile.kmk
endif
endif # MAIN stuff
include $(FILE_KBUILD_SUB_FOOTER)
|