| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2017 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 import("//build/config/features.gni") | 5 group("webrtc_overrides") { |
| 6 public_deps = [ |
| 7 ":webrtc", |
| 8 ] |
| 9 } |
| 6 | 10 |
| 7 config("jingle_unexported_configs") { | 11 config("jingle_unexported_configs") { |
| 8 include_dirs = [ | 12 include_dirs = [ |
| 9 "../../third_party/webrtc_overrides", | 13 "../../third_party/webrtc_overrides", |
| 10 "../../testing/gtest/include", | 14 "../../testing/gtest/include", |
| 11 "../../third_party", | 15 "../../third_party", |
| 12 "../../third_party/libyuv/include", | 16 "../../third_party/libyuv/include", |
| 13 "../../third_party/usrsctp/usrsctplib", | 17 "../../third_party/usrsctp/usrsctplib", |
| 14 ] | 18 ] |
| 15 } | 19 } |
| (...skipping 10 matching lines...) Expand all Loading... |
| 26 public_deps = [ | 30 public_deps = [ |
| 27 "//third_party/expat", | 31 "//third_party/expat", |
| 28 ] | 32 ] |
| 29 deps = [ | 33 deps = [ |
| 30 "//base", | 34 "//base", |
| 31 "//crypto:platform", | 35 "//crypto:platform", |
| 32 "//net", | 36 "//net", |
| 33 ] | 37 ] |
| 34 } | 38 } |
| 35 | 39 |
| 36 static_library("libjingle") { | 40 static_library("webrtc") { |
| 37 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 41 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 38 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 42 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 39 | 43 |
| 40 public_deps = [ | 44 public_deps = [ |
| 41 ":jingle_deps", | 45 ":jingle_deps", |
| 42 | 46 |
| 43 # TODO(kjellander): Start cleaning up this target as soon as | 47 # TODO(kjellander): Start cleaning up this target as soon as |
| 44 # https://codereview.chromium.org/2022833002/ is landed. The target should | 48 # https://codereview.chromium.org/2022833002/ is landed. The target should |
| 45 # be removed entirely if possible. | 49 # be removed entirely if possible. |
| 46 "//third_party/libjingle_xmpp:rtc_task_runner", | 50 "//third_party/libjingle_xmpp:rtc_task_runner", |
| 47 "//third_party/webrtc/base:rtc_base", | 51 "//third_party/webrtc/base:rtc_base", |
| 48 ] | 52 ] |
| 49 deps = [ | 53 deps = [ |
| 50 "//third_party/webrtc/p2p:rtc_p2p", | 54 "//third_party/webrtc/p2p:rtc_p2p", |
| 51 ] | 55 ] |
| 52 | 56 |
| 53 # From libjingle_common.gypi's conditions list. | |
| 54 if (is_win) { | 57 if (is_win) { |
| 55 cflags = [ "/wd4005" ] | 58 cflags = [ "/wd4005" ] |
| 56 } | 59 } |
| 57 | 60 |
| 58 if (is_nacl) { | 61 if (is_nacl) { |
| 59 # For NACL, we have to add a default implementation for field_trail. | 62 # For NACL, we have to add a default implementation for field_trail. |
| 60 deps += [ | 63 deps += [ |
| 61 "//native_client_sdk/src/libraries/nacl_io", | 64 "//native_client_sdk/src/libraries/nacl_io", |
| 62 "//third_party/webrtc/system_wrappers:field_trial_default", | 65 "//third_party/webrtc/system_wrappers:field_trial_default", |
| 63 ] | 66 ] |
| 64 } else { | 67 } else { |
| 65 # Otherwise, we just add the field_trial which redirects to base. | 68 # Otherwise, we just add the field_trial which redirects to base. |
| 66 sources = [ | 69 sources = [ |
| 67 "../webrtc_overrides/field_trial.cc", | 70 "field_trial.cc", |
| 68 ] | 71 ] |
| 69 } | 72 } |
| 70 | 73 |
| 71 configs += [ | 74 configs += [ |
| 72 ":jingle_unexported_configs", | 75 ":jingle_unexported_configs", |
| 73 "//third_party/webrtc:common_config", | 76 "//third_party/webrtc:common_config", |
| 74 ] | 77 ] |
| 75 public_configs = [ | 78 public_configs = [ |
| 76 ":jingle_public_configs", | 79 ":jingle_public_configs", |
| 77 "//third_party/webrtc:common_inherited_config", | 80 "//third_party/webrtc:common_inherited_config", |
| 78 ] | 81 ] |
| 79 } | 82 } |
| 83 |
| 84 static_library("init_webrtc") { |
| 85 sources = [ |
| 86 "init_webrtc.cc", |
| 87 "init_webrtc.h", |
| 88 ] |
| 89 configs += [ |
| 90 ":jingle_unexported_configs", |
| 91 "//third_party/webrtc:common_config", |
| 92 ] |
| 93 public_configs = [ |
| 94 ":jingle_public_configs", |
| 95 "//third_party/webrtc:common_inherited_config", |
| 96 ] |
| 97 public_deps = [ |
| 98 ":libjingle_webrtc_common", |
| 99 ] |
| 100 } |
| 101 |
| 102 source_set("libjingle_webrtc_common") { |
| 103 configs += [ |
| 104 ":jingle_unexported_configs", |
| 105 "//third_party/webrtc:common_config", |
| 106 ] |
| 107 public_configs = [ |
| 108 ":jingle_public_configs", |
| 109 "//third_party/webrtc:common_inherited_config", |
| 110 ] |
| 111 |
| 112 deps = [ |
| 113 ":webrtc", |
| 114 "//third_party/libsrtp", |
| 115 "//third_party/usrsctp", |
| 116 "//third_party/webrtc/api:libjingle_peerconnection", |
| 117 "//third_party/webrtc/media:rtc_media", |
| 118 "//third_party/webrtc/media:rtc_media_base", |
| 119 "//third_party/webrtc/modules/media_file", |
| 120 "//third_party/webrtc/modules/video_capture", |
| 121 "//third_party/webrtc/pc:rtc_pc", |
| 122 "//third_party/webrtc/system_wrappers", |
| 123 "//third_party/webrtc/voice_engine", |
| 124 ] |
| 125 } |
| OLD | NEW |