VirtualBox

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

Last change on this file since 98108 was 98103, checked in by vboxsync, 23 months ago

Copyright year updates by scm.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 5.6 KB
Line 
1# $Id: Makefile.kmk 98103 2023-01-17 14:15:46Z vboxsync $
2## @file
3# Top-level makefile for the external libraries.
4#
5
6#
7# Copyright (C) 2006-2023 Oracle and/or its affiliates.
8#
9# This file is part of VirtualBox base platform packages, as
10# available from https://www.virtualbox.org.
11#
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#
27
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#
36# Note! Mostly alphabetical ordering here, please.
37#
38
39# cURL/libcurl used by the IPRT http API.
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)) \
45 && "$(SDK_VBOX_LIBCURL_INCS)" == "$(PATH_ROOT)/src/libs/curl-7.83.1/include"
46 include $(PATH_SUB_CURRENT)/curl-7.83.1/Makefile.kmk
47endif
48
49
50# dxvk-native for supporting DirectX over Vulkan on platforms other than Windows.
51if defined(VBOX_WITH_DXVK) \
52 && !defined(VBOX_ONLY_BUILD) \
53 && "$(SDK_VBOX_DXVK_INCS)" == "$(SDK_VBOX_DXVK_DEFAULT_INCS)" \
54 && "$(intersects $(KBUILD_TARGET_ARCH),$(VBOX_SUPPORTED_HOST_ARCHS))" != ""
55 include $(PATH_SUB_CURRENT)/dxvk-native-1.9.2a/Makefile.kmk
56endif
57
58
59# libjpeg for VRDP video redirection and ExtPack's DrvHostWebcam.
60if (defined(VBOX_WITH_VRDP) || defined(VBOX_WITH_EXTPACK_PUEL)) \
61 && !defined(VBOX_ONLY_ADDITIONS)
62 include $(PATH_SUB_CURRENT)/libjpeg-turbo-2.1.3/Makefile.kmk
63endif
64
65
66# liblzf is used by the IPRT compression code (saved state compression).
67if "$(SDK_VBOX_LZF_INCS)" == "$(PATH_ROOT)/src/libs/liblzf-3.6"
68 include $(PATH_SUB_CURRENT)/liblzf-3.6/Makefile.kmk
69endif
70
71
72# libssh for cloud integration.
73if defined(VBOX_WITH_LIBSSH) \
74 && !defined(VBOX_ONLY_BUILD) \
75 && "$(intersects $(KBUILD_TARGET_ARCH),$(VBOX_SUPPORTED_HOST_ARCHS))" != ""
76 include $(PATH_SUB_CURRENT)/libssh-0.9.6/Makefile.kmk
77endif
78
79
80# libtpms for supporting the in process TPM emulation.
81if defined(VBOX_WITH_LIBTPMS) \
82 && !defined(VBOX_ONLY_BUILD) \
83 && ("$(SDK_VBOX_TPMS_INCS)" == "$(SDK_VBOX_TPMS_DEFAULT_INCS)")
84 include $(PATH_SUB_CURRENT)/libtpms-0.9.0/Makefile.kmk
85endif
86
87
88# libxml2 used by the IPRT xml C++ API.
89if !defined(VBOX_ONLY_EXTPACKS_USE_IMPLIBS) \
90 && !defined(VBOX_ONLY_ADDITIONS)
91 ifeq ($(SDK_VBOX_LIBXML2_INCS),$(PATH_ROOT)/src/libs/libxml2-2.9.14/include)
92 include $(PATH_SUB_CURRENT)/libxml2-2.9.14/Makefile.kmk
93 endif
94endif
95
96
97# OpenSSL.
98if !defined(VBOX_ONLY_SDK) \
99 && (!defined(VBOX_ONLY_ADDITIONS) || !defined(VBOX_ONLY_ADDITIONS_WITHOUT_RTISOMAKER)) \
100 && (!defined(VBOX_ONLY_EXTPACKS) || defined(VBOX_NEED_EXTPACK_OPENSSL) || defined(VBOX_WITH_BLD_RTSIGNTOOL_SIGNING) || !defined(VBOX_ONLY_EXTPACKS_USE_IMPLIBS)) \
101 && ("$(SDK_VBOX_OPENSSL_INCS)" == "$(SDK_VBOX_OPENSSL_VBOX_DEFAULT_INCS)" || defined(VBOX_NEED_EXTPACK_OPENSSL))
102 include $(PATH_SUB_CURRENT)/openssl-3.0.7/Makefile.kmk
103endif
104
105
106# SoftFloat is used by the VMM for FPU emulation.
107if (!defined(VBOX_ONLY_BUILD) && "$(intersects $(KBUILD_TARGET_ARCH),$(VBOX_SUPPORTED_HOST_ARCHS))" != "") \
108 || ( defined(VBOX_WITH_NOCRT_STATIC) \
109 && "$(KBUILD_TARGET)" == "win" \
110 && ( defined(VBOX_ONLY_ADDITIONS) \
111 || (!defined(VBOX_ONLY_BUILD) && defined(VBOX_WITH_ADDITIONS))))
112 include $(PATH_SUB_CURRENT)/softfloat-3e/Makefile.kmk
113endif
114
115
116# zlib is used by the IPRT compression code, libpng and others.
117if !defined(VBOX_ONLY_SDK) \
118 && "$(SDK_VBOX_ZLIB_INCS)" == "$(PATH_ROOT)/src/libs/zlib-1.2.13"
119 include $(PATH_SUB_CURRENT)/zlib-1.2.13/Makefile.kmk
120endif
121
122
123#
124# Main related things - XPCOM and XSLT.
125#
126if defined(VBOX_WITH_MAIN) \
127 && !defined(VBOX_ONLY_ADDITIONS) \
128 && !defined(VBOX_ONLY_VALIDATIONKIT) \
129 && "$(intersects $(KBUILD_TARGET_ARCH),$(VBOX_SUPPORTED_HOST_ARCHS))" != ""
130
131 if !defined(VBOX_ONLY_DOCS) \
132 && !defined(VBOX_ONLY_EXTPACKS) \
133 && !defined(VBOX_WITH_SDK)
134
135 # libogg, needed for building libvorbis.
136 if defined(VBOX_WITH_LIBOGG) \
137 && ("$(SDK_VBOX_OGG_INCS)" == "$(SDK_VBOX_OGG_DEFAULT_INCS)")
138 include $(PATH_SUB_CURRENT)/libogg-1.3.5/Makefile.kmk
139 endif
140
141 # libvorbis for supporting audio with video recording.
142 if defined(VBOX_WITH_LIBVORBIS) \
143 && ("$(SDK_VBOX_VORBIS_INCS)" == "$(SDK_VBOX_VORBIS_DEFAULT_INCS)")
144 include $(PATH_SUB_CURRENT)/libvorbis-1.3.7/Makefile.kmk
145 endif
146
147 # libpng for screenshots in main.
148 if !defined(VBOX_ONLY_DOCS) \
149 && "$(SDK_VBOX_LIBPNG_INCS)" == "$(PATH_ROOT)/src/libs/libpng-1.6.37"
150 include $(PATH_SUB_CURRENT)/libpng-1.6.37/Makefile.kmk
151 endif
152
153
154 # libvpx is used for video capture.
155 if defined(VBOX_WITH_LIBVPX) \
156 && ("$(SDK_VBOX_VPX_INCS)" == "$(SDK_VBOX_VPX_DEFAULT_INCS)")
157 include $(PATH_SUB_CURRENT)/libvpx-1.11.0/Makefile.kmk
158 endif
159
160 endif
161
162 # XPCOM is used as a COM on non-Windows platforms.
163 if defined(VBOX_WITH_XPCOM) && !defined(VBOX_ONLY_DOCS)
164 include $(PATH_SUB_CURRENT)/xpcom18a4/Makefile.kmk
165 endif
166
167endif # MAIN stuff
168
169include $(FILE_KBUILD_SUB_FOOTER)
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