| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 import("//build/config/features.gni") |
| 6 | 6 |
| 7 # From third_party/libjingle/libjingle.gyp's target_defaults. | 7 # From third_party/libjingle/libjingle.gyp's target_defaults. |
| 8 config("jingle_unexported_configs") { | 8 config("jingle_unexported_configs") { |
| 9 defines = [ | 9 defines = [ |
| 10 "EXPAT_RELATIVE_PATH", | 10 "EXPAT_RELATIVE_PATH", |
| 11 "FEATURE_ENABLE_SSL", | 11 "FEATURE_ENABLE_SSL", |
| 12 "GTEST_RELATIVE_PATH", | 12 "GTEST_RELATIVE_PATH", |
| 13 "HAVE_OPENSSL_SSL_H", | 13 "HAVE_OPENSSL_SSL_H", |
| 14 "HAVE_SCTP", | 14 "HAVE_SCTP", |
| 15 "HAVE_SRTP", | 15 "HAVE_SRTP", |
| 16 "HAVE_WEBRTC_VIDEO", | 16 "HAVE_WEBRTC_VIDEO", |
| 17 "HAVE_WEBRTC_VOICE", | 17 "HAVE_WEBRTC_VOICE", |
| 18 "LOGGING_INSIDE_WEBRTC", | 18 "LOGGING_INSIDE_WEBRTC", |
| 19 "NO_MAIN_THREAD_WRAPPING", | 19 "NO_MAIN_THREAD_WRAPPING", |
| 20 "NO_SOUND_SYSTEM", | 20 "NO_SOUND_SYSTEM", |
| 21 "SRTP_RELATIVE_PATH", | 21 "SRTP_RELATIVE_PATH", |
| 22 "SSL_USE_OPENSSL", | 22 "SSL_USE_OPENSSL", |
| 23 "USE_WEBRTC_DEV_BRANCH", | 23 "USE_WEBRTC_DEV_BRANCH", |
| 24 "ENABLE_EXTERNAL_AUTH", | 24 "ENABLE_EXTERNAL_AUTH", |
| 25 "WEBRTC_CHROMIUM_BUILD", | 25 "WEBRTC_CHROMIUM_BUILD", |
| 26 ] | 26 ] |
| 27 | 27 |
| 28 include_dirs = [ | 28 include_dirs = [ |
| 29 "overrides", | |
| 30 "../../third_party/webrtc_overrides", | 29 "../../third_party/webrtc_overrides", |
| 31 "source", | |
| 32 "../../testing/gtest/include", | 30 "../../testing/gtest/include", |
| 33 "../../third_party", | 31 "../../third_party", |
| 34 "../../third_party/libyuv/include", | 32 "../../third_party/libyuv/include", |
| 35 "../../third_party/usrsctp/usrsctplib", | 33 "../../third_party/usrsctp/usrsctplib", |
| 36 ] | 34 ] |
| 37 } | 35 } |
| 38 | 36 |
| 39 # From third_party/libjingle/libjingle.gyp's target_defaults. | 37 # From third_party/libjingle/libjingle.gyp's target_defaults. |
| 40 config("jingle_public_configs") { | 38 config("jingle_public_configs") { |
| 41 include_dirs = [ | 39 include_dirs = [ |
| 42 "../../third_party/webrtc_overrides", | 40 "../../third_party/webrtc_overrides", |
| 43 "overrides", | |
| 44 "source", | |
| 45 "../../testing/gtest/include", | 41 "../../testing/gtest/include", |
| 46 "../../third_party", | 42 "../../third_party", |
| 47 ] | 43 ] |
| 48 defines = [ | 44 defines = [ |
| 49 "FEATURE_ENABLE_SSL", | 45 "FEATURE_ENABLE_SSL", |
| 50 "FEATURE_ENABLE_VOICEMAIL", | 46 "FEATURE_ENABLE_VOICEMAIL", |
| 51 "EXPAT_RELATIVE_PATH", | 47 "EXPAT_RELATIVE_PATH", |
| 52 "GTEST_RELATIVE_PATH", | 48 "GTEST_RELATIVE_PATH", |
| 53 "NO_MAIN_THREAD_WRAPPING", | 49 "NO_MAIN_THREAD_WRAPPING", |
| 54 "NO_SOUND_SYSTEM", | 50 "NO_SOUND_SYSTEM", |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 218 } | 214 } |
| 219 | 215 |
| 220 if (is_nacl) { | 216 if (is_nacl) { |
| 221 # For NACL, we have to add a default implementation for field_trail. | 217 # For NACL, we have to add a default implementation for field_trail. |
| 222 deps += [ | 218 deps += [ |
| 223 "//native_client_sdk/src/libraries/nacl_io", | 219 "//native_client_sdk/src/libraries/nacl_io", |
| 224 "//third_party/webrtc/system_wrappers:field_trial_default", | 220 "//third_party/webrtc/system_wrappers:field_trial_default", |
| 225 ] | 221 ] |
| 226 } else { | 222 } else { |
| 227 # Otherwise, we just add the field_trial which redirects to base. | 223 # Otherwise, we just add the field_trial which redirects to base. |
| 228 sources += [ "overrides/field_trial.cc" ] | 224 sources += [ "../webrtc_overrides/field_trial.cc" ] |
| 229 } | 225 } |
| 230 | 226 |
| 231 configs += [ ":jingle_unexported_configs" ] | 227 configs += [ ":jingle_unexported_configs" ] |
| 232 public_configs = [ ":jingle_public_configs" ] | 228 public_configs = [ ":jingle_public_configs" ] |
| 233 } | 229 } |
| 234 | 230 |
| 235 if (enable_webrtc) { | 231 if (enable_webrtc) { |
| 232 # TODO(kjellander): Move this target into //third_party/webrtc_overrides as |
| 233 # soon as the work in bugs.webrtc.org/4256 has gotten rid of the duplicated |
| 234 # source listings above. |
| 236 source_set("libjingle_webrtc") { | 235 source_set("libjingle_webrtc") { |
| 237 sources = [ | 236 sources = [ |
| 238 "overrides/init_webrtc.cc", | 237 "../webrtc_overrides/init_webrtc.cc", |
| 239 "overrides/init_webrtc.h", | 238 "../webrtc_overrides/init_webrtc.h", |
| 240 ] | 239 ] |
| 241 configs += [ ":jingle_unexported_configs" ] | 240 configs += [ ":jingle_unexported_configs" ] |
| 242 public_configs = [ ":jingle_public_configs" ] | 241 public_configs = [ ":jingle_public_configs" ] |
| 243 public_deps = [ | 242 public_deps = [ |
| 244 ":libjingle_webrtc_common", | 243 ":libjingle_webrtc_common", |
| 245 ] | 244 ] |
| 246 } | 245 } |
| 247 | 246 |
| 248 source_set("libjingle_webrtc_common") { | 247 source_set("libjingle_webrtc_common") { |
| 249 sources = [ | 248 sources = [ |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 405 sources = [ | 404 sources = [ |
| 406 "$p2p_dir/stunprober/stunprober.cc", | 405 "$p2p_dir/stunprober/stunprober.cc", |
| 407 ] | 406 ] |
| 408 | 407 |
| 409 deps = [ | 408 deps = [ |
| 410 ":libjingle_webrtc_common", | 409 ":libjingle_webrtc_common", |
| 411 "//third_party/webrtc/base:rtc_base", | 410 "//third_party/webrtc/base:rtc_base", |
| 412 ] | 411 ] |
| 413 } | 412 } |
| 414 } # enable_webrtc | 413 } # enable_webrtc |
| OLD | NEW |