| 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 21 matching lines...) Expand all Loading... |
| 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 'enable_oilpan%': 0, | 35 'enable_oilpan%': 0, |
| 36 # If set to 1 (default) and using clang, the Blink GC plugin will check the | 36 # If set to 1 (default) and using clang, the Blink GC plugin will check the |
| 37 # usage of the garbage-collection infrastructure during compilation. | 37 # usage of the garbage-collection infrastructure during compilation. |
| 38 'blink_gc_plugin%': 1, | 38 'blink_gc_plugin%': 1, |
| 39 # If set to 1 together with blink_gc_plugin, the Blink GC plugin will dump | 39 # If set to 1 together with blink_gc_plugin, the Blink GC plugin will dump |
| 40 # points-to graph files for each compilation unit. | 40 # points-to graph files for each compilation unit. |
| 41 'blink_gc_plugin_dump_graph%': 0, | 41 'blink_gc_plugin_dump_graph%': 0, |
| 42 # If set to 1, the Blink will use the base allocator instead of |
| 43 # PartitionAlloc. so that the top of stack-unwinding becomes the caller |
| 44 # which requests memory allocation in blink. |
| 45 'blink_disable_partition_allocator%': 0, |
| 42 }, | 46 }, |
| 43 'targets': [ | 47 'targets': [ |
| 44 { | 48 { |
| 45 # GN version: //third_party/WebKit/Source:config | 49 # GN version: //third_party/WebKit/Source:config |
| 46 # (In GN this is a config rather than a target.) | 50 # (In GN this is a config rather than a target.) |
| 47 'target_name': 'config', | 51 'target_name': 'config', |
| 48 'type': 'none', | 52 'type': 'none', |
| 49 'direct_dependent_settings': { | 53 'direct_dependent_settings': { |
| 50 'include_dirs': [ | 54 'include_dirs': [ |
| 51 '.', | 55 '.', |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 'WARNING_CFLAGS': ['-Wglobal-constructors'], | 106 'WARNING_CFLAGS': ['-Wglobal-constructors'], |
| 103 }, | 107 }, |
| 104 }], | 108 }], |
| 105 # Only enable the blink_gc_plugin when using clang and chrome plugins. | 109 # Only enable the blink_gc_plugin when using clang and chrome plugins. |
| 106 ['blink_gc_plugin==1 and clang==1 and clang_use_chrome_plugins==1', { | 110 ['blink_gc_plugin==1 and clang==1 and clang_use_chrome_plugins==1', { |
| 107 'cflags': ['<!@(../../../tools/clang/scripts/blink_gc_plugin_flags.sh
enable-oilpan=<(enable_oilpan) dump-graph=<(blink_gc_plugin_dump_graph))'], | 111 'cflags': ['<!@(../../../tools/clang/scripts/blink_gc_plugin_flags.sh
enable-oilpan=<(enable_oilpan) dump-graph=<(blink_gc_plugin_dump_graph))'], |
| 108 'xcode_settings': { | 112 'xcode_settings': { |
| 109 'OTHER_CFLAGS': ['<!@(../../../tools/clang/scripts/blink_gc_plugin_f
lags.sh enable-oilpan=<(enable_oilpan) dump-graph=<(blink_gc_plugin_dump_graph))
'], | 113 'OTHER_CFLAGS': ['<!@(../../../tools/clang/scripts/blink_gc_plugin_f
lags.sh enable-oilpan=<(enable_oilpan) dump-graph=<(blink_gc_plugin_dump_graph))
'], |
| 110 }, | 114 }, |
| 111 }], | 115 }], |
| 116 ['blink_disable_partition_allocator==1', { |
| 117 'defines': [ |
| 118 'MEMORY_TOOL_REPLACES_ALLOCATOR', |
| 119 ], |
| 120 }], |
| 112 ], | 121 ], |
| 113 }, | 122 }, |
| 114 }, | 123 }, |
| 115 { | 124 { |
| 116 'target_name': 'unittest_config', | 125 'target_name': 'unittest_config', |
| 117 'type': 'none', | 126 'type': 'none', |
| 118 'dependencies': [ | 127 'dependencies': [ |
| 119 'config', | 128 'config', |
| 120 '<(DEPTH)/testing/gmock.gyp:gmock', | 129 '<(DEPTH)/testing/gmock.gyp:gmock', |
| 121 '<(DEPTH)/testing/gtest.gyp:gtest', | 130 '<(DEPTH)/testing/gtest.gyp:gtest', |
| 122 ], | 131 ], |
| 123 'export_dependent_settings': [ | 132 'export_dependent_settings': [ |
| 124 'config', | 133 'config', |
| 125 '<(DEPTH)/testing/gmock.gyp:gmock', | 134 '<(DEPTH)/testing/gmock.gyp:gmock', |
| 126 '<(DEPTH)/testing/gtest.gyp:gtest', | 135 '<(DEPTH)/testing/gtest.gyp:gtest', |
| 127 ], | 136 ], |
| 128 'direct_dependent_settings': { | 137 'direct_dependent_settings': { |
| 129 'cflags!': ['-Wglobal-constructors'], | 138 'cflags!': ['-Wglobal-constructors'], |
| 130 'xcode_settings': { | 139 'xcode_settings': { |
| 131 'WARNING_CFLAGS!': ['-Wglobal-constructors'], | 140 'WARNING_CFLAGS!': ['-Wglobal-constructors'], |
| 132 }, | 141 }, |
| 133 'variables': { | 142 'variables': { |
| 134 'chromium_code': 1, | 143 'chromium_code': 1, |
| 135 }, | 144 }, |
| 136 }, | 145 }, |
| 137 } | 146 } |
| 138 ], | 147 ], |
| 139 } | 148 } |
| OLD | NEW |