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 # Set to 1 to enable the clang plugin that checks the usage of the Blink | |
36 # garbage-collection infrastructure during compilation. | |
37 # Requires building locally since GOMA doesn't yet support the plugin. | |
38 'blink_gc_plugin%': 0, | |
35 }, | 39 }, |
36 'targets': [ | 40 'targets': [ |
37 { | 41 { |
38 'target_name': 'config', | 42 'target_name': 'config', |
39 'type': 'none', | 43 'type': 'none', |
40 'direct_dependent_settings': { | 44 'direct_dependent_settings': { |
41 'include_dirs': [ | 45 'include_dirs': [ |
42 '.', | 46 '.', |
43 '..', | 47 '..', |
44 ], | 48 ], |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
91 # Due to a bug in gcc arm, we get warnings about uninitialized | 95 # Due to a bug in gcc arm, we get warnings about uninitialized |
92 # timesNewRoman.unstatic.3258 and colorTransparent.unstatic.4879. | 96 # timesNewRoman.unstatic.3258 and colorTransparent.unstatic.4879. |
93 'cflags': ['-Wno-uninitialized'], | 97 'cflags': ['-Wno-uninitialized'], |
94 }], | 98 }], |
95 ['clang==1', { | 99 ['clang==1', { |
96 'cflags': ['-Wglobal-constructors'], | 100 'cflags': ['-Wglobal-constructors'], |
97 'xcode_settings': { | 101 'xcode_settings': { |
98 'WARNING_CFLAGS': ['-Wglobal-constructors'], | 102 'WARNING_CFLAGS': ['-Wglobal-constructors'], |
99 }, | 103 }, |
100 }], | 104 }], |
105 # 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 and OS !="win"', { | |
Mads Ager (chromium)
2014/01/10 10:50:45
Is the OS!="win" needed? If we start using clang o
zerny-chromium
2014/01/10 11:33:59
Currently build/common.gypi [1] only defines the p
| |
107 'cflags': ['<@(clang_blink_gc_plugin_flags)'], | |
108 }], | |
101 ], | 109 ], |
102 }, | 110 }, |
103 }, | 111 }, |
104 { | 112 { |
105 'target_name': 'unittest_config', | 113 'target_name': 'unittest_config', |
106 'type': 'none', | 114 'type': 'none', |
107 'dependencies': [ | 115 'dependencies': [ |
108 'config', | 116 'config', |
109 '<(DEPTH)/testing/gmock.gyp:gmock', | 117 '<(DEPTH)/testing/gmock.gyp:gmock', |
110 '<(DEPTH)/testing/gtest.gyp:gtest', | 118 '<(DEPTH)/testing/gtest.gyp:gtest', |
111 ], | 119 ], |
112 'export_dependent_settings': [ | 120 'export_dependent_settings': [ |
113 'config', | 121 'config', |
114 '<(DEPTH)/testing/gmock.gyp:gmock', | 122 '<(DEPTH)/testing/gmock.gyp:gmock', |
115 '<(DEPTH)/testing/gtest.gyp:gtest', | 123 '<(DEPTH)/testing/gtest.gyp:gtest', |
116 ], | 124 ], |
117 'direct_dependent_settings': { | 125 'direct_dependent_settings': { |
118 'cflags!': ['-Wglobal-constructors'], | 126 'cflags!': ['-Wglobal-constructors'], |
119 'xcode_settings': { | 127 'xcode_settings': { |
120 'WARNING_CFLAGS!': ['-Wglobal-constructors'], | 128 'WARNING_CFLAGS!': ['-Wglobal-constructors'], |
121 }, | 129 }, |
122 }, | 130 }, |
123 } | 131 } |
124 ], | 132 ], |
125 } | 133 } |
OLD | NEW |