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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 libs = [] | 96 libs = [] |
97 deps = [] | 97 deps = [] |
98 all_dependent_configs = [ ":rtc_base_approved_all_dependent_config" ] | 98 all_dependent_configs = [ ":rtc_base_approved_all_dependent_config" ] |
99 | 99 |
100 sources = [ | 100 sources = [ |
101 "array_view.h", | 101 "array_view.h", |
102 "arraysize.h", | 102 "arraysize.h", |
103 "atomicops.h", | 103 "atomicops.h", |
104 "base64.cc", | 104 "base64.cc", |
105 "base64.h", | 105 "base64.h", |
| 106 "basictypes.h", |
106 "bind.h", | 107 "bind.h", |
107 "bitbuffer.cc", | 108 "bitbuffer.cc", |
108 "bitbuffer.h", | 109 "bitbuffer.h", |
109 "buffer.h", | 110 "buffer.h", |
110 "bufferqueue.cc", | 111 "bufferqueue.cc", |
111 "bufferqueue.h", | 112 "bufferqueue.h", |
112 "bytebuffer.cc", | 113 "bytebuffer.cc", |
113 "bytebuffer.h", | 114 "bytebuffer.h", |
114 "byteorder.h", | 115 "byteorder.h", |
115 "checks.cc", | 116 "checks.cc", |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
278 if (is_asan) { | 279 if (is_asan) { |
279 if (current_cpu == "x64") { | 280 if (current_cpu == "x64") { |
280 data += [ "$clang_base_path/lib/clang/$clang_version/lib/windows/clang_r
t.asan_dynamic-x86_64.dll" ] | 281 data += [ "$clang_base_path/lib/clang/$clang_version/lib/windows/clang_r
t.asan_dynamic-x86_64.dll" ] |
281 } else { | 282 } else { |
282 data += [ "$clang_base_path/lib/clang/$clang_version/lib/windows/clang_r
t.asan_dynamic-i386.dll" ] | 283 data += [ "$clang_base_path/lib/clang/$clang_version/lib/windows/clang_r
t.asan_dynamic-i386.dll" ] |
283 } | 284 } |
284 } | 285 } |
285 } | 286 } |
286 } | 287 } |
287 | 288 |
| 289 if (rtc_include_tests) { |
| 290 rtc_source_set("rtc_base_approved_unittests") { |
| 291 testonly = true |
| 292 sources = [ |
| 293 "array_view_unittest.cc", |
| 294 "atomicops_unittest.cc", |
| 295 "base64_unittest.cc", |
| 296 "basictypes_unittest.cc", |
| 297 "bind_unittest.cc", |
| 298 "bitbuffer_unittest.cc", |
| 299 "buffer_unittest.cc", |
| 300 "bufferqueue_unittest.cc", |
| 301 "bytebuffer_unittest.cc", |
| 302 "byteorder_unittest.cc", |
| 303 "copyonwritebuffer_unittest.cc", |
| 304 "criticalsection_unittest.cc", |
| 305 "event_tracer_unittest.cc", |
| 306 "event_unittest.cc", |
| 307 "file_unittest.cc", |
| 308 "function_view_unittest.cc", |
| 309 "logging_unittest.cc", |
| 310 "md5digest_unittest.cc", |
| 311 "mod_ops_unittest.cc", |
| 312 "onetimeevent_unittest.cc", |
| 313 "optional_unittest.cc", |
| 314 "pathutils_unittest.cc", |
| 315 "platform_thread_unittest.cc", |
| 316 "random_unittest.cc", |
| 317 "rate_limiter_unittest.cc", |
| 318 "rate_statistics_unittest.cc", |
| 319 "ratetracker_unittest.cc", |
| 320 "refcountedobject_unittest.cc", |
| 321 "safe_compare_unittest.cc", |
| 322 "stringencode_unittest.cc", |
| 323 "stringutils_unittest.cc", |
| 324 "swap_queue_unittest.cc", |
| 325 |
| 326 # TODO(ronghuawu): Reenable this test. |
| 327 # "systeminfo_unittest.cc", |
| 328 "thread_annotations_unittest.cc", |
| 329 "thread_checker_unittest.cc", |
| 330 "timestampaligner_unittest.cc", |
| 331 "timeutils_unittest.cc", |
| 332 ] |
| 333 deps = [ |
| 334 ":rtc_base_approved", |
| 335 ":rtc_base_tests_utils", |
| 336 ] |
| 337 if (!build_with_chromium && is_clang) { |
| 338 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 339 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 340 } |
| 341 } |
| 342 } |
| 343 |
288 config("enable_libevent_config") { | 344 config("enable_libevent_config") { |
289 defines = [ "WEBRTC_BUILD_LIBEVENT" ] | 345 defines = [ "WEBRTC_BUILD_LIBEVENT" ] |
290 } | 346 } |
291 | 347 |
292 rtc_static_library("rtc_task_queue") { | 348 rtc_static_library("rtc_task_queue") { |
293 public_deps = [ | 349 public_deps = [ |
294 ":rtc_base_approved", | 350 ":rtc_base_approved", |
295 ] | 351 ] |
296 | 352 |
297 sources = [ | 353 sources = [ |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
331 "task_queue_posix.cc", | 387 "task_queue_posix.cc", |
332 ] | 388 ] |
333 } | 389 } |
334 if (is_win) { | 390 if (is_win) { |
335 sources += [ "task_queue_win.cc" ] | 391 sources += [ "task_queue_win.cc" ] |
336 } | 392 } |
337 } | 393 } |
338 } | 394 } |
339 } | 395 } |
340 | 396 |
| 397 if (rtc_include_tests) { |
| 398 rtc_source_set("rtc_task_queue_unittests") { |
| 399 testonly = true |
| 400 sources = [ |
| 401 "sequenced_task_checker_unittest.cc", |
| 402 "task_queue_unittest.cc", |
| 403 "weak_ptr_unittest.cc", |
| 404 ] |
| 405 deps = [ |
| 406 ":rtc_base_tests_utils", |
| 407 ":rtc_task_queue", |
| 408 ] |
| 409 if (!build_with_chromium && is_clang) { |
| 410 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 411 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 412 } |
| 413 } |
| 414 } |
| 415 |
341 rtc_static_library("rtc_analytics") { | 416 rtc_static_library("rtc_analytics") { |
342 sources = [ | 417 sources = [ |
343 "analytics/exp_filter.cc", | 418 "analytics/exp_filter.cc", |
344 "analytics/exp_filter.h", | 419 "analytics/exp_filter.h", |
345 "analytics/percentile_filter.h", | 420 "analytics/percentile_filter.h", |
346 ] | 421 ] |
347 deps = [ | 422 deps = [ |
348 ":rtc_base_approved", | 423 ":rtc_base_approved", |
349 ] | 424 ] |
350 } | 425 } |
351 | 426 |
| 427 if (rtc_include_tests) { |
| 428 rtc_source_set("rtc_analytics_unittests") { |
| 429 testonly = true |
| 430 sources = [ |
| 431 "analytics/exp_filter_unittest.cc", |
| 432 "analytics/percentile_filter_unittest.cc", |
| 433 ] |
| 434 deps = [ |
| 435 ":rtc_analytics", |
| 436 ":rtc_base_tests_utils", |
| 437 ] |
| 438 } |
| 439 } |
| 440 |
352 config("rtc_base_warnings_config") { | 441 config("rtc_base_warnings_config") { |
353 if (is_win && is_clang) { | 442 if (is_win && is_clang) { |
354 cflags = [ | 443 cflags = [ |
355 # Disable warnings failing when compiling with Clang on Windows. | 444 # Disable warnings failing when compiling with Clang on Windows. |
356 # https://bugs.chromium.org/p/webrtc/issues/detail?id=5366 | 445 # https://bugs.chromium.org/p/webrtc/issues/detail?id=5366 |
357 "-Wno-sign-compare", | 446 "-Wno-sign-compare", |
358 "-Wno-missing-braces", | 447 "-Wno-missing-braces", |
359 ] | 448 ] |
360 } | 449 } |
361 } | 450 } |
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
679 deps += [ "//native_client_sdk/src/libraries/nacl_io" ] | 768 deps += [ "//native_client_sdk/src/libraries/nacl_io" ] |
680 defines += [ "timezone=_timezone" ] | 769 defines += [ "timezone=_timezone" ] |
681 sources -= [ "ifaddrs_converter.cc" ] | 770 sources -= [ "ifaddrs_converter.cc" ] |
682 } | 771 } |
683 if (is_win && is_clang) { | 772 if (is_win && is_clang) { |
684 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 773 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
685 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 774 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
686 } | 775 } |
687 } | 776 } |
688 | 777 |
| 778 if (rtc_include_tests) { |
| 779 config("rtc_base_unittests_config") { |
| 780 if (is_clang) { |
| 781 cflags = [ "-Wno-unused-const-variable" ] |
| 782 } |
| 783 } |
| 784 rtc_source_set("rtc_base_unittests") { |
| 785 testonly = true |
| 786 sources = [ |
| 787 "autodetectproxy_unittest.cc", |
| 788 "callback_unittest.cc", |
| 789 "crc32_unittest.cc", |
| 790 "filerotatingstream_unittest.cc", |
| 791 "fileutils_unittest.cc", |
| 792 "helpers_unittest.cc", |
| 793 "httpbase_unittest.cc", |
| 794 "httpcommon_unittest.cc", |
| 795 "httpserver_unittest.cc", |
| 796 "ipaddress_unittest.cc", |
| 797 "messagedigest_unittest.cc", |
| 798 "messagequeue_unittest.cc", |
| 799 "nat_unittest.cc", |
| 800 "network_unittest.cc", |
| 801 "optionsfile_unittest.cc", |
| 802 "proxy_unittest.cc", |
| 803 "proxydetect_unittest.cc", |
| 804 "ratelimiter_unittest.cc", |
| 805 "rollingaccumulator_unittest.cc", |
| 806 "rtccertificate_unittest.cc", |
| 807 "rtccertificategenerator_unittest.cc", |
| 808 "scopedptrcollection_unittest.cc", |
| 809 "sha1digest_unittest.cc", |
| 810 "sharedexclusivelock_unittest.cc", |
| 811 "signalthread_unittest.cc", |
| 812 "sigslot_unittest.cc", |
| 813 "sigslottester_unittest.cc", |
| 814 "stream_unittest.cc", |
| 815 "task_unittest.cc", |
| 816 "testclient_unittest.cc", |
| 817 "thread_unittest.cc", |
| 818 ] |
| 819 if (is_win) { |
| 820 sources += [ |
| 821 "win32_unittest.cc", |
| 822 "win32window_unittest.cc", |
| 823 ] |
| 824 } |
| 825 if (is_mac) { |
| 826 sources += [ "macutils_unittest.cc" ] |
| 827 } |
| 828 if (is_posix) { |
| 829 sources += [ |
| 830 "ssladapter_unittest.cc", |
| 831 "sslidentity_unittest.cc", |
| 832 "sslstreamadapter_unittest.cc", |
| 833 ] |
| 834 } |
| 835 deps = [ |
| 836 ":rtc_base_tests_utils", |
| 837 ] |
| 838 public_deps = [ |
| 839 ":rtc_base", |
| 840 ] |
| 841 configs += [ ":rtc_base_unittests_config" ] |
| 842 if (!build_with_chromium && is_clang) { |
| 843 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 844 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 845 } |
| 846 } |
| 847 } |
| 848 |
689 rtc_source_set("gtest_prod") { | 849 rtc_source_set("gtest_prod") { |
690 sources = [ | 850 sources = [ |
691 "gtest_prod_util.h", | 851 "gtest_prod_util.h", |
692 ] | 852 ] |
693 } | 853 } |
694 | 854 |
695 if (rtc_include_tests) { | 855 if (rtc_include_tests) { |
696 config("rtc_base_tests_utils_exported_config") { | 856 config("rtc_base_tests_utils_exported_config") { |
697 defines = [ "GTEST_RELATIVE_PATH" ] | 857 defines = [ "GTEST_RELATIVE_PATH" ] |
698 } | 858 } |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
735 "unittest_main.cc", | 895 "unittest_main.cc", |
736 ] | 896 ] |
737 configs += [ ":rtc_base_tests_utils_warnings_config" ] | 897 configs += [ ":rtc_base_tests_utils_warnings_config" ] |
738 public_configs = [ ":rtc_base_tests_utils_exported_config" ] | 898 public_configs = [ ":rtc_base_tests_utils_exported_config" ] |
739 deps = [ | 899 deps = [ |
740 ":rtc_base", | 900 ":rtc_base", |
741 "../test:field_trial", | 901 "../test:field_trial", |
742 "../test:test_support", | 902 "../test:test_support", |
743 ] | 903 ] |
744 public_deps = [ | 904 public_deps = [ |
| 905 "//testing/gmock", |
745 "//testing/gtest", | 906 "//testing/gtest", |
746 ] | 907 ] |
747 | 908 |
748 if (!build_with_chromium && is_clang) { | 909 if (!build_with_chromium && is_clang) { |
749 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 910 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
750 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 911 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
751 } | 912 } |
752 } | 913 } |
753 } | 914 } |
754 | 915 |
755 if (is_android) { | 916 if (is_android) { |
756 android_library("base_java") { | 917 android_library("base_java") { |
757 java_files = [ | 918 java_files = [ |
758 "java/src/org/webrtc/Logging.java", | 919 "java/src/org/webrtc/Logging.java", |
759 "java/src/org/webrtc/Size.java", | 920 "java/src/org/webrtc/Size.java", |
760 "java/src/org/webrtc/ThreadUtils.java", | 921 "java/src/org/webrtc/ThreadUtils.java", |
761 ] | 922 ] |
762 | 923 |
763 deps = [ | 924 deps = [ |
764 "//base:base_java", | 925 "//base:base_java", |
765 ] | 926 ] |
766 } | 927 } |
767 } | 928 } |
OLD | NEW |