1 | # $Id: Makefile.kmk 96285 2022-08-18 08:01:23Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Top-level makefile for the external libraries.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2006-2022 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 |
|
---|
18 | SUB_DEPTH = ../..
|
---|
19 | include $(KBUILD_PATH)/subheader.kmk
|
---|
20 |
|
---|
21 | #
|
---|
22 | # Note! A number of the libs may be detected on the host system by the configure script.
|
---|
23 | # The usual way for testing for this is to see whether the Config.kmk default
|
---|
24 | # include path specific to the lib has been changed.
|
---|
25 | #
|
---|
26 | # Note! Mostly alphabetical ordering here, please.
|
---|
27 | #
|
---|
28 |
|
---|
29 | # cURL/libcurl used by the IPRT http API.
|
---|
30 | if defined(VBOX_WITH_LIBCURL) \
|
---|
31 | && !defined(VBOX_ONLY_ADDITIONS) \
|
---|
32 | && !defined(VBOX_ONLY_EXTPACKS_USE_IMPLIBS) \
|
---|
33 | && !defined(VBOX_ONLY_SDK) \
|
---|
34 | && (!defined(VBOX_ONLY_VALIDATIONKIT) || defined(VBOX_WITH_VALIDATIONKIT_UNITTESTS_PACKING)) \
|
---|
35 | && "$(SDK_VBOX_LIBCURL_INCS)" == "$(PATH_ROOT)/src/libs/curl-7.83.1/include"
|
---|
36 | include $(PATH_SUB_CURRENT)/curl-7.83.1/Makefile.kmk
|
---|
37 | endif
|
---|
38 |
|
---|
39 |
|
---|
40 | # dxvk-native for supporting DirectX over Vulkan on platforms other than Windows.
|
---|
41 | if defined(VBOX_WITH_DXVK) \
|
---|
42 | && !defined(VBOX_ONLY_BUILD) \
|
---|
43 | && "$(SDK_VBOX_DXVK_INCS)" == "$(SDK_VBOX_DXVK_DEFAULT_INCS)" \
|
---|
44 | && "$(intersects $(KBUILD_TARGET_ARCH),$(VBOX_SUPPORTED_HOST_ARCHS))" != ""
|
---|
45 | include $(PATH_SUB_CURRENT)/dxvk-native-1.9.2a/Makefile.kmk
|
---|
46 | endif
|
---|
47 |
|
---|
48 |
|
---|
49 | # libjpeg for VRDP video redirection and ExtPack's DrvHostWebcam.
|
---|
50 | if (defined(VBOX_WITH_VRDP) || defined(VBOX_WITH_EXTPACK_PUEL)) \
|
---|
51 | && !defined(VBOX_ONLY_ADDITIONS)
|
---|
52 | include $(PATH_SUB_CURRENT)/libjpeg-turbo-2.1.3/Makefile.kmk
|
---|
53 | endif
|
---|
54 |
|
---|
55 |
|
---|
56 | # liblzf is used by the IPRT compression code (saved state compression).
|
---|
57 | if "$(SDK_VBOX_LZF_INCS)" == "$(PATH_ROOT)/src/libs/liblzf-3.4"
|
---|
58 | include $(PATH_SUB_CURRENT)/liblzf-3.4/Makefile.kmk
|
---|
59 | endif
|
---|
60 |
|
---|
61 |
|
---|
62 | # libssh for cloud integration.
|
---|
63 | if defined(VBOX_WITH_LIBSSH) \
|
---|
64 | && !defined(VBOX_ONLY_BUILD) \
|
---|
65 | && "$(intersects $(KBUILD_TARGET_ARCH),$(VBOX_SUPPORTED_HOST_ARCHS))" != ""
|
---|
66 | include $(PATH_SUB_CURRENT)/libssh-0.9.6/Makefile.kmk
|
---|
67 | endif
|
---|
68 |
|
---|
69 |
|
---|
70 | # libtpms for supporting the in process TPM emulation.
|
---|
71 | if defined(VBOX_WITH_LIBTPMS) \
|
---|
72 | && !defined(VBOX_ONLY_BUILD) \
|
---|
73 | && ("$(SDK_VBOX_LIBTPMS_INCS)" == "$(SDK_VBOX_LIBTPMS_DEFAULT_INCS)")
|
---|
74 | include $(PATH_SUB_CURRENT)/libtpms-0.9.0/Makefile.kmk
|
---|
75 | endif
|
---|
76 |
|
---|
77 |
|
---|
78 | # libxml2 used by the IPRT xml C++ API.
|
---|
79 | if !defined(VBOX_ONLY_EXTPACKS_USE_IMPLIBS) \
|
---|
80 | && !defined(VBOX_ONLY_ADDITIONS)
|
---|
81 | ifeq ($(SDK_VBOX_LIBXML2_INCS),$(PATH_ROOT)/src/libs/libxml2-2.9.14/include)
|
---|
82 | include $(PATH_SUB_CURRENT)/libxml2-2.9.14/Makefile.kmk
|
---|
83 | endif
|
---|
84 | endif
|
---|
85 |
|
---|
86 |
|
---|
87 | # OpenSSL.
|
---|
88 | if !defined(VBOX_ONLY_SDK) \
|
---|
89 | && (!defined(VBOX_ONLY_ADDITIONS) || !defined(VBOX_ONLY_ADDITIONS_WITHOUT_RTISOMAKER)) \
|
---|
90 | && (!defined(VBOX_ONLY_EXTPACKS) || defined(VBOX_NEED_EXTPACK_OPENSSL) || defined(VBOX_WITH_BLD_RTSIGNTOOL_SIGNING) || !defined(VBOX_ONLY_EXTPACKS_USE_IMPLIBS)) \
|
---|
91 | && ("$(SDK_VBOX_OPENSSL_INCS)" == "$(SDK_VBOX_OPENSSL_VBOX_DEFAULT_INCS)" || defined(VBOX_NEED_EXTPACK_OPENSSL))
|
---|
92 | include $(PATH_SUB_CURRENT)/openssl-3.0.3/Makefile.kmk
|
---|
93 | endif
|
---|
94 |
|
---|
95 |
|
---|
96 | # SoftFloat is used by the VMM for FPU emulation.
|
---|
97 | if (!defined(VBOX_ONLY_BUILD) && "$(intersects $(KBUILD_TARGET_ARCH),$(VBOX_SUPPORTED_HOST_ARCHS))" != "") \
|
---|
98 | || ( defined(VBOX_WITH_NOCRT_STATIC) \
|
---|
99 | && "$(KBUILD_TARGET)" == "win" \
|
---|
100 | && ( defined(VBOX_ONLY_ADDITIONS) \
|
---|
101 | || (!defined(VBOX_ONLY_BUILD) && defined(VBOX_WITH_ADDITIONS))))
|
---|
102 | include $(PATH_SUB_CURRENT)/softfloat-3e/Makefile.kmk
|
---|
103 | endif
|
---|
104 |
|
---|
105 |
|
---|
106 | # zlib is used by the IPRT compression code, libpng and others.
|
---|
107 | if !defined(VBOX_ONLY_SDK) \
|
---|
108 | && "$(SDK_VBOX_ZLIB_INCS)" == "$(PATH_ROOT)/src/libs/zlib-1.2.12"
|
---|
109 | include $(PATH_SUB_CURRENT)/zlib-1.2.12/Makefile.kmk
|
---|
110 | endif
|
---|
111 |
|
---|
112 |
|
---|
113 | #
|
---|
114 | # Main related things - XPCOM and XSLT.
|
---|
115 | #
|
---|
116 | if defined(VBOX_WITH_MAIN) \
|
---|
117 | && !defined(VBOX_ONLY_ADDITIONS) \
|
---|
118 | && !defined(VBOX_ONLY_VALIDATIONKIT) \
|
---|
119 | && "$(intersects $(KBUILD_TARGET_ARCH),$(VBOX_SUPPORTED_HOST_ARCHS))" != ""
|
---|
120 |
|
---|
121 | if !defined(VBOX_ONLY_DOCS) \
|
---|
122 | && !defined(VBOX_ONLY_EXTPACKS) \
|
---|
123 | && !defined(VBOX_WITH_SDK)
|
---|
124 |
|
---|
125 | # libogg, needed for building libvorbis.
|
---|
126 | if defined(VBOX_WITH_LIBOGG) \
|
---|
127 | && ("$(SDK_VBOX_OGG_INCS)" == "$(SDK_VBOX_OGG_DEFAULT_INCS)")
|
---|
128 | include $(PATH_SUB_CURRENT)/libogg-1.3.5/Makefile.kmk
|
---|
129 | endif
|
---|
130 |
|
---|
131 | # libvorbis for supporting audio with video recording.
|
---|
132 | if defined(VBOX_WITH_LIBVORBIS) \
|
---|
133 | && ("$(SDK_VBOX_VORBIS_INCS)" == "$(SDK_VBOX_VORBIS_DEFAULT_INCS)")
|
---|
134 | include $(PATH_SUB_CURRENT)/libvorbis-1.3.7/Makefile.kmk
|
---|
135 | endif
|
---|
136 |
|
---|
137 | # libpng for screenshots in main.
|
---|
138 | if !defined(VBOX_ONLY_DOCS) \
|
---|
139 | && "$(SDK_VBOX_LIBPNG_INCS)" == "$(PATH_ROOT)/src/libs/libpng-1.6.36"
|
---|
140 | include $(PATH_SUB_CURRENT)/libpng-1.6.36/Makefile.kmk
|
---|
141 | endif
|
---|
142 |
|
---|
143 |
|
---|
144 | # libvpx is used for video capture.
|
---|
145 | if defined(VBOX_WITH_LIBVPX) \
|
---|
146 | && ("$(SDK_VBOX_VPX_INCS)" == "$(SDK_VBOX_VPX_DEFAULT_INCS)")
|
---|
147 | include $(PATH_SUB_CURRENT)/libvpx-1.11.0/Makefile.kmk
|
---|
148 | endif
|
---|
149 |
|
---|
150 | endif
|
---|
151 |
|
---|
152 | # XPCOM is used as a COM on non-Windows platforms.
|
---|
153 | if defined(VBOX_WITH_XPCOM) && !defined(VBOX_ONLY_DOCS)
|
---|
154 | include $(PATH_SUB_CURRENT)/xpcom18a4/Makefile.kmk
|
---|
155 | endif
|
---|
156 |
|
---|
157 | endif # MAIN stuff
|
---|
158 |
|
---|
159 | include $(FILE_KBUILD_SUB_FOOTER)
|
---|