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

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

Issue 1859803002: Cleanup webrtc/base/base.gyp (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Removed use_openssl condition for GYP and GN 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", 367 "bind.h.pump",
374 "callback.h", 368 "callback.h",
375 "callback.h.pump", 369 "callback.h.pump",
376 "fileutils_mock.h", 370 "fileutils_mock.h",
377 "genericslot.h",
378 "genericslot.h.pump",
379 "httpserver.cc", 371 "httpserver.cc",
380 "httpserver.h", 372 "httpserver.h",
381 "json.cc", 373 "json.cc",
382 "json.h", 374 "json.h",
383 "logsinks.cc", 375 "logsinks.cc",
384 "logsinks.h", 376 "logsinks.h",
385 "mathutils.h", 377 "mathutils.h",
386 "multipart.cc", 378 "multipart.cc",
387 "multipart.h", 379 "multipart.h",
388 "natserver.cc", 380 "natserver.cc",
389 "natserver.h", 381 "natserver.h",
390 "natsocketfactory.cc", 382 "natsocketfactory.cc",
391 "natsocketfactory.h", 383 "natsocketfactory.h",
392 "nattypes.cc", 384 "nattypes.cc",
393 "nattypes.h", 385 "nattypes.h",
394 "optionsfile.cc", 386 "optionsfile.cc",
395 "optionsfile.h", 387 "optionsfile.h",
396 "profiler.cc", 388 "profiler.cc",
397 "profiler.h", 389 "profiler.h",
398 "proxyserver.cc", 390 "proxyserver.cc",
399 "proxyserver.h", 391 "proxyserver.h",
400 "referencecountedsingletonfactory.h", 392 "referencecountedsingletonfactory.h",
401 "rollingaccumulator.h", 393 "rollingaccumulator.h",
402 "scopedptrcollection.h", 394 "scopedptrcollection.h",
403 "sec_buffer.h", 395 "sec_buffer.h",
404 "sslconfig.h", 396 "sslconfig.h",
405 "sslroots.h", 397 "sslroots.h",
398 "testbase64.h",
406 "testclient.cc", 399 "testclient.cc",
407 "testclient.h", 400 "testclient.h",
408 "transformadapter.cc", 401 "transformadapter.cc",
409 "transformadapter.h", 402 "transformadapter.h",
410 "versionparsing.cc", 403 "versionparsing.cc",
411 "versionparsing.h", 404 "versionparsing.h",
412 "virtualsocketserver.cc", 405 "virtualsocketserver.cc",
413 "virtualsocketserver.h", 406 "virtualsocketserver.h",
414 "window.h", 407 "window.h",
415 "windowpicker.h", 408 "windowpicker.h",
416 "windowpickerfactory.h", 409 "windowpickerfactory.h",
417 ] 410 ]
418 411
419 deps += [ "..:webrtc_common" ] 412 if (is_linux) {
413 sources += [
414 "dbus.cc",
415 "dbus.h",
416 "libdbusglibsymboltable.cc",
417 "libdbusglibsymboltable.h",
418 "linuxfdwalk.c",
419 "linuxfdwalk.h",
420 ]
421 }
420 422
421 if (is_posix) { 423 if (is_posix) {
422 sources += [ 424 sources += [
423 "latebindingsymboltable.cc", 425 "latebindingsymboltable.cc",
424 "latebindingsymboltable.cc.def", 426 "latebindingsymboltable.cc.def",
425 "latebindingsymboltable.h", 427 "latebindingsymboltable.h",
426 "latebindingsymboltable.h.def", 428 "latebindingsymboltable.h.def",
427 "posix.cc", 429 "posix.cc",
428 "posix.h", 430 "posix.h",
429 ] 431 ]
430 } 432 }
431 433
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) { 434 if (is_mac) {
444 sources += [ 435 sources += [
445 "macasyncsocket.cc", 436 "macasyncsocket.cc",
446 "macasyncsocket.h", 437 "macasyncsocket.h",
447 "maccocoasocketserver.h", 438 "maccocoasocketserver.h",
448 "maccocoasocketserver.mm", 439 "maccocoasocketserver.mm",
449 "macsocketserver.cc", 440 "macsocketserver.cc",
450 "macsocketserver.h", 441 "macsocketserver.h",
451 "macwindowpicker.cc", 442 "macwindowpicker.cc",
452 "macwindowpicker.h", 443 "macwindowpicker.h",
(...skipping 25 matching lines...) Expand all
478 469
479 # TODO(henrike): issue 3307, make rtc_base build with the Chromium default 470 # TODO(henrike): issue 3307, make rtc_base build with the Chromium default
480 # compiler settings. 471 # compiler settings.
481 configs -= [ "//build/config/compiler:chromium_code" ] 472 configs -= [ "//build/config/compiler:chromium_code" ]
482 configs += [ "//build/config/compiler:no_chromium_code" ] 473 configs += [ "//build/config/compiler:no_chromium_code" ]
483 if (!is_win) { 474 if (!is_win) {
484 cflags += [ "-Wno-uninitialized" ] 475 cflags += [ "-Wno-uninitialized" ]
485 cflags_cc += [ "-Wno-non-virtual-dtor" ] 476 cflags_cc += [ "-Wno-non-virtual-dtor" ]
486 } 477 }
487 478
488 if (use_openssl) { 479 if (rtc_build_ssl) {
489 if (rtc_build_ssl) { 480 deps += [ "//third_party/boringssl" ]
490 deps += [ "//third_party/boringssl" ] 481 } else {
491 } else { 482 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 } 483 }
506 484
507 if (is_android) { 485 if (is_android) {
508 sources += [ 486 sources += [
509 "ifaddrs-android.cc", 487 "ifaddrs-android.cc",
510 "ifaddrs-android.h", 488 "ifaddrs-android.h",
511 ] 489 ]
512 490
513 libs += [ 491 libs += [
514 "log", 492 "log",
515 "GLESv2", 493 "GLESv2",
516 ] 494 ]
517 } 495 }
518 496
519 if (is_ios) { 497 if (is_ios || is_mac) {
520 all_dependent_configs = [ ":ios_config" ]
521
522 sources += [ 498 sources += [
523 "maccocoathreadhelper.h", 499 "maccocoathreadhelper.h",
524 "maccocoathreadhelper.mm", 500 "maccocoathreadhelper.mm",
525 "macconversion.cc", 501 "macconversion.cc",
526 "macconversion.h", 502 "macconversion.h",
503 "macifaddrs_converter.cc",
504 "scoped_autorelease_pool.h",
505 "scoped_autorelease_pool.mm",
527 ] 506 ]
528 } 507 }
529 508
530 if (use_x11) { 509 if (use_x11) {
531 sources += [ 510 sources += [
532 "x11windowpicker.cc", 511 "x11windowpicker.cc",
533 "x11windowpicker.h", 512 "x11windowpicker.h",
534 ] 513 ]
535 libs += [ 514 libs += [
536 "dl", 515 "dl",
537 "rt", 516 "rt",
538 "Xext", 517 "Xext",
539 "X11", 518 "X11",
540 "Xcomposite", 519 "Xcomposite",
541 "Xrender", 520 "Xrender",
542 ] 521 ]
543 } 522 }
544 523
545 if (is_linux) { 524 if (is_linux) {
546 libs += [ 525 libs += [
547 "dl", 526 "dl",
548 "rt", 527 "rt",
549 ] 528 ]
550 } 529 }
551 530
552 if (is_mac) { 531 if (is_mac) {
553 sources += [ 532 sources += [
554 "maccocoathreadhelper.h",
555 "maccocoathreadhelper.mm",
556 "macconversion.cc",
557 "macconversion.h",
558 "macutils.cc", 533 "macutils.cc",
559 "macutils.h", 534 "macutils.h",
560 ] 535 ]
561 536
562 all_dependent_configs = [ ":mac_config" ] 537 all_dependent_configs = [ ":mac_config" ]
563 538
564 if (current_cpu == "x86") { 539 if (current_cpu == "x86") {
565 all_dependent_configs += [ ":mac_x86_config" ] 540 all_dependent_configs += [ ":mac_x86_config" ]
566 } 541 }
567 } 542 }
(...skipping 23 matching lines...) Expand all
591 566
592 cflags += [ 567 cflags += [
593 # Suppress warnings about WIN32_LEAN_AND_MEAN. 568 # Suppress warnings about WIN32_LEAN_AND_MEAN.
594 "/wd4005", 569 "/wd4005",
595 "/wd4703", 570 "/wd4703",
596 ] 571 ]
597 572
598 defines += [ "_CRT_NONSTDC_NO_DEPRECATE" ] 573 defines += [ "_CRT_NONSTDC_NO_DEPRECATE" ]
599 } 574 }
600 575
601 if (is_posix && is_debug) { 576 if (is_posix) {
602 # The Chromium build/common.gypi defines this for all posix 577 sources += [
603 # _except_ for ios & mac. We want it there as well, e.g. 578 "ifaddrs_converter.cc",
604 # because ASSERT and friends trigger off of it. 579 "ifaddrs_converter.h",
605 defines += [ "_DEBUG" ] 580 "unixfilesystem.cc",
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 }
606 } 589 }
607 590
608 if (is_ios || (is_mac && current_cpu != "x86")) { 591 if (is_ios || (is_mac && current_cpu != "x86")) {
609 defines += [ "CARBON_DEPRECATED=YES" ] 592 defines += [ "CARBON_DEPRECATED=YES" ]
610 } 593 }
611 594
612 if (is_linux || is_android) { 595 if (is_linux || is_android) {
613 sources += [ 596 sources += [
614 "linux.cc", 597 "linux.cc",
615 "linux.h", 598 "linux.h",
616 ] 599 ]
617 } 600 }
618 601
619 if (is_nacl) { 602 if (is_nacl) {
620 deps += [ "//native_client_sdk/src/libraries/nacl_io" ] 603 deps += [ "//native_client_sdk/src/libraries/nacl_io" ]
621 defines += [ "timezone=_timezone" ] 604 defines += [ "timezone=_timezone" ]
622 sources -= [ "ifaddrs_converter.cc" ] 605 sources -= [ "ifaddrs_converter.cc" ]
623 } 606 }
624 } 607 }
625 608
626 if (is_ios) { 609 if (is_ios) {
610 all_dependent_configs = [ ":ios_config" ]
611
627 source_set("rtc_base_objc") { 612 source_set("rtc_base_objc") {
628 deps = [ 613 deps = [
629 ":rtc_base", 614 ":rtc_base",
630 ] 615 ]
631 cflags = [ "-fobjc-arc" ] 616 cflags = [ "-fobjc-arc" ]
632 configs += [ "..:common_config" ] 617 configs += [ "..:common_config" ]
633 public_configs = [ "..:common_inherited_config" ] 618 public_configs = [ "..:common_inherited_config" ]
634 619
635 sources = [ 620 sources = [
636 "objc/NSString+StdString.h", 621 "objc/NSString+StdString.h",
(...skipping 17 matching lines...) Expand all
654 "objc/RTCUIApplication.mm", 639 "objc/RTCUIApplication.mm",
655 ] 640 ]
656 } 641 }
657 } 642 }
658 643
659 source_set("gtest_prod") { 644 source_set("gtest_prod") {
660 sources = [ 645 sources = [
661 "gtest_prod_util.h", 646 "gtest_prod_util.h",
662 ] 647 ]
663 } 648 }
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