OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 import("//build/config/ui.gni") | 5 import("//build/config/ui.gni") |
6 | 6 |
7 config("mesa_headers_config") { | 7 config("mesa_headers_config") { |
8 include_dirs = [ "src/include" ] | 8 include_dirs = [ "src/include" ] |
9 if (use_x11) { | 9 if (use_x11) { |
10 defines = [ "MESA_EGL_NO_X11_HEADERS" ] | 10 defines = [ "MESA_EGL_NO_X11_HEADERS" ] |
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
227 ] | 227 ] |
228 | 228 |
229 configs -= [ | 229 configs -= [ |
230 "//build/config/compiler:chromium_code", | 230 "//build/config/compiler:chromium_code", |
231 ] | 231 ] |
232 configs += [ | 232 configs += [ |
233 ":mesa_internal_config", | 233 ":mesa_internal_config", |
234 "//build/config/compiler:no_chromium_code", | 234 "//build/config/compiler:no_chromium_code", |
235 ] | 235 ] |
236 | 236 |
| 237 if (is_clang) { |
| 238 # Mesa triggers some of these Clang warnings. |
| 239 configs -= [ "//build/config/clang:extra_warnings" ] |
| 240 } |
| 241 |
237 deps = [ | 242 deps = [ |
238 ":mesa_headers", | 243 ":mesa_headers", |
239 ] | 244 ] |
240 } | 245 } |
241 | 246 |
242 static_library("mesa") { | 247 static_library("mesa") { |
243 sources = [ | 248 sources = [ |
244 "$generated_src_dir/mesa/builtin_function.cpp", | 249 "$generated_src_dir/mesa/builtin_function.cpp", |
245 "$generated_src_dir/mesa/glapi_mapi_tmp_shared.h", | 250 "$generated_src_dir/mesa/glapi_mapi_tmp_shared.h", |
246 "src/src/mapi/mapi/entry.c", | 251 "src/src/mapi/mapi/entry.c", |
(...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
672 deps = [ | 677 deps = [ |
673 ":mesa_headers", | 678 ":mesa_headers", |
674 ":mesa", | 679 ":mesa", |
675 ":mesa_libglslcommon", | 680 ":mesa_libglslcommon", |
676 ] | 681 ] |
677 } | 682 } |
678 | 683 |
679 } # !is_android | 684 } # !is_android |
680 | 685 |
681 # TODO(GYP) Android osmesa_in_lib_dir target. | 686 # TODO(GYP) Android osmesa_in_lib_dir target. |
OLD | NEW |