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

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

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