| 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 import("//build/config/compiler/compiler.gni") | 6 import("//build/config/compiler/compiler.gni") |
| 7 import("//build/config/sanitizers/sanitizers.gni") | 7 import("//build/config/sanitizers/sanitizers.gni") |
| 8 | 8 |
| 9 config("mesa_headers_config") { | 9 config("mesa_headers_config") { |
| 10 include_dirs = [ "src/include" ] | 10 include_dirs = [ "src/include" ] |
| 11 if (!use_x11) { | 11 if (!use_x11) { |
| 12 defines = [ "MESA_EGL_NO_X11_HEADERS" ] | 12 defines = [ "MESA_EGL_NO_X11_HEADERS" ] |
| 13 } | 13 } |
| 14 } | 14 } |
| 15 | 15 |
| 16 assert(!is_ios, "mesa is not used on iOS, don't pull it in accidentally") |
| 17 |
| 16 # This directory contains checked-in files generated from the Mesa build. | 18 # This directory contains checked-in files generated from the Mesa build. |
| 17 generated_src_dir = "src/chromium_gensrc" | 19 generated_src_dir = "src/chromium_gensrc" |
| 18 | 20 |
| 19 source_set("mesa_headers") { | 21 source_set("mesa_headers") { |
| 20 public_configs = [ ":mesa_headers_config" ] | 22 public_configs = [ ":mesa_headers_config" ] |
| 21 } | 23 } |
| 22 | 24 |
| 23 # This config must generally be prepended to the configs list so that the Mesa | 25 # This config must generally be prepended to the configs list so that the Mesa |
| 24 # dirs appear before the system ones on Windows. This is necessary so that | 26 # dirs appear before the system ones on Windows. This is necessary so that |
| 25 # #include "GL/gl.h" means to include Mesa's, not the system's. | 27 # #include "GL/gl.h" means to include Mesa's, not the system's. |
| (...skipping 757 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 783 deps = [ | 785 deps = [ |
| 784 "//third_party/wayland:wayland_util", | 786 "//third_party/wayland:wayland_util", |
| 785 ] | 787 ] |
| 786 | 788 |
| 787 configs -= [ "//build/config/compiler:chromium_code" ] | 789 configs -= [ "//build/config/compiler:chromium_code" ] |
| 788 configs += [ "//build/config/compiler:no_chromium_code" ] | 790 configs += [ "//build/config/compiler:no_chromium_code" ] |
| 789 | 791 |
| 790 public_configs = [ ":wayland_drm_protocol_config" ] | 792 public_configs = [ ":wayland_drm_protocol_config" ] |
| 791 } | 793 } |
| 792 } | 794 } |
| OLD | NEW |