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

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: 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') | webrtc/base/base.gyp » ('J')
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",
perkj_webrtc 2016/04/05 07:08:12 intentionally removed?
kjellander_webrtc 2016/04/05 07:21:38 Yes, base.gyp only lists this for non-Chromium bui
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",
274 "pathutils.cc", 278 "pathutils.cc",
275 "pathutils.h", 279 "pathutils.h",
276 "physicalsocketserver.cc", 280 "physicalsocketserver.cc",
277 "physicalsocketserver.h", 281 "physicalsocketserver.h",
278 "proxydetect.cc", 282 "proxydetect.cc",
279 "proxydetect.h", 283 "proxydetect.h",
280 "proxyinfo.cc", 284 "proxyinfo.cc",
281 "proxyinfo.h", 285 "proxyinfo.h",
282 "ratelimiter.cc", 286 "ratelimiter.cc",
283 "ratelimiter.h", 287 "ratelimiter.h",
284 "ratetracker.cc",
285 "ratetracker.h",
286 "rtccertificate.cc", 288 "rtccertificate.cc",
287 "rtccertificate.h", 289 "rtccertificate.h",
288 "scoped_autorelease_pool.h",
289 "scoped_autorelease_pool.mm",
290 "sha1.cc", 290 "sha1.cc",
291 "sha1.h", 291 "sha1.h",
292 "sha1digest.cc", 292 "sha1digest.cc",
293 "sha1digest.h", 293 "sha1digest.h",
294 "sharedexclusivelock.cc", 294 "sharedexclusivelock.cc",
295 "sharedexclusivelock.h", 295 "sharedexclusivelock.h",
296 "signalthread.cc", 296 "signalthread.cc",
297 "signalthread.h", 297 "signalthread.h",
298 "sigslot.cc", 298 "sigslot.cc",
299 "sigslot.h", 299 "sigslot.h",
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
332 "thread.cc", 332 "thread.cc",
333 "thread.h", 333 "thread.h",
334 "timing.cc", 334 "timing.cc",
335 "timing.h", 335 "timing.h",
336 "urlencode.cc", 336 "urlencode.cc",
337 "urlencode.h", 337 "urlencode.h",
338 "worker.cc", 338 "worker.cc",
339 "worker.h", 339 "worker.h",
340 ] 340 ]
341 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) { 342 if (build_with_chromium) {
352 deps += [ "..:webrtc_common" ]
353
354 if (is_mac) {
355 sources += [ "macifaddrs_converter.cc" ]
356 }
357
358 if (is_win) { 343 if (is_win) {
359 sources += [ "../../webrtc_overrides/webrtc/base/win32socketinit.cc" ] 344 sources += [ "../../webrtc_overrides/webrtc/base/win32socketinit.cc" ]
360 } 345 }
361 346
362 include_dirs = [ 347 include_dirs = [
363 "../../webrtc_overrides", 348 "../../webrtc_overrides",
364 "../../boringssl/src/include", 349 "../../boringssl/src/include",
365 ] 350 ]
366 351
367 public_configs += [ ":rtc_base_chromium_config" ] 352 public_configs += [ ":rtc_base_chromium_config" ]
368 } else { 353 } else {
369 sources += [ 354 sources += [
370 "bandwidthsmoother.cc", 355 "bandwidthsmoother.cc",
371 "bandwidthsmoother.h", 356 "bandwidthsmoother.h",
372 "bind.h", 357 "bind.h",
373 "bind.h.pump", 358 "bind.h.pump",
374 "callback.h", 359 "callback.h",
375 "callback.h.pump", 360 "callback.h.pump",
376 "fileutils_mock.h", 361 "fileutils_mock.h",
377 "genericslot.h",
perkj_webrtc 2016/04/05 07:08:12 why removed?
kjellander_webrtc 2016/04/05 07:21:38 They don't exist (removed in https://webrtc-codere
378 "genericslot.h.pump",
379 "httpserver.cc", 362 "httpserver.cc",
380 "httpserver.h", 363 "httpserver.h",
381 "json.cc", 364 "json.cc",
382 "json.h", 365 "json.h",
383 "logsinks.cc", 366 "logsinks.cc",
384 "logsinks.h", 367 "logsinks.h",
385 "mathutils.h", 368 "mathutils.h",
386 "multipart.cc", 369 "multipart.cc",
387 "multipart.h", 370 "multipart.h",
388 "natserver.cc", 371 "natserver.cc",
389 "natserver.h", 372 "natserver.h",
390 "natsocketfactory.cc", 373 "natsocketfactory.cc",
391 "natsocketfactory.h", 374 "natsocketfactory.h",
392 "nattypes.cc", 375 "nattypes.cc",
393 "nattypes.h", 376 "nattypes.h",
394 "optionsfile.cc", 377 "optionsfile.cc",
395 "optionsfile.h", 378 "optionsfile.h",
396 "profiler.cc", 379 "profiler.cc",
397 "profiler.h", 380 "profiler.h",
398 "proxyserver.cc", 381 "proxyserver.cc",
399 "proxyserver.h", 382 "proxyserver.h",
400 "referencecountedsingletonfactory.h", 383 "referencecountedsingletonfactory.h",
401 "rollingaccumulator.h", 384 "rollingaccumulator.h",
402 "scopedptrcollection.h", 385 "scopedptrcollection.h",
403 "sec_buffer.h", 386 "sec_buffer.h",
404 "sslconfig.h", 387 "sslconfig.h",
405 "sslroots.h", 388 "sslroots.h",
389 "testbase64.h",
perkj_webrtc 2016/04/05 07:08:12 intentionally added?
kjellander_webrtc 2016/04/05 07:21:38 Yes, to match base.gyp
406 "testclient.cc", 390 "testclient.cc",
407 "testclient.h", 391 "testclient.h",
408 "transformadapter.cc", 392 "transformadapter.cc",
409 "transformadapter.h", 393 "transformadapter.h",
410 "versionparsing.cc", 394 "versionparsing.cc",
411 "versionparsing.h", 395 "versionparsing.h",
412 "virtualsocketserver.cc", 396 "virtualsocketserver.cc",
413 "virtualsocketserver.h", 397 "virtualsocketserver.h",
414 "window.h", 398 "window.h",
415 "windowpicker.h", 399 "windowpicker.h",
416 "windowpickerfactory.h", 400 "windowpickerfactory.h",
417 ] 401 ]
418 402
419 deps += [ "..:webrtc_common" ] 403 if (is_linux) {
404 sources += [
405 "dbus.cc",
406 "dbus.h",
407 "libdbusglibsymboltable.cc",
408 "libdbusglibsymboltable.h",
409 "linuxfdwalk.c",
410 "linuxfdwalk.h",
411 ]
412 }
420 413
421 if (is_posix) { 414 if (is_posix) {
422 sources += [ 415 sources += [
423 "latebindingsymboltable.cc", 416 "latebindingsymboltable.cc",
424 "latebindingsymboltable.cc.def", 417 "latebindingsymboltable.cc.def",
425 "latebindingsymboltable.h", 418 "latebindingsymboltable.h",
426 "latebindingsymboltable.h.def", 419 "latebindingsymboltable.h.def",
427 "posix.cc", 420 "posix.cc",
428 "posix.h", 421 "posix.h",
429 ] 422 ]
430 } 423 }
431 424
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) { 425 if (is_mac) {
444 sources += [ 426 sources += [
445 "macasyncsocket.cc", 427 "macasyncsocket.cc",
446 "macasyncsocket.h", 428 "macasyncsocket.h",
447 "maccocoasocketserver.h", 429 "maccocoasocketserver.h",
448 "maccocoasocketserver.mm", 430 "maccocoasocketserver.mm",
449 "macsocketserver.cc", 431 "macsocketserver.cc",
450 "macsocketserver.h", 432 "macsocketserver.h",
451 "macwindowpicker.cc", 433 "macwindowpicker.cc",
452 "macwindowpicker.h", 434 "macwindowpicker.h",
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
509 "ifaddrs-android.cc", 491 "ifaddrs-android.cc",
510 "ifaddrs-android.h", 492 "ifaddrs-android.h",
511 ] 493 ]
512 494
513 libs += [ 495 libs += [
514 "log", 496 "log",
515 "GLESv2", 497 "GLESv2",
516 ] 498 ]
517 } 499 }
518 500
519 if (is_ios) { 501 if (is_ios || is_mac) {
520 all_dependent_configs = [ ":ios_config" ]
521
522 sources += [ 502 sources += [
523 "maccocoathreadhelper.h", 503 "maccocoathreadhelper.h",
524 "maccocoathreadhelper.mm", 504 "maccocoathreadhelper.mm",
525 "macconversion.cc", 505 "macconversion.cc",
526 "macconversion.h", 506 "macconversion.h",
507 "macifaddrs_converter.cc",
508 "scoped_autorelease_pool.h",
509 "scoped_autorelease_pool.mm",
527 ] 510 ]
528 } 511 }
529 512
530 if (use_x11) { 513 if (use_x11) {
531 sources += [ 514 sources += [
532 "x11windowpicker.cc", 515 "x11windowpicker.cc",
533 "x11windowpicker.h", 516 "x11windowpicker.h",
534 ] 517 ]
535 libs += [ 518 libs += [
536 "dl", 519 "dl",
537 "rt", 520 "rt",
538 "Xext", 521 "Xext",
539 "X11", 522 "X11",
540 "Xcomposite", 523 "Xcomposite",
541 "Xrender", 524 "Xrender",
542 ] 525 ]
543 } 526 }
544 527
545 if (is_linux) { 528 if (is_linux) {
546 libs += [ 529 libs += [
547 "dl", 530 "dl",
548 "rt", 531 "rt",
549 ] 532 ]
550 } 533 }
551 534
552 if (is_mac) { 535 if (is_mac) {
553 sources += [ 536 sources += [
554 "maccocoathreadhelper.h",
555 "maccocoathreadhelper.mm",
556 "macconversion.cc",
557 "macconversion.h",
558 "macutils.cc", 537 "macutils.cc",
559 "macutils.h", 538 "macutils.h",
560 ] 539 ]
561 540
562 all_dependent_configs = [ ":mac_config" ] 541 all_dependent_configs = [ ":mac_config" ]
563 542
564 if (current_cpu == "x86") { 543 if (current_cpu == "x86") {
565 all_dependent_configs += [ ":mac_x86_config" ] 544 all_dependent_configs += [ ":mac_x86_config" ]
566 } 545 }
567 } 546 }
(...skipping 23 matching lines...) Expand all
591 570
592 cflags += [ 571 cflags += [
593 # Suppress warnings about WIN32_LEAN_AND_MEAN. 572 # Suppress warnings about WIN32_LEAN_AND_MEAN.
594 "/wd4005", 573 "/wd4005",
595 "/wd4703", 574 "/wd4703",
596 ] 575 ]
597 576
598 defines += [ "_CRT_NONSTDC_NO_DEPRECATE" ] 577 defines += [ "_CRT_NONSTDC_NO_DEPRECATE" ]
599 } 578 }
600 579
601 if (is_posix && is_debug) { 580 if (is_posix) {
602 # The Chromium build/common.gypi defines this for all posix 581 sources += [
603 # _except_ for ios & mac. We want it there as well, e.g. 582 "ifaddrs_converter.cc",
604 # because ASSERT and friends trigger off of it. 583 "ifaddrs_converter.h",
605 defines += [ "_DEBUG" ] 584 "unixfilesystem.cc",
585 "unixfilesystem.h",
586 ]
587 if (is_debug) {
588 # The Chromium build/common.gypi defines this for all posix
589 # _except_ for ios & mac. We want it there as well, e.g.
590 # because ASSERT and friends trigger off of it.
591 defines += [ "_DEBUG" ]
592 }
606 } 593 }
607 594
608 if (is_ios || (is_mac && current_cpu != "x86")) { 595 if (is_ios || (is_mac && current_cpu != "x86")) {
609 defines += [ "CARBON_DEPRECATED=YES" ] 596 defines += [ "CARBON_DEPRECATED=YES" ]
610 } 597 }
611 598
612 if (is_linux || is_android) { 599 if (is_linux || is_android) {
613 sources += [ 600 sources += [
614 "linux.cc", 601 "linux.cc",
615 "linux.h", 602 "linux.h",
616 ] 603 ]
617 } 604 }
618 605
619 if (is_nacl) { 606 if (is_nacl) {
620 deps += [ "//native_client_sdk/src/libraries/nacl_io" ] 607 deps += [ "//native_client_sdk/src/libraries/nacl_io" ]
621 defines += [ "timezone=_timezone" ] 608 defines += [ "timezone=_timezone" ]
622 sources -= [ "ifaddrs_converter.cc" ] 609 sources -= [ "ifaddrs_converter.cc" ]
623 } 610 }
624 } 611 }
625 612
626 if (is_ios) { 613 if (is_ios) {
614 all_dependent_configs = [ ":ios_config" ]
615
627 source_set("rtc_base_objc") { 616 source_set("rtc_base_objc") {
628 deps = [ 617 deps = [
629 ":rtc_base", 618 ":rtc_base",
630 ] 619 ]
631 cflags = [ "-fobjc-arc" ] 620 cflags = [ "-fobjc-arc" ]
632 configs += [ "..:common_config" ] 621 configs += [ "..:common_config" ]
633 public_configs = [ "..:common_inherited_config" ] 622 public_configs = [ "..:common_inherited_config" ]
634 623
635 sources = [ 624 sources = [
636 "objc/NSString+StdString.h", 625 "objc/NSString+StdString.h",
(...skipping 17 matching lines...) Expand all
654 "objc/RTCUIApplication.mm", 643 "objc/RTCUIApplication.mm",
655 ] 644 ]
656 } 645 }
657 } 646 }
658 647
659 source_set("gtest_prod") { 648 source_set("gtest_prod") {
660 sources = [ 649 sources = [
661 "gtest_prod_util.h", 650 "gtest_prod_util.h",
662 ] 651 ]
663 } 652 }
OLDNEW
« no previous file with comments | « no previous file | webrtc/base/base.gyp » ('j') | webrtc/base/base.gyp » ('J')

Powered by Google App Engine
This is Rietveld 408576698