Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(73)

Side by Side Diff: webrtc/base/BUILD.gn

Issue 1856323003: Revert of Cleanup webrtc/base/base.gyp (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | webrtc/base/base.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 "event.cc", 125 "event.cc",
126 "event.h", 126 "event.h",
127 "event_tracer.cc", 127 "event_tracer.cc",
128 "event_tracer.h", 128 "event_tracer.h",
129 "exp_filter.cc", 129 "exp_filter.cc",
130 "exp_filter.h", 130 "exp_filter.h",
131 "md5.cc", 131 "md5.cc",
132 "md5.h", 132 "md5.h",
133 "md5digest.cc", 133 "md5digest.cc",
134 "md5digest.h", 134 "md5digest.h",
135 "mod_ops.h",
136 "optional.h", 135 "optional.h",
137 "platform_file.cc", 136 "platform_file.cc",
138 "platform_file.h", 137 "platform_file.h",
139 "platform_thread.cc", 138 "platform_thread.cc",
140 "platform_thread.h", 139 "platform_thread.h",
141 "platform_thread_types.h", 140 "platform_thread_types.h",
142 "random.cc", 141 "random.cc",
143 "random.h", 142 "random.h",
144 "rate_statistics.cc", 143 "rate_statistics.cc",
145 "rate_statistics.h", 144 "rate_statistics.h",
146 "ratetracker.cc",
147 "ratetracker.h",
148 "refcount.h", 145 "refcount.h",
149 "safe_conversions.h", 146 "safe_conversions.h",
150 "safe_conversions_impl.h", 147 "safe_conversions_impl.h",
151 "scoped_ptr.h", 148 "scoped_ptr.h",
152 "scoped_ref_ptr.h", 149 "scoped_ref_ptr.h",
153 "stringencode.cc", 150 "stringencode.cc",
154 "stringencode.h", 151 "stringencode.h",
155 "stringutils.cc", 152 "stringutils.cc",
156 "stringutils.h", 153 "stringutils.h",
157 "swap_queue.h", 154 "swap_queue.h",
(...skipping 22 matching lines...) Expand all
180 "logging.cc", 177 "logging.cc",
181 "logging.h", 178 "logging.h",
182 ] 179 ]
183 } 180 }
184 } 181 }
185 182
186 static_library("rtc_base") { 183 static_library("rtc_base") {
187 cflags = [] 184 cflags = []
188 cflags_cc = [] 185 cflags_cc = []
189 libs = [] 186 libs = []
190 deps = [ 187 deps = []
191 "..:webrtc_common",
192 ]
193 public_deps = [ 188 public_deps = [
194 ":rtc_base_approved", 189 ":rtc_base_approved",
195 ] 190 ]
196 191
197 configs += [ 192 configs += [
198 "..:common_config", 193 "..:common_config",
199 ":openssl_config", 194 ":openssl_config",
200 ":rtc_base_config", 195 ":rtc_base_config",
201 ] 196 ]
202 197
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 "httpclient.h", 250 "httpclient.h",
256 "httpcommon-inl.h", 251 "httpcommon-inl.h",
257 "httpcommon.cc", 252 "httpcommon.cc",
258 "httpcommon.h", 253 "httpcommon.h",
259 "httprequest.cc", 254 "httprequest.cc",
260 "httprequest.h", 255 "httprequest.h",
261 "iosfilesystem.mm", 256 "iosfilesystem.mm",
262 "ipaddress.cc", 257 "ipaddress.cc",
263 "ipaddress.h", 258 "ipaddress.h",
264 "linked_ptr.h", 259 "linked_ptr.h",
260 "mathutils.h",
265 "messagedigest.cc", 261 "messagedigest.cc",
266 "messagedigest.h", 262 "messagedigest.h",
267 "messagehandler.cc", 263 "messagehandler.cc",
268 "messagehandler.h", 264 "messagehandler.h",
269 "messagequeue.cc", 265 "messagequeue.cc",
270 "messagequeue.h", 266 "messagequeue.h",
271 "nethelpers.cc", 267 "nethelpers.cc",
272 "nethelpers.h", 268 "nethelpers.h",
273 "network.cc", 269 "network.cc",
274 "network.h", 270 "network.h",
275 "networkmonitor.cc", 271 "networkmonitor.cc",
276 "networkmonitor.h", 272 "networkmonitor.h",
277 "nullsocketserver.h", 273 "nullsocketserver.h",
278 "openssl.h",
279 "openssladapter.cc",
280 "openssladapter.h",
281 "openssldigest.cc",
282 "openssldigest.h",
283 "opensslidentity.cc",
284 "opensslidentity.h",
285 "opensslstreamadapter.cc",
286 "opensslstreamadapter.h",
287 "pathutils.cc", 274 "pathutils.cc",
288 "pathutils.h", 275 "pathutils.h",
289 "physicalsocketserver.cc", 276 "physicalsocketserver.cc",
290 "physicalsocketserver.h", 277 "physicalsocketserver.h",
291 "proxydetect.cc", 278 "proxydetect.cc",
292 "proxydetect.h", 279 "proxydetect.h",
293 "proxyinfo.cc", 280 "proxyinfo.cc",
294 "proxyinfo.h", 281 "proxyinfo.h",
295 "ratelimiter.cc", 282 "ratelimiter.cc",
296 "ratelimiter.h", 283 "ratelimiter.h",
284 "ratetracker.cc",
285 "ratetracker.h",
297 "rtccertificate.cc", 286 "rtccertificate.cc",
298 "rtccertificate.h", 287 "rtccertificate.h",
288 "scoped_autorelease_pool.h",
289 "scoped_autorelease_pool.mm",
299 "sha1.cc", 290 "sha1.cc",
300 "sha1.h", 291 "sha1.h",
301 "sha1digest.cc", 292 "sha1digest.cc",
302 "sha1digest.h", 293 "sha1digest.h",
303 "sharedexclusivelock.cc", 294 "sharedexclusivelock.cc",
304 "sharedexclusivelock.h", 295 "sharedexclusivelock.h",
305 "signalthread.cc", 296 "signalthread.cc",
306 "signalthread.h", 297 "signalthread.h",
307 "sigslot.cc", 298 "sigslot.cc",
308 "sigslot.h", 299 "sigslot.h",
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 "thread.cc", 332 "thread.cc",
342 "thread.h", 333 "thread.h",
343 "timing.cc", 334 "timing.cc",
344 "timing.h", 335 "timing.h",
345 "urlencode.cc", 336 "urlencode.cc",
346 "urlencode.h", 337 "urlencode.h",
347 "worker.cc", 338 "worker.cc",
348 "worker.h", 339 "worker.h",
349 ] 340 ]
350 341
342 if (is_posix) {
343 sources += [
344 "ifaddrs-android.h",
345 "ifaddrs_converter.cc",
346 "unixfilesystem.cc",
347 "unixfilesystem.h",
348 ]
349 }
350
351 if (build_with_chromium) { 351 if (build_with_chromium) {
352 deps += [ "..:webrtc_common" ]
353
354 if (is_mac) {
355 sources += [ "macifaddrs_converter.cc" ]
356 }
357
352 if (is_win) { 358 if (is_win) {
353 sources += [ "../../webrtc_overrides/webrtc/base/win32socketinit.cc" ] 359 sources += [ "../../webrtc_overrides/webrtc/base/win32socketinit.cc" ]
354 } 360 }
355 361
356 include_dirs = [ 362 include_dirs = [
357 "../../webrtc_overrides", 363 "../../webrtc_overrides",
358 "../../boringssl/src/include", 364 "../../boringssl/src/include",
359 ] 365 ]
360 366
361 public_configs += [ ":rtc_base_chromium_config" ] 367 public_configs += [ ":rtc_base_chromium_config" ]
362 } else { 368 } else {
363 sources += [ 369 sources += [
364 "bandwidthsmoother.cc", 370 "bandwidthsmoother.cc",
365 "bandwidthsmoother.h", 371 "bandwidthsmoother.h",
366 "bind.h", 372 "bind.h",
367 "bind.h.pump", 373 "bind.h.pump",
368 "callback.h", 374 "callback.h",
369 "callback.h.pump", 375 "callback.h.pump",
370 "fileutils_mock.h", 376 "fileutils_mock.h",
377 "genericslot.h",
378 "genericslot.h.pump",
371 "httpserver.cc", 379 "httpserver.cc",
372 "httpserver.h", 380 "httpserver.h",
373 "json.cc", 381 "json.cc",
374 "json.h", 382 "json.h",
375 "logsinks.cc", 383 "logsinks.cc",
376 "logsinks.h", 384 "logsinks.h",
377 "mathutils.h", 385 "mathutils.h",
378 "multipart.cc", 386 "multipart.cc",
379 "multipart.h", 387 "multipart.h",
380 "natserver.cc", 388 "natserver.cc",
381 "natserver.h", 389 "natserver.h",
382 "natsocketfactory.cc", 390 "natsocketfactory.cc",
383 "natsocketfactory.h", 391 "natsocketfactory.h",
384 "nattypes.cc", 392 "nattypes.cc",
385 "nattypes.h", 393 "nattypes.h",
386 "optionsfile.cc", 394 "optionsfile.cc",
387 "optionsfile.h", 395 "optionsfile.h",
388 "profiler.cc", 396 "profiler.cc",
389 "profiler.h", 397 "profiler.h",
390 "proxyserver.cc", 398 "proxyserver.cc",
391 "proxyserver.h", 399 "proxyserver.h",
392 "referencecountedsingletonfactory.h", 400 "referencecountedsingletonfactory.h",
393 "rollingaccumulator.h", 401 "rollingaccumulator.h",
394 "scopedptrcollection.h", 402 "scopedptrcollection.h",
395 "sec_buffer.h", 403 "sec_buffer.h",
396 "sslconfig.h", 404 "sslconfig.h",
397 "sslroots.h", 405 "sslroots.h",
398 "testbase64.h",
399 "testclient.cc", 406 "testclient.cc",
400 "testclient.h", 407 "testclient.h",
401 "transformadapter.cc", 408 "transformadapter.cc",
402 "transformadapter.h", 409 "transformadapter.h",
403 "versionparsing.cc", 410 "versionparsing.cc",
404 "versionparsing.h", 411 "versionparsing.h",
405 "virtualsocketserver.cc", 412 "virtualsocketserver.cc",
406 "virtualsocketserver.h", 413 "virtualsocketserver.h",
407 "window.h", 414 "window.h",
408 "windowpicker.h", 415 "windowpicker.h",
409 "windowpickerfactory.h", 416 "windowpickerfactory.h",
410 ] 417 ]
411 418
419 deps += [ "..:webrtc_common" ]
420
421 if (is_posix) {
422 sources += [
423 "latebindingsymboltable.cc",
424 "latebindingsymboltable.cc.def",
425 "latebindingsymboltable.h",
426 "latebindingsymboltable.h.def",
427 "posix.cc",
428 "posix.h",
429 ]
430 }
431
412 if (is_linux) { 432 if (is_linux) {
413 sources += [ 433 sources += [
414 "dbus.cc", 434 "dbus.cc",
415 "dbus.h", 435 "dbus.h",
416 "libdbusglibsymboltable.cc", 436 "libdbusglibsymboltable.cc",
417 "libdbusglibsymboltable.h", 437 "libdbusglibsymboltable.h",
418 "linuxfdwalk.c", 438 "linuxfdwalk.c",
419 "linuxfdwalk.h", 439 "linuxfdwalk.h",
420 ] 440 ]
421 } 441 }
422 442
423 if (is_posix) {
424 sources += [
425 "latebindingsymboltable.cc",
426 "latebindingsymboltable.cc.def",
427 "latebindingsymboltable.h",
428 "latebindingsymboltable.h.def",
429 "posix.cc",
430 "posix.h",
431 ]
432 }
433
434 if (is_mac) { 443 if (is_mac) {
435 sources += [ 444 sources += [
436 "macasyncsocket.cc", 445 "macasyncsocket.cc",
437 "macasyncsocket.h", 446 "macasyncsocket.h",
438 "maccocoasocketserver.h", 447 "maccocoasocketserver.h",
439 "maccocoasocketserver.mm", 448 "maccocoasocketserver.mm",
440 "macsocketserver.cc", 449 "macsocketserver.cc",
441 "macsocketserver.h", 450 "macsocketserver.h",
442 "macwindowpicker.cc", 451 "macwindowpicker.cc",
443 "macwindowpicker.h", 452 "macwindowpicker.h",
(...skipping 25 matching lines...) Expand all
469 478
470 # TODO(henrike): issue 3307, make rtc_base build with the Chromium default 479 # TODO(henrike): issue 3307, make rtc_base build with the Chromium default
471 # compiler settings. 480 # compiler settings.
472 configs -= [ "//build/config/compiler:chromium_code" ] 481 configs -= [ "//build/config/compiler:chromium_code" ]
473 configs += [ "//build/config/compiler:no_chromium_code" ] 482 configs += [ "//build/config/compiler:no_chromium_code" ]
474 if (!is_win) { 483 if (!is_win) {
475 cflags += [ "-Wno-uninitialized" ] 484 cflags += [ "-Wno-uninitialized" ]
476 cflags_cc += [ "-Wno-non-virtual-dtor" ] 485 cflags_cc += [ "-Wno-non-virtual-dtor" ]
477 } 486 }
478 487
479 if (rtc_build_ssl) { 488 if (use_openssl) {
480 deps += [ "//third_party/boringssl" ] 489 if (rtc_build_ssl) {
481 } else { 490 deps += [ "//third_party/boringssl" ]
482 configs += [ "external_ssl_library" ] 491 } else {
492 configs += [ "external_ssl_library" ]
493 }
494 sources += [
495 "openssl.h",
496 "openssladapter.cc",
497 "openssladapter.h",
498 "openssldigest.cc",
499 "openssldigest.h",
500 "opensslidentity.cc",
501 "opensslidentity.h",
502 "opensslstreamadapter.cc",
503 "opensslstreamadapter.h",
504 ]
483 } 505 }
484 506
485 if (is_android) { 507 if (is_android) {
486 sources += [ 508 sources += [
487 "ifaddrs-android.cc", 509 "ifaddrs-android.cc",
488 "ifaddrs-android.h", 510 "ifaddrs-android.h",
489 ] 511 ]
490 512
491 libs += [ 513 libs += [
492 "log", 514 "log",
493 "GLESv2", 515 "GLESv2",
494 ] 516 ]
495 } 517 }
496 518
497 if (is_ios || is_mac) { 519 if (is_ios) {
520 all_dependent_configs = [ ":ios_config" ]
521
498 sources += [ 522 sources += [
499 "maccocoathreadhelper.h", 523 "maccocoathreadhelper.h",
500 "maccocoathreadhelper.mm", 524 "maccocoathreadhelper.mm",
501 "macconversion.cc", 525 "macconversion.cc",
502 "macconversion.h", 526 "macconversion.h",
503 "macifaddrs_converter.cc",
504 "scoped_autorelease_pool.h",
505 "scoped_autorelease_pool.mm",
506 ] 527 ]
507 } 528 }
508 529
509 if (use_x11) { 530 if (use_x11) {
510 sources += [ 531 sources += [
511 "x11windowpicker.cc", 532 "x11windowpicker.cc",
512 "x11windowpicker.h", 533 "x11windowpicker.h",
513 ] 534 ]
514 libs += [ 535 libs += [
515 "dl", 536 "dl",
516 "rt", 537 "rt",
517 "Xext", 538 "Xext",
518 "X11", 539 "X11",
519 "Xcomposite", 540 "Xcomposite",
520 "Xrender", 541 "Xrender",
521 ] 542 ]
522 } 543 }
523 544
524 if (is_linux) { 545 if (is_linux) {
525 libs += [ 546 libs += [
526 "dl", 547 "dl",
527 "rt", 548 "rt",
528 ] 549 ]
529 } 550 }
530 551
531 if (is_mac) { 552 if (is_mac) {
532 sources += [ 553 sources += [
554 "maccocoathreadhelper.h",
555 "maccocoathreadhelper.mm",
556 "macconversion.cc",
557 "macconversion.h",
533 "macutils.cc", 558 "macutils.cc",
534 "macutils.h", 559 "macutils.h",
535 ] 560 ]
536 561
537 all_dependent_configs = [ ":mac_config" ] 562 all_dependent_configs = [ ":mac_config" ]
538 563
539 if (current_cpu == "x86") { 564 if (current_cpu == "x86") {
540 all_dependent_configs += [ ":mac_x86_config" ] 565 all_dependent_configs += [ ":mac_x86_config" ]
541 } 566 }
542 } 567 }
(...skipping 23 matching lines...) Expand all
566 591
567 cflags += [ 592 cflags += [
568 # Suppress warnings about WIN32_LEAN_AND_MEAN. 593 # Suppress warnings about WIN32_LEAN_AND_MEAN.
569 "/wd4005", 594 "/wd4005",
570 "/wd4703", 595 "/wd4703",
571 ] 596 ]
572 597
573 defines += [ "_CRT_NONSTDC_NO_DEPRECATE" ] 598 defines += [ "_CRT_NONSTDC_NO_DEPRECATE" ]
574 } 599 }
575 600
576 if (is_posix) { 601 if (is_posix && is_debug) {
577 sources += [ 602 # The Chromium build/common.gypi defines this for all posix
578 "ifaddrs_converter.cc", 603 # _except_ for ios & mac. We want it there as well, e.g.
579 "ifaddrs_converter.h", 604 # because ASSERT and friends trigger off of it.
580 "unixfilesystem.cc", 605 defines += [ "_DEBUG" ]
581 "unixfilesystem.h",
582 ]
583 if (is_debug) {
584 # The Chromium build/common.gypi defines this for all posix
585 # _except_ for ios & mac. We want it there as well, e.g.
586 # because ASSERT and friends trigger off of it.
587 defines += [ "_DEBUG" ]
588 }
589 } 606 }
590 607
591 if (is_ios || (is_mac && current_cpu != "x86")) { 608 if (is_ios || (is_mac && current_cpu != "x86")) {
592 defines += [ "CARBON_DEPRECATED=YES" ] 609 defines += [ "CARBON_DEPRECATED=YES" ]
593 } 610 }
594 611
595 if (is_linux || is_android) { 612 if (is_linux || is_android) {
596 sources += [ 613 sources += [
597 "linux.cc", 614 "linux.cc",
598 "linux.h", 615 "linux.h",
599 ] 616 ]
600 } 617 }
601 618
602 if (is_nacl) { 619 if (is_nacl) {
603 deps += [ "//native_client_sdk/src/libraries/nacl_io" ] 620 deps += [ "//native_client_sdk/src/libraries/nacl_io" ]
604 defines += [ "timezone=_timezone" ] 621 defines += [ "timezone=_timezone" ]
605 sources -= [ "ifaddrs_converter.cc" ] 622 sources -= [ "ifaddrs_converter.cc" ]
606 } 623 }
607 } 624 }
608 625
609 if (is_ios) { 626 if (is_ios) {
610 all_dependent_configs = [ ":ios_config" ]
611
612 source_set("rtc_base_objc") { 627 source_set("rtc_base_objc") {
613 deps = [ 628 deps = [
614 ":rtc_base", 629 ":rtc_base",
615 ] 630 ]
616 cflags = [ "-fobjc-arc" ] 631 cflags = [ "-fobjc-arc" ]
617 configs += [ "..:common_config" ] 632 configs += [ "..:common_config" ]
618 public_configs = [ "..:common_inherited_config" ] 633 public_configs = [ "..:common_inherited_config" ]
619 634
620 sources = [ 635 sources = [
621 "objc/NSString+StdString.h", 636 "objc/NSString+StdString.h",
(...skipping 17 matching lines...) Expand all
639 "objc/RTCUIApplication.mm", 654 "objc/RTCUIApplication.mm",
640 ] 655 ]
641 } 656 }
642 } 657 }
643 658
644 source_set("gtest_prod") { 659 source_set("gtest_prod") {
645 sources = [ 660 sources = [
646 "gtest_prod_util.h", 661 "gtest_prod_util.h",
647 ] 662 ]
648 } 663 }
OLDNEW
« no previous file with comments | « no previous file | webrtc/base/base.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698