Chromium Code Reviews| Index: net/net.gyp |
| diff --git a/net/net.gyp b/net/net.gyp |
| index 98446ce72f7893ab352e107527308949fe58a229..f6c7e8a0290882a79ada7d1c7f455d7be3fd9be7 100644 |
| --- a/net/net.gyp |
| +++ b/net/net.gyp |
| @@ -8,8 +8,8 @@ |
| 'linux_link_kerberos%': 0, |
| 'conditions': [ |
| - ['chromeos==1', { |
| - # Disable Kerberos on ChromeOS, at least for now. |
| + ['chromeos==1 or OS=="android"', { |
| + # Disable Kerberos on ChromeOS and Android, at least for now. |
| # It needs configuration (krb5.conf and so on). |
| 'use_kerberos%': 0, |
| }, { # chromeos == 0 |
| @@ -39,6 +39,8 @@ |
| 'ssl_false_start_blacklist_process#host', |
| ], |
| 'sources': [ |
| + 'android/network_library.cc', |
| + 'android/network_library.h', |
| 'base/address_family.h', |
| 'base/address_list.cc', |
| 'base/address_list.h', |
| @@ -182,6 +184,7 @@ |
| 'base/nss_memio.h', |
| 'base/openssl_memory_private_key_store.cc', |
| 'base/openssl_private_key_store.h', |
| + 'base/openssl_private_key_store_android.cc', |
| 'base/origin_bound_cert_service.cc', |
| 'base/origin_bound_cert_service.h', |
| 'base/origin_bound_cert_store.h', |
| @@ -245,6 +248,7 @@ |
| 'base/x509_certificate_mac.cc', |
| 'base/x509_certificate_nss.cc', |
| 'base/x509_certificate_openssl.cc', |
| + 'base/x509_certificate_openssl_android.cc', |
| 'base/x509_certificate_win.cc', |
| 'base/x509_util.h', |
| 'base/x509_util_nss.cc', |
| @@ -926,6 +930,15 @@ |
| # Android can shut down our app at any time, so we persist session cookies. |
| 'ENABLE_PERSISTENT_SESSION_COOKIES' |
| ], |
| + 'dependencies': [ |
| + '../build/android/system.gyp:ssl', |
| + ], |
| + 'sources/': [ |
| + ['exclude', '^dns/dns_config_service_posix.cc'], |
| + # TODO(jingzhao): The below files are excluded because of the |
| + # missing JNI, add them back when JNI is ready. |
| + ['exclude', '^android/'], |
| + ], |
| }, { # else OS! = "android" |
| 'defines': [ |
| # These are the features Android doesn't support. |
| @@ -935,6 +948,13 @@ |
| }, |
| ], |
| ], |
| + 'target_conditions': [ |
| + ['OS == "android"', { |
| + 'sources/': [ |
| + ['include', '^base/platform_mime_util_linux.cc'], |
|
John Grabowski
2011/11/01 23:09:34
'^base/platform_mime_util_linux\\.cc$'
Jing Zhao
2011/11/02 16:22:55
Done.
|
| + ], |
| + }], |
| + ], |
| }, |
| { |
| 'target_name': 'net_unittests', |
| @@ -1161,7 +1181,7 @@ |
| ], |
| }, |
| ], |
| - [ 'os_posix == 1 and OS != "mac"', { |
| + [ 'os_posix == 1 and OS != "mac" and OS != "android"', { |
| 'conditions': [ |
| ['linux_use_tcmalloc==1', { |
| 'dependencies': [ |
| @@ -1220,6 +1240,16 @@ |
| ], |
| }, |
| ], |
| + [ 'OS == "android"', { |
| + 'dependencies': [ |
| + '../build/android/system.gyp:ssl', |
| + ], |
| + 'sources/': [ |
|
John Grabowski
2011/11/01 23:09:34
'sources!': [ .. then no regexp ]
Jing Zhao
2011/11/02 16:22:55
Done.
|
| + ['exclude', '^dns/dns_config_service_posix_unittest.cc'], |
| + ['exclude', '^dns/dns_config_service_unittest.cc'], |
| + ], |
| + }, |
| + ], |
| ], |
| }, |
| { |
| @@ -1356,7 +1386,7 @@ |
| '../third_party/protobuf/protobuf.gyp:py_proto', |
| ], |
| }], |
| - ['os_posix == 1 and OS != "mac"', { |
| + ['os_posix == 1 and OS != "mac" and OS != "android"', { |
| 'conditions': [ |
| ['use_openssl==1', { |
| 'dependencies': [ |
| @@ -1369,7 +1399,7 @@ |
| }], |
| ], |
| }], |
| - ['os_posix == 1 and OS != "mac"', { |
| + ['os_posix == 1 and OS != "mac" and OS != "android"', { |
| 'conditions': [ |
| ['linux_use_tcmalloc==1', { |
| 'dependencies': [ |
| @@ -1378,6 +1408,14 @@ |
| }], |
| ], |
| }], |
| + ['OS == "android"', { |
| + 'dependencies': [ |
| + '../build/android/system.gyp:ssl', |
| + ], |
| + 'export_dependent_settings': [ |
| + '../base/base.gyp:test_support_base', |
| + ], |
| + }], |
| ], |
| }, |
| { |
| @@ -1482,7 +1520,7 @@ |
| }, |
| ], |
| 'conditions': [ |
| - ['os_posix == 1 and OS != "mac"', { |
| + ['os_posix == 1 and OS != "mac" and OS != "android"', { |
| 'targets': [ |
| { |
| 'target_name': 'flip_in_mem_edsm_server', |