2014-06-17 16:15:33 +00:00
|
|
|
# Copyright 2014 Google Inc. All rights reserved.
|
|
|
|
#
|
|
|
|
# Use of this source code is governed by a BSD-style
|
|
|
|
# license that can be found in the LICENSE file or at
|
|
|
|
# https://developers.google.com/open-source/licenses/bsd
|
|
|
|
|
|
|
|
{
|
|
|
|
'targets': [
|
|
|
|
{
|
|
|
|
'target_name': 'curl_config',
|
|
|
|
'type': '<(component)',
|
|
|
|
'sources': [
|
|
|
|
'config/curl/curlbuild.h',
|
|
|
|
],
|
|
|
|
'direct_dependent_settings': {
|
|
|
|
'defines': [
|
|
|
|
'HTTP_ONLY',
|
|
|
|
'USE_IPV6',
|
|
|
|
],
|
|
|
|
'include_dirs': [
|
|
|
|
'config',
|
|
|
|
'config/curl',
|
|
|
|
],
|
|
|
|
'direct_dependent_settings': {
|
|
|
|
'include_dirs': [
|
|
|
|
'config/curl',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
'conditions': [
|
|
|
|
['OS == "linux"', {
|
|
|
|
'sources': [
|
|
|
|
'config/linux/curl_config.h',
|
|
|
|
],
|
|
|
|
'direct_dependent_settings': {
|
|
|
|
'defines': [
|
|
|
|
'HAVE_CONFIG_H',
|
2015-03-12 16:29:53 +00:00
|
|
|
'CURL_CA_BUNDLE="<!(config/linux/find_curl_ca_bundle.sh)"',
|
2016-11-09 22:05:58 +00:00
|
|
|
'USE_OPENSSL',
|
2014-06-17 16:15:33 +00:00
|
|
|
],
|
|
|
|
'include_dirs': [
|
|
|
|
'config/linux',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
}],
|
2016-01-15 15:12:15 +00:00
|
|
|
['OS == "mac"', {
|
|
|
|
'sources': [
|
|
|
|
'config/mac/curl_config.h',
|
|
|
|
],
|
|
|
|
'direct_dependent_settings': {
|
|
|
|
'defines': [
|
|
|
|
'HAVE_CONFIG_H',
|
|
|
|
'CURL_CA_BUNDLE="<!(config/mac/find_curl_ca_bundle.sh)"',
|
2016-11-09 22:05:58 +00:00
|
|
|
'USE_OPENSSL',
|
2016-01-15 15:12:15 +00:00
|
|
|
],
|
|
|
|
'include_dirs': [
|
|
|
|
'config/mac',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
}],
|
2014-06-17 16:15:33 +00:00
|
|
|
['OS == "win"', {
|
|
|
|
'direct_dependent_settings': {
|
2016-08-03 15:06:43 +00:00
|
|
|
'defines': [
|
|
|
|
'CURL_DISABLE_LDAP',
|
2016-11-09 22:05:58 +00:00
|
|
|
'USE_SCHANNEL',
|
|
|
|
'USE_WINDOWS_SSPI',
|
2016-08-03 15:06:43 +00:00
|
|
|
],
|
2014-06-17 16:15:33 +00:00
|
|
|
'link_settings': {
|
|
|
|
'libraries': [
|
|
|
|
'-lws2_32.lib',
|
2016-11-09 22:05:58 +00:00
|
|
|
'-lCrypt32.lib',
|
2014-06-17 16:15:33 +00:00
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}],
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
'target_name': 'libcurl',
|
|
|
|
'type': '<(component)',
|
|
|
|
'conditions': [
|
|
|
|
['_type == "static_library"', {
|
|
|
|
'defines': [
|
|
|
|
'CURL_STATICLIB',
|
|
|
|
],
|
|
|
|
}],
|
2016-08-03 15:06:43 +00:00
|
|
|
['OS == "win"', {
|
|
|
|
'sources': [
|
|
|
|
'source/lib/config-win32.h',
|
|
|
|
'source/lib/idn_win32.c',
|
|
|
|
'source/lib/system_win32.c',
|
|
|
|
'source/lib/system_win32.h',
|
|
|
|
],
|
|
|
|
'defines': [
|
|
|
|
'BUILDING_LIBCURL',
|
|
|
|
],
|
2016-11-09 02:11:13 +00:00
|
|
|
'msvs_disabled_warnings': [ 4267, ],
|
2016-08-03 15:06:43 +00:00
|
|
|
}],
|
2014-06-17 16:15:33 +00:00
|
|
|
],
|
2016-08-17 21:42:23 +00:00
|
|
|
'variables': {
|
|
|
|
'clang_warning_flags': [
|
|
|
|
# TODO(kqyang): Fix curl bug.
|
|
|
|
'-Wno-varargs',
|
|
|
|
],
|
|
|
|
},
|
2014-06-17 16:15:33 +00:00
|
|
|
'include_dirs': [
|
|
|
|
'source/lib',
|
|
|
|
'source/include',
|
|
|
|
],
|
|
|
|
'dependencies': [
|
2015-07-24 18:44:52 +00:00
|
|
|
'../boringssl/boringssl.gyp:boringssl',
|
2014-06-17 16:15:33 +00:00
|
|
|
'curl_config',
|
|
|
|
],
|
|
|
|
'direct_dependent_settings': {
|
|
|
|
'conditions': [
|
|
|
|
['_type == "static_library"', {
|
|
|
|
'defines': [
|
|
|
|
'CURL_STATICLIB',
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
],
|
|
|
|
'include_dirs': [
|
|
|
|
'source/include',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
'sources': [
|
|
|
|
'source/lib/amigaos.c',
|
|
|
|
'source/lib/asyn-ares.c',
|
|
|
|
'source/lib/asyn-thread.c',
|
|
|
|
'source/lib/base64.c',
|
|
|
|
'source/lib/conncache.c',
|
|
|
|
'source/lib/connect.c',
|
|
|
|
'source/lib/content_encoding.c',
|
|
|
|
'source/lib/cookie.c',
|
|
|
|
'source/lib/curl_addrinfo.c',
|
2016-08-02 17:41:03 +00:00
|
|
|
'source/lib/curl_des.c',
|
|
|
|
'source/lib/curl_endian.c',
|
2014-06-17 16:15:33 +00:00
|
|
|
'source/lib/curl_fnmatch.c',
|
|
|
|
'source/lib/curl_gethostname.c',
|
|
|
|
'source/lib/curl_gssapi.c',
|
|
|
|
'source/lib/curl_memrchr.c',
|
|
|
|
'source/lib/curl_multibyte.c',
|
|
|
|
'source/lib/curl_ntlm_core.c',
|
|
|
|
'source/lib/curl_ntlm_wb.c',
|
|
|
|
'source/lib/curl_rtmp.c',
|
|
|
|
'source/lib/curl_sasl.c',
|
|
|
|
'source/lib/curl_sspi.c',
|
|
|
|
'source/lib/curl_threads.c',
|
|
|
|
'source/lib/dict.c',
|
|
|
|
'source/lib/dotdot.c',
|
|
|
|
'source/lib/easy.c',
|
|
|
|
'source/lib/escape.c',
|
|
|
|
'source/lib/file.c',
|
|
|
|
'source/lib/fileinfo.c',
|
|
|
|
'source/lib/formdata.c',
|
|
|
|
'source/lib/ftp.c',
|
|
|
|
'source/lib/ftplistparser.c',
|
|
|
|
'source/lib/getenv.c',
|
|
|
|
'source/lib/getinfo.c',
|
|
|
|
'source/lib/gopher.c',
|
|
|
|
'source/lib/hash.c',
|
|
|
|
'source/lib/hmac.c',
|
|
|
|
'source/lib/hostasyn.c',
|
|
|
|
'source/lib/hostcheck.c',
|
|
|
|
'source/lib/hostip4.c',
|
|
|
|
'source/lib/hostip6.c',
|
2016-08-02 17:41:03 +00:00
|
|
|
'source/lib/hostip.c',
|
2014-06-17 16:15:33 +00:00
|
|
|
'source/lib/hostsyn.c',
|
2016-08-02 17:41:03 +00:00
|
|
|
'source/lib/http2.c',
|
2014-06-17 16:15:33 +00:00
|
|
|
'source/lib/http.c',
|
|
|
|
'source/lib/http_chunks.c',
|
|
|
|
'source/lib/http_digest.c',
|
|
|
|
'source/lib/http_negotiate.c',
|
2016-08-02 17:41:03 +00:00
|
|
|
'source/lib/http_ntlm.c',
|
2014-06-17 16:15:33 +00:00
|
|
|
'source/lib/http_proxy.c',
|
|
|
|
'source/lib/idn_win32.c',
|
|
|
|
'source/lib/if2ip.c',
|
|
|
|
'source/lib/imap.c',
|
|
|
|
'source/lib/inet_ntop.c',
|
|
|
|
'source/lib/inet_pton.c',
|
2016-08-02 17:41:03 +00:00
|
|
|
'source/lib/krb5.c',
|
2014-06-17 16:15:33 +00:00
|
|
|
'source/lib/ldap.c',
|
|
|
|
'source/lib/llist.c',
|
|
|
|
'source/lib/md4.c',
|
|
|
|
'source/lib/md5.c',
|
|
|
|
'source/lib/memdebug.c',
|
|
|
|
'source/lib/mprintf.c',
|
|
|
|
'source/lib/multi.c',
|
|
|
|
'source/lib/netrc.c',
|
|
|
|
'source/lib/non-ascii.c',
|
|
|
|
'source/lib/nonblock.c',
|
2016-08-02 17:41:03 +00:00
|
|
|
'source/lib/nwlib.c',
|
|
|
|
'source/lib/nwos.c',
|
2014-06-17 16:15:33 +00:00
|
|
|
'source/lib/openldap.c',
|
|
|
|
'source/lib/parsedate.c',
|
|
|
|
'source/lib/pingpong.c',
|
|
|
|
'source/lib/pipeline.c',
|
|
|
|
'source/lib/pop3.c',
|
|
|
|
'source/lib/progress.c',
|
|
|
|
'source/lib/rawstr.c',
|
|
|
|
'source/lib/rtsp.c',
|
|
|
|
'source/lib/security.c',
|
|
|
|
'source/lib/select.c',
|
|
|
|
'source/lib/sendf.c',
|
|
|
|
'source/lib/share.c',
|
|
|
|
'source/lib/slist.c',
|
2016-08-02 17:41:03 +00:00
|
|
|
'source/lib/smb.c',
|
2014-06-17 16:15:33 +00:00
|
|
|
'source/lib/smtp.c',
|
|
|
|
'source/lib/socks.c',
|
|
|
|
'source/lib/socks_gssapi.c',
|
|
|
|
'source/lib/socks_sspi.c',
|
|
|
|
'source/lib/speedcheck.c',
|
|
|
|
'source/lib/splay.c',
|
|
|
|
'source/lib/ssh.c',
|
|
|
|
'source/lib/strdup.c',
|
|
|
|
'source/lib/strequal.c',
|
|
|
|
'source/lib/strerror.c',
|
|
|
|
'source/lib/strtok.c',
|
|
|
|
'source/lib/strtoofft.c',
|
2016-08-02 17:41:03 +00:00
|
|
|
'source/lib/system_win32.c',
|
2014-06-17 16:15:33 +00:00
|
|
|
'source/lib/telnet.c',
|
|
|
|
'source/lib/tftp.c',
|
|
|
|
'source/lib/timeval.c',
|
|
|
|
'source/lib/transfer.c',
|
|
|
|
'source/lib/url.c',
|
2016-08-02 17:41:03 +00:00
|
|
|
'source/lib/vauth/cleartext.c',
|
|
|
|
'source/lib/vauth/cram.c',
|
|
|
|
'source/lib/vauth/digest.c',
|
|
|
|
'source/lib/vauth/digest_sspi.c',
|
|
|
|
'source/lib/vauth/krb5_gssapi.c',
|
|
|
|
'source/lib/vauth/krb5_sspi.c',
|
|
|
|
'source/lib/vauth/ntlm.c',
|
|
|
|
'source/lib/vauth/ntlm_sspi.c',
|
|
|
|
'source/lib/vauth/oauth2.c',
|
|
|
|
'source/lib/vauth/spnego_gssapi.c',
|
|
|
|
'source/lib/vauth/spnego_sspi.c',
|
|
|
|
'source/lib/vauth/vauth.c',
|
2014-06-17 16:15:33 +00:00
|
|
|
'source/lib/version.c',
|
|
|
|
'source/lib/vtls/axtls.c',
|
|
|
|
'source/lib/vtls/cyassl.c',
|
2015-07-24 18:44:52 +00:00
|
|
|
'source/lib/vtls/darwinssl.c',
|
2014-06-17 16:15:33 +00:00
|
|
|
'source/lib/vtls/gskit.c',
|
|
|
|
'source/lib/vtls/gtls.c',
|
2016-08-02 17:41:03 +00:00
|
|
|
'source/lib/vtls/mbedtls.c',
|
2014-06-17 16:15:33 +00:00
|
|
|
'source/lib/vtls/nss.c',
|
|
|
|
'source/lib/vtls/openssl.c',
|
|
|
|
'source/lib/vtls/polarssl.c',
|
|
|
|
'source/lib/vtls/polarssl_threadlock.c',
|
2015-07-24 18:44:52 +00:00
|
|
|
'source/lib/vtls/schannel.c',
|
2014-06-17 16:15:33 +00:00
|
|
|
'source/lib/vtls/vtls.c',
|
|
|
|
'source/lib/warnless.c',
|
|
|
|
'source/lib/wildcard.c',
|
2016-08-02 17:41:03 +00:00
|
|
|
'source/lib/x509asn1.c',
|
2014-06-17 16:15:33 +00:00
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
'target_name': 'curl',
|
|
|
|
'type': 'executable',
|
|
|
|
'include_dirs': [
|
|
|
|
'source/lib',
|
|
|
|
'source/src',
|
|
|
|
],
|
|
|
|
'dependencies': [
|
|
|
|
'curl_config',
|
|
|
|
'libcurl',
|
|
|
|
],
|
|
|
|
'sources': [
|
|
|
|
'config/dummy_tool_hugehelp.c',
|
|
|
|
'source/src/tool_binmode.c',
|
|
|
|
'source/src/tool_bname.c',
|
|
|
|
'source/src/tool_cb_dbg.c',
|
|
|
|
'source/src/tool_cb_hdr.c',
|
|
|
|
'source/src/tool_cb_prg.c',
|
|
|
|
'source/src/tool_cb_rea.c',
|
|
|
|
'source/src/tool_cb_see.c',
|
|
|
|
'source/src/tool_cb_wrt.c',
|
|
|
|
'source/src/tool_cfgable.c',
|
|
|
|
'source/src/tool_convert.c',
|
|
|
|
'source/src/tool_dirhie.c',
|
|
|
|
'source/src/tool_doswin.c',
|
|
|
|
'source/src/tool_easysrc.c',
|
|
|
|
'source/src/tool_formparse.c',
|
|
|
|
'source/src/tool_getparam.c',
|
|
|
|
'source/src/tool_getpass.c',
|
|
|
|
'source/src/tool_help.c',
|
|
|
|
'source/src/tool_helpers.c',
|
|
|
|
'source/src/tool_homedir.c',
|
|
|
|
'source/src/tool_libinfo.c',
|
|
|
|
'source/src/tool_main.c',
|
|
|
|
'source/src/tool_metalink.c',
|
|
|
|
'source/src/tool_mfiles.c',
|
|
|
|
'source/src/tool_msgs.c',
|
|
|
|
'source/src/tool_operate.c',
|
|
|
|
'source/src/tool_operhlp.c',
|
|
|
|
'source/src/tool_panykey.c',
|
|
|
|
'source/src/tool_paramhlp.c',
|
|
|
|
'source/src/tool_parsecfg.c',
|
|
|
|
'source/src/tool_setopt.c',
|
|
|
|
'source/src/tool_sleep.c',
|
|
|
|
'source/src/tool_urlglob.c',
|
|
|
|
'source/src/tool_util.c',
|
|
|
|
'source/src/tool_vms.c',
|
|
|
|
'source/src/tool_writeenv.c',
|
|
|
|
'source/src/tool_writeout.c',
|
|
|
|
'source/src/tool_xattr.c',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
}
|