1 | # $Id: Makefile.kmk 94467 2022-04-05 12:38:44Z 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 |
|
---|
27 | # Compression libs used by IPRT and <what was it again?>.
|
---|
28 | if "$(SDK_VBOX_LZF_INCS)" == "$(PATH_ROOT)/src/libs/liblzf-3.4"
|
---|
29 | include $(PATH_SUB_CURRENT)/liblzf-3.4/Makefile.kmk
|
---|
30 | endif
|
---|
31 | if !defined(VBOX_ONLY_SDK) \
|
---|
32 | && "$(SDK_VBOX_ZLIB_INCS)" == "$(PATH_ROOT)/src/libs/zlib-1.2.11"
|
---|
33 | include $(PATH_SUB_CURRENT)/zlib-1.2.11/Makefile.kmk
|
---|
34 | endif
|
---|
35 |
|
---|
36 | # PNG support (for screenshots).
|
---|
37 | if !defined(VBOX_ONLY_ADDITIONS) \
|
---|
38 | && !defined(VBOX_ONLY_DOCS) \
|
---|
39 | && !defined(VBOX_ONLY_SDK) \
|
---|
40 | && !defined(VBOX_ONLY_VALIDATIONKIT) \
|
---|
41 | && "$(SDK_VBOX_LIBPNG_INCS)" == "$(PATH_ROOT)/src/libs/libpng-1.6.36"
|
---|
42 | include $(PATH_SUB_CURRENT)/libpng-1.6.36/Makefile.kmk
|
---|
43 | endif # !VBOX_ONLY_DOCS
|
---|
44 |
|
---|
45 | # Libcurl for inet access
|
---|
46 | if defined(VBOX_WITH_LIBCURL) \
|
---|
47 | && !defined(VBOX_ONLY_ADDITIONS) \
|
---|
48 | && !defined(VBOX_ONLY_EXTPACKS_USE_IMPLIBS) \
|
---|
49 | && !defined(VBOX_ONLY_SDK) \
|
---|
50 | && !defined(VBOX_ONLY_VALIDATIONKIT) || defined(VBOX_WITH_VALIDATIONKIT_UNITTESTS_PACKING) \
|
---|
51 | && "$(SDK_VBOX_LIBCURL_INCS)" == "$(PATH_ROOT)/src/libs/curl-7.64.0/include"
|
---|
52 | include $(PATH_SUB_CURRENT)/curl-7.64.0/Makefile.kmk
|
---|
53 | endif
|
---|
54 |
|
---|
55 | # OpenSSL.
|
---|
56 | if !defined(VBOX_ONLY_SDK) \
|
---|
57 | && (!defined(VBOX_ONLY_ADDITIONS) || !defined(VBOX_ONLY_ADDITIONS_WITHOUT_RTISOMAKER)) \
|
---|
58 | && (!defined(VBOX_ONLY_EXTPACKS) || defined(VBOX_NEED_EXTPACK_OPENSSL) || !defined(VBOX_ONLY_EXTPACKS_USE_IMPLIBS)) \
|
---|
59 | && ("$(SDK_VBOX_OPENSSL_INCS)" == "$(SDK_VBOX_OPENSSL_VBOX_DEFAULT_INCS)" || defined(VBOX_NEED_EXTPACK_OPENSSL))
|
---|
60 | if defined(VBOX_WITH_OPENSSL3)
|
---|
61 | include $(PATH_SUB_CURRENT)/openssl-3.0.2/Makefile.kmk
|
---|
62 | else
|
---|
63 | include $(PATH_SUB_CURRENT)/openssl-1.1.1l/Makefile.kmk
|
---|
64 | endif
|
---|
65 | endif
|
---|
66 |
|
---|
67 | # libjpeg for VRDP video redirection and ExtPack's DrvHostWebcam
|
---|
68 | if (defined(VBOX_WITH_VRDP) || defined(VBOX_WITH_EXTPACK_PUEL)) \
|
---|
69 | && !defined(VBOX_ONLY_ADDITIONS)
|
---|
70 | include $(PATH_SUB_CURRENT)/jpeg-9b/Makefile.kmk
|
---|
71 | endif
|
---|
72 |
|
---|
73 | # libtpms for supporting the in process TPM emulation.
|
---|
74 | if defined(VBOX_WITH_LIBTPMS) \
|
---|
75 | && !defined(VBOX_ONLY_BUILD) \
|
---|
76 | && ("$(SDK_VBOX_LIBTPMS_INCS)" == "$(SDK_VBOX_LIBTPMS_DEFAULT_INCS)")
|
---|
77 | include $(PATH_SUB_CURRENT)/libtpms-0.9.0/Makefile.kmk
|
---|
78 | endif
|
---|
79 |
|
---|
80 | # Main related things - XPCOM and XSLT.
|
---|
81 | if defined(VBOX_WITH_MAIN) \
|
---|
82 | && !defined(VBOX_ONLY_ADDITIONS) \
|
---|
83 | && !defined(VBOX_ONLY_VALIDATIONKIT) \
|
---|
84 | && "$(intersects $(KBUILD_TARGET_ARCH),$(VBOX_SUPPORTED_HOST_ARCHS))" != ""
|
---|
85 |
|
---|
86 | if defined(VBOX_WITH_XPCOM) && !defined(VBOX_ONLY_DOCS)
|
---|
87 | include $(PATH_SUB_CURRENT)/xpcom18a4/Makefile.kmk
|
---|
88 | endif
|
---|
89 |
|
---|
90 | # VPX for video capture.
|
---|
91 | if defined(VBOX_WITH_LIBVPX) && !defined(VBOX_ONLY_DOCS) && !defined(VBOX_WITH_SDK) && !defined(VBOX_ONLY_EXTPACKS) \
|
---|
92 | && ("$(SDK_VBOX_VPX_INCS)" == "$(SDK_VBOX_VPX_DEFAULT_INCS)")
|
---|
93 | include $(PATH_SUB_CURRENT)/libvpx-1.6.1/Makefile.kmk
|
---|
94 | endif
|
---|
95 |
|
---|
96 | # Opus for supporting audio when doing video capturing.
|
---|
97 | if defined(VBOX_WITH_LIBOPUS) && !defined(VBOX_ONLY_DOCS) && !defined(VBOX_WITH_SDK) && !defined(VBOX_ONLY_EXTPACKS) \
|
---|
98 | && ("$(SDK_VBOX_OPUS_INCS)" == "$(SDK_VBOX_OPUS_DEFAULT_INCS)")
|
---|
99 | include $(PATH_SUB_CURRENT)/libopus-1.2.1/Makefile.kmk
|
---|
100 | endif
|
---|
101 |
|
---|
102 | endif
|
---|
103 |
|
---|
104 | if !defined(VBOX_ONLY_EXTPACKS_USE_IMPLIBS) \
|
---|
105 | && !defined(VBOX_ONLY_ADDITIONS)
|
---|
106 | ifeq ($(SDK_VBOX_LIBXML2_INCS),$(PATH_ROOT)/src/libs/libxml2-2.9.4/include)
|
---|
107 | include $(PATH_SUB_CURRENT)/libxml2-2.9.4/Makefile.kmk
|
---|
108 | endif
|
---|
109 | endif
|
---|
110 |
|
---|
111 | if defined(VBOX_WITH_LIBSSH) \
|
---|
112 | && !defined(VBOX_ONLY_BUILD) \
|
---|
113 | && "$(intersects $(KBUILD_TARGET_ARCH),$(VBOX_SUPPORTED_HOST_ARCHS))" != ""
|
---|
114 | include $(PATH_SUB_CURRENT)/libssh-0.9.5/Makefile.kmk
|
---|
115 | endif
|
---|
116 |
|
---|
117 | # dxvk-native for supporting DirectX over Vulkan on platforms other than Windows.
|
---|
118 | if defined(VBOX_WITH_DXVK) \
|
---|
119 | && !defined(VBOX_ONLY_BUILD) \
|
---|
120 | && "$(SDK_VBOX_DXVK_INCS)" == "$(SDK_VBOX_DXVK_DEFAULT_INCS)" \
|
---|
121 | && "$(intersects $(KBUILD_TARGET_ARCH),$(VBOX_SUPPORTED_HOST_ARCHS))" != ""
|
---|
122 | include $(PATH_SUB_CURRENT)/dxvk-native-1.9.2a/Makefile.kmk
|
---|
123 | endif
|
---|
124 |
|
---|
125 | include $(FILE_KBUILD_SUB_FOOTER)
|
---|