| 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 350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 361 if (is_win && is_clang) { | 361 if (is_win && is_clang) { |
| 362 cflags = [ | 362 cflags = [ |
| 363 # Disable warnings failing when compiling with Clang on Windows. | 363 # Disable warnings failing when compiling with Clang on Windows. |
| 364 # https://bugs.chromium.org/p/webrtc/issues/detail?id=5366 | 364 # https://bugs.chromium.org/p/webrtc/issues/detail?id=5366 |
| 365 "-Wno-sign-compare", | 365 "-Wno-sign-compare", |
| 366 "-Wno-missing-braces", | 366 "-Wno-missing-braces", |
| 367 ] | 367 ] |
| 368 } | 368 } |
| 369 } | 369 } |
| 370 | 370 |
| 371 rtc_source_set("rtc_json") { |
| 372 defines = [] |
| 373 sources = [ |
| 374 "json.cc", |
| 375 "json.h", |
| 376 ] |
| 377 if (rtc_build_json) { |
| 378 public_deps = [ |
| 379 "//third_party/jsoncpp", |
| 380 ] |
| 381 } else { |
| 382 include_dirs = [ "$rtc_jsoncpp_root" ] |
| 383 |
| 384 # When defined changes the include path for json.h to where it is |
| 385 # expected to be when building json outside of the standalone build. |
| 386 defines += [ "WEBRTC_EXTERNAL_JSON" ] |
| 387 } |
| 388 } |
| 389 |
| 371 rtc_static_library("rtc_base") { | 390 rtc_static_library("rtc_base") { |
| 372 cflags = [] | 391 cflags = [] |
| 373 cflags_cc = [] | 392 cflags_cc = [] |
| 374 libs = [] | 393 libs = [] |
| 375 defines = [] | 394 defines = [] |
| 376 deps = [ | 395 deps = [ |
| 377 "..:webrtc_common", | 396 "..:webrtc_common", |
| 378 ] | 397 ] |
| 379 public_deps = [ | 398 public_deps = [ |
| 380 ":rtc_base_approved", | 399 ":rtc_base_approved", |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 496 if (build_with_chromium) { | 515 if (build_with_chromium) { |
| 497 if (is_win) { | 516 if (is_win) { |
| 498 sources += [ "../../webrtc_overrides/webrtc/base/win32socketinit.cc" ] | 517 sources += [ "../../webrtc_overrides/webrtc/base/win32socketinit.cc" ] |
| 499 } | 518 } |
| 500 include_dirs = [ "../../boringssl/src/include" ] | 519 include_dirs = [ "../../boringssl/src/include" ] |
| 501 public_configs += [ ":rtc_base_chromium_config" ] | 520 public_configs += [ ":rtc_base_chromium_config" ] |
| 502 } else { | 521 } else { |
| 503 configs += [ ":rtc_base_warnings_config" ] | 522 configs += [ ":rtc_base_warnings_config" ] |
| 504 sources += [ | 523 sources += [ |
| 505 "callback.h", | 524 "callback.h", |
| 506 "json.cc", | |
| 507 "json.h", | |
| 508 "logsinks.cc", | 525 "logsinks.cc", |
| 509 "logsinks.h", | 526 "logsinks.h", |
| 510 "mathutils.h", | 527 "mathutils.h", |
| 511 "optionsfile.cc", | 528 "optionsfile.cc", |
| 512 "optionsfile.h", | 529 "optionsfile.h", |
| 513 "rollingaccumulator.h", | 530 "rollingaccumulator.h", |
| 514 "sslroots.h", | 531 "sslroots.h", |
| 515 "testbase64.h", | 532 "testbase64.h", |
| 516 "testclient.cc", | 533 "testclient.cc", |
| 517 "testclient.h", | 534 "testclient.h", |
| 518 "transformadapter.cc", | 535 "transformadapter.cc", |
| 519 "transformadapter.h", | 536 "transformadapter.h", |
| 520 "virtualsocketserver.cc", | 537 "virtualsocketserver.cc", |
| 521 "virtualsocketserver.h", | 538 "virtualsocketserver.h", |
| 522 "window.h", | 539 "window.h", |
| 523 ] | 540 ] |
| 524 | 541 |
| 525 if (is_win) { | 542 if (is_win) { |
| 526 sources += [ | 543 sources += [ |
| 527 "win32socketinit.cc", | 544 "win32socketinit.cc", |
| 528 "win32socketinit.h", | 545 "win32socketinit.h", |
| 529 "win32socketserver.cc", | 546 "win32socketserver.cc", |
| 530 "win32socketserver.h", | 547 "win32socketserver.h", |
| 531 ] | 548 ] |
| 532 } | 549 } |
| 533 | |
| 534 if (rtc_build_json) { | |
| 535 deps += [ "//third_party/jsoncpp" ] | |
| 536 } else { | |
| 537 include_dirs = [ "$rtc_jsoncpp_root" ] | |
| 538 | |
| 539 # When defined changes the include path for json.h to where it is | |
| 540 # expected to be when building json outside of the standalone build. | |
| 541 defines += [ "WEBRTC_EXTERNAL_JSON" ] | |
| 542 } | |
| 543 } # !build_with_chromium | 550 } # !build_with_chromium |
| 544 | 551 |
| 545 if (rtc_build_ssl) { | 552 if (rtc_build_ssl) { |
| 546 deps += [ "//third_party/boringssl" ] | 553 deps += [ "//third_party/boringssl" ] |
| 547 } else { | 554 } else { |
| 548 configs += [ ":external_ssl_library" ] | 555 configs += [ ":external_ssl_library" ] |
| 549 } | 556 } |
| 550 | 557 |
| 551 if (is_android) { | 558 if (is_android) { |
| 552 sources += [ | 559 sources += [ |
| (...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 933 | 940 |
| 934 if (is_android) { | 941 if (is_android) { |
| 935 android_library("base_java") { | 942 android_library("base_java") { |
| 936 java_files = [ | 943 java_files = [ |
| 937 "java/src/org/webrtc/Logging.java", | 944 "java/src/org/webrtc/Logging.java", |
| 938 "java/src/org/webrtc/Size.java", | 945 "java/src/org/webrtc/Size.java", |
| 939 "java/src/org/webrtc/ThreadUtils.java", | 946 "java/src/org/webrtc/ThreadUtils.java", |
| 940 ] | 947 ] |
| 941 } | 948 } |
| 942 } | 949 } |
| OLD | NEW |