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

Side by Side Diff: webrtc/build/common.gypi

Issue 1847013002: Set defines for Chromium build. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Simplied how the defines are handled 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/media/media.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) 2012 The WebRTC project authors. All Rights Reserved. 1 # Copyright (c) 2012 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 # This file contains common settings for building WebRTC components. 9 # This file contains common settings for building WebRTC components.
10 10
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 # For WebRTC, we want it there as well, because ASSERT and 256 # For WebRTC, we want it there as well, because ASSERT and
257 # friends trigger off of it. 257 # friends trigger off of it.
258 '_DEBUG', 258 '_DEBUG',
259 ], 259 ],
260 }, 260 },
261 }, 261 },
262 }], 262 }],
263 ['build_with_chromium==1', { 263 ['build_with_chromium==1', {
264 'defines': [ 264 'defines': [
265 # Changes settings for Chromium build. 265 # Changes settings for Chromium build.
266 'ENABLE_EXTERNAL_AUTH',
267 'EXPAT_RELATIVE_PATH',
268 'FEATURE_ENABLE_SSL',
269 'GTEST_RELATIVE_PATH',
270 'HAVE_OPENSSL_SSL_H',
271 'HAVE_SCTP',
272 'HAVE_SRTP',
273 'HAVE_WEBRTC_VIDEO',
274 'HAVE_WEBRTC_VOICE',
275 'LOGGING_INSIDE_WEBRTC',
276 'NO_MAIN_THREAD_WRAPPING',
277 'NO_SOUND_SYSTEM',
278 'SRTP_RELATIVE_PATH',
279 'SSL_USE_OPENSSL',
280 'USE_WEBRTC_DEV_BRANCH',
266 'WEBRTC_CHROMIUM_BUILD', 281 'WEBRTC_CHROMIUM_BUILD',
267 'LOGGING_INSIDE_WEBRTC', 282 ],
283 'conditions': [
284 ['OS=="win" and target_arch=="ia32"', {
285 'defines': [
286 '_USE_32BIT_TIME_T',
287 ],
288 }],
268 ], 289 ],
269 'include_dirs': [ 290 'include_dirs': [
270 # Include the top-level directory when building in Chrome, so we can 291 # Include the top-level directory when building in Chrome, so we can
271 # use full paths (e.g. headers inside testing/ or third_party/). 292 # use full paths (e.g. headers inside testing/ or third_party/).
272 '<(DEPTH)', 293 '<(DEPTH)',
273 # The overrides must be included before the WebRTC root as that's the 294 # The overrides must be included before the WebRTC root as that's the
274 # mechanism for selecting the override headers in Chromium. 295 # mechanism for selecting the override headers in Chromium.
275 '../../webrtc_overrides', 296 '../../webrtc_overrides',
276 # The WebRTC root is needed to allow includes in the WebRTC code base 297 # The WebRTC root is needed to allow includes in the WebRTC code base
277 # to be prefixed with webrtc/. 298 # to be prefixed with webrtc/.
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
432 # functions. Ensure they are disabled for all compilers. 453 # functions. Ensure they are disabled for all compilers.
433 'cflags': [ 454 'cflags': [
434 '-fno-builtin-cos', 455 '-fno-builtin-cos',
435 '-fno-builtin-sin', 456 '-fno-builtin-sin',
436 '-fno-builtin-cosf', 457 '-fno-builtin-cosf',
437 '-fno-builtin-sinf', 458 '-fno-builtin-sinf',
438 ], 459 ],
439 }], 460 }],
440 ], 461 ],
441 }], 462 }],
463 ['chromeos==1', {
464 'defines': [
465 'CHROMEOS',
466 ],
467 }],
468 ['os_bsd==1', {
469 'defines': [
470 'BSD',
471 ],
472 }],
473 ['OS=="openbsd"', {
474 'defines': [
475 'OPENBSD',
476 ],
477 }],
442 ['include_internal_audio_device==1', { 478 ['include_internal_audio_device==1', {
443 'defines': [ 479 'defines': [
444 'WEBRTC_INCLUDE_INTERNAL_AUDIO_DEVICE', 480 'WEBRTC_INCLUDE_INTERNAL_AUDIO_DEVICE',
445 ], 481 ],
446 }], 482 }],
447 ], # conditions 483 ], # conditions
448 'direct_dependent_settings': { 484 'direct_dependent_settings': {
449 'conditions': [ 485 'conditions': [
450 ['build_with_mozilla==1', { 486 ['build_with_mozilla==1', {
451 'defines': [ 487 'defines': [
452 # Changes settings for Mozilla build. 488 # Changes settings for Mozilla build.
453 'WEBRTC_MOZILLA_BUILD', 489 'WEBRTC_MOZILLA_BUILD',
454 ], 490 ],
455 }], 491 }],
456 ['build_with_chromium==1', { 492 ['build_with_chromium==1', {
457 'defines': [ 493 'defines': [
458 # Changes settings for Chromium build. 494 # Changes settings for Chromium build.
495 'FEATURE_ENABLE_SSL',
496 'FEATURE_ENABLE_VOICEMAIL',
perkj_webrtc 2016/04/01 09:33:47 I don't think you need FEATURE_ENABLE_VOICEMAIL.
kjellander_webrtc 2016/04/01 10:34:36 Initially I did a lot of grepping to see which def
tommi 2016/04/01 13:23:09 wanna put down a todo so that it won't be forgotte
kjellander_webrtc 2016/04/04 07:11:59 Yepp, added TODOs in PS#3
497 'EXPAT_RELATIVE_PATH',
498 'GTEST_RELATIVE_PATH',
499 'NO_MAIN_THREAD_WRAPPING',
500 'NO_SOUND_SYSTEM',
459 'WEBRTC_CHROMIUM_BUILD', 501 'WEBRTC_CHROMIUM_BUILD',
460 ], 502 ],
461 'include_dirs': [ 503 'include_dirs': [
462 # The overrides must be included first as that is the mechanism for 504 # The overrides must be included first as that is the mechanism for
463 # selecting the override headers in Chromium. 505 # selecting the override headers in Chromium.
464 '../../webrtc_overrides', 506 '../../webrtc_overrides',
465 '../..', 507 '../..',
466 ], 508 ],
467 }, { 509 }, {
468 'include_dirs': [ 510 'include_dirs': [
469 '../..', 511 '../..',
470 ], 512 ],
471 }], 513 }],
472 ['OS=="mac"', { 514 ['OS=="mac"', {
473 'defines': [ 515 'defines': [
474 'WEBRTC_MAC', 516 'WEBRTC_MAC',
475 ], 517 ],
476 }], 518 }],
477 ['OS=="ios"', { 519 ['OS=="ios"', {
478 'defines': [ 520 'defines': [
479 'WEBRTC_MAC', 521 'WEBRTC_MAC',
480 'WEBRTC_IOS', 522 'WEBRTC_IOS',
481 ], 523 ],
482 }], 524 }],
483 ['OS=="win"', { 525 ['OS=="win"', {
484 'defines': [ 526 'defines': [
485 'WEBRTC_WIN', 527 'WEBRTC_WIN',
528 '_CRT_SECURE_NO_WARNINGS', # Suppres warnings about _vsnprinf
perkj_webrtc 2016/04/01 09:33:47 git grep "_vsnprinf" returns nothing. Not needed a
kjellander_webrtc 2016/04/01 10:34:36 I don't know, I thought it may be used in system l
486 ], 529 ],
487 }], 530 }],
488 ['OS=="linux"', { 531 ['OS=="linux"', {
489 'defines': [ 532 'defines': [
490 'WEBRTC_LINUX', 533 'WEBRTC_LINUX',
491 ], 534 ],
492 }], 535 }],
493 ['OS=="android"', { 536 ['OS=="android"', {
494 'defines': [ 537 'defines': [
495 'WEBRTC_LINUX', 538 'WEBRTC_LINUX',
496 'WEBRTC_ANDROID', 539 'WEBRTC_ANDROID',
497 ], 540 ],
498 }], 541 }],
499 ['os_posix==1', { 542 ['os_posix==1', {
500 # For access to standard POSIXish features, use WEBRTC_POSIX instead 543 # For access to standard POSIXish features, use WEBRTC_POSIX instead
501 # of a more specific macro. 544 # of a more specific macro.
502 'defines': [ 545 'defines': [
503 'WEBRTC_POSIX', 546 'WEBRTC_POSIX',
504 ], 547 ],
505 }], 548 }],
549 ['chromeos==1', {
550 'defines': [
551 'CHROMEOS',
552 ],
553 }],
554 ['os_bsd==1', {
555 'defines': [
556 'BSD',
557 ],
558 }],
559 ['OS=="openbsd"', {
560 'defines': [
561 'OPENBSD',
562 ],
563 }],
506 ], 564 ],
507 }, 565 },
508 }, # target_defaults 566 }, # target_defaults
509 } 567 }
OLDNEW
« no previous file with comments | « no previous file | webrtc/media/media.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698