VirtualBox

source: vbox/trunk/src/libs/Makefile.kmk

Last change on this file was 104201, checked in by vboxsync, 6 weeks ago

libxml2-2.12.6: switching to ​libxml2-2.12.6. bugref:10640

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 6.2 KB
RevLine 
[2476]1# $Id: Makefile.kmk 104201 2024-04-05 15:34:17Z vboxsync $
2## @file
[1]3# Top-level makefile for the external libraries.
4#
5
6#
[98103]7# Copyright (C) 2006-2023 Oracle and/or its affiliates.
[5553]8#
[96407]9# This file is part of VirtualBox base platform packages, as
10# available from https://www.virtualbox.org.
[5999]11#
[96407]12# This program is free software; you can redistribute it and/or
13# modify it under the terms of the GNU General Public License
14# as published by the Free Software Foundation, in version 3 of the
15# License.
16#
17# This program is distributed in the hope that it will be useful, but
18# WITHOUT ANY WARRANTY; without even the implied warranty of
19# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20# General Public License for more details.
21#
22# You should have received a copy of the GNU General Public License
23# along with this program; if not, see <https://www.gnu.org/licenses>.
24#
25# SPDX-License-Identifier: GPL-3.0-only
26#
[1]27
[10179]28SUB_DEPTH = ../..
29include $(KBUILD_PATH)/subheader.kmk
30
31#
32# Note! A number of the libs may be detected on the host system by the configure script.
33# The usual way for testing for this is to see whether the Config.kmk default
34# include path specific to the lib has been changed.
35#
[94495]36# Note! Mostly alphabetical ordering here, please.
37#
[10179]38
[94495]39# cURL/libcurl used by the IPRT http API.
[98395]40if defined(VBOX_WITH_LIBCURL) \
41 && !defined(VBOX_ONLY_ADDITIONS) \
42 && !defined(VBOX_ONLY_EXTPACKS_USE_IMPLIBS) \
43 && !defined(VBOX_ONLY_SDK) \
44 && (!defined(VBOX_ONLY_VALIDATIONKIT) || defined(VBOX_WITH_VALIDATIONKIT_UNITTESTS_PACKING)) \
[104120]45 && "$(SDK_VBoxLibCurl_INCS)" == "$(PATH_ROOT)/src/libs/curl-8.7.1/include"
46 include $(PATH_SUB_CURRENT)/curl-8.7.1/Makefile.kmk
[94495]47endif
48
49
50# dxvk-native for supporting DirectX over Vulkan on platforms other than Windows.
[98395]51if defined(VBOX_WITH_DXVK) \
52 && !defined(VBOX_ONLY_BUILD) \
53 && "$(SDK_VBoxDxVk_INCS)" == "$(SDK_VBoxDxVk_DEFAULT_INCS)" \
54 && "$(intersects $(KBUILD_TARGET_ARCH),$(VBOX_SUPPORTED_HOST_ARCHS))" != ""
55 include $(PATH_SUB_CURRENT)/dxvk-native-1.9.2a/Makefile.kmk
[94495]56endif
57
58
59# libjpeg for VRDP video redirection and ExtPack's DrvHostWebcam.
[100252]60if (defined(VBOX_WITH_VRDP) || defined(VBOX_WITH_USB_VIDEO_IMPL)) \
[99708]61 && !defined(VBOX_ONLY_ADDITIONS) \
[101655]62 && !defined(VBOX_ONLY_SDK) \
63 && !defined(VBOX_ONLY_VALIDATIONKIT)
[95299]64 include $(PATH_SUB_CURRENT)/libjpeg-turbo-2.1.3/Makefile.kmk
[94495]65endif
66
67
68# liblzf is used by the IPRT compression code (saved state compression).
[99708]69if "$(SDK_VBoxLzf_INCS)" == "$(PATH_ROOT)/src/libs/liblzf-3.6" \
70 && !defined(VBOX_ONLY_SDK)
[96429]71 include $(PATH_SUB_CURRENT)/liblzf-3.6/Makefile.kmk
[85378]72endif
[10179]73
[98995]74# libslirp for NAT
[99708]75if defined(VBOX_WITH_LIBSLIRP) \
76 && !defined(VBOX_ONLY_SDK)
[99019]77 include $(PATH_SUB_CURRENT)/libslirp-4.7.0/Makefile.kmk
[98995]78endif
[94495]79
80# libssh for cloud integration.
[98395]81if defined(VBOX_WITH_LIBSSH) \
82 && !defined(VBOX_ONLY_BUILD) \
83 && "$(intersects $(KBUILD_TARGET_ARCH),$(VBOX_SUPPORTED_HOST_ARCHS))" != ""
[103057]84 include $(PATH_SUB_CURRENT)/libssh-0.10.6/Makefile.kmk
[19356]85endif
86
[94495]87
88# libtpms for supporting the in process TPM emulation.
[98395]89if defined(VBOX_WITH_LIBTPMS) \
90 && !defined(VBOX_ONLY_BUILD) \
91 && ("$(SDK_VBoxLibTpms_INCS)" == "$(SDK_VBoxLibTpms_DEFAULT_INCS)")
[98878]92 include $(PATH_SUB_CURRENT)/libtpms-0.9.6/Makefile.kmk
[94495]93endif
94
95
96# libxml2 used by the IPRT xml C++ API.
[98395]97if !defined(VBOX_ONLY_EXTPACKS_USE_IMPLIBS) \
[99708]98 && !defined(VBOX_ONLY_ADDITIONS) \
99 && !defined(VBOX_ONLY_SDK)
[104201]100 ifeq ($(SDK_VBoxLibXml2_INCS),$(PATH_ROOT)/src/libs/libxml2-2.12.6/include)
101 include $(PATH_SUB_CURRENT)/libxml2-2.12.6/Makefile.kmk
[94495]102 endif
103endif
104
105
[33590]106# OpenSSL.
[98395]107if !defined(VBOX_ONLY_SDK) \
108 && (!defined(VBOX_ONLY_ADDITIONS) || !defined(VBOX_ONLY_ADDITIONS_WITHOUT_RTISOMAKER)) \
109 && (!defined(VBOX_ONLY_EXTPACKS) || defined(VBOX_NEED_EXTPACK_OPENSSL) || defined(VBOX_WITH_BLD_RTSIGNTOOL_SIGNING) || !defined(VBOX_ONLY_EXTPACKS_USE_IMPLIBS)) \
110 && ("$(SDK_VBoxOpenSslStatic_INCS)" == "$(SDK_VBoxOpenSslStatic_VBOX_DEFAULT_INCS)" || defined(VBOX_NEED_EXTPACK_OPENSSL))
[104082]111 include $(PATH_SUB_CURRENT)/openssl-3.1.5/Makefile.kmk
[12200]112endif
[10179]113
[11848]114
[94497]115# SoftFloat is used by the VMM for FPU emulation.
[98395]116if (!defined(VBOX_ONLY_BUILD) && "$(intersects $(KBUILD_TARGET_ARCH),$(VBOX_SUPPORTED_HOST_ARCHS))" != "") \
117 || ( defined(VBOX_WITH_NOCRT_STATIC) \
118 && "$(KBUILD_TARGET)" == "win" \
119 && ( defined(VBOX_ONLY_ADDITIONS) \
120 || (!defined(VBOX_ONLY_BUILD) && defined(VBOX_WITH_ADDITIONS))))
[96106]121 include $(PATH_SUB_CURRENT)/softfloat-3e/Makefile.kmk
[94497]122endif
123
124
[94495]125# zlib is used by the IPRT compression code, libpng and others.
[98395]126if !defined(VBOX_ONLY_SDK) \
127 && "$(SDK_VBoxZlib_INCS)" == "$(PATH_ROOT)/src/libs/zlib-1.2.13"
[97773]128 include $(PATH_SUB_CURRENT)/zlib-1.2.13/Makefile.kmk
[91608]129endif
130
[94495]131
[98733]132# liblzma is used by the IPRT compression code and the iPXE ROM tool.
[98735]133if defined(VBOX_WITH_LIBLZMA) \
134 && !defined(VBOX_ONLY_SDK) \
135 && "$(SDK_VBoxLibLzma_INCS)" == "$(PATH_ROOT)/src/libs/liblzma-5.4.1/api"
[98733]136 include $(PATH_SUB_CURRENT)/liblzma-5.4.1/Makefile.kmk
137endif
138
139
[94495]140#
[34478]141# Main related things - XPCOM and XSLT.
[94495]142#
[98395]143if defined(VBOX_WITH_MAIN) \
144 && !defined(VBOX_ONLY_ADDITIONS) \
145 && !defined(VBOX_ONLY_VALIDATIONKIT) \
146 && "$(intersects $(KBUILD_TARGET_ARCH),$(VBOX_SUPPORTED_HOST_ARCHS))" != ""
[64922]147
[98395]148 if !defined(VBOX_ONLY_DOCS) \
149 && !defined(VBOX_ONLY_EXTPACKS) \
[99708]150 && !defined(VBOX_ONLY_SDK)
[29268]151
[96175]152 # libogg, needed for building libvorbis.
153 if defined(VBOX_WITH_LIBOGG) \
[98247]154 && ("$(SDK_VBoxLibOgg_INCS)" == "$(SDK_VBoxLibOgg_DEFAULT_INCS)")
[96175]155 include $(PATH_SUB_CURRENT)/libogg-1.3.5/Makefile.kmk
156 endif
157
158 # libvorbis for supporting audio with video recording.
159 if defined(VBOX_WITH_LIBVORBIS) \
[98248]160 && ("$(SDK_VBoxLibVorbis_INCS)" == "$(SDK_VBoxLibVorbis_DEFAULT_INCS)")
[96175]161 include $(PATH_SUB_CURRENT)/libvorbis-1.3.7/Makefile.kmk
162 endif
163
[94496]164 # libpng for screenshots in main.
[98395]165 if !defined(VBOX_ONLY_DOCS) \
[103319]166 && "$(SDK_VBoxLibPng_INCS)" == "$(PATH_ROOT)/src/libs/libpng-1.6.42"
167 include $(PATH_SUB_CURRENT)/libpng-1.6.42/Makefile.kmk
[94496]168 endif
169
170
171 # libvpx is used for video capture.
172 if defined(VBOX_WITH_LIBVPX) \
[98252]173 && ("$(SDK_VBoxLibVpx_INCS)" == "$(SDK_VBoxLibVpx_DEFAULT_INCS)")
[102252]174 include $(PATH_SUB_CURRENT)/libvpx-1.13.1/Makefile.kmk
[94496]175 endif
176
[99708]177 endif # !VBOX_ONLY_DOCS && !VBOX_ONLY_EXTPACKS && !VBOX_ONLY_SDK
[65184]178
[94495]179 # XPCOM is used as a COM on non-Windows platforms.
180 if defined(VBOX_WITH_XPCOM) && !defined(VBOX_ONLY_DOCS)
181 include $(PATH_SUB_CURRENT)/xpcom18a4/Makefile.kmk
[34478]182 endif
[12200]183
[94495]184endif # MAIN stuff
[93016]185
[41477]186include $(FILE_KBUILD_SUB_FOOTER)
Note: See TracBrowser for help on using the repository browser.

© 2023 Oracle
ContactPrivacy policyTerms of Use