VirtualBox

source: vbox/trunk/src/libs/curl-8.7.1/Makefile.kmk@ 104197

Last change on this file since 104197 was 104085, checked in by vboxsync, 9 months ago

curl-8.7.1: Make it build. bugref:10639

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id Revision
File size: 5.0 KB
Line 
1# $Id: Makefile.kmk 104085 2024-03-27 14:14:51Z vboxsync $
2## @file
3# Sub-Makefile for the libcurl library.
4#
5
6#
7# Copyright (C) 2009-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
30VBOX_PATH_LIBCURL = $(PATH_ROOT)/src/libs/curl-8.7.1
31
32LIBRARIES += VBox-libcurl
33VBox-libcurl_TEMPLATE = VBoxR3RuntimeDllNonPedantic
34VBox-libcurl_SDKS = VBoxZlib VBoxOpenSslStatic
35VBox-libcurl_DEFS = \
36 CURL_STATICLIB \
37 OPENSSL_NO_ENGINE \
38 BUILDING_LIBCURL \
39 HAVE_CONFIG_H \
40 CURL_DISABLE_ALTSVC \
41 CURL_DISABLE_GOPHER \
42 CURL_DISABLE_FILE \
43 CURL_DISABLE_DICT \
44 CURL_DISABLE_HSTS \
45 CURL_DISABLE_IMAP \
46 CURL_DISABLE_MQTT \
47 CURL_DISABLE_NTLM \
48 CURL_DISABLE_POP3 \
49 CURL_DISABLE_RTSP \
50 CURL_DISABLE_SMTP \
51 CURL_DISABLE_TELNET
52VBox-libcurl_CFLAGS.win += -wd4826 # formdata.c(390) : warning C4826: Conversion from 'char *' to 'curl_off_t' is sign-extended. This may cause unexpected runtime behavior.
53VBox-libcurl_CFLAGS.win += -wd4310 # warnless.c(189) : warning C4310: cast truncates constant value
54VBox-libcurl_CFLAGS.win += -wd4090 # openssl/lhash.h(198) : warning C4090: 'function' : different 'const' qualifiers
55VBox-libcurl_CFLAGS.win += -wd4060 # curl-7.87.0/lib/connect.c(1588): warning C4060: switch statement contains no 'case' or 'default' labels
56if "$(VBOX_VCC_TOOL_STEM)" >= "VCC140"
57 VBox-libcurl_CFLAGS.win += -wd4774 # mprintf.c(949): warning C4774: 'sprintf' : format string expected in argument 2 is not a string literal
58endif
59VBox-libcurl_INCS = \
60 include \
61 $(VBox-libcurl_0_OUTDIR)/lib \
62 $(VBOX_PATH_LIBCURL)/lib
63VBox-libcurl_SOURCES = \
64 lib/base64.c \
65 lib/bufq.c \
66 lib/bufref.c \
67 lib/conncache.c \
68 lib/connect.c \
69 lib/content_encoding.c \
70 lib/cookie.c \
71 lib/cf-haproxy.c \
72 lib/cf-h1-proxy.c \
73 lib/cf-https-connect.c \
74 lib/cf-socket.c \
75 lib/cfilters.c \
76 lib/curl_addrinfo.c \
77 lib/curl_get_line.c \
78 lib/curl_fnmatch.c \
79 lib/curl_memrchr.c \
80 lib/curl_range.c \
81 lib/curl_sasl.c \
82 lib/curl_sha512_256.c \
83 lib/curl_trc.c \
84 lib/cw-out.c \
85 lib/doh.c \
86 lib/dynbuf.c \
87 lib/dynhds.c \
88 lib/easy.c \
89 lib/escape.c \
90 lib/fileinfo.c \
91 lib/fopen.c \
92 lib/formdata.c \
93 lib/ftp.c \
94 lib/ftplistparser.c \
95 lib/getenv.c \
96 lib/getinfo.c \
97 lib/hash.c \
98 lib/headers.c \
99 lib/hmac.c \
100 lib/hostip.c \
101 lib/hostip4.c \
102 lib/hostip6.c \
103 lib/hostsyn.c \
104 lib/http.c \
105 lib/http1.c \
106 lib/http_aws_sigv4.c \
107 lib/http_chunks.c \
108 lib/http_digest.c \
109 lib/http_proxy.c \
110 lib/if2ip.c \
111 lib/idn.c \
112 lib/inet_ntop.c \
113 lib/inet_pton.c \
114 lib/llist.c \
115 lib/md5.c \
116 lib/mime.c \
117 lib/mprintf.c \
118 lib/multi.c \
119 lib/netrc.c \
120 lib/nonblock.c \
121 lib/noproxy.c \
122 lib/parsedate.c \
123 lib/pingpong.c \
124 lib/progress.c \
125 lib/rand.c \
126 lib/request.c \
127 lib/rename.c \
128 lib/select.c \
129 lib/sendf.c \
130 lib/setopt.c \
131 lib/sha256.c \
132 lib/share.c \
133 lib/slist.c \
134 lib/socketpair.c \
135 lib/socks.c \
136 lib/speedcheck.c \
137 lib/splay.c \
138 lib/strcase.c \
139 lib/strdup.c \
140 lib/strerror.c \
141 lib/strtok.c \
142 lib/strtoofft.c \
143 lib/tftp.c \
144 lib/timediff.c \
145 lib/timeval.c \
146 lib/transfer.c \
147 lib/url.c \
148 lib/urlapi.c \
149 lib/vtls/openssl.c \
150 lib/vtls/vtls.c \
151 lib/warnless.c \
152 lib/version.c \
153 lib/vauth/digest.c \
154 lib/vauth/vauth.c \
155 lib/vquic/vquic.c \
156 lib/vtls/hostcheck.c \
157 lib/vtls/keylog.c
158VBox-libcurl_SOURCES.win = \
159 lib/curl_multibyte.c \
160 lib/system_win32.c \
161 lib/version_win32.c
162VBox-libcurl_SOURCES.darwin = \
163 lib/macos.c
164
165# Use checked in config.h instead of running ./configure for it.
166VBox-libcurl_DEPS = $(VBox-libcurl_0_OUTDIR)/lib/curl_config.h
167VBox-libcurl_CLEAN = $(VBox-libcurl_DEPS)
168$$(VBox-libcurl_0_OUTDIR)/lib/curl_config.h: $(VBOX_PATH_LIBCURL)/config.h.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH) | $$(dir $$@)
169 $(INSTALL_STAGING) -- "$^" "$@"
170
171ifdef VBOX_WITH_32_ON_64_MAIN_API # 32-bit edition.
172 LIBRARIES += VBox-libcurl-x86
173 VBox-libcurl-x86_TEMPLATE = VBoxR3DllNonPedantic-x86
174 VBox-libcurl-x86_EXTENDS = VBox-libcurl
175 VBox-libcurl-x86_INCS = \
176 include \
177 $(VBox-libcurl-x86_0_OUTDIR)/lib \
178 $(VBOX_PATH_LIBCURL)/lib
179 VBox-libcurl-x86_DEPS = $(VBox-libcurl-x86_0_OUTDIR)/lib/curl_config.h
180 VBox-libcurl-x86_CLEAN = $(VBox-libcurl-x86_DEPS)
181 $$(VBox-libcurl-x86_0_OUTDIR)/lib/curl_config.h: $(VBOX_PATH_LIBCURL)/config.h.$(KBUILD_TARGET).x86 | $$(dir $$@)
182 $(INSTALL_STAGING) -- "$^" "$@"
183
184endif
185
186include $(FILE_KBUILD_SUB_FOOTER)
187
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