| 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 | 83 |
| 84 if (!rtc_build_ssl) { | 84 if (!rtc_build_ssl) { |
| 85 config("external_ssl_library") { | 85 config("external_ssl_library") { |
| 86 assert(rtc_ssl_root != "", | 86 assert(rtc_ssl_root != "", |
| 87 "You must specify rtc_ssl_root when rtc_build_ssl==0.") | 87 "You must specify rtc_ssl_root when rtc_build_ssl==0.") |
| 88 include_dirs = [ rtc_ssl_root ] | 88 include_dirs = [ rtc_ssl_root ] |
| 89 } | 89 } |
| 90 } | 90 } |
| 91 | 91 |
| 92 # The subset of rtc_base approved for use outside of libjingle. | 92 # The subset of rtc_base approved for use outside of libjingle. |
| 93 static_library("rtc_base_approved") { | 93 rtc_static_library("rtc_base_approved") { |
| 94 defines = [] | 94 defines = [] |
| 95 libs = [] | 95 libs = [] |
| 96 deps = [] | 96 deps = [] |
| 97 configs += [ "..:common_config" ] | 97 configs += [ "..:common_config" ] |
| 98 public_configs = [ "..:common_inherited_config" ] | 98 public_configs = [ "..:common_inherited_config" ] |
| 99 all_dependent_configs = [ ":rtc_base_approved_all_dependent_config" ] | 99 all_dependent_configs = [ ":rtc_base_approved_all_dependent_config" ] |
| 100 | 100 |
| 101 sources = [ | 101 sources = [ |
| 102 "array_view.h", | 102 "array_view.h", |
| 103 "atomicops.h", | 103 "atomicops.h", |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 "logging.h", | 190 "logging.h", |
| 191 "logging_mac.mm", | 191 "logging_mac.mm", |
| 192 ] | 192 ] |
| 193 } | 193 } |
| 194 } | 194 } |
| 195 | 195 |
| 196 config("enable_libevent_config") { | 196 config("enable_libevent_config") { |
| 197 defines = [ "WEBRTC_BUILD_LIBEVENT" ] | 197 defines = [ "WEBRTC_BUILD_LIBEVENT" ] |
| 198 } | 198 } |
| 199 | 199 |
| 200 static_library("rtc_task_queue") { | 200 rtc_static_library("rtc_task_queue") { |
| 201 public_deps = [ | 201 public_deps = [ |
| 202 ":rtc_base_approved", | 202 ":rtc_base_approved", |
| 203 ] | 203 ] |
| 204 configs += [ "..:common_config" ] | 204 configs += [ "..:common_config" ] |
| 205 | 205 |
| 206 sources = [ | 206 sources = [ |
| 207 "sequenced_task_checker.h", | 207 "sequenced_task_checker.h", |
| 208 "sequenced_task_checker_impl.cc", | 208 "sequenced_task_checker_impl.cc", |
| 209 "sequenced_task_checker_impl.h", | 209 "sequenced_task_checker_impl.h", |
| 210 ] | 210 ] |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 250 if (is_win && is_clang) { | 250 if (is_win && is_clang) { |
| 251 cflags = [ | 251 cflags = [ |
| 252 # Disable warnings failing when compiling with Clang on Windows. | 252 # Disable warnings failing when compiling with Clang on Windows. |
| 253 # https://bugs.chromium.org/p/webrtc/issues/detail?id=5366 | 253 # https://bugs.chromium.org/p/webrtc/issues/detail?id=5366 |
| 254 "-Wno-sign-compare", | 254 "-Wno-sign-compare", |
| 255 "-Wno-missing-braces", | 255 "-Wno-missing-braces", |
| 256 ] | 256 ] |
| 257 } | 257 } |
| 258 } | 258 } |
| 259 | 259 |
| 260 static_library("rtc_base") { | 260 rtc_static_library("rtc_base") { |
| 261 cflags = [] | 261 cflags = [] |
| 262 cflags_cc = [] | 262 cflags_cc = [] |
| 263 libs = [] | 263 libs = [] |
| 264 deps = [ | 264 deps = [ |
| 265 "..:webrtc_common", | 265 "..:webrtc_common", |
| 266 ] | 266 ] |
| 267 public_deps = [ | 267 public_deps = [ |
| 268 ":rtc_base_approved", | 268 ":rtc_base_approved", |
| 269 ] | 269 ] |
| 270 | 270 |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 420 "timing.cc", | 420 "timing.cc", |
| 421 "timing.h", | 421 "timing.h", |
| 422 "urlencode.cc", | 422 "urlencode.cc", |
| 423 "urlencode.h", | 423 "urlencode.h", |
| 424 "worker.cc", | 424 "worker.cc", |
| 425 "worker.h", | 425 "worker.h", |
| 426 ] | 426 ] |
| 427 | 427 |
| 428 # TODO(henrike): issue 3307, make rtc_base build with the Chromium default | 428 # TODO(henrike): issue 3307, make rtc_base build with the Chromium default |
| 429 # compiler settings. | 429 # compiler settings. |
| 430 configs -= [ "//build/config/compiler:chromium_code" ] | 430 configs_suppressions += [ "//build/config/compiler:chromium_code" ] |
| 431 configs += [ "//build/config/compiler:no_chromium_code" ] | 431 configs += [ "//build/config/compiler:no_chromium_code" ] |
| 432 if (!is_win) { | 432 if (!is_win) { |
| 433 cflags += [ "-Wno-uninitialized" ] | 433 cflags += [ "-Wno-uninitialized" ] |
| 434 } | 434 } |
| 435 | 435 |
| 436 if (build_with_chromium) { | 436 if (build_with_chromium) { |
| 437 if (is_win) { | 437 if (is_win) { |
| 438 sources += [ "../../webrtc_overrides/webrtc/base/win32socketinit.cc" ] | 438 sources += [ "../../webrtc_overrides/webrtc/base/win32socketinit.cc" ] |
| 439 } | 439 } |
| 440 | 440 |
| (...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 673 ] | 673 ] |
| 674 } | 674 } |
| 675 | 675 |
| 676 if (is_nacl) { | 676 if (is_nacl) { |
| 677 deps += [ "//native_client_sdk/src/libraries/nacl_io" ] | 677 deps += [ "//native_client_sdk/src/libraries/nacl_io" ] |
| 678 defines += [ "timezone=_timezone" ] | 678 defines += [ "timezone=_timezone" ] |
| 679 sources -= [ "ifaddrs_converter.cc" ] | 679 sources -= [ "ifaddrs_converter.cc" ] |
| 680 } | 680 } |
| 681 if (is_win && is_clang) { | 681 if (is_win && is_clang) { |
| 682 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 682 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 683 configs -= [ "//build/config/clang:find_bad_constructs" ] | 683 configs_suppressions += [ "//build/config/clang:find_bad_constructs" ] |
| 684 } | 684 } |
| 685 } | 685 } |
| 686 | 686 |
| 687 source_set("gtest_prod") { | 687 rtc_source_set("gtest_prod") { |
| 688 sources = [ | 688 sources = [ |
| 689 "gtest_prod_util.h", | 689 "gtest_prod_util.h", |
| 690 ] | 690 ] |
| 691 } | 691 } |
| 692 | 692 |
| 693 if (rtc_include_tests) { | 693 if (rtc_include_tests) { |
| 694 config("rtc_base_tests_utils_exported_config") { | 694 config("rtc_base_tests_utils_exported_config") { |
| 695 defines = [ "GTEST_RELATIVE_PATH" ] | 695 defines = [ "GTEST_RELATIVE_PATH" ] |
| 696 } | 696 } |
| 697 | 697 |
| 698 config("rtc_base_tests_utils_warnings_config") { | 698 config("rtc_base_tests_utils_warnings_config") { |
| 699 if (is_win && is_clang) { | 699 if (is_win && is_clang) { |
| 700 cflags = [ | 700 cflags = [ |
| 701 # See https://bugs.chromium.org/p/webrtc/issues/detail?id=6270 | 701 # See https://bugs.chromium.org/p/webrtc/issues/detail?id=6270 |
| 702 "-Wno-reorder", | 702 "-Wno-reorder", |
| 703 "-Wno-sign-compare", | 703 "-Wno-sign-compare", |
| 704 ] | 704 ] |
| 705 } | 705 } |
| 706 } | 706 } |
| 707 | 707 |
| 708 source_set("rtc_base_tests_utils") { | 708 rtc_source_set("rtc_base_tests_utils") { |
| 709 testonly = true | 709 testonly = true |
| 710 sources = [ | 710 sources = [ |
| 711 # Also use this as a convenient dumping ground for misc files that are | 711 # Also use this as a convenient dumping ground for misc files that are |
| 712 # included by multiple targets below. | 712 # included by multiple targets below. |
| 713 "fakeclock.cc", | 713 "fakeclock.cc", |
| 714 "fakeclock.h", | 714 "fakeclock.h", |
| 715 "fakenetwork.h", | 715 "fakenetwork.h", |
| 716 "fakesslidentity.h", | 716 "fakesslidentity.h", |
| 717 "faketaskrunner.h", | 717 "faketaskrunner.h", |
| 718 "gunit.h", | 718 "gunit.h", |
| (...skipping 16 matching lines...) Expand all Loading... |
| 735 ":rtc_base", | 735 ":rtc_base", |
| 736 "../test:field_trial", | 736 "../test:field_trial", |
| 737 "../test:test_support", | 737 "../test:test_support", |
| 738 ] | 738 ] |
| 739 public_deps = [ | 739 public_deps = [ |
| 740 "//testing/gtest", | 740 "//testing/gtest", |
| 741 ] | 741 ] |
| 742 | 742 |
| 743 if (is_clang) { | 743 if (is_clang) { |
| 744 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 744 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 745 configs -= [ "//build/config/clang:find_bad_constructs" ] | 745 configs_suppressions += [ "//build/config/clang:find_bad_constructs" ] |
| 746 } | 746 } |
| 747 } | 747 } |
| 748 } | 748 } |
| 749 | 749 |
| 750 if (is_android) { | 750 if (is_android) { |
| 751 android_library("base_java") { | 751 android_library("base_java") { |
| 752 java_files = [ | 752 java_files = [ |
| 753 "java/src/org/webrtc/Logging.java", | 753 "java/src/org/webrtc/Logging.java", |
| 754 "java/src/org/webrtc/Size.java", | 754 "java/src/org/webrtc/Size.java", |
| 755 "java/src/org/webrtc/ThreadUtils.java", | 755 "java/src/org/webrtc/ThreadUtils.java", |
| 756 ] | 756 ] |
| 757 | 757 |
| 758 deps = [ | 758 deps = [ |
| 759 "//base:base_java", | 759 "//base:base_java", |
| 760 ] | 760 ] |
| 761 } | 761 } |
| 762 } | 762 } |
| OLD | NEW |