summaryrefslogtreecommitdiffstats
path: root/net/net.gyp
diff options
context:
space:
mode:
authorjingzhao@chromium.org <jingzhao@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-21 11:41:16 +0000
committerjingzhao@chromium.org <jingzhao@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-21 11:41:16 +0000
commitae7c9f4d3c23cbd5ef60508a5710beccad59a428 (patch)
tree57379ee4e0467f4310c5ba35202180002fcf59a8 /net/net.gyp
parent3d40d9e210b016e3148640be63bfc1c5f16827c5 (diff)
downloadchromium_src-ae7c9f4d3c23cbd5ef60508a5710beccad59a428.zip
chromium_src-ae7c9f4d3c23cbd5ef60508a5710beccad59a428.tar.gz
chromium_src-ae7c9f4d3c23cbd5ef60508a5710beccad59a428.tar.bz2
Upstream: Build net_unittests for Android.
BUG= TEST= Review URL: http://codereview.chromium.org/8429034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110902 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/net.gyp')
-rw-r--r--net/net.gyp39
1 files changed, 33 insertions, 6 deletions
diff --git a/net/net.gyp b/net/net.gyp
index a81d467..432b558 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
@@ -40,6 +40,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',
@@ -185,6 +187,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',
@@ -935,6 +938,14 @@
# 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/': [
+ # 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.
@@ -951,6 +962,13 @@
},
],
],
+ 'target_conditions': [
+ ['OS == "android"', {
+ 'sources/': [
+ ['include', '^base/platform_mime_util_linux\\.cc$'],
+ ],
+ }],
+ ],
},
{
'target_name': 'net_unittests',
@@ -1179,7 +1197,7 @@
],
},
],
- [ 'os_posix == 1 and OS != "mac"', {
+ [ 'os_posix == 1 and OS != "mac" and OS != "android"', {
'conditions': [
['linux_use_tcmalloc==1', {
'dependencies': [
@@ -1245,6 +1263,15 @@
],
},
],
+ [ 'OS == "android"', {
+ 'dependencies': [
+ '../build/android/system.gyp:ssl',
+ ],
+ 'sources!': [
+ 'dns/dns_config_service_posix_unittest.cc',
+ ],
+ },
+ ],
],
},
{
@@ -1381,7 +1408,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': [
@@ -1394,7 +1421,7 @@
}],
],
}],
- ['os_posix == 1 and OS != "mac"', {
+ ['os_posix == 1 and OS != "mac" and OS != "android"', {
'conditions': [
['linux_use_tcmalloc==1', {
'dependencies': [
@@ -1510,7 +1537,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',