OLD | NEW |
---|---|
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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
91 # third party code will still have the reduced warning settings. | 91 # third party code will still have the reduced warning settings. |
92 'chromium_code': 1, | 92 'chromium_code': 1, |
93 | 93 |
94 # Targets are by default not NaCl untrusted code. Use this variable exclude | 94 # Targets are by default not NaCl untrusted code. Use this variable exclude |
95 # code that uses libraries that aren't available in the NaCl sandbox. | 95 # code that uses libraries that aren't available in the NaCl sandbox. |
96 'nacl_untrusted_build%': 0, | 96 'nacl_untrusted_build%': 0, |
97 | 97 |
98 # Set to 1 to enable code coverage on Linux using the gcov library. | 98 # Set to 1 to enable code coverage on Linux using the gcov library. |
99 'coverage%': 0, | 99 'coverage%': 0, |
100 | 100 |
101 # Set to "func", "block", "edge" for coverage generation. | |
102 # At unit test runtime set UBSAN_OPTIONS="coverage=1". | |
103 # It is recommend to set include_examples=0. | |
104 # Use llvm's sancov -html-report for human readable reports. | |
105 # See http://clang.llvm.org/docs/SanitizerCoverage.html . | |
106 'webrtc_sanitize_coverage%': "", | |
phoglund
2016/07/19 19:12:40
We need to have parity between gn and gyp; please
johan
2016/07/21 12:33:22
Done, gn files use name pattern "rtc_.*" while gyp
| |
107 | |
101 # Remote bitrate estimator logging/plotting. | 108 # Remote bitrate estimator logging/plotting. |
102 'enable_bwe_test_logging%': 0, | 109 'enable_bwe_test_logging%': 0, |
103 | 110 |
104 # Selects fixed-point code where possible. | 111 # Selects fixed-point code where possible. |
105 'prefer_fixed_point%': 0, | 112 'prefer_fixed_point%': 0, |
106 | 113 |
107 # Enable data logging. Produces text files with data logged within engines | 114 # Enable data logging. Produces text files with data logged within engines |
108 # which can be easily parsed for offline processing. | 115 # which can be easily parsed for offline processing. |
109 'enable_data_logging%': 0, | 116 'enable_data_logging%': 0, |
110 | 117 |
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
397 ], | 404 ], |
398 }], | 405 }], |
399 ], | 406 ], |
400 }], | 407 }], |
401 ['coverage==1 and OS=="linux"', { | 408 ['coverage==1 and OS=="linux"', { |
402 'cflags': [ '-ftest-coverage', | 409 'cflags': [ '-ftest-coverage', |
403 '-fprofile-arcs' ], | 410 '-fprofile-arcs' ], |
404 'ldflags': [ '--coverage' ], | 411 'ldflags': [ '--coverage' ], |
405 'link_settings': { 'libraries': [ '-lgcov' ] }, | 412 'link_settings': { 'libraries': [ '-lgcov' ] }, |
406 }], | 413 }], |
414 ['webrtc_sanitize_coverage!=""', { | |
415 'cflags': [ '-fsanitize-coverage=<(webrtc_sanitize_coverage)' ], | |
416 'ldflags': [ '-fsanitize-coverage=<(webrtc_sanitize_coverage)' ], | |
417 }], | |
418 ['webrtc_sanitize_coverage!="" and OS=="mac"', { | |
419 'xcode_settings': { | |
420 'OTHER_CFLAGS': [ | |
421 '-fsanitize-coverage=func', | |
422 ], | |
423 }, | |
424 }], | |
407 ['os_posix==1', { | 425 ['os_posix==1', { |
408 # For access to standard POSIXish features, use WEBRTC_POSIX instead of | 426 # For access to standard POSIXish features, use WEBRTC_POSIX instead of |
409 # a more specific macro. | 427 # a more specific macro. |
410 'defines': [ | 428 'defines': [ |
411 'WEBRTC_POSIX', | 429 'WEBRTC_POSIX', |
412 ], | 430 ], |
413 }], | 431 }], |
414 ['OS=="ios"', { | 432 ['OS=="ios"', { |
415 'defines': [ | 433 'defines': [ |
416 'WEBRTC_MAC', | 434 'WEBRTC_MAC', |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
585 }], | 603 }], |
586 ['OS=="freebsd"', { | 604 ['OS=="freebsd"', { |
587 'defines': [ | 605 'defines': [ |
588 'FREEBSD', | 606 'FREEBSD', |
589 ], | 607 ], |
590 }], | 608 }], |
591 ], | 609 ], |
592 }, | 610 }, |
593 }, # target_defaults | 611 }, # target_defaults |
594 } | 612 } |
OLD | NEW |