| OLD | NEW |
| 1 # Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. | 1 # Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. |
| 2 # | 2 # |
| 3 # Use of this source code is governed by a BSD-style license | 3 # Use of this source code is governed by a BSD-style license |
| 4 # that can be found in the LICENSE file in the root of the source | 4 # that can be found in the LICENSE file in the root of the source |
| 5 # tree. An additional intellectual property rights grant can be found | 5 # tree. An additional intellectual property rights grant can be found |
| 6 # in the file PATENTS. All contributing project authors may | 6 # in the file PATENTS. All contributing project authors may |
| 7 # be found in the AUTHORS file in the root of the source tree. | 7 # be found in the AUTHORS file in the root of the source tree. |
| 8 | 8 |
| 9 import("//build/config/crypto.gni") | 9 import("//build/config/crypto.gni") |
| 10 import("//build/config/ui.gni") | 10 import("//build/config/ui.gni") |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 ] | 85 ] |
| 86 if (rtc_enable_protobuf) { | 86 if (rtc_enable_protobuf) { |
| 87 public_deps = [ | 87 public_deps = [ |
| 88 "//third_party/protobuf:protobuf_lite", | 88 "//third_party/protobuf:protobuf_lite", |
| 89 ] | 89 ] |
| 90 } | 90 } |
| 91 } | 91 } |
| 92 | 92 |
| 93 # The subset of rtc_base approved for use outside of libjingle. | 93 # The subset of rtc_base approved for use outside of libjingle. |
| 94 rtc_static_library("rtc_base_approved") { | 94 rtc_static_library("rtc_base_approved") { |
| 95 # TODO(kjellander): Remove (bugs.webrtc.org/7480) |
| 96 # Enabling GN check triggers a cyclic dependency caused by rate_limiter.cc: |
| 97 # :rtc_base_approved -> //webrtc/system_wrappers -> :rtc_base_approved |
| 98 check_includes = false |
| 95 defines = [] | 99 defines = [] |
| 96 libs = [] | 100 libs = [] |
| 97 deps = [] | 101 deps = [] |
| 98 all_dependent_configs = [ ":rtc_base_approved_all_dependent_config" ] | 102 all_dependent_configs = [ ":rtc_base_approved_all_dependent_config" ] |
| 99 | 103 |
| 100 sources = [ | 104 sources = [ |
| 101 "array_view.h", | 105 "array_view.h", |
| 102 "arraysize.h", | 106 "arraysize.h", |
| 103 "atomicops.h", | 107 "atomicops.h", |
| 104 "base64.cc", | 108 "base64.cc", |
| (...skipping 24 matching lines...) Expand all Loading... |
| 129 "file.h", | 133 "file.h", |
| 130 "flags.cc", | 134 "flags.cc", |
| 131 "flags.h", | 135 "flags.h", |
| 132 "format_macros.h", | 136 "format_macros.h", |
| 133 "function_view.h", | 137 "function_view.h", |
| 134 "ignore_wundef.h", | 138 "ignore_wundef.h", |
| 135 "location.cc", | 139 "location.cc", |
| 136 "location.h", | 140 "location.h", |
| 137 "md5.cc", | 141 "md5.cc", |
| 138 "md5.h", | 142 "md5.h", |
| 139 "md5digest.cc", | |
| 140 "md5digest.h", | |
| 141 "mod_ops.h", | 143 "mod_ops.h", |
| 142 "onetimeevent.h", | 144 "onetimeevent.h", |
| 143 "optional.cc", | 145 "optional.cc", |
| 144 "optional.h", | 146 "optional.h", |
| 145 "pathutils.cc", | 147 "pathutils.cc", |
| 146 "pathutils.h", | 148 "pathutils.h", |
| 147 "platform_file.cc", | 149 "platform_file.cc", |
| 148 "platform_file.h", | 150 "platform_file.h", |
| 149 "platform_thread.cc", | 151 "platform_thread.cc", |
| 150 "platform_thread.h", | 152 "platform_thread.h", |
| (...skipping 13 matching lines...) Expand all Loading... |
| 164 "refcountedobject.h", | 166 "refcountedobject.h", |
| 165 "safe_compare.h", | 167 "safe_compare.h", |
| 166 "safe_conversions.h", | 168 "safe_conversions.h", |
| 167 "safe_conversions_impl.h", | 169 "safe_conversions_impl.h", |
| 168 "sanitizer.h", | 170 "sanitizer.h", |
| 169 "scoped_ref_ptr.h", | 171 "scoped_ref_ptr.h", |
| 170 "string_to_number.cc", | 172 "string_to_number.cc", |
| 171 "string_to_number.h", | 173 "string_to_number.h", |
| 172 "stringencode.cc", | 174 "stringencode.cc", |
| 173 "stringencode.h", | 175 "stringencode.h", |
| 176 "stringize_macros.h", |
| 174 "stringutils.cc", | 177 "stringutils.cc", |
| 175 "stringutils.h", | 178 "stringutils.h", |
| 176 "swap_queue.h", | 179 "swap_queue.h", |
| 177 "template_util.h", | 180 "template_util.h", |
| 178 "thread_annotations.h", | 181 "thread_annotations.h", |
| 179 "thread_checker.h", | 182 "thread_checker.h", |
| 180 "thread_checker_impl.cc", | 183 "thread_checker_impl.cc", |
| 181 "thread_checker_impl.h", | 184 "thread_checker_impl.h", |
| 182 "timestampaligner.cc", | 185 "timestampaligner.cc", |
| 183 "timestampaligner.h", | 186 "timestampaligner.h", |
| (...skipping 479 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 663 } | 666 } |
| 664 } | 667 } |
| 665 | 668 |
| 666 rtc_source_set("rtc_base_tests_main") { | 669 rtc_source_set("rtc_base_tests_main") { |
| 667 testonly = true | 670 testonly = true |
| 668 sources = [ | 671 sources = [ |
| 669 "unittest_main.cc", | 672 "unittest_main.cc", |
| 670 ] | 673 ] |
| 671 public_configs = [ ":rtc_base_tests_utils_exported_config" ] | 674 public_configs = [ ":rtc_base_tests_utils_exported_config" ] |
| 672 deps = [ | 675 deps = [ |
| 676 ":rtc_base", |
| 677 ":rtc_base_approved", |
| 673 ":rtc_base_tests_utils", | 678 ":rtc_base_tests_utils", |
| 679 "../test:field_trial", |
| 680 "../test:test_support", |
| 674 ] | 681 ] |
| 675 public_deps = [ | 682 public_deps = [ |
| 676 "//testing/gmock", | 683 "//testing/gmock", |
| 677 "//testing/gtest", | 684 "//testing/gtest", |
| 678 ] | 685 ] |
| 679 | 686 |
| 680 if (!build_with_chromium && is_clang) { | 687 if (!build_with_chromium && is_clang) { |
| 681 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 688 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 682 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 689 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 683 } | 690 } |
| 684 } | 691 } |
| 685 | 692 |
| 686 rtc_source_set("rtc_base_tests_utils") { | 693 rtc_source_set("rtc_base_tests_utils") { |
| 687 testonly = true | 694 testonly = true |
| 688 sources = [ | 695 sources = [ |
| 689 # Also use this as a convenient dumping ground for misc files that are | 696 # Also use this as a convenient dumping ground for misc files that are |
| 690 # included by multiple targets below. | 697 # included by multiple targets below. |
| 691 "cpu_time.cc", | 698 "cpu_time.cc", |
| 692 "cpu_time.h", | 699 "cpu_time.h", |
| 693 "fakeclock.cc", | 700 "fakeclock.cc", |
| 694 "fakeclock.h", | 701 "fakeclock.h", |
| 695 "fakenetwork.h", | 702 "fakenetwork.h", |
| 696 "fakesslidentity.h", | 703 "fakesslidentity.h", |
| 697 "firewallsocketserver.cc", | 704 "firewallsocketserver.cc", |
| 698 "firewallsocketserver.h", | 705 "firewallsocketserver.h", |
| 699 "gunit.h", | 706 "gunit.h", |
| 700 "httpserver.cc", | 707 "httpserver.cc", |
| 701 "httpserver.h", | 708 "httpserver.h", |
| 709 "md5digest.cc", |
| 710 "md5digest.h", |
| 702 "memory_usage.cc", | 711 "memory_usage.cc", |
| 703 "memory_usage.h", | 712 "memory_usage.h", |
| 704 "natserver.cc", | 713 "natserver.cc", |
| 705 "natserver.h", | 714 "natserver.h", |
| 706 "natsocketfactory.cc", | 715 "natsocketfactory.cc", |
| 707 "natsocketfactory.h", | 716 "natsocketfactory.h", |
| 708 "nattypes.cc", | 717 "nattypes.cc", |
| 709 "nattypes.h", | 718 "nattypes.h", |
| 710 "proxyserver.cc", | 719 "proxyserver.cc", |
| 711 "proxyserver.h", | 720 "proxyserver.h", |
| (...skipping 30 matching lines...) Expand all Loading... |
| 742 "nullsocketserver_unittest.cc", | 751 "nullsocketserver_unittest.cc", |
| 743 "physicalsocketserver_unittest.cc", | 752 "physicalsocketserver_unittest.cc", |
| 744 "socket_unittest.cc", | 753 "socket_unittest.cc", |
| 745 "socket_unittest.h", | 754 "socket_unittest.h", |
| 746 "socketaddress_unittest.cc", | 755 "socketaddress_unittest.cc", |
| 747 "virtualsocket_unittest.cc", | 756 "virtualsocket_unittest.cc", |
| 748 ] | 757 ] |
| 749 deps = [ | 758 deps = [ |
| 750 ":rtc_base", | 759 ":rtc_base", |
| 751 ":rtc_base_tests_main", | 760 ":rtc_base_tests_main", |
| 761 ":rtc_base_tests_utils", |
| 762 "../system_wrappers:system_wrappers", |
| 763 "../test:test_support", |
| 752 "//testing/gtest", | 764 "//testing/gtest", |
| 753 ] | 765 ] |
| 754 if (is_win) { | 766 if (is_win) { |
| 755 sources += [ "win32socketserver_unittest.cc" ] | 767 sources += [ "win32socketserver_unittest.cc" ] |
| 756 } | 768 } |
| 757 | 769 |
| 758 if (!build_with_chromium && is_clang) { | 770 if (!build_with_chromium && is_clang) { |
| 759 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 771 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 760 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 772 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 761 } | 773 } |
| (...skipping 26 matching lines...) Expand all Loading... |
| 788 "pathutils_unittest.cc", | 800 "pathutils_unittest.cc", |
| 789 "platform_thread_unittest.cc", | 801 "platform_thread_unittest.cc", |
| 790 "random_unittest.cc", | 802 "random_unittest.cc", |
| 791 "rate_limiter_unittest.cc", | 803 "rate_limiter_unittest.cc", |
| 792 "rate_statistics_unittest.cc", | 804 "rate_statistics_unittest.cc", |
| 793 "ratetracker_unittest.cc", | 805 "ratetracker_unittest.cc", |
| 794 "refcountedobject_unittest.cc", | 806 "refcountedobject_unittest.cc", |
| 795 "safe_compare_unittest.cc", | 807 "safe_compare_unittest.cc", |
| 796 "string_to_number_unittest.cc", | 808 "string_to_number_unittest.cc", |
| 797 "stringencode_unittest.cc", | 809 "stringencode_unittest.cc", |
| 810 "stringize_macros_unittest.cc", |
| 798 "stringutils_unittest.cc", | 811 "stringutils_unittest.cc", |
| 799 "swap_queue_unittest.cc", | 812 "swap_queue_unittest.cc", |
| 800 "thread_annotations_unittest.cc", | 813 "thread_annotations_unittest.cc", |
| 801 "thread_checker_unittest.cc", | 814 "thread_checker_unittest.cc", |
| 802 "timestampaligner_unittest.cc", | 815 "timestampaligner_unittest.cc", |
| 803 "timeutils_unittest.cc", | 816 "timeutils_unittest.cc", |
| 804 ] | 817 ] |
| 805 deps = [ | 818 deps = [ |
| 819 ":rtc_base", |
| 806 ":rtc_base_approved", | 820 ":rtc_base_approved", |
| 807 ":rtc_base_tests_main", | 821 ":rtc_base_tests_main", |
| 822 ":rtc_base_tests_utils", |
| 823 ":rtc_task_queue", |
| 824 "../system_wrappers:system_wrappers", |
| 825 "../test:test_support", |
| 808 ] | 826 ] |
| 809 if (!build_with_chromium && is_clang) { | 827 if (!build_with_chromium && is_clang) { |
| 810 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 828 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 811 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 829 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 812 } | 830 } |
| 813 } | 831 } |
| 814 | 832 |
| 815 rtc_source_set("rtc_task_queue_unittests") { | 833 rtc_source_set("rtc_task_queue_unittests") { |
| 816 testonly = true | 834 testonly = true |
| 817 sources = [ | 835 sources = [ |
| 818 "sequenced_task_checker_unittest.cc", | 836 "sequenced_task_checker_unittest.cc", |
| 819 "task_queue_unittest.cc", | 837 "task_queue_unittest.cc", |
| 820 "weak_ptr_unittest.cc", | 838 "weak_ptr_unittest.cc", |
| 821 ] | 839 ] |
| 822 deps = [ | 840 deps = [ |
| 823 ":rtc_base_tests_main", | 841 ":rtc_base_tests_main", |
| 842 ":rtc_base_tests_utils", |
| 824 ":rtc_task_queue", | 843 ":rtc_task_queue", |
| 844 "../test:test_support", |
| 825 ] | 845 ] |
| 826 if (!build_with_chromium && is_clang) { | 846 if (!build_with_chromium && is_clang) { |
| 827 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 847 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 828 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 848 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 829 } | 849 } |
| 830 } | 850 } |
| 831 | 851 |
| 832 rtc_source_set("rtc_numerics_unittests") { | 852 rtc_source_set("rtc_numerics_unittests") { |
| 833 testonly = true | 853 testonly = true |
| 834 sources = [ | 854 sources = [ |
| 835 "numerics/exp_filter_unittest.cc", | 855 "numerics/exp_filter_unittest.cc", |
| 836 "numerics/percentile_filter_unittest.cc", | 856 "numerics/percentile_filter_unittest.cc", |
| 837 ] | 857 ] |
| 838 deps = [ | 858 deps = [ |
| 859 ":rtc_base_approved", |
| 839 ":rtc_base_tests_main", | 860 ":rtc_base_tests_main", |
| 840 ":rtc_numerics", | 861 ":rtc_numerics", |
| 862 "../test:test_support", |
| 841 ] | 863 ] |
| 842 } | 864 } |
| 843 | 865 |
| 844 config("rtc_base_unittests_config") { | 866 config("rtc_base_unittests_config") { |
| 845 if (is_clang) { | 867 if (is_clang) { |
| 846 cflags = [ "-Wno-unused-const-variable" ] | 868 cflags = [ "-Wno-unused-const-variable" ] |
| 847 } | 869 } |
| 848 } | 870 } |
| 849 rtc_source_set("rtc_base_unittests") { | 871 rtc_source_set("rtc_base_unittests") { |
| 850 testonly = true | 872 testonly = true |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 890 } | 912 } |
| 891 if (is_posix) { | 913 if (is_posix) { |
| 892 sources += [ | 914 sources += [ |
| 893 "ssladapter_unittest.cc", | 915 "ssladapter_unittest.cc", |
| 894 "sslidentity_unittest.cc", | 916 "sslidentity_unittest.cc", |
| 895 "sslstreamadapter_unittest.cc", | 917 "sslstreamadapter_unittest.cc", |
| 896 ] | 918 ] |
| 897 } | 919 } |
| 898 deps = [ | 920 deps = [ |
| 899 ":rtc_base_tests_main", | 921 ":rtc_base_tests_main", |
| 922 ":rtc_base_tests_utils", |
| 923 "../test:test_support", |
| 900 ] | 924 ] |
| 901 public_deps = [ | 925 public_deps = [ |
| 902 ":rtc_base", | 926 ":rtc_base", |
| 903 ] | 927 ] |
| 904 configs += [ ":rtc_base_unittests_config" ] | 928 configs += [ ":rtc_base_unittests_config" ] |
| 905 if (!build_with_chromium && is_clang) { | 929 if (!build_with_chromium && is_clang) { |
| 906 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 930 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 907 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 931 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 908 } | 932 } |
| 909 } | 933 } |
| 910 } | 934 } |
| 911 | 935 |
| 912 if (is_android) { | 936 if (is_android) { |
| 913 android_library("base_java") { | 937 android_library("base_java") { |
| 914 java_files = [ | 938 java_files = [ |
| 915 "java/src/org/webrtc/Logging.java", | 939 "java/src/org/webrtc/Logging.java", |
| 916 "java/src/org/webrtc/Size.java", | 940 "java/src/org/webrtc/Size.java", |
| 917 "java/src/org/webrtc/ThreadUtils.java", | 941 "java/src/org/webrtc/ThreadUtils.java", |
| 918 ] | 942 ] |
| 919 } | 943 } |
| 920 } | 944 } |
| OLD | NEW |