OLD | NEW |
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 { | 5 { |
6 'variables': { | 6 'variables': { |
7 'generated_src_dir': 'src/chromium_gensrc', | 7 'generated_src_dir': 'src/chromium_gensrc', |
8 }, | 8 }, |
9 'target_defaults': { | 9 'target_defaults': { |
10 'defines': [ | 10 'defines': [ |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 '<(generated_src_dir)/mesa/glapi', | 122 '<(generated_src_dir)/mesa/glapi', |
123 ], | 123 ], |
124 'dependencies': [ | 124 'dependencies': [ |
125 'mesa_headers', | 125 'mesa_headers', |
126 ], | 126 ], |
127 # TODO(scottmg): http://crbug.com/143877 These should be removed if | 127 # TODO(scottmg): http://crbug.com/143877 These should be removed if |
128 # Mesa is ever rolled and the warnings are fixed. | 128 # Mesa is ever rolled and the warnings are fixed. |
129 'msvs_disabled_warnings': [ | 129 'msvs_disabled_warnings': [ |
130 4005, 4018, 4065, 4090, 4099, 4273, 4291, 4345, 4267, | 130 4005, 4018, 4065, 4090, 4099, 4273, 4291, 4345, 4267, |
131 ], | 131 ], |
| 132 'variables': { |
| 133 'clang_warning_flags': [ |
| 134 '-Wno-tautological-constant-out-of-range-compare', |
| 135 ], |
| 136 'clang_warning_flags_unset': [ |
| 137 # Don't warn about string->bool used in asserts. |
| 138 '-Wstring-conversion', |
| 139 ], |
| 140 }, |
132 'sources': [ | 141 'sources': [ |
133 '<(generated_src_dir)/mesa/main/dispatch.h', | 142 '<(generated_src_dir)/mesa/main/dispatch.h', |
134 'src/src/glsl/ast_expr.cpp', | 143 'src/src/glsl/ast_expr.cpp', |
135 'src/src/glsl/ast_function.cpp', | 144 'src/src/glsl/ast_function.cpp', |
136 'src/src/glsl/ast_to_hir.cpp', | 145 'src/src/glsl/ast_to_hir.cpp', |
137 'src/src/glsl/ast_type.cpp', | 146 'src/src/glsl/ast_type.cpp', |
138 'src/src/glsl/builtin_variables.cpp', | 147 'src/src/glsl/builtin_variables.cpp', |
139 '<(generated_src_dir)/mesa/glcpp-lex.c', | 148 '<(generated_src_dir)/mesa/glcpp-lex.c', |
140 '<(generated_src_dir)/mesa/glcpp-parse.c', | 149 '<(generated_src_dir)/mesa/glcpp-parse.c', |
141 '<(generated_src_dir)/mesa/glcpp-parse.h', | 150 '<(generated_src_dir)/mesa/glcpp-parse.h', |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
223 'src/src/glsl/ralloc.h', | 232 'src/src/glsl/ralloc.h', |
224 'src/src/glsl/s_expression.cpp', | 233 'src/src/glsl/s_expression.cpp', |
225 'src/src/glsl/s_expression.h', | 234 'src/src/glsl/s_expression.h', |
226 # This file is not needed and has duplicate symbols (although it | 235 # This file is not needed and has duplicate symbols (although it |
227 # happens to link because of static library link ordering). | 236 # happens to link because of static library link ordering). |
228 #'src/src/glsl/standalone_scaffolding.cpp', | 237 #'src/src/glsl/standalone_scaffolding.cpp', |
229 #'src/src/glsl/standalone_scaffolding.h', | 238 #'src/src/glsl/standalone_scaffolding.h', |
230 'src/src/glsl/strtod.c', | 239 'src/src/glsl/strtod.c', |
231 'src/src/glsl/strtod.h', | 240 'src/src/glsl/strtod.h', |
232 ], | 241 ], |
233 'conditions': [ | |
234 ['clang == 1', { | |
235 'xcode_settings': { | |
236 'WARNING_CFLAGS': [ | |
237 '-Wno-tautological-constant-out-of-range-compare', | |
238 ], | |
239 'WARNING_CFLAGS!': [ | |
240 # Don't warn about string->bool used in asserts. | |
241 '-Wstring-conversion', | |
242 ], | |
243 }, | |
244 'cflags': [ | |
245 '-Wno-tautological-constant-out-of-range-compare', | |
246 ], | |
247 'cflags!': [ | |
248 '-Wstring-conversion', | |
249 ], | |
250 }], | |
251 ], | |
252 }, | 242 }, |
253 { | 243 { |
254 'target_name': 'mesa', | 244 'target_name': 'mesa', |
255 'type': 'static_library', | 245 'type': 'static_library', |
256 'include_dirs': [ | 246 'include_dirs': [ |
257 'src/src/gallium/auxiliary', | 247 'src/src/gallium/auxiliary', |
258 'src/src/gallium/include', | 248 'src/src/gallium/include', |
259 'src/src/glsl', | 249 'src/src/glsl', |
260 'src/src/glsl/glcpp', | 250 'src/src/glsl/glcpp', |
261 'src/src/mapi', | 251 'src/src/mapi', |
(...skipping 486 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
748 '<(PRODUCT_DIR)/libosmesa.so', | 738 '<(PRODUCT_DIR)/libosmesa.so', |
749 '<(SHARED_LIB_DIR)/libosmesa.so', | 739 '<(SHARED_LIB_DIR)/libosmesa.so', |
750 ], | 740 ], |
751 }, | 741 }, |
752 ], | 742 ], |
753 }, | 743 }, |
754 ], | 744 ], |
755 }], | 745 }], |
756 ], | 746 ], |
757 } | 747 } |
OLD | NEW |