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

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

Issue 1861603002: Revert of Set defines for Chromium build. (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/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 # TODO(kjellander): Cleanup unused ones and move defines closer to the 266 'WEBRTC_CHROMIUM_BUILD',
267 # source when webrtc:4256 is completed.
268 'ENABLE_EXTERNAL_AUTH',
269 'EXPAT_RELATIVE_PATH',
270 'FEATURE_ENABLE_SSL',
271 'GTEST_RELATIVE_PATH',
272 'HAVE_OPENSSL_SSL_H',
273 'HAVE_SCTP',
274 'HAVE_SRTP',
275 'HAVE_WEBRTC_VIDEO',
276 'HAVE_WEBRTC_VOICE',
277 'LOGGING_INSIDE_WEBRTC', 267 'LOGGING_INSIDE_WEBRTC',
278 'NO_MAIN_THREAD_WRAPPING',
279 'NO_SOUND_SYSTEM',
280 'SRTP_RELATIVE_PATH',
281 'SSL_USE_OPENSSL',
282 'USE_WEBRTC_DEV_BRANCH',
283 'WEBRTC_CHROMIUM_BUILD',
284 ],
285 'conditions': [
286 ['OS=="win" and target_arch=="ia32"', {
287 'defines': [
288 '_USE_32BIT_TIME_T',
289 ],
290 }],
291 ], 268 ],
292 'include_dirs': [ 269 'include_dirs': [
293 # Include the top-level directory when building in Chrome, so we can 270 # Include the top-level directory when building in Chrome, so we can
294 # use full paths (e.g. headers inside testing/ or third_party/). 271 # use full paths (e.g. headers inside testing/ or third_party/).
295 '<(DEPTH)', 272 '<(DEPTH)',
296 # The overrides must be included before the WebRTC root as that's the 273 # The overrides must be included before the WebRTC root as that's the
297 # mechanism for selecting the override headers in Chromium. 274 # mechanism for selecting the override headers in Chromium.
298 '../../webrtc_overrides', 275 '../../webrtc_overrides',
299 # The WebRTC root is needed to allow includes in the WebRTC code base 276 # The WebRTC root is needed to allow includes in the WebRTC code base
300 # to be prefixed with webrtc/. 277 # to be prefixed with webrtc/.
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
455 # functions. Ensure they are disabled for all compilers. 432 # functions. Ensure they are disabled for all compilers.
456 'cflags': [ 433 'cflags': [
457 '-fno-builtin-cos', 434 '-fno-builtin-cos',
458 '-fno-builtin-sin', 435 '-fno-builtin-sin',
459 '-fno-builtin-cosf', 436 '-fno-builtin-cosf',
460 '-fno-builtin-sinf', 437 '-fno-builtin-sinf',
461 ], 438 ],
462 }], 439 }],
463 ], 440 ],
464 }], 441 }],
465 ['chromeos==1', {
466 'defines': [
467 'CHROMEOS',
468 ],
469 }],
470 ['os_bsd==1', {
471 'defines': [
472 'BSD',
473 ],
474 }],
475 ['OS=="openbsd"', {
476 'defines': [
477 'OPENBSD',
478 ],
479 }],
480 ['include_internal_audio_device==1', { 442 ['include_internal_audio_device==1', {
481 'defines': [ 443 'defines': [
482 'WEBRTC_INCLUDE_INTERNAL_AUDIO_DEVICE', 444 'WEBRTC_INCLUDE_INTERNAL_AUDIO_DEVICE',
483 ], 445 ],
484 }], 446 }],
485 ], # conditions 447 ], # conditions
486 'direct_dependent_settings': { 448 'direct_dependent_settings': {
487 'conditions': [ 449 'conditions': [
488 ['build_with_mozilla==1', { 450 ['build_with_mozilla==1', {
489 'defines': [ 451 'defines': [
490 # Changes settings for Mozilla build. 452 # Changes settings for Mozilla build.
491 'WEBRTC_MOZILLA_BUILD', 453 'WEBRTC_MOZILLA_BUILD',
492 ], 454 ],
493 }], 455 }],
494 ['build_with_chromium==1', { 456 ['build_with_chromium==1', {
495 'defines': [ 457 'defines': [
496 # Changes settings for Chromium build. 458 # Changes settings for Chromium build.
497 # TODO(kjellander): Cleanup unused ones and move defines closer to
498 # the source when webrtc:4256 is completed.
499 'FEATURE_ENABLE_SSL',
500 'FEATURE_ENABLE_VOICEMAIL',
501 'EXPAT_RELATIVE_PATH',
502 'GTEST_RELATIVE_PATH',
503 'NO_MAIN_THREAD_WRAPPING',
504 'NO_SOUND_SYSTEM',
505 'WEBRTC_CHROMIUM_BUILD', 459 'WEBRTC_CHROMIUM_BUILD',
506 ], 460 ],
507 'include_dirs': [ 461 'include_dirs': [
508 # The overrides must be included first as that is the mechanism for 462 # The overrides must be included first as that is the mechanism for
509 # selecting the override headers in Chromium. 463 # selecting the override headers in Chromium.
510 '../../webrtc_overrides', 464 '../../webrtc_overrides',
511 '../..', 465 '../..',
512 ], 466 ],
513 }, { 467 }, {
514 'include_dirs': [ 468 'include_dirs': [
515 '../..', 469 '../..',
516 ], 470 ],
517 }], 471 }],
518 ['OS=="mac"', { 472 ['OS=="mac"', {
519 'defines': [ 473 'defines': [
520 'WEBRTC_MAC', 474 'WEBRTC_MAC',
521 ], 475 ],
522 }], 476 }],
523 ['OS=="ios"', { 477 ['OS=="ios"', {
524 'defines': [ 478 'defines': [
525 'WEBRTC_MAC', 479 'WEBRTC_MAC',
526 'WEBRTC_IOS', 480 'WEBRTC_IOS',
527 ], 481 ],
528 }], 482 }],
529 ['OS=="win"', { 483 ['OS=="win"', {
530 'defines': [ 484 'defines': [
531 'WEBRTC_WIN', 485 'WEBRTC_WIN',
532 '_CRT_SECURE_NO_WARNINGS', # Suppres warnings about _vsnprinf
533 ], 486 ],
534 }], 487 }],
535 ['OS=="linux"', { 488 ['OS=="linux"', {
536 'defines': [ 489 'defines': [
537 'WEBRTC_LINUX', 490 'WEBRTC_LINUX',
538 ], 491 ],
539 }], 492 }],
540 ['OS=="android"', { 493 ['OS=="android"', {
541 'defines': [ 494 'defines': [
542 'WEBRTC_LINUX', 495 'WEBRTC_LINUX',
543 'WEBRTC_ANDROID', 496 'WEBRTC_ANDROID',
544 ], 497 ],
545 }], 498 }],
546 ['os_posix==1', { 499 ['os_posix==1', {
547 # For access to standard POSIXish features, use WEBRTC_POSIX instead 500 # For access to standard POSIXish features, use WEBRTC_POSIX instead
548 # of a more specific macro. 501 # of a more specific macro.
549 'defines': [ 502 'defines': [
550 'WEBRTC_POSIX', 503 'WEBRTC_POSIX',
551 ], 504 ],
552 }], 505 }],
553 ['chromeos==1', {
554 'defines': [
555 'CHROMEOS',
556 ],
557 }],
558 ['os_bsd==1', {
559 'defines': [
560 'BSD',
561 ],
562 }],
563 ['OS=="openbsd"', {
564 'defines': [
565 'OPENBSD',
566 ],
567 }],
568 ], 506 ],
569 }, 507 },
570 }, # target_defaults 508 }, # target_defaults
571 } 509 }
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