Chromium Code Reviews| Index: net/net.gyp |
| diff --git a/net/net.gyp b/net/net.gyp |
| index c00ce61010b625558589510c3e15ab234ccc8fb7..40432c14b83950d79efdb10cf6c44a23da83795c 100644 |
| --- a/net/net.gyp |
| +++ b/net/net.gyp |
| @@ -106,20 +106,51 @@ |
| # GN version: //net |
| 'target_name': 'net', |
| 'dependencies': [ |
| - '../base/base.gyp:base_i18n', |
| - '../third_party/brotli/brotli.gyp:brotli', |
| - '../third_party/icu/icu.gyp:icui18n', |
| - '../third_party/icu/icu.gyp:icuuc', |
| - '../third_party/protobuf/protobuf.gyp:protobuf_lite', |
| '../url/url.gyp:url_lib', |
| - 'net_quic_proto', |
| - ], |
| - 'sources': [ |
| - 'base/filename_util_icu.cc', |
| - 'base/net_string_util_icu.cc', |
| - 'filter/brotli_filter.cc', |
| ], |
| 'includes': [ 'net_common.gypi' ], |
| + |
| + # ICU Alternatives |
| + 'conditions': [ |
| + ['use_platform_icu_alternatives == 1', { |
| + 'defines': [ |
| + 'USE_PLATFORM_ICU_ALTERNATIVES=1', |
| + 'DISABLE_FILE_SUPPORT=1', |
| + 'DISABLE_FTP_SUPPORT=1', |
|
xunjieli
2016/04/01 14:16:43
The two defines (other than USE_PLATFORM_ICU_ALTER
kapishnikov
2016/04/01 18:55:01
Yes, these ones are defined in common.gypi. Thanks
|
| + ], |
| + 'conditions': [ |
| + ['OS == "android"', { |
| + 'sources': [ |
| + 'base/net_string_util_icu_alternatives_android.cc', |
| + 'base/net_string_util_icu_alternatives_android.h', |
| + 'filter/brotli_filter_disabled.cc', |
| + ], |
| + }], |
| + ['OS == "ios"', { |
| + 'sources': [ |
| + 'base/net_string_util_icu_alternatives_ios.mm', |
| + 'filter/brotli_filter_disabled.cc', |
| + ], |
| + }], |
| + ], |
| + }, |
| + # 'use_platform_icu_alternatives != 1' |
| + { |
| + 'sources': [ |
| + 'base/filename_util_icu.cc', |
| + 'base/net_string_util_icu.cc', |
| + 'filter/brotli_filter.cc', |
| + ], |
| + 'dependencies': [ |
| + '../base/base.gyp:base_i18n', |
| + '../third_party/brotli/brotli.gyp:brotli', |
| + '../third_party/icu/icu.gyp:icui18n', |
| + '../third_party/icu/icu.gyp:icuuc', |
| + '../third_party/protobuf/protobuf.gyp:protobuf_lite', |
| + 'net_quic_proto', |
| + ], |
| + }], |
| + ], |
| }, |
| { |
| # GN version: //net:net_unittests |
| @@ -221,7 +252,7 @@ |
| 'http/mock_gssapi_library_posix.h', |
| ], |
| }], |
| - [ 'use_kerberos==0', { |
| + [ 'use_kerberos==0', { |
| 'sources!': [ |
| 'http/http_auth_handler_negotiate_unittest.cc', |
| ], |
| @@ -421,6 +452,34 @@ |
| '../gin/gin.gyp:gin', |
| ] |
| }], |
| + # Unit tests that are not supported by the current ICU alternatives on Android. |
| + ['OS == "android" and use_platform_icu_alternatives == 1', { |
| + 'sources!': [ |
| + 'base/filename_util_unittest.cc', |
| + 'filter/brotli_filter_unittest.cc', |
| + 'url_request/url_request_job_unittest.cc', |
| + ], |
| + }], |
| + # Unit tests that are not supported by the current ICU alternatives on iOS. |
| + ['OS == "ios" and use_platform_icu_alternatives == 1', { |
| + 'sources!': [ |
| + 'base/filename_util_unittest.cc', |
| + 'base/url_util_unittest.cc', |
| + 'cert/x509_certificate_unittest.cc', |
| + 'socket/ssl_client_socket_pool_unittest.cc', |
| + 'http/http_auth_handler_basic_unittest.cc', |
| + 'http/http_auth_handler_digest_unittest.cc', |
| + 'http/http_auth_handler_factory_unittest.cc', |
| + 'http/http_auth_unittest.cc', |
| + 'http/http_content_disposition_unittest.cc', |
| + 'http/http_network_transaction_unittest.cc', |
| + 'http/http_proxy_client_socket_pool_unittest.cc', |
| + 'spdy/spdy_network_transaction_unittest.cc', |
| + 'spdy/spdy_proxy_client_socket_unittest.cc', |
| + 'url_request/url_request_job_unittest.cc', |
| + 'url_request/url_request_unittest.cc', |
| + ], |
| + }], |
| ], |
| 'target_conditions': [ |
| # These source files are excluded by default platform rules, but they |
| @@ -1336,29 +1395,6 @@ |
| }], |
| ['OS=="android"', { |
| 'targets': [ |
| - { # The same target as 'net', but with smaller binary size due to |
| - # exclusion of ICU, FTP, FILE and WebSockets support. |
| - 'target_name': 'net_small', |
| - 'variables': { |
| - 'disable_ftp_support': 1, |
| - 'disable_file_support': 1, |
| - 'enable_websockets': 0, |
| - }, |
| - 'dependencies': [ |
| - '../url/url.gyp:url_lib_use_icu_alternatives_on_android', |
| - ], |
| - 'defines': [ |
| - 'USE_ICU_ALTERNATIVES_ON_ANDROID=1', |
| - 'DISABLE_FILE_SUPPORT=1', |
| - 'DISABLE_FTP_SUPPORT=1', |
| - ], |
| - 'sources': [ |
| - 'filter/brotli_filter_disabled.cc', |
| - 'base/net_string_util_icu_alternatives_android.cc', |
| - 'base/net_string_util_icu_alternatives_android.h', |
| - ], |
| - 'includes': [ 'net_common.gypi' ], |
| - }, |
| { |
| 'target_name': 'net_jni_headers', |
| 'type': 'none', |