| OLD | NEW |
| 1 # | 1 # |
| 2 # Copyright (C) 2013 Google Inc. All rights reserved. | 2 # Copyright (C) 2013 Google Inc. All rights reserved. |
| 3 # | 3 # |
| 4 # Redistribution and use in source and binary forms, with or without | 4 # Redistribution and use in source and binary forms, with or without |
| 5 # modification, are permitted provided that the following conditions are | 5 # modification, are permitted provided that the following conditions are |
| 6 # met: | 6 # met: |
| 7 # | 7 # |
| 8 # * Redistributions of source code must retain the above copyright | 8 # * Redistributions of source code must retain the above copyright |
| 9 # notice, this list of conditions and the following disclaimer. | 9 # notice, this list of conditions and the following disclaimer. |
| 10 # * Redistributions in binary form must reproduce the above | 10 # * Redistributions in binary form must reproduce the above |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 25 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 26 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 27 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 28 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 29 # | 29 # |
| 30 { | 30 { |
| 31 'variables': { | 31 'variables': { |
| 32 # If set to 1, doesn't compile debug symbols into webcore reducing the | 32 # If set to 1, doesn't compile debug symbols into webcore reducing the |
| 33 # size of the binary and increasing the speed of gdb. gcc only. | 33 # size of the binary and increasing the speed of gdb. gcc only. |
| 34 'remove_webcore_debug_symbols%': 0, | 34 'remove_webcore_debug_symbols%': 0, |
| 35 # Enables the Oilpan garbage-collection infrastructure. | |
| 36 # If you update the default value below, be sure to update the one in | |
| 37 # build/features.gypi, too! | |
| 38 'enable_oilpan%': 1, | |
| 39 # If set to 1 (default) and using clang, the Blink GC plugin will check the | 35 # If set to 1 (default) and using clang, the Blink GC plugin will check the |
| 40 # usage of the garbage-collection infrastructure during compilation. | 36 # usage of the garbage-collection infrastructure during compilation. |
| 41 'blink_gc_plugin%': 1, | 37 'blink_gc_plugin%': 1, |
| 42 # Additional flags for the Blink GC plugin. | 38 # Additional flags for the Blink GC plugin. |
| 43 'blink_gc_plugin_flags%': '', | 39 'blink_gc_plugin_flags%': '', |
| 44 # If set to 1, the Blink will use the base allocator instead of | 40 # If set to 1, the Blink will use the base allocator instead of |
| 45 # PartitionAlloc. so that the top of stack-unwinding becomes the caller | 41 # PartitionAlloc. so that the top of stack-unwinding becomes the caller |
| 46 # which requests memory allocation in blink. | 42 # which requests memory allocation in blink. |
| 47 'blink_disable_partition_allocator%': 0, | 43 'blink_disable_partition_allocator%': 0, |
| 48 }, | 44 }, |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 'sources/': [ | 85 'sources/': [ |
| 90 ['exclude', 'Android\\.cpp$'], | 86 ['exclude', 'Android\\.cpp$'], |
| 91 ], | 87 ], |
| 92 }], | 88 }], |
| 93 ['OS!="win" and remove_webcore_debug_symbols==1', { | 89 ['OS!="win" and remove_webcore_debug_symbols==1', { |
| 94 # Remove -g from all targets defined here. | 90 # Remove -g from all targets defined here. |
| 95 'cflags!': ['-g'], | 91 'cflags!': ['-g'], |
| 96 }], | 92 }], |
| 97 # Only enable the blink_gc_plugin when using clang and chrome plugins. | 93 # Only enable the blink_gc_plugin when using clang and chrome plugins. |
| 98 ['blink_gc_plugin==1 and clang==1 and clang_use_chrome_plugins==1', { | 94 ['blink_gc_plugin==1 and clang==1 and clang_use_chrome_plugins==1', { |
| 99 'cflags': ['<!@(python <(DEPTH)/tools/clang/scripts/blink_gc_plugin_fl
ags.py enable-oilpan=<(enable_oilpan) <(blink_gc_plugin_flags))'], | 95 'cflags': ['<!@(python <(DEPTH)/tools/clang/scripts/blink_gc_plugin_fl
ags.py <(blink_gc_plugin_flags))'], |
| 100 'xcode_settings': { | 96 'xcode_settings': { |
| 101 'OTHER_CFLAGS': ['<!@(python <(DEPTH)/tools/clang/scripts/blink_gc_p
lugin_flags.py enable-oilpan=<(enable_oilpan) <(blink_gc_plugin_flags))'], | 97 'OTHER_CFLAGS': ['<!@(python <(DEPTH)/tools/clang/scripts/blink_gc_p
lugin_flags.py <(blink_gc_plugin_flags))'], |
| 102 }, | 98 }, |
| 103 'msvs_settings': { | 99 'msvs_settings': { |
| 104 'VCCLCompilerTool': { | 100 'VCCLCompilerTool': { |
| 105 'AdditionalOptions': ['<!@(python <(DEPTH)/tools/clang/scripts/bli
nk_gc_plugin_flags.py enable-oilpan=<(enable_oilpan) <(blink_gc_plugin_flags))']
, | 101 'AdditionalOptions': ['<!@(python <(DEPTH)/tools/clang/scripts/bli
nk_gc_plugin_flags.py <(blink_gc_plugin_flags))'], |
| 106 }, | 102 }, |
| 107 }, | 103 }, |
| 108 }], | 104 }], |
| 109 ['blink_disable_partition_allocator==1', { | 105 ['blink_disable_partition_allocator==1', { |
| 110 'defines': [ | 106 'defines': [ |
| 111 'MEMORY_TOOL_REPLACES_ALLOCATOR', | 107 'MEMORY_TOOL_REPLACES_ALLOCATOR', |
| 112 ], | 108 ], |
| 113 }], | 109 }], |
| 114 ['use_system_icu==1', { | 110 ['use_system_icu==1', { |
| 115 'defines': [ | 111 'defines': [ |
| (...skipping 18 matching lines...) Expand all Loading... |
| 134 ], | 130 ], |
| 135 'direct_dependent_settings': { | 131 'direct_dependent_settings': { |
| 136 'variables': { | 132 'variables': { |
| 137 'chromium_code': 1, | 133 'chromium_code': 1, |
| 138 'clang_warning_flags_unset': [ '-Wglobal-constructors' ], | 134 'clang_warning_flags_unset': [ '-Wglobal-constructors' ], |
| 139 }, | 135 }, |
| 140 }, | 136 }, |
| 141 } | 137 } |
| 142 ], | 138 ], |
| 143 } | 139 } |
| OLD | NEW |