Chromium Code Reviews| 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 10 matching lines...) Expand all Loading... | |
| 21 # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | 21 # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |
| 22 # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | 22 # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
| 23 # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | 23 # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
| 24 # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 24 # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 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 'targets': [], |
| 32 # If set to 1, doesn't compile debug symbols into webcore reducing the | 32 'conditions': [ |
| 33 # size of the binary and increasing the speed of gdb. gcc only. | 33 ['OS!="ios"', { |
|
Nico
2016/06/06 13:28:10
please add a comment here too then. ("# Normally,
sdefresne
2016/06/06 14:02:10
Done.
| |
| 34 'remove_webcore_debug_symbols%': 0, | 34 'variables': { |
|
Nico
2016/06/06 13:16:19
why is the change in this file needed? this is a c
sdefresne
2016/06/06 13:25:55
The goal is to have the target not exists when OS=
| |
| 35 # If set to 1 (default) and using clang, the Blink GC plugin will check the | 35 # If set to 1, doesn't compile debug symbols into webcore reducing the |
| 36 # usage of the garbage-collection infrastructure during compilation. | 36 # size of the binary and increasing the speed of gdb. gcc only. |
| 37 'blink_gc_plugin%': 1, | 37 'remove_webcore_debug_symbols%': 0, |
| 38 # Additional flags for the Blink GC plugin. | 38 # If set to 1 (default) and using clang, the Blink GC plugin will check the |
| 39 'blink_gc_plugin_flags%': '', | 39 # usage of the garbage-collection infrastructure during compilation. |
| 40 # If set to 1, the Blink will use the base allocator instead of | 40 'blink_gc_plugin%': 1, |
| 41 # PartitionAlloc. so that the top of stack-unwinding becomes the caller | 41 # Additional flags for the Blink GC plugin. |
| 42 # which requests memory allocation in blink. | 42 'blink_gc_plugin_flags%': '', |
| 43 'blink_disable_partition_allocator%': 0, | 43 # If set to 1, the Blink will use the base allocator instead of |
| 44 }, | 44 # PartitionAlloc. so that the top of stack-unwinding becomes the caller |
| 45 'targets': [ | 45 # which requests memory allocation in blink. |
| 46 { | 46 'blink_disable_partition_allocator%': 0, |
| 47 # GN version: //third_party/WebKit/Source:config | 47 }, |
| 48 # (In GN this is a config rather than a target.) | 48 'targets': [ |
| 49 'target_name': 'config', | 49 { |
| 50 'type': 'none', | 50 # GN version: //third_party/WebKit/Source:config |
| 51 'direct_dependent_settings': { | 51 # (In GN this is a config rather than a target.) |
| 52 'include_dirs': [ | 52 'target_name': 'config', |
| 53 '.', | 53 'type': 'none', |
| 54 '..', | 54 'direct_dependent_settings': { |
| 55 '<(SHARED_INTERMEDIATE_DIR)/third_party/WebKit', | 55 'include_dirs': [ |
| 56 '.', | |
| 57 '..', | |
| 58 '<(SHARED_INTERMEDIATE_DIR)/third_party/WebKit', | |
| 59 ], | |
| 60 'msvs_disabled_warnings': [ | |
| 61 4305, 4324, 4714, 4800, 4996, | |
| 62 ], | |
| 63 'variables': { | |
| 64 'chromium_code': 1, | |
| 65 'clang_warning_flags': [ '-Wglobal-constructors' ], | |
| 66 }, | |
| 67 'conditions': [ | |
| 68 ['OS=="win" and component=="shared_library"', { | |
| 69 'defines': [ | |
| 70 'USING_V8_SHARED', | |
| 71 ], | |
| 72 }], | |
| 73 ['OS=="win"', { | |
| 74 'sources/': [ | |
| 75 ['exclude', 'Posix\\.cpp$'], | |
| 76 ], | |
| 77 },{ # OS!="win" | |
| 78 'sources/': [ | |
| 79 ['exclude', 'Win\\.cpp$'], | |
| 80 ], | |
| 81 }], | |
| 82 ['OS!="mac"', { | |
| 83 'sources/': [ | |
| 84 ['exclude', 'Mac\\.mm$'], | |
| 85 ], | |
| 86 }], | |
| 87 ['OS!="android"', { | |
| 88 'sources/': [ | |
| 89 ['exclude', 'Android\\.cpp$'], | |
| 90 ], | |
| 91 }], | |
| 92 ['OS!="win" and remove_webcore_debug_symbols==1', { | |
| 93 # Remove -g from all targets defined here. | |
| 94 'cflags!': ['-g'], | |
| 95 }], | |
| 96 # Only enable the blink_gc_plugin when using clang and chrome plugin s. | |
| 97 ['blink_gc_plugin==1 and clang==1 and clang_use_chrome_plugins==1', { | |
| 98 'cflags': ['<!@(python <(DEPTH)/tools/clang/scripts/blink_gc_plugi n_flags.py target_os=<(OS) <(blink_gc_plugin_flags))'], | |
| 99 'xcode_settings': { | |
| 100 'OTHER_CFLAGS': ['<!@(python <(DEPTH)/tools/clang/scripts/blink_ gc_plugin_flags.py target_os=<(OS) <(blink_gc_plugin_flags))'], | |
| 101 }, | |
| 102 'msvs_settings': { | |
| 103 'VCCLCompilerTool': { | |
| 104 'AdditionalOptions': ['<!@(python <(DEPTH)/tools/clang/scripts /blink_gc_plugin_flags.py target_os=<(OS) <(blink_gc_plugin_flags))'], | |
| 105 }, | |
| 106 }, | |
| 107 }], | |
| 108 ['blink_disable_partition_allocator==1', { | |
| 109 'defines': [ | |
| 110 'MEMORY_TOOL_REPLACES_ALLOCATOR', | |
| 111 ], | |
| 112 }], | |
| 113 ['use_system_icu==1', { | |
| 114 'defines': [ | |
| 115 'USING_SYSTEM_ICU', | |
| 116 ], | |
| 117 }], | |
| 118 ], | |
| 119 }, | |
| 120 }, | |
| 121 { | |
| 122 'target_name': 'unittest_config', | |
| 123 'type': 'none', | |
| 124 'dependencies': [ | |
| 125 'config', | |
| 126 '<(DEPTH)/testing/gmock.gyp:gmock', | |
| 127 '<(DEPTH)/testing/gtest.gyp:gtest', | |
| 128 ], | |
| 129 'export_dependent_settings': [ | |
| 130 'config', | |
| 131 '<(DEPTH)/testing/gmock.gyp:gmock', | |
| 132 '<(DEPTH)/testing/gtest.gyp:gtest', | |
| 133 ], | |
| 134 'direct_dependent_settings': { | |
| 135 'variables': { | |
| 136 'chromium_code': 1, | |
| 137 'clang_warning_flags_unset': [ '-Wglobal-constructors' ], | |
| 138 }, | |
| 139 }, | |
| 140 } | |
| 56 ], | 141 ], |
| 57 'msvs_disabled_warnings': [ | 142 }], |
| 58 4305, 4324, 4714, 4800, 4996, | |
| 59 ], | |
| 60 'variables': { | |
| 61 'chromium_code': 1, | |
| 62 'clang_warning_flags': [ '-Wglobal-constructors' ], | |
| 63 }, | |
| 64 'conditions': [ | |
| 65 ['OS=="win" and component=="shared_library"', { | |
| 66 'defines': [ | |
| 67 'USING_V8_SHARED', | |
| 68 ], | |
| 69 }], | |
| 70 ['OS=="win"', { | |
| 71 'sources/': [ | |
| 72 ['exclude', 'Posix\\.cpp$'], | |
| 73 ], | |
| 74 },{ # OS!="win" | |
| 75 'sources/': [ | |
| 76 ['exclude', 'Win\\.cpp$'], | |
| 77 ], | |
| 78 }], | |
| 79 ['OS!="mac"', { | |
| 80 'sources/': [ | |
| 81 ['exclude', 'Mac\\.mm$'], | |
| 82 ], | |
| 83 }], | |
| 84 ['OS!="android"', { | |
| 85 'sources/': [ | |
| 86 ['exclude', 'Android\\.cpp$'], | |
| 87 ], | |
| 88 }], | |
| 89 ['OS!="win" and remove_webcore_debug_symbols==1', { | |
| 90 # Remove -g from all targets defined here. | |
| 91 'cflags!': ['-g'], | |
| 92 }], | |
| 93 # Only enable the blink_gc_plugin when using clang and chrome plugins. | |
| 94 ['blink_gc_plugin==1 and clang==1 and clang_use_chrome_plugins==1', { | |
| 95 'cflags': ['<!@(python <(DEPTH)/tools/clang/scripts/blink_gc_plugin_fl ags.py <(blink_gc_plugin_flags))'], | |
| 96 'xcode_settings': { | |
| 97 'OTHER_CFLAGS': ['<!@(python <(DEPTH)/tools/clang/scripts/blink_gc_p lugin_flags.py <(blink_gc_plugin_flags))'], | |
| 98 }, | |
| 99 'msvs_settings': { | |
| 100 'VCCLCompilerTool': { | |
| 101 'AdditionalOptions': ['<!@(python <(DEPTH)/tools/clang/scripts/bli nk_gc_plugin_flags.py <(blink_gc_plugin_flags))'], | |
| 102 }, | |
| 103 }, | |
| 104 }], | |
| 105 ['blink_disable_partition_allocator==1', { | |
| 106 'defines': [ | |
| 107 'MEMORY_TOOL_REPLACES_ALLOCATOR', | |
| 108 ], | |
| 109 }], | |
| 110 ['use_system_icu==1', { | |
| 111 'defines': [ | |
| 112 'USING_SYSTEM_ICU', | |
| 113 ], | |
| 114 }], | |
| 115 ], | |
| 116 }, | |
| 117 }, | |
| 118 { | |
| 119 'target_name': 'unittest_config', | |
| 120 'type': 'none', | |
| 121 'dependencies': [ | |
| 122 'config', | |
| 123 '<(DEPTH)/testing/gmock.gyp:gmock', | |
| 124 '<(DEPTH)/testing/gtest.gyp:gtest', | |
| 125 ], | |
| 126 'export_dependent_settings': [ | |
| 127 'config', | |
| 128 '<(DEPTH)/testing/gmock.gyp:gmock', | |
| 129 '<(DEPTH)/testing/gtest.gyp:gtest', | |
| 130 ], | |
| 131 'direct_dependent_settings': { | |
| 132 'variables': { | |
| 133 'chromium_code': 1, | |
| 134 'clang_warning_flags_unset': [ '-Wglobal-constructors' ], | |
| 135 }, | |
| 136 }, | |
| 137 } | |
| 138 ], | 143 ], |
| 139 } | 144 } |
| OLD | NEW |