| 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 705 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 716 if (is_win) { | 716 if (is_win) { |
| 717 ldflags = | 717 ldflags = |
| 718 [ "/DEF:" + rebase_path("src/src/mesa/drivers/osmesa/osmesa.def", | 718 [ "/DEF:" + rebase_path("src/src/mesa/drivers/osmesa/osmesa.def", |
| 719 root_build_dir) ] | 719 root_build_dir) ] |
| 720 } | 720 } |
| 721 | 721 |
| 722 deps = [ | 722 deps = [ |
| 723 ":mesa_headers", | 723 ":mesa_headers", |
| 724 ":mesa", | 724 ":mesa", |
| 725 ":mesa_libglslcommon", | 725 ":mesa_libglslcommon", |
| 726 "//build/config/sanitizers:deps", |
| 726 ] | 727 ] |
| 727 | 728 |
| 728 if (is_win) { | 729 if (is_win) { |
| 729 defines = [ | 730 defines = [ |
| 730 "BUILD_GL32", | 731 "BUILD_GL32", |
| 731 "KEYWORD1=GLAPI", | 732 "KEYWORD1=GLAPI", |
| 732 "KEYWORD2=GLAPIENTRY", | 733 "KEYWORD2=GLAPIENTRY", |
| 733 ] | 734 ] |
| 734 } | 735 } |
| 735 } | 736 } |
| 736 } else { | 737 } else { |
| 737 # Placeholder to allow targets to unconditionally depend on this. | 738 # Placeholder to allow targets to unconditionally depend on this. |
| 738 group("osmesa") { | 739 group("osmesa") { |
| 739 } | 740 } |
| 740 } # !is_android | 741 } # !is_android |
| 741 # TODO(GYP) Android osmesa_in_lib_dir target. | 742 # TODO(GYP) Android osmesa_in_lib_dir target. |
| OLD | NEW |