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 } |
| 338 } |
| 339 |
288 config("enable_libevent_config") { | 340 config("enable_libevent_config") { |
289 defines = [ "WEBRTC_BUILD_LIBEVENT" ] | 341 defines = [ "WEBRTC_BUILD_LIBEVENT" ] |
290 } | 342 } |
291 | 343 |
292 rtc_static_library("rtc_task_queue") { | 344 rtc_static_library("rtc_task_queue") { |
293 public_deps = [ | 345 public_deps = [ |
294 ":rtc_base_approved", | 346 ":rtc_base_approved", |
295 ] | 347 ] |
296 | 348 |
297 sources = [ | 349 sources = [ |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
331 "task_queue_posix.cc", | 383 "task_queue_posix.cc", |
332 ] | 384 ] |
333 } | 385 } |
334 if (is_win) { | 386 if (is_win) { |
335 sources += [ "task_queue_win.cc" ] | 387 sources += [ "task_queue_win.cc" ] |
336 } | 388 } |
337 } | 389 } |
338 } | 390 } |
339 } | 391 } |
340 | 392 |
| 393 if (rtc_include_tests) { |
| 394 rtc_source_set("rtc_task_queue_unittests") { |
| 395 testonly = true |
| 396 sources = [ |
| 397 "sequenced_task_checker_unittest.cc", |
| 398 "task_queue_unittest.cc", |
| 399 "weak_ptr_unittest.cc", |
| 400 ] |
| 401 deps = [ |
| 402 ":rtc_base_tests_utils", |
| 403 ":rtc_task_queue", |
| 404 ] |
| 405 } |
| 406 } |
| 407 |
341 rtc_static_library("rtc_analytics") { | 408 rtc_static_library("rtc_analytics") { |
342 sources = [ | 409 sources = [ |
343 "analytics/exp_filter.cc", | 410 "analytics/exp_filter.cc", |
344 "analytics/exp_filter.h", | 411 "analytics/exp_filter.h", |
345 "analytics/percentile_filter.h", | 412 "analytics/percentile_filter.h", |
346 ] | 413 ] |
347 deps = [ | 414 deps = [ |
348 ":rtc_base_approved", | 415 ":rtc_base_approved", |
349 ] | 416 ] |
350 } | 417 } |
351 | 418 |
| 419 if (rtc_include_tests) { |
| 420 rtc_source_set("rtc_analytics_unittests") { |
| 421 testonly = true |
| 422 sources = [ |
| 423 "analytics/exp_filter_unittest.cc", |
| 424 "analytics/percentile_filter_unittest.cc", |
| 425 ] |
| 426 deps = [ |
| 427 ":rtc_analytics", |
| 428 ":rtc_base_tests_utils", |
| 429 ] |
| 430 } |
| 431 } |
| 432 |
352 config("rtc_base_warnings_config") { | 433 config("rtc_base_warnings_config") { |
353 if (is_win && is_clang) { | 434 if (is_win && is_clang) { |
354 cflags = [ | 435 cflags = [ |
355 # Disable warnings failing when compiling with Clang on Windows. | 436 # Disable warnings failing when compiling with Clang on Windows. |
356 # https://bugs.chromium.org/p/webrtc/issues/detail?id=5366 | 437 # https://bugs.chromium.org/p/webrtc/issues/detail?id=5366 |
357 "-Wno-sign-compare", | 438 "-Wno-sign-compare", |
358 "-Wno-missing-braces", | 439 "-Wno-missing-braces", |
359 ] | 440 ] |
360 } | 441 } |
361 } | 442 } |
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
679 deps += [ "//native_client_sdk/src/libraries/nacl_io" ] | 760 deps += [ "//native_client_sdk/src/libraries/nacl_io" ] |
680 defines += [ "timezone=_timezone" ] | 761 defines += [ "timezone=_timezone" ] |
681 sources -= [ "ifaddrs_converter.cc" ] | 762 sources -= [ "ifaddrs_converter.cc" ] |
682 } | 763 } |
683 if (is_win && is_clang) { | 764 if (is_win && is_clang) { |
684 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 765 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
685 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 766 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
686 } | 767 } |
687 } | 768 } |
688 | 769 |
| 770 if (rtc_include_tests) { |
| 771 config("rtc_base_unittests_config") { |
| 772 if (is_clang) { |
| 773 cflags = [ "-Wno-unused-const-variable" ] |
| 774 } |
| 775 } |
| 776 rtc_source_set("rtc_base_unittests") { |
| 777 testonly = true |
| 778 sources = [ |
| 779 "autodetectproxy_unittest.cc", |
| 780 "callback_unittest.cc", |
| 781 "crc32_unittest.cc", |
| 782 "filerotatingstream_unittest.cc", |
| 783 "fileutils_unittest.cc", |
| 784 "helpers_unittest.cc", |
| 785 "httpbase_unittest.cc", |
| 786 "httpcommon_unittest.cc", |
| 787 "httpserver_unittest.cc", |
| 788 "ipaddress_unittest.cc", |
| 789 "messagedigest_unittest.cc", |
| 790 "messagequeue_unittest.cc", |
| 791 "nat_unittest.cc", |
| 792 "network_unittest.cc", |
| 793 "optionsfile_unittest.cc", |
| 794 "proxy_unittest.cc", |
| 795 "proxydetect_unittest.cc", |
| 796 "ratelimiter_unittest.cc", |
| 797 "rollingaccumulator_unittest.cc", |
| 798 "rtccertificate_unittest.cc", |
| 799 "rtccertificategenerator_unittest.cc", |
| 800 "scopedptrcollection_unittest.cc", |
| 801 "sha1digest_unittest.cc", |
| 802 "sharedexclusivelock_unittest.cc", |
| 803 "signalthread_unittest.cc", |
| 804 "sigslot_unittest.cc", |
| 805 "sigslottester_unittest.cc", |
| 806 "stream_unittest.cc", |
| 807 "task_unittest.cc", |
| 808 "testclient_unittest.cc", |
| 809 "thread_unittest.cc", |
| 810 ] |
| 811 if (is_win) { |
| 812 sources += [ |
| 813 "win32_unittest.cc", |
| 814 "win32window_unittest.cc", |
| 815 ] |
| 816 } |
| 817 if (is_mac) { |
| 818 sources += [ "base/macutils_unittest.cc" ] |
| 819 } |
| 820 if (is_posix) { |
| 821 sources += [ |
| 822 "ssladapter_unittest.cc", |
| 823 "sslidentity_unittest.cc", |
| 824 "sslstreamadapter_unittest.cc", |
| 825 ] |
| 826 } |
| 827 deps = [ |
| 828 ":rtc_base_tests_utils", |
| 829 ] |
| 830 public_deps = [ |
| 831 ":rtc_base", |
| 832 ] |
| 833 configs += [ ":rtc_base_unittests_config" ] |
| 834 if (!build_with_chromium && is_clang) { |
| 835 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 836 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 837 } |
| 838 } |
| 839 } |
| 840 |
689 rtc_source_set("gtest_prod") { | 841 rtc_source_set("gtest_prod") { |
690 sources = [ | 842 sources = [ |
691 "gtest_prod_util.h", | 843 "gtest_prod_util.h", |
692 ] | 844 ] |
693 } | 845 } |
694 | 846 |
695 if (rtc_include_tests) { | 847 if (rtc_include_tests) { |
696 config("rtc_base_tests_utils_exported_config") { | 848 config("rtc_base_tests_utils_exported_config") { |
697 defines = [ "GTEST_RELATIVE_PATH" ] | 849 defines = [ "GTEST_RELATIVE_PATH" ] |
698 } | 850 } |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
735 "unittest_main.cc", | 887 "unittest_main.cc", |
736 ] | 888 ] |
737 configs += [ ":rtc_base_tests_utils_warnings_config" ] | 889 configs += [ ":rtc_base_tests_utils_warnings_config" ] |
738 public_configs = [ ":rtc_base_tests_utils_exported_config" ] | 890 public_configs = [ ":rtc_base_tests_utils_exported_config" ] |
739 deps = [ | 891 deps = [ |
740 ":rtc_base", | 892 ":rtc_base", |
741 "../test:field_trial", | 893 "../test:field_trial", |
742 "../test:test_support", | 894 "../test:test_support", |
743 ] | 895 ] |
744 public_deps = [ | 896 public_deps = [ |
| 897 "//testing/gmock", |
745 "//testing/gtest", | 898 "//testing/gtest", |
746 ] | 899 ] |
747 | 900 |
748 if (!build_with_chromium && is_clang) { | 901 if (!build_with_chromium && is_clang) { |
749 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 902 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
750 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 903 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
751 } | 904 } |
752 } | 905 } |
753 } | 906 } |
754 | 907 |
755 if (is_android) { | 908 if (is_android) { |
756 android_library("base_java") { | 909 android_library("base_java") { |
757 java_files = [ | 910 java_files = [ |
758 "java/src/org/webrtc/Logging.java", | 911 "java/src/org/webrtc/Logging.java", |
759 "java/src/org/webrtc/Size.java", | 912 "java/src/org/webrtc/Size.java", |
760 "java/src/org/webrtc/ThreadUtils.java", | 913 "java/src/org/webrtc/ThreadUtils.java", |
761 ] | 914 ] |
762 | 915 |
763 deps = [ | 916 deps = [ |
764 "//base:base_java", | 917 "//base:base_java", |
765 ] | 918 ] |
766 } | 919 } |
767 } | 920 } |
OLD | NEW |