Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(881)

Side by Side Diff: net/net.gyp

Issue 1128043007: Support Kerberos on Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix a nit I had missed. Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 # Copyright 2013 The Chromium Authors. All rights reserved. 1 # Copyright 2013 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 { 5 {
6 'variables': { 6 'variables': {
7 'chromium_code': 1, 7 'chromium_code': 1,
8 # Defines an extra set of libs with an alternate copy of org.apache.http. 8 # Defines an extra set of libs with an alternate copy of org.apache.http.
9 # TODO(yfriedman): Remove this when crbug.com/488192 is fixed. 9 # TODO(yfriedman): Remove this when crbug.com/488192 is fixed.
10 'net_test_extra_libs': [], 10 'net_test_extra_libs': [],
11 'linux_link_kerberos%': 0, 11 'linux_link_kerberos%': 0,
12 'conditions': [ 12 'conditions': [
13 ['chromeos==1 or embedded==1 or OS=="android" or OS=="ios"', { 13 ['chromeos==1 or embedded==1 or OS=="ios"', {
14 # Disable Kerberos on ChromeOS, Android and iOS, at least for now. 14 # Disable Kerberos on ChromeOS and iOS, at least for now.
15 # It needs configuration (krb5.conf and so on). 15 # It needs configuration (krb5.conf and so on).
16 'use_kerberos%': 0, 16 'use_kerberos%': 0,
17 }, { # chromeos == 0 and embedded==0 and OS!="android" and OS!="ios" 17 }, { # chromeos == 0 and embedded==0 and OS!="ios"
18 'use_kerberos%': 1, 18 'use_kerberos%': 1,
19 }], 19 }],
20 ['OS=="android" and target_arch != "ia32"', { 20 ['OS=="android" and target_arch != "ia32"', {
21 # The way the cache uses mmap() is inefficient on some Android devices. 21 # The way the cache uses mmap() is inefficient on some Android devices.
22 # If this flag is set, we hackily avoid using mmap() in the disk cache. 22 # If this flag is set, we hackily avoid using mmap() in the disk cache.
23 # We are pretty confident that mmap-ing the index would not hurt any 23 # We are pretty confident that mmap-ing the index would not hurt any
24 # existing x86 android devices, but we cannot be so sure about the 24 # existing x86 android devices, but we cannot be so sure about the
25 # variety of ARM devices. So enable it for x86 only for now. 25 # variety of ARM devices. So enable it for x86 only for now.
26 'posix_avoid_mmap%': 1, 26 'posix_avoid_mmap%': 1,
27 }, { 27 }, {
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 'dependencies': [ 216 'dependencies': [
217 '../base/allocator/allocator.gyp:allocator', 217 '../base/allocator/allocator.gyp:allocator',
218 ], 218 ],
219 }], 219 }],
220 ], 220 ],
221 }], 221 }],
222 [ 'use_kerberos==1', { 222 [ 'use_kerberos==1', {
223 'defines': [ 223 'defines': [
224 'USE_KERBEROS', 224 'USE_KERBEROS',
225 ], 225 ],
226 }, { # use_kerberos == 0 226 }],
227 [ 'use_kerberos==0 or OS == "android"', {
228 # These are excluded on Android, because the actual Kerberos support,
229 # which these test, is in a separate app on Android.
227 'sources!': [ 230 'sources!': [
228 'http/http_auth_gssapi_posix_unittest.cc', 231 'http/http_auth_gssapi_posix_unittest.cc',
229 'http/http_auth_handler_negotiate_unittest.cc', 232 'http/http_auth_handler_negotiate_unittest.cc',
cbentzel 2015/06/11 20:51:43 http_auth_handler_negotate_unittest.cc should stil
aberent 2015/06/15 15:52:20 Unfortunately not, because, as discussed in a rece
230 'http/mock_gssapi_library_posix.cc', 233 'http/mock_gssapi_library_posix.cc',
231 'http/mock_gssapi_library_posix.h', 234 'http/mock_gssapi_library_posix.h',
232 ], 235 ],
233 }], 236 }],
234 [ 'use_openssl == 1 or (desktop_linux == 0 and chromeos == 0 and OS != " ios")', { 237 [ 'use_openssl == 1 or (desktop_linux == 0 and chromeos == 0 and OS != " ios")', {
235 # Only include this test when on Posix and using NSS for 238 # Only include this test when on Posix and using NSS for
236 # cert verification or on iOS (which also uses NSS for certs). 239 # cert verification or on iOS (which also uses NSS for certs).
237 'sources!': [ 240 'sources!': [
238 'cert_net/nss_ocsp_unittest.cc', 241 'cert_net/nss_ocsp_unittest.cc',
239 ], 242 ],
(...skipping 1106 matching lines...) Expand 10 before | Expand all | Expand 10 after
1346 }, 1349 },
1347 { 1350 {
1348 'target_name': 'net_jni_headers', 1351 'target_name': 'net_jni_headers',
1349 'type': 'none', 1352 'type': 'none',
1350 'sources': [ 1353 'sources': [
1351 'android/java/src/org/chromium/net/AndroidCertVerifyResult.java', 1354 'android/java/src/org/chromium/net/AndroidCertVerifyResult.java',
1352 'android/java/src/org/chromium/net/AndroidKeyStore.java', 1355 'android/java/src/org/chromium/net/AndroidKeyStore.java',
1353 'android/java/src/org/chromium/net/AndroidNetworkLibrary.java', 1356 'android/java/src/org/chromium/net/AndroidNetworkLibrary.java',
1354 'android/java/src/org/chromium/net/AndroidPrivateKey.java', 1357 'android/java/src/org/chromium/net/AndroidPrivateKey.java',
1355 'android/java/src/org/chromium/net/GURLUtils.java', 1358 'android/java/src/org/chromium/net/GURLUtils.java',
1359 'android/java/src/org/chromium/net/HttpNegotiateAuthenticator.java',
1356 'android/java/src/org/chromium/net/NetStringUtil.java', 1360 'android/java/src/org/chromium/net/NetStringUtil.java',
1357 'android/java/src/org/chromium/net/NetworkChangeNotifier.java', 1361 'android/java/src/org/chromium/net/NetworkChangeNotifier.java',
1358 'android/java/src/org/chromium/net/ProxyChangeListener.java', 1362 'android/java/src/org/chromium/net/ProxyChangeListener.java',
1359 'android/java/src/org/chromium/net/X509Util.java', 1363 'android/java/src/org/chromium/net/X509Util.java',
1360 ], 1364 ],
1361 'variables': { 1365 'variables': {
1362 'jni_gen_package': 'net', 1366 'jni_gen_package': 'net',
1363 }, 1367 },
1364 'includes': [ '../build/jni_generator.gypi' ], 1368 'includes': [ '../build/jni_generator.gypi' ],
1365 }, 1369 },
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
1482 'source_file': 'android/keystore.h', 1486 'source_file': 'android/keystore.h',
1483 }, 1487 },
1484 'includes': [ '../build/android/java_cpp_enum.gypi' ], 1488 'includes': [ '../build/android/java_cpp_enum.gypi' ],
1485 }, 1489 },
1486 { 1490 {
1487 'target_name': 'net_unittests_apk', 1491 'target_name': 'net_unittests_apk',
1488 'type': 'none', 1492 'type': 'none',
1489 'dependencies': [ 1493 'dependencies': [
1490 'net_java', 1494 'net_java',
1491 'net_javatests', 1495 'net_javatests',
1496 'net_java_test_support',
1492 'net_unittests', 1497 'net_unittests',
1493 ], 1498 ],
1494 'conditions': [ 1499 'conditions': [
1495 ['v8_use_external_startup_data==1', { 1500 ['v8_use_external_startup_data==1', {
1496 'dependencies': [ 1501 'dependencies': [
1497 '../v8/tools/gyp/v8.gyp:v8_external_snapshot', 1502 '../v8/tools/gyp/v8.gyp:v8_external_snapshot',
1498 ], 1503 ],
1499 'copies': [ 1504 'copies': [
1500 { 1505 {
1501 'destination': '<(asset_location)', 1506 'destination': '<(asset_location)',
1502 'files': [ 1507 'files': [
1503 '<(PRODUCT_DIR)/natives_blob.bin', 1508 '<(PRODUCT_DIR)/natives_blob.bin',
1504 '<(PRODUCT_DIR)/snapshot_blob.bin', 1509 '<(PRODUCT_DIR)/snapshot_blob.bin',
1505 ], 1510 ],
1506 }, 1511 },
1507 ], 1512 ],
1508 }], 1513 }],
1509 ], 1514 ],
1510 'variables': { 1515 'variables': {
1511 'test_suite_name': 'net_unittests', 1516 'test_suite_name': 'net_unittests',
1512 'isolate_file': 'net_unittests.isolate', 1517 'isolate_file': 'net_unittests.isolate',
1518 'android_manifest_path': 'android/unittest_support/AndroidManifest.x ml',
1519 'resource_dir': 'android/unittest_support/res',
1513 'conditions': [ 1520 'conditions': [
1514 ['v8_use_external_startup_data==1', { 1521 ['v8_use_external_startup_data==1', {
1515 'asset_location': '<(PRODUCT_DIR)/net_unittests_apk/assets', 1522 'asset_location': '<(PRODUCT_DIR)/net_unittests_apk/assets',
1516 'additional_input_paths': [ 1523 'additional_input_paths': [
1517 '<(PRODUCT_DIR)/net_unittests_apk/assets/natives_blob.bin', 1524 '<(PRODUCT_DIR)/net_unittests_apk/assets/natives_blob.bin',
1518 '<(PRODUCT_DIR)/net_unittests_apk/assets/snapshot_blob.bin', 1525 '<(PRODUCT_DIR)/net_unittests_apk/assets/snapshot_blob.bin',
1519 ], 1526 ],
1520 'inputs': [ 1527 'inputs': [
1521 '<(PRODUCT_DIR)/natives_blob.bin', 1528 '<(PRODUCT_DIR)/natives_blob.bin',
1522 '<(PRODUCT_DIR)/snapshot_blob.bin', 1529 '<(PRODUCT_DIR)/snapshot_blob.bin',
1523 ], 1530 ],
1524 }], 1531 }],
1525 ], 1532 ],
1526 }, 1533 },
1527 'includes': [ '../build/apk_test.gypi' ], 1534 'includes': [ '../build/apk_test.gypi' ],
1528 }, 1535 },
1536 {
1537 'target_name': 'net_junit_tests',
1538 'type': 'none',
1539 'dependencies': [
1540 'net_java',
1541 '../base/base.gyp:base',
1542 '../base/base.gyp:base_java_test_support',
1543 '../testing/android/junit/junit_test.gyp:junit_test_support',
1544 ],
1545 'variables': {
1546 'main_class': 'org.chromium.testing.local.JunitTestMain',
1547 'src_paths': [
1548 'android/junit/',
1549 ],
1550 },
1551 'includes': [
1552 '../build/host_jar.gypi',
1553 ],
1554 },
1555
1529 ], 1556 ],
1530 }], 1557 }],
1531 ['OS == "android" or OS == "linux"', { 1558 ['OS == "android" or OS == "linux"', {
1532 'targets': [ 1559 'targets': [
1533 { 1560 {
1534 'target_name': 'disk_cache_memory_test', 1561 'target_name': 'disk_cache_memory_test',
1535 'type': 'executable', 1562 'type': 'executable',
1536 'dependencies': [ 1563 'dependencies': [
1537 '../base/base.gyp:base', 1564 '../base/base.gyp:base',
1538 'net', 1565 'net',
(...skipping 16 matching lines...) Expand all
1555 '../build/isolate.gypi', 1582 '../build/isolate.gypi',
1556 ], 1583 ],
1557 'sources': [ 1584 'sources': [
1558 'net_unittests.isolate', 1585 'net_unittests.isolate',
1559 ], 1586 ],
1560 }, 1587 },
1561 ], 1588 ],
1562 }], 1589 }],
1563 ], 1590 ],
1564 } 1591 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698