OLD | NEW |
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 | 8 |
9 'linux_link_kerberos%': 0, | 9 'linux_link_kerberos%': 0, |
10 'use_tracing_cache_backend%': 0, | 10 'use_tracing_cache_backend%': 0, |
(...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
432 'cert/test_root_certs_openssl.cc', | 432 'cert/test_root_certs_openssl.cc', |
433 ], | 433 ], |
434 # The net/android/keystore_openssl.cc source file needs to | 434 # The net/android/keystore_openssl.cc source file needs to |
435 # access an OpenSSL-internal header. | 435 # access an OpenSSL-internal header. |
436 'include_dirs': [ | 436 'include_dirs': [ |
437 '../third_party/openssl', | 437 '../third_party/openssl', |
438 ], | 438 ], |
439 }, | 439 }, |
440 ], | 440 ], |
441 [ 'use_icu_alternatives_on_android == 1', { | 441 [ 'use_icu_alternatives_on_android == 1', { |
| 442 'dependencies!': [ |
| 443 '../base/base.gyp:base_i18n', |
| 444 '../third_party/icu/icu.gyp:icui18n', |
| 445 '../third_party/icu/icu.gyp:icuuc', |
| 446 ], |
442 'sources!': [ | 447 'sources!': [ |
| 448 'base/filename_util_icu.cc', |
443 'base/net_string_util_icu.cc', | 449 'base/net_string_util_icu.cc', |
| 450 'base/net_util_icu.cc', |
444 ], | 451 ], |
445 'sources': [ | 452 'sources': [ |
446 'base/net_string_util_icu_alternatives_android.cc', | 453 'base/net_string_util_icu_alternatives_android.cc', |
447 'base/net_string_util_icu_alternatives_android.h', | 454 'base/net_string_util_icu_alternatives_android.h', |
448 ], | 455 ], |
449 }, | 456 }, |
450 ], | 457 ], |
451 ], | 458 ], |
452 'target_conditions': [ | 459 'target_conditions': [ |
453 # These source files are excluded by default platform rules, but they | 460 # These source files are excluded by default platform rules, but they |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
634 ], | 641 ], |
635 }, | 642 }, |
636 ], | 643 ], |
637 [ 'enable_built_in_dns!=1', { | 644 [ 'enable_built_in_dns!=1', { |
638 'sources!': [ | 645 'sources!': [ |
639 'dns/address_sorter_posix_unittest.cc', | 646 'dns/address_sorter_posix_unittest.cc', |
640 'dns/address_sorter_unittest.cc', | 647 'dns/address_sorter_unittest.cc', |
641 ], | 648 ], |
642 }, | 649 }, |
643 ], | 650 ], |
644 [ 'use_v8_in_net==1', { | 651 # Always need use_v8_in_net to be 1 to run gyp on Android, so just |
| 652 # remove net_unittest's dependency on v8 when using icu alternatives |
| 653 # instead of setting use_v8_in_net to 0. |
| 654 [ 'use_v8_in_net==1 and use_icu_alternatives_on_android==0', { |
645 'dependencies': [ | 655 'dependencies': [ |
646 'net_with_v8', | 656 'net_with_v8', |
647 ], | 657 ], |
648 }, { # else: !use_v8_in_net | 658 }, { # else: !use_v8_in_net |
649 'sources!': [ | 659 'sources!': [ |
650 'proxy/proxy_resolver_v8_unittest.cc', | 660 'proxy/proxy_resolver_v8_unittest.cc', |
651 'proxy/proxy_resolver_v8_tracing_unittest.cc', | 661 'proxy/proxy_resolver_v8_tracing_unittest.cc', |
652 ], | 662 ], |
653 }, | 663 }, |
654 ], | 664 ], |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
742 [ 'OS == "android"', { | 752 [ 'OS == "android"', { |
743 'dependencies': [ | 753 'dependencies': [ |
744 '../third_party/openssl/openssl.gyp:openssl', | 754 '../third_party/openssl/openssl.gyp:openssl', |
745 ], | 755 ], |
746 'sources!': [ | 756 'sources!': [ |
747 'dns/dns_config_service_posix_unittest.cc', | 757 'dns/dns_config_service_posix_unittest.cc', |
748 ], | 758 ], |
749 }, | 759 }, |
750 ], | 760 ], |
751 ['OS == "android" and gtest_target_type == "shared_library"', { | 761 ['OS == "android" and gtest_target_type == "shared_library"', { |
| 762 # TODO(mmenke): This depends on test_support_base, which depends on |
| 763 # icu. Figure out a way to remove that dependency. |
752 'dependencies': [ | 764 'dependencies': [ |
753 '../testing/android/native_test.gyp:native_test_native_code', | 765 '../testing/android/native_test.gyp:native_test_native_code', |
754 ] | 766 ] |
755 }], | 767 }], |
| 768 [ 'use_icu_alternatives_on_android == 1', { |
| 769 'dependencies!': [ |
| 770 '../base/base.gyp:base_i18n', |
| 771 ], |
| 772 'sources!': [ |
| 773 'base/filename_util_unittest.cc', |
| 774 'base/net_util_icu_unittest.cc', |
| 775 ], |
| 776 }, |
| 777 ], |
756 ], | 778 ], |
757 'target_conditions': [ | 779 'target_conditions': [ |
758 # These source files are excluded by default platform rules, but they | 780 # These source files are excluded by default platform rules, but they |
759 # are needed in specific cases on other platforms. Re-including them can | 781 # are needed in specific cases on other platforms. Re-including them can |
760 # only be done in target_conditions as it is evaluated after the | 782 # only be done in target_conditions as it is evaluated after the |
761 # platform rules. | 783 # platform rules. |
762 ['OS == "android"', { | 784 ['OS == "android"', { |
763 'sources/': [ | 785 'sources/': [ |
764 ['include', '^base/address_tracker_linux_unittest\\.cc$'], | 786 ['include', '^base/address_tracker_linux_unittest\\.cc$'], |
765 ], | 787 ], |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
816 '../base/base.gyp:base', | 838 '../base/base.gyp:base', |
817 '../base/base.gyp:test_support_base', | 839 '../base/base.gyp:test_support_base', |
818 '../net/tools/tld_cleanup/tld_cleanup.gyp:tld_cleanup_util', | 840 '../net/tools/tld_cleanup/tld_cleanup.gyp:tld_cleanup_util', |
819 '../testing/gtest.gyp:gtest', | 841 '../testing/gtest.gyp:gtest', |
820 '../testing/gmock.gyp:gmock', | 842 '../testing/gmock.gyp:gmock', |
821 '../url/url.gyp:url_lib', | 843 '../url/url.gyp:url_lib', |
822 'net', | 844 'net', |
823 ], | 845 ], |
824 'export_dependent_settings': [ | 846 'export_dependent_settings': [ |
825 '../base/base.gyp:base', | 847 '../base/base.gyp:base', |
| 848 # TODO(mmenke): This depends on icu, figure out a way to build tests |
| 849 # without icu. |
826 '../base/base.gyp:test_support_base', | 850 '../base/base.gyp:test_support_base', |
827 '../testing/gtest.gyp:gtest', | 851 '../testing/gtest.gyp:gtest', |
828 '../testing/gmock.gyp:gmock', | 852 '../testing/gmock.gyp:gmock', |
829 ], | 853 ], |
830 'sources': [ | 854 'sources': [ |
831 'base/capturing_net_log.cc', | 855 'base/capturing_net_log.cc', |
832 'base/capturing_net_log.h', | 856 'base/capturing_net_log.h', |
833 'base/load_timing_info_test_util.cc', | 857 'base/load_timing_info_test_util.cc', |
834 'base/load_timing_info_test_util.h', | 858 'base/load_timing_info_test_util.h', |
835 'base/mock_file_stream.cc', | 859 'base/mock_file_stream.cc', |
(...skipping 774 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1610 'net_unittests.isolate', | 1634 'net_unittests.isolate', |
1611 ], | 1635 ], |
1612 'sources': [ | 1636 'sources': [ |
1613 'net_unittests.isolate', | 1637 'net_unittests.isolate', |
1614 ], | 1638 ], |
1615 }, | 1639 }, |
1616 ], | 1640 ], |
1617 }], | 1641 }], |
1618 ], | 1642 ], |
1619 } | 1643 } |
OLD | NEW |