OLD | NEW |
1 # Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. | 1 # Copyright (c) 2016 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/webrtc.gni") |
9 if (is_android) { | 10 if (is_android) { |
10 import("//build/config/android/config.gni") | 11 import("//build/config/android/config.gni") |
11 import("//build/config/android/rules.gni") | 12 import("//build/config/android/rules.gni") |
12 } else if (is_mac) { | 13 } else if (is_mac) { |
13 import("//build/config/mac/rules.gni") | 14 import("//build/config/mac/rules.gni") |
14 } else if (is_ios) { | 15 } else if (is_ios) { |
15 import("//build/config/ios/rules.gni") | 16 import("//build/config/ios/rules.gni") |
16 } | 17 } |
17 if (is_linux || is_win) { | |
18 import("//webrtc/build/webrtc.gni") | |
19 } | |
20 if (is_linux) { | 18 if (is_linux) { |
21 import("//build/config/linux/pkg_config.gni") | 19 import("//build/config/linux/pkg_config.gni") |
22 } | 20 } |
23 | 21 |
24 group("examples") { | 22 group("examples") { |
25 deps = [] | 23 deps = [] |
26 | 24 |
27 if (is_android) { | 25 if (is_android) { |
28 deps += [ ":AppRTCDemo" ] | 26 deps += [ ":AppRTCDemo" ] |
29 } | 27 } |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 # when moving from ios_deployment_target 7.0 to 9.0. | 127 # when moving from ios_deployment_target 7.0 to 9.0. |
130 # See webrtc:5549 for more details. | 128 # See webrtc:5549 for more details. |
131 cflags = [ "-Wno-deprecated-declarations" ] | 129 cflags = [ "-Wno-deprecated-declarations" ] |
132 } | 130 } |
133 } | 131 } |
134 | 132 |
135 config("apprtc_common_config") { | 133 config("apprtc_common_config") { |
136 include_dirs = [ "objc/AppRTCDemo/common" ] | 134 include_dirs = [ "objc/AppRTCDemo/common" ] |
137 } | 135 } |
138 | 136 |
139 source_set("apprtc_common") { | 137 rtc_source_set("apprtc_common") { |
140 sources = [ | 138 sources = [ |
141 "objc/AppRTCDemo/common/ARDUtilities.h", | 139 "objc/AppRTCDemo/common/ARDUtilities.h", |
142 "objc/AppRTCDemo/common/ARDUtilities.m", | 140 "objc/AppRTCDemo/common/ARDUtilities.m", |
143 ] | 141 ] |
144 configs += [ | 142 configs += [ |
145 "..:common_config", | 143 "..:common_config", |
146 ":warnings_config", | 144 ":warnings_config", |
147 "//build/config/compiler:enable_arc", | 145 "//build/config/compiler:enable_arc", |
148 ] | 146 ] |
149 public_configs = [ | 147 public_configs = [ |
(...skipping 16 matching lines...) Expand all Loading... |
166 # cannot be on the target directly. | 164 # cannot be on the target directly. |
167 cflags = [ | 165 cflags = [ |
168 "-Wno-sign-compare", | 166 "-Wno-sign-compare", |
169 "-Wno-unused-variable", | 167 "-Wno-unused-variable", |
170 ] | 168 ] |
171 if (is_mac) { | 169 if (is_mac) { |
172 cflags += [ "-Wno-partial-availability" ] | 170 cflags += [ "-Wno-partial-availability" ] |
173 } | 171 } |
174 } | 172 } |
175 | 173 |
176 source_set("apprtc_signaling") { | 174 rtc_source_set("apprtc_signaling") { |
177 sources = [ | 175 sources = [ |
178 "objc/AppRTCDemo/ARDAppClient+Internal.h", | 176 "objc/AppRTCDemo/ARDAppClient+Internal.h", |
179 "objc/AppRTCDemo/ARDAppClient.h", | 177 "objc/AppRTCDemo/ARDAppClient.h", |
180 "objc/AppRTCDemo/ARDAppClient.m", | 178 "objc/AppRTCDemo/ARDAppClient.m", |
181 "objc/AppRTCDemo/ARDAppEngineClient.h", | 179 "objc/AppRTCDemo/ARDAppEngineClient.h", |
182 "objc/AppRTCDemo/ARDAppEngineClient.m", | 180 "objc/AppRTCDemo/ARDAppEngineClient.m", |
183 "objc/AppRTCDemo/ARDBitrateTracker.h", | 181 "objc/AppRTCDemo/ARDBitrateTracker.h", |
184 "objc/AppRTCDemo/ARDBitrateTracker.m", | 182 "objc/AppRTCDemo/ARDBitrateTracker.m", |
185 "objc/AppRTCDemo/ARDCEODTURNClient.h", | 183 "objc/AppRTCDemo/ARDCEODTURNClient.h", |
186 "objc/AppRTCDemo/ARDCEODTURNClient.m", | 184 "objc/AppRTCDemo/ARDCEODTURNClient.m", |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
286 "objc/AppRTCDemo/ios/resources/mozart.mp3", | 284 "objc/AppRTCDemo/ios/resources/mozart.mp3", |
287 "objc/Icon.png", | 285 "objc/Icon.png", |
288 ] | 286 ] |
289 outputs = [ | 287 outputs = [ |
290 "{{bundle_resources_dir}}/{{source_file_part}}", | 288 "{{bundle_resources_dir}}/{{source_file_part}}", |
291 ] | 289 ] |
292 } | 290 } |
293 } | 291 } |
294 | 292 |
295 if (is_mac) { | 293 if (is_mac) { |
296 source_set("AppRTCDemo_app") { | 294 rtc_source_set("AppRTCDemo_app") { |
297 sources = [ | 295 sources = [ |
298 "objc/AppRTCDemo/mac/APPRTCAppDelegate.h", | 296 "objc/AppRTCDemo/mac/APPRTCAppDelegate.h", |
299 "objc/AppRTCDemo/mac/APPRTCAppDelegate.m", | 297 "objc/AppRTCDemo/mac/APPRTCAppDelegate.m", |
300 "objc/AppRTCDemo/mac/APPRTCViewController.h", | 298 "objc/AppRTCDemo/mac/APPRTCViewController.h", |
301 "objc/AppRTCDemo/mac/APPRTCViewController.m", | 299 "objc/AppRTCDemo/mac/APPRTCViewController.m", |
302 ] | 300 ] |
303 configs += [ | 301 configs += [ |
304 "..:common_config", | 302 "..:common_config", |
305 "..:common_objc", | 303 "..:common_objc", |
306 "//build/config/compiler:enable_arc", | 304 "//build/config/compiler:enable_arc", |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
349 ] | 347 ] |
350 | 348 |
351 # Enabled for cflags_objc in build/config/compiler/BUILD.gn. | 349 # Enabled for cflags_objc in build/config/compiler/BUILD.gn. |
352 cflags_objc = [ "-Wno-objc-missing-property-synthesis" ] | 350 cflags_objc = [ "-Wno-objc-missing-property-synthesis" ] |
353 | 351 |
354 if (is_mac) { | 352 if (is_mac) { |
355 cflags += [ "-Wno-partial-availability" ] | 353 cflags += [ "-Wno-partial-availability" ] |
356 } | 354 } |
357 } | 355 } |
358 | 356 |
359 source_set("socketrocket") { | 357 rtc_source_set("socketrocket") { |
360 sources = [ | 358 sources = [ |
361 "objc/AppRTCDemo/third_party/SocketRocket/SRWebSocket.h", | 359 "objc/AppRTCDemo/third_party/SocketRocket/SRWebSocket.h", |
362 "objc/AppRTCDemo/third_party/SocketRocket/SRWebSocket.m", | 360 "objc/AppRTCDemo/third_party/SocketRocket/SRWebSocket.m", |
363 ] | 361 ] |
364 configs += [ | 362 configs += [ |
365 "..:common_config", | 363 "..:common_config", |
366 "//build/config/compiler:enable_arc", | 364 "//build/config/compiler:enable_arc", |
367 ":socketrocket_warning_config", | 365 ":socketrocket_warning_config", |
368 ] | 366 ] |
369 public_configs = [ | 367 public_configs = [ |
(...skipping 29 matching lines...) Expand all Loading... |
399 "-Wno-format", | 397 "-Wno-format", |
400 | 398 |
401 # See https://bugs.chromium.org/p/webrtc/issues/detail?id=6271 | 399 # See https://bugs.chromium.org/p/webrtc/issues/detail?id=6271 |
402 # for -Wno-reorder and -Wno-sign-compare | 400 # for -Wno-reorder and -Wno-sign-compare |
403 "-Wno-reorder", | 401 "-Wno-reorder", |
404 "-Wno-sign-compare", | 402 "-Wno-sign-compare", |
405 ] | 403 ] |
406 } | 404 } |
407 } | 405 } |
408 | 406 |
409 executable("peerconnection_client") { | 407 rtc_executable("peerconnection_client") { |
410 sources = [ | 408 sources = [ |
411 "peerconnection/client/conductor.cc", | 409 "peerconnection/client/conductor.cc", |
412 "peerconnection/client/conductor.h", | 410 "peerconnection/client/conductor.h", |
413 "peerconnection/client/defaults.cc", | 411 "peerconnection/client/defaults.cc", |
414 "peerconnection/client/defaults.h", | 412 "peerconnection/client/defaults.h", |
415 "peerconnection/client/peer_connection_client.cc", | 413 "peerconnection/client/peer_connection_client.cc", |
416 "peerconnection/client/peer_connection_client.h", | 414 "peerconnection/client/peer_connection_client.h", |
417 ] | 415 ] |
418 if (is_clang) { | 416 if (is_clang) { |
419 # Suppress warnings from the Chromium Clang plugin. | 417 # Suppress warnings from the Chromium Clang plugin. |
420 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. | 418 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
421 configs -= [ "//build/config/clang:find_bad_constructs" ] | 419 configs_suppressions += [ "//build/config/clang:find_bad_constructs" ] |
422 } | 420 } |
423 if (is_win) { | 421 if (is_win) { |
424 sources += [ | 422 sources += [ |
425 "peerconnection/client/flagdefs.h", | 423 "peerconnection/client/flagdefs.h", |
426 "peerconnection/client/main.cc", | 424 "peerconnection/client/main.cc", |
427 "peerconnection/client/main_wnd.cc", | 425 "peerconnection/client/main_wnd.cc", |
428 "peerconnection/client/main_wnd.h", | 426 "peerconnection/client/main_wnd.h", |
429 ] | 427 ] |
430 cflags = [ "/wd4245" ] | 428 cflags = [ "/wd4245" ] |
431 configs += [ "//build/config/win:windowed" ] | 429 configs += [ "//build/config/win:windowed" ] |
(...skipping 17 matching lines...) Expand all Loading... |
449 "//third_party/libyuv", | 447 "//third_party/libyuv", |
450 "//webrtc/api:libjingle_peerconnection", | 448 "//webrtc/api:libjingle_peerconnection", |
451 "//webrtc/system_wrappers:field_trial_default", | 449 "//webrtc/system_wrappers:field_trial_default", |
452 "//webrtc/system_wrappers:metrics_default", | 450 "//webrtc/system_wrappers:metrics_default", |
453 ] | 451 ] |
454 configs += [ ":peerconnection_client_warnings_config" ] | 452 configs += [ ":peerconnection_client_warnings_config" ] |
455 if (rtc_build_json) { | 453 if (rtc_build_json) { |
456 deps += [ "//third_party/jsoncpp" ] | 454 deps += [ "//third_party/jsoncpp" ] |
457 } | 455 } |
458 } | 456 } |
459 executable("peerconnection_server") { | 457 rtc_executable("peerconnection_server") { |
460 sources = [ | 458 sources = [ |
461 "peerconnection/server/data_socket.cc", | 459 "peerconnection/server/data_socket.cc", |
462 "peerconnection/server/data_socket.h", | 460 "peerconnection/server/data_socket.h", |
463 "peerconnection/server/main.cc", | 461 "peerconnection/server/main.cc", |
464 "peerconnection/server/peer_channel.cc", | 462 "peerconnection/server/peer_channel.cc", |
465 "peerconnection/server/peer_channel.h", | 463 "peerconnection/server/peer_channel.h", |
466 "peerconnection/server/utils.cc", | 464 "peerconnection/server/utils.cc", |
467 "peerconnection/server/utils.h", | 465 "peerconnection/server/utils.h", |
468 ] | 466 ] |
469 deps = [ | 467 deps = [ |
470 "//build/config/sanitizers:deps", | 468 "//build/config/sanitizers:deps", |
471 "//webrtc:webrtc_common", | 469 "//webrtc:webrtc_common", |
472 "//webrtc/base:rtc_base_approved", | 470 "//webrtc/base:rtc_base_approved", |
473 "//webrtc/tools:command_line_parser", | 471 "//webrtc/tools:command_line_parser", |
474 ] | 472 ] |
475 if (is_clang) { | 473 if (is_clang) { |
476 # Suppress warnings from the Chromium Clang plugin. | 474 # Suppress warnings from the Chromium Clang plugin. |
477 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. | 475 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
478 configs -= [ "//build/config/clang:find_bad_constructs" ] | 476 configs_suppressions += [ "//build/config/clang:find_bad_constructs" ] |
479 } | 477 } |
480 } | 478 } |
481 executable("relayserver") { | 479 rtc_executable("relayserver") { |
482 sources = [ | 480 sources = [ |
483 "relayserver/relayserver_main.cc", | 481 "relayserver/relayserver_main.cc", |
484 ] | 482 ] |
485 deps = [ | 483 deps = [ |
486 "//build/config/sanitizers:deps", | 484 "//build/config/sanitizers:deps", |
487 "//webrtc/base:rtc_base_approved", | 485 "//webrtc/base:rtc_base_approved", |
488 "//webrtc/pc:rtc_pc", | 486 "//webrtc/pc:rtc_pc", |
489 "//webrtc/system_wrappers:field_trial_default", | 487 "//webrtc/system_wrappers:field_trial_default", |
490 "//webrtc/system_wrappers:metrics_default", | 488 "//webrtc/system_wrappers:metrics_default", |
491 ] | 489 ] |
492 if (is_clang) { | 490 if (is_clang) { |
493 # Suppress warnings from the Chromium Clang plugin. | 491 # Suppress warnings from the Chromium Clang plugin. |
494 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. | 492 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
495 configs -= [ "//build/config/clang:find_bad_constructs" ] | 493 configs_suppressions += [ "//build/config/clang:find_bad_constructs" ] |
496 } | 494 } |
497 } | 495 } |
498 executable("turnserver") { | 496 rtc_executable("turnserver") { |
499 sources = [ | 497 sources = [ |
500 "turnserver/turnserver_main.cc", | 498 "turnserver/turnserver_main.cc", |
501 ] | 499 ] |
502 deps = [ | 500 deps = [ |
503 "//build/config/sanitizers:deps", | 501 "//build/config/sanitizers:deps", |
504 "//webrtc/base:rtc_base_approved", | 502 "//webrtc/base:rtc_base_approved", |
505 "//webrtc/pc:rtc_pc", | 503 "//webrtc/pc:rtc_pc", |
506 "//webrtc/system_wrappers:field_trial_default", | 504 "//webrtc/system_wrappers:field_trial_default", |
507 "//webrtc/system_wrappers:metrics_default", | 505 "//webrtc/system_wrappers:metrics_default", |
508 ] | 506 ] |
509 if (is_clang) { | 507 if (is_clang) { |
510 # Suppress warnings from the Chromium Clang plugin. | 508 # Suppress warnings from the Chromium Clang plugin. |
511 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. | 509 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
512 configs -= [ "//build/config/clang:find_bad_constructs" ] | 510 configs_suppressions += [ "//build/config/clang:find_bad_constructs" ] |
513 } | 511 } |
514 } | 512 } |
515 executable("stunserver") { | 513 rtc_executable("stunserver") { |
516 sources = [ | 514 sources = [ |
517 "stunserver/stunserver_main.cc", | 515 "stunserver/stunserver_main.cc", |
518 ] | 516 ] |
519 deps = [ | 517 deps = [ |
520 "//build/config/sanitizers:deps", | 518 "//build/config/sanitizers:deps", |
521 "//webrtc/base:rtc_base_approved", | 519 "//webrtc/base:rtc_base_approved", |
522 "//webrtc/pc:rtc_pc", | 520 "//webrtc/pc:rtc_pc", |
523 "//webrtc/system_wrappers:field_trial_default", | 521 "//webrtc/system_wrappers:field_trial_default", |
524 "//webrtc/system_wrappers:metrics_default", | 522 "//webrtc/system_wrappers:metrics_default", |
525 ] | 523 ] |
526 if (is_clang) { | 524 if (is_clang) { |
527 # Suppress warnings from the Chromium Clang plugin. | 525 # Suppress warnings from the Chromium Clang plugin. |
528 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. | 526 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
529 configs -= [ "//build/config/clang:find_bad_constructs" ] | 527 configs_suppressions += [ "//build/config/clang:find_bad_constructs" ] |
530 } | 528 } |
531 } | 529 } |
532 } | 530 } |
OLD | NEW |