| OLD | NEW |
| 1 # Copyright 2012 the V8 project authors. All rights reserved. | 1 # Copyright 2012 the V8 project authors. All rights reserved. |
| 2 # Redistribution and use in source and binary forms, with or without | 2 # Redistribution and use in source and binary forms, with or without |
| 3 # modification, are permitted provided that the following conditions are | 3 # modification, are permitted provided that the following conditions are |
| 4 # met: | 4 # met: |
| 5 # | 5 # |
| 6 # * Redistributions of source code must retain the above copyright | 6 # * Redistributions of source code must retain the above copyright |
| 7 # notice, this list of conditions and the following disclaimer. | 7 # notice, this list of conditions and the following disclaimer. |
| 8 # * Redistributions in binary form must reproduce the above | 8 # * Redistributions in binary form must reproduce the above |
| 9 # copyright notice, this list of conditions and the following | 9 # copyright notice, this list of conditions and the following |
| 10 # disclaimer in the documentation and/or other materials provided | 10 # disclaimer in the documentation and/or other materials provided |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 'cfi_vptr%': 0, | 95 'cfi_vptr%': 0, |
| 96 'cfi_diag%': 0, | 96 'cfi_diag%': 0, |
| 97 | 97 |
| 98 'cfi_blacklist%': '<(base_dir)/tools/cfi/blacklist.txt', | 98 'cfi_blacklist%': '<(base_dir)/tools/cfi/blacklist.txt', |
| 99 | 99 |
| 100 # goma settings. | 100 # goma settings. |
| 101 # 1 to use goma. | 101 # 1 to use goma. |
| 102 # If no gomadir is set, it uses the default gomadir. | 102 # If no gomadir is set, it uses the default gomadir. |
| 103 'use_goma%': 0, | 103 'use_goma%': 0, |
| 104 'gomadir%': '', | 104 'gomadir%': '', |
| 105 |
| 106 # Instrument for code coverage with gcov. |
| 107 'coverage%': 0, |
| 108 |
| 105 'conditions': [ | 109 'conditions': [ |
| 106 # Set default gomadir. | 110 # Set default gomadir. |
| 107 ['OS=="win"', { | 111 ['OS=="win"', { |
| 108 'gomadir': 'c:\\goma\\goma-win', | 112 'gomadir': 'c:\\goma\\goma-win', |
| 109 }, { | 113 }, { |
| 110 'gomadir': '<!(/bin/echo -n ${HOME}/goma)', | 114 'gomadir': '<!(/bin/echo -n ${HOME}/goma)', |
| 111 }], | 115 }], |
| 112 ['host_arch!="ppc" and host_arch!="ppc64" and host_arch!="ppc64le"', { | 116 ['host_arch!="ppc" and host_arch!="ppc64" and host_arch!="ppc64le"', { |
| 113 'host_clang%': '1', | 117 'host_clang%': '1', |
| 114 }, { | 118 }, { |
| (...skipping 10 matching lines...) Expand all Loading... |
| 125 'linux_use_bundled_gold%': 0, | 129 'linux_use_bundled_gold%': 0, |
| 126 }], | 130 }], |
| 127 | 131 |
| 128 # TODO(machenbach): Remove the conditions as more configurations are | 132 # TODO(machenbach): Remove the conditions as more configurations are |
| 129 # supported. | 133 # supported. |
| 130 ['OS=="linux"', { | 134 ['OS=="linux"', { |
| 131 'test_isolation_mode%': 'check', | 135 'test_isolation_mode%': 'check', |
| 132 }, { | 136 }, { |
| 133 'test_isolation_mode%': 'noop', | 137 'test_isolation_mode%': 'noop', |
| 134 }], | 138 }], |
| 139 |
| 140 ['coverage==1', { |
| 141 'host_clang%': '0', |
| 142 'clang%': 0, |
| 143 }], |
| 135 ], | 144 ], |
| 136 }, | 145 }, |
| 137 'base_dir%': '<(base_dir)', | 146 'base_dir%': '<(base_dir)', |
| 138 'clang_dir%': '<(clang_dir)', | 147 'clang_dir%': '<(clang_dir)', |
| 139 'host_arch%': '<(host_arch)', | 148 'host_arch%': '<(host_arch)', |
| 140 'host_clang%': '<(host_clang)', | 149 'host_clang%': '<(host_clang)', |
| 141 'target_arch%': '<(target_arch)', | 150 'target_arch%': '<(target_arch)', |
| 142 'v8_target_arch%': '<(v8_target_arch)', | 151 'v8_target_arch%': '<(v8_target_arch)', |
| 143 'werror%': '-Werror', | 152 'werror%': '-Werror', |
| 144 'use_goma%': '<(use_goma)', | 153 'use_goma%': '<(use_goma)', |
| 145 'gomadir%': '<(gomadir)', | 154 'gomadir%': '<(gomadir)', |
| 146 'asan%': '<(asan)', | 155 'asan%': '<(asan)', |
| 147 'lsan%': '<(lsan)', | 156 'lsan%': '<(lsan)', |
| 148 'msan%': '<(msan)', | 157 'msan%': '<(msan)', |
| 149 'tsan%': '<(tsan)', | 158 'tsan%': '<(tsan)', |
| 150 'sanitizer_coverage%': '<(sanitizer_coverage)', | 159 'sanitizer_coverage%': '<(sanitizer_coverage)', |
| 151 'use_custom_libcxx%': '<(use_custom_libcxx)', | 160 'use_custom_libcxx%': '<(use_custom_libcxx)', |
| 152 'linux_use_bundled_gold%': '<(linux_use_bundled_gold)', | 161 'linux_use_bundled_gold%': '<(linux_use_bundled_gold)', |
| 153 'use_lto%': '<(use_lto)', | 162 'use_lto%': '<(use_lto)', |
| 154 'cfi_vptr%': '<(cfi_vptr)', | 163 'cfi_vptr%': '<(cfi_vptr)', |
| 155 'cfi_diag%': '<(cfi_diag)', | 164 'cfi_diag%': '<(cfi_diag)', |
| 156 'cfi_blacklist%': '<(cfi_blacklist)', | 165 'cfi_blacklist%': '<(cfi_blacklist)', |
| 157 'test_isolation_mode%': '<(test_isolation_mode)', | 166 'test_isolation_mode%': '<(test_isolation_mode)', |
| 167 'coverage%': '<(coverage)', |
| 158 | 168 |
| 159 # Add a simple extras solely for the purpose of the cctests | 169 # Add a simple extras solely for the purpose of the cctests |
| 160 'v8_extra_library_files': ['../test/cctest/test-extra.js'], | 170 'v8_extra_library_files': ['../test/cctest/test-extra.js'], |
| 161 'v8_experimental_extra_library_files': ['../test/cctest/test-experimental-ex
tra.js'], | 171 'v8_experimental_extra_library_files': ['../test/cctest/test-experimental-ex
tra.js'], |
| 162 | 172 |
| 163 # .gyp files or targets should set v8_code to 1 if they build V8 specific | 173 # .gyp files or targets should set v8_code to 1 if they build V8 specific |
| 164 # code, as opposed to external code. This variable is used to control such | 174 # code, as opposed to external code. This variable is used to control such |
| 165 # things as the set of warnings to enable, and whether warnings are treated | 175 # things as the set of warnings to enable, and whether warnings are treated |
| 166 # as errors. | 176 # as errors. |
| 167 'v8_code%': 0, | 177 'v8_code%': 0, |
| (...skipping 504 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 672 }], | 682 }], |
| 673 [ 'host_arch=="ppc64" and OS!="aix"', { | 683 [ 'host_arch=="ppc64" and OS!="aix"', { |
| 674 'cflags': [ '-mminimal-toc' ], | 684 'cflags': [ '-mminimal-toc' ], |
| 675 }], | 685 }], |
| 676 [ 'visibility=="hidden" and v8_enable_backtrace==0', { | 686 [ 'visibility=="hidden" and v8_enable_backtrace==0', { |
| 677 'cflags': [ '-fvisibility=hidden' ], | 687 'cflags': [ '-fvisibility=hidden' ], |
| 678 }], | 688 }], |
| 679 [ 'component=="shared_library"', { | 689 [ 'component=="shared_library"', { |
| 680 'cflags': [ '-fPIC', ], | 690 'cflags': [ '-fPIC', ], |
| 681 }], | 691 }], |
| 692 [ 'coverage==1', { |
| 693 'cflags': [ '-fprofile-arcs', '-ftest-coverage', '-O0'], |
| 694 'ldflags': [ '-fprofile-arcs'], |
| 695 }], |
| 682 ], | 696 ], |
| 683 }, | 697 }, |
| 684 }], | 698 }], |
| 685 # 'OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" | 699 # 'OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" |
| 686 # or OS=="netbsd"' | 700 # or OS=="netbsd"' |
| 687 ['OS=="qnx"', { | 701 ['OS=="qnx"', { |
| 688 'target_defaults': { | 702 'target_defaults': { |
| 689 'cflags': [ | 703 'cflags': [ |
| 690 '-Wall', | 704 '-Wall', |
| 691 '<(werror)', | 705 '<(werror)', |
| (...skipping 613 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1305 '-fsanitize=cfi-vcall', | 1319 '-fsanitize=cfi-vcall', |
| 1306 '-fsanitize=cfi-derived-cast', | 1320 '-fsanitize=cfi-derived-cast', |
| 1307 '-fsanitize=cfi-unrelated-cast', | 1321 '-fsanitize=cfi-unrelated-cast', |
| 1308 ], | 1322 ], |
| 1309 }], | 1323 }], |
| 1310 ], | 1324 ], |
| 1311 }, | 1325 }, |
| 1312 }], | 1326 }], |
| 1313 ], | 1327 ], |
| 1314 } | 1328 } |
| OLD | NEW |