| 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/crypto.gni") | 5 import("//build/config/crypto.gni") |
| 6 import("//build/config/features.gni") | 6 import("//build/config/features.gni") |
| 7 | 7 |
| 8 # From third_party/libjingle/libjingle.gyp's target_defaults. | 8 # From third_party/libjingle/libjingle.gyp's target_defaults. |
| 9 config("jingle_unexported_configs") { | 9 config("jingle_unexported_configs") { |
| 10 defines = [ | 10 defines = [ |
| (...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 242 "source/talk/xmpp/xmppstanzaparser.cc", | 242 "source/talk/xmpp/xmppstanzaparser.cc", |
| 243 "source/talk/xmpp/xmppstanzaparser.h", | 243 "source/talk/xmpp/xmppstanzaparser.h", |
| 244 "source/talk/xmpp/xmpptask.cc", | 244 "source/talk/xmpp/xmpptask.cc", |
| 245 "source/talk/xmpp/xmpptask.h", | 245 "source/talk/xmpp/xmpptask.h", |
| 246 ] | 246 ] |
| 247 sources -= [ | 247 sources -= [ |
| 248 # Compiled as part of libjingle_p2p_constants. | 248 # Compiled as part of libjingle_p2p_constants. |
| 249 "source/talk/p2p/base/constants.cc", | 249 "source/talk/p2p/base/constants.cc", |
| 250 "source/talk/p2p/base/constants.h", | 250 "source/talk/p2p/base/constants.h", |
| 251 ] | 251 ] |
| 252 public_deps = [ |
| 253 ":jingle_deps" |
| 254 ] |
| 252 deps = [ | 255 deps = [ |
| 253 "//third_party/webrtc/base:webrtc_base", | 256 "//third_party/webrtc/base:webrtc_base", |
| 254 ":libjingle_p2p_constants", | 257 ":libjingle_p2p_constants", |
| 255 ":jingle_deps" | |
| 256 ] | 258 ] |
| 257 | 259 |
| 258 # From libjingle_common.gypi's conditions list. | 260 # From libjingle_common.gypi's conditions list. |
| 259 if (is_win) { | 261 if (is_win) { |
| 260 cflags = [ "/wd4005", "/wd4267" ] | 262 cflags = [ "/wd4005", "/wd4267" ] |
| 261 } | 263 } |
| 262 | 264 |
| 263 forward_dependent_configs_from = [ | |
| 264 ":jingle_deps" | |
| 265 ] | |
| 266 configs += [ | 265 configs += [ |
| 267 ":jingle_unexported_configs" | 266 ":jingle_unexported_configs" |
| 268 ] | 267 ] |
| 269 direct_dependent_configs = [ | 268 public_configs = [ |
| 270 ":jingle_direct_dependent_configs", | 269 ":jingle_direct_dependent_configs", |
| 271 ] | 270 ] |
| 272 all_dependent_configs = [ | 271 all_dependent_configs = [ |
| 273 ":jingle_all_dependent_configs", | 272 ":jingle_all_dependent_configs", |
| 274 ] | 273 ] |
| 275 } | 274 } |
| 276 | 275 |
| 277 # This has to be is a separate project due to a bug in MSVS 2008 and the | 276 # This has to be is a separate project due to a bug in MSVS 2008 and the |
| 278 # current toolset on android. The problem is that we have two files named | 277 # current toolset on android. The problem is that we have two files named |
| 279 # "constants.cc" and MSVS/android doesn't handle this properly. | 278 # "constants.cc" and MSVS/android doesn't handle this properly. |
| 280 # GYP currently has guards to catch this, so if you want to remove it, | 279 # GYP currently has guards to catch this, so if you want to remove it, |
| 281 # run GYP and if GYP has removed the validation check, then we can assume | 280 # run GYP and if GYP has removed the validation check, then we can assume |
| 282 # that the toolchains have been fixed (we currently use VS2010 and later, | 281 # that the toolchains have been fixed (we currently use VS2010 and later, |
| 283 # so VS2008 isn't a concern anymore). | 282 # so VS2008 isn't a concern anymore). |
| 284 # | 283 # |
| 285 # GYP version: third_party/libjingle.gyp:libjingle_p2p_constants | 284 # GYP version: third_party/libjingle.gyp:libjingle_p2p_constants |
| 286 static_library("libjingle_p2p_constants") { | 285 static_library("libjingle_p2p_constants") { |
| 287 sources = [ | 286 sources = [ |
| 288 "source/talk/p2p/base/constants.cc", | 287 "source/talk/p2p/base/constants.cc", |
| 289 "source/talk/p2p/base/constants.h", | 288 "source/talk/p2p/base/constants.h", |
| 290 ] | 289 ] |
| 291 deps = [ | 290 public_deps = [ |
| 292 ":jingle_deps", | |
| 293 ] | |
| 294 forward_dependent_configs_from = [ | |
| 295 ":jingle_deps", | 291 ":jingle_deps", |
| 296 ] | 292 ] |
| 297 configs += [ | 293 configs += [ |
| 298 ":jingle_unexported_configs" | 294 ":jingle_unexported_configs" |
| 299 ] | 295 ] |
| 300 direct_dependent_configs = [ | 296 public_configs = [ |
| 301 ":jingle_direct_dependent_configs", | 297 ":jingle_direct_dependent_configs", |
| 302 ] | 298 ] |
| 303 all_dependent_configs = [ | 299 all_dependent_configs = [ |
| 304 ":jingle_all_dependent_configs", | 300 ":jingle_all_dependent_configs", |
| 305 ] | 301 ] |
| 306 } | 302 } |
| 307 | 303 |
| 308 # GYP version: third_party/libjingle.gyp:peerconnnection_server | 304 # GYP version: third_party/libjingle.gyp:peerconnnection_server |
| 309 #TODO(GYP): Switch to executable when WebRTC dependency is resolved. | 305 #TODO(GYP): Switch to executable when WebRTC dependency is resolved. |
| 310 source_set("peerconnnection_server") { | 306 source_set("peerconnnection_server") { |
| 311 sources = [ | 307 sources = [ |
| 312 "source/talk/examples/peerconnection/server/data_socket.cc", | 308 "source/talk/examples/peerconnection/server/data_socket.cc", |
| 313 "source/talk/examples/peerconnection/server/data_socket.h", | 309 "source/talk/examples/peerconnection/server/data_socket.h", |
| 314 "source/talk/examples/peerconnection/server/main.cc", | 310 "source/talk/examples/peerconnection/server/main.cc", |
| 315 "source/talk/examples/peerconnection/server/peer_channel.cc", | 311 "source/talk/examples/peerconnection/server/peer_channel.cc", |
| 316 "source/talk/examples/peerconnection/server/peer_channel.h", | 312 "source/talk/examples/peerconnection/server/peer_channel.h", |
| 317 "source/talk/examples/peerconnection/server/utils.cc", | 313 "source/talk/examples/peerconnection/server/utils.cc", |
| 318 "source/talk/examples/peerconnection/server/utils.h", | 314 "source/talk/examples/peerconnection/server/utils.h", |
| 319 ] | 315 ] |
| 320 include_dirs = [ | 316 include_dirs = [ |
| 321 "source", | 317 "source", |
| 322 ] | 318 ] |
| 319 public_deps = [ |
| 320 ":jingle_deps", |
| 321 ] |
| 323 deps = [ | 322 deps = [ |
| 324 ":libjingle", | 323 ":libjingle", |
| 325 ":jingle_deps", | 324 ":jingle_deps", |
| 326 ] | 325 ] |
| 327 forward_dependent_configs_from = [ | |
| 328 ":jingle_deps", | |
| 329 ] | |
| 330 configs += [ | 326 configs += [ |
| 331 ":jingle_unexported_configs" | 327 ":jingle_unexported_configs" |
| 332 ] | 328 ] |
| 333 direct_dependent_configs = [ | 329 public_configs = [ |
| 334 ":jingle_direct_dependent_configs", | 330 ":jingle_direct_dependent_configs", |
| 335 ] | 331 ] |
| 336 all_dependent_configs = [ | 332 all_dependent_configs = [ |
| 337 ":jingle_all_dependent_configs", | 333 ":jingle_all_dependent_configs", |
| 338 ] | 334 ] |
| 339 if (is_win) { | 335 if (is_win) { |
| 340 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 336 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 341 cflags = [ "/wd4309" ] | 337 cflags = [ "/wd4309" ] |
| 342 } | 338 } |
| 343 } | 339 } |
| 344 | 340 |
| 345 if (enable_webrtc) { | 341 if (enable_webrtc) { |
| 346 | 342 |
| 347 source_set("libjingle_webrtc") { | 343 source_set("libjingle_webrtc") { |
| 348 sources = [ | 344 sources = [ |
| 349 "overrides/init_webrtc.cc", | 345 "overrides/init_webrtc.cc", |
| 350 "overrides/init_webrtc.h", | 346 "overrides/init_webrtc.h", |
| 351 ] | 347 ] |
| 348 configs += [ ":jingle_unexported_configs" ] |
| 349 public_configs = [ ":jingle_direct_dependent_configs" ] |
| 352 deps = [ ":libjingle_webrtc_common" ] | 350 deps = [ ":libjingle_webrtc_common" ] |
| 353 } | 351 } |
| 354 | 352 |
| 355 # Note: this does not support the shared library build of libpeerconnection | 353 # Note: this does not support the shared library build of libpeerconnection |
| 356 # as is supported in the GYP build. It's not clear what this is used for. | 354 # as is supported in the GYP build. It's not clear what this is used for. |
| 357 source_set("libjingle_webrtc_common") { | 355 source_set("libjingle_webrtc_common") { |
| 358 sources = [ | 356 sources = [ |
| 359 "overrides/talk/media/webrtc/webrtcexport.h", | 357 "overrides/talk/media/webrtc/webrtcexport.h", |
| 360 | 358 |
| 361 "source/talk/app/webrtc/audiotrack.cc", | 359 "source/talk/app/webrtc/audiotrack.cc", |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 500 "source/talk/session/media/typingmonitor.cc", | 498 "source/talk/session/media/typingmonitor.cc", |
| 501 "source/talk/session/media/typingmonitor.h", | 499 "source/talk/session/media/typingmonitor.h", |
| 502 "source/talk/session/media/voicechannel.h", | 500 "source/talk/session/media/voicechannel.h", |
| 503 "source/talk/session/tunnel/pseudotcpchannel.cc", | 501 "source/talk/session/tunnel/pseudotcpchannel.cc", |
| 504 "source/talk/session/tunnel/pseudotcpchannel.h", | 502 "source/talk/session/tunnel/pseudotcpchannel.h", |
| 505 "source/talk/session/tunnel/tunnelsessionclient.cc", | 503 "source/talk/session/tunnel/tunnelsessionclient.cc", |
| 506 "source/talk/session/tunnel/tunnelsessionclient.h", | 504 "source/talk/session/tunnel/tunnelsessionclient.h", |
| 507 ] | 505 ] |
| 508 | 506 |
| 509 configs += [ ":jingle_unexported_configs" ] | 507 configs += [ ":jingle_unexported_configs" ] |
| 510 direct_dependent_configs = [ ":jingle_direct_dependent_configs" ] | 508 public_configs = [ ":jingle_direct_dependent_configs" ] |
| 511 | 509 |
| 512 deps = [ | 510 deps = [ |
| 513 "//third_party/libsrtp", | 511 "//third_party/libsrtp", |
| 514 "//third_party/webrtc/modules/media_file", | 512 "//third_party/webrtc/modules/media_file", |
| 515 "//third_party/webrtc/modules/video_capture", | 513 "//third_party/webrtc/modules/video_capture", |
| 516 "//third_party/webrtc/modules/video_render", | 514 "//third_party/webrtc/modules/video_render", |
| 517 ] | 515 ] |
| 518 | 516 |
| 519 if (!is_ios) { | 517 if (!is_ios) { |
| 520 # TODO(mallinath) - Enable SCTP for iOS. | 518 # TODO(mallinath) - Enable SCTP for iOS. |
| (...skipping 18 matching lines...) Expand all Loading... |
| 539 "source/talk/media/webrtc/webrtcmediaengine.h", | 537 "source/talk/media/webrtc/webrtcmediaengine.h", |
| 540 "source/talk/media/webrtc/webrtcvideoengine.cc", | 538 "source/talk/media/webrtc/webrtcvideoengine.cc", |
| 541 "source/talk/media/webrtc/webrtcvideoengine.h", | 539 "source/talk/media/webrtc/webrtcvideoengine.h", |
| 542 "source/talk/media/webrtc/webrtcvideoengine2.cc", | 540 "source/talk/media/webrtc/webrtcvideoengine2.cc", |
| 543 "source/talk/media/webrtc/webrtcvideoengine2.h", | 541 "source/talk/media/webrtc/webrtcvideoengine2.h", |
| 544 "source/talk/media/webrtc/webrtcvoiceengine.cc", | 542 "source/talk/media/webrtc/webrtcvoiceengine.cc", |
| 545 "source/talk/media/webrtc/webrtcvoiceengine.h", | 543 "source/talk/media/webrtc/webrtcvoiceengine.h", |
| 546 ] | 544 ] |
| 547 | 545 |
| 548 configs += [ ":jingle_unexported_configs" ] | 546 configs += [ ":jingle_unexported_configs" ] |
| 549 direct_dependent_configs = [ ":jingle_direct_dependent_configs" ] | 547 public_configs = [ ":jingle_direct_dependent_configs" ] |
| 550 | 548 |
| 551 deps = [ | 549 deps = [ |
| 552 ":libjingle_webrtc_common", | 550 ":libjingle_webrtc_common", |
| 553 "//third_party/webrtc", | 551 "//third_party/webrtc", |
| 554 "//third_party/webrtc/system_wrappers", | 552 "//third_party/webrtc/system_wrappers", |
| 555 "//third_party/webrtc/voice_engine", | 553 "//third_party/webrtc/voice_engine", |
| 556 ] | 554 ] |
| 557 } | 555 } |
| 558 | 556 |
| 559 } # enable_webrtc | 557 } # enable_webrtc |
| 560 | 558 |
| 561 # TODO(GYP): Port libjingle.gyp's enable_webrtc condition block. | 559 # TODO(GYP): Port libjingle.gyp's enable_webrtc condition block. |
| OLD | NEW |