OLD | NEW |
---|---|
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 'conditions': [ | 6 'conditions': [ |
7 ['OS=="android" and use_icu_alternatives_on_android==1', { | 7 ['OS=="android" and use_icu_alternatives_on_android==1', { |
8 # TODO(mef): Figure out what needs to be done for gn script. | 8 # TODO(mef): Figure out what needs to be done for gn script. |
9 'targets': [ | 9 'targets': [ |
10 { | 10 { |
(...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
394 'resource_dir': 'cronet/android/sample/res', | 394 'resource_dir': 'cronet/android/sample/res', |
395 'is_test_apk': 1, | 395 'is_test_apk': 1, |
396 }, | 396 }, |
397 'includes': [ '../build/java_apk.gypi' ], | 397 'includes': [ '../build/java_apk.gypi' ], |
398 }, | 398 }, |
399 { | 399 { |
400 'target_name': 'cronet_tests_jni_headers', | 400 'target_name': 'cronet_tests_jni_headers', |
401 'type': 'none', | 401 'type': 'none', |
402 'sources': [ | 402 'sources': [ |
403 'cronet/android/test/src/org/chromium/cronet_test_apk/CronetTestUtil .java', | 403 'cronet/android/test/src/org/chromium/cronet_test_apk/CronetTestUtil .java', |
404 'cronet/android/test/javatests/src/org/chromium/cronet_test_apk/Mock UrlRequestJobTest.java', | |
404 ], | 405 ], |
405 'variables': { | 406 'variables': { |
406 'jni_gen_package': 'cronet_tests', | 407 'jni_gen_package': 'cronet_tests', |
407 }, | 408 }, |
408 'includes': [ '../build/jni_generator.gypi' ], | 409 'includes': [ '../build/jni_generator.gypi' ], |
409 }, | 410 }, |
410 { | 411 { |
411 'target_name': 'libcronet_tests', | 412 'target_name': 'libcronet_tests', |
412 'type': 'shared_library', | 413 'type': 'shared_library', |
413 'sources': [ | 414 'sources': [ |
414 'cronet/android/test/cronet_tests_jni.cc', | 415 'cronet/android/test/cronet_tests_jni.cc', |
416 'cronet/android/test/mock_url_request_job_test.cc', | |
417 'cronet/android/test/mock_url_request_job_test.h', | |
418 '../net/base/directory_lister.cc', | |
419 '../net/base/directory_lister.h', | |
420 '../net/url_request/url_request_file_job.cc', | |
mef
2014/09/23 15:24:57
Is there particular reason to include these as sou
xunjieli
2014/09/23 15:35:58
I saw net.gyp (https://code.google.com/p/chromium/
mef
2014/09/23 15:39:35
Ah, that makes sense.
| |
421 '../net/url_request/url_request_file_job.h', | |
415 ], | 422 ], |
416 'dependencies': [ | 423 'dependencies': [ |
417 'cronet_static', | 424 'cronet_static', |
418 'cronet_tests_jni_headers', | 425 'cronet_tests_jni_headers', |
419 '../base/base.gyp:base', | 426 '../base/base.gyp:base', |
420 '../net/net.gyp:net', | 427 '../net/net.gyp:net', |
428 '../net/net.gyp:net_test_support', | |
421 '../net/net.gyp:quic_tools', | 429 '../net/net.gyp:quic_tools', |
422 '../url/url.gyp:url_lib', | 430 '../url/url.gyp:url_lib', |
431 '../base/base.gyp:base_i18n', | |
432 '../third_party/icu/icu.gyp:icui18n', | |
433 '../third_party/icu/icu.gyp:icuuc', | |
423 ], | 434 ], |
424 }, | 435 }, |
425 { | 436 { |
426 'target_name': 'cronet_test_apk', | 437 'target_name': 'cronet_test_apk', |
427 'type': 'none', | 438 'type': 'none', |
428 'dependencies': [ | 439 'dependencies': [ |
429 'cronet', | 440 'cronet', |
430 ], | 441 ], |
431 'variables': { | 442 'variables': { |
432 'apk_name': 'CronetTest', | 443 'apk_name': 'CronetTest', |
433 'java_in_dir': 'cronet/android/test', | 444 'java_in_dir': 'cronet/android/test', |
434 'resource_dir': 'cronet/android/test/res', | 445 'resource_dir': 'cronet/android/test/res', |
446 'asset_location': 'cronet/android/test/assets', | |
435 'native_lib_target': 'libcronet_tests', | 447 'native_lib_target': 'libcronet_tests', |
436 }, | 448 }, |
437 'includes': [ '../build/java_apk.gypi' ], | 449 'includes': [ '../build/java_apk.gypi' ], |
438 }, | 450 }, |
439 { | 451 { |
440 # cronet_test_apk creates a .jar as a side effect. Any java targets | 452 # cronet_test_apk creates a .jar as a side effect. Any java targets |
441 # that need that .jar in their classpath should depend on this target, | 453 # that need that .jar in their classpath should depend on this target, |
442 # cronet_sample_apk_java. Dependents of cronet_test_apk receive its | 454 # cronet_sample_apk_java. Dependents of cronet_test_apk receive its |
443 # jar path in the variable 'apk_output_jar_path'. This target should | 455 # jar path in the variable 'apk_output_jar_path'. This target should |
444 # only be used by targets which instrument cronet_test_apk. | 456 # only be used by targets which instrument cronet_test_apk. |
(...skipping 18 matching lines...) Expand all Loading... | |
463 'java_in_dir': 'cronet/android/test/javatests', | 475 'java_in_dir': 'cronet/android/test/javatests', |
464 'resource_dir': 'cronet/android/test/res', | 476 'resource_dir': 'cronet/android/test/res', |
465 'is_test_apk': 1, | 477 'is_test_apk': 1, |
466 }, | 478 }, |
467 'includes': [ '../build/java_apk.gypi' ], | 479 'includes': [ '../build/java_apk.gypi' ], |
468 }, | 480 }, |
469 ], | 481 ], |
470 }], # OS=="android" | 482 }], # OS=="android" |
471 ], | 483 ], |
472 } | 484 } |
OLD | NEW |