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" ] |
11 } | 11 } |
12 } | 12 } |
13 | 13 |
14 # This directory contains checked-in files generated from the Mesa build. | 14 # This directory contains checked-in files generated from the Mesa build. |
15 generated_src_dir = "src/chromium_gensrc" | 15 generated_src_dir = "src/chromium_gensrc" |
16 | 16 |
17 source_set("mesa_headers") { | 17 source_set("mesa_headers") { |
18 direct_dependent_configs = [ ":mesa_headers_config" ] | 18 public_configs = [ ":mesa_headers_config" ] |
19 } | 19 } |
20 | 20 |
21 # This config must generally be prepended to the configs list so that the Mesa | 21 # This config must generally be prepended to the configs list so that the Mesa |
22 # dirs appear before the system ones on Windows. This is necessary so that | 22 # dirs appear before the system ones on Windows. This is necessary so that |
23 # #include "GL/gl.h" means to include Mesa's, not the system's. | 23 # #include "GL/gl.h" means to include Mesa's, not the system's. |
24 config("mesa_internal_config") { | 24 config("mesa_internal_config") { |
25 cflags = [] | 25 cflags = [] |
26 defines = [ | 26 defines = [ |
27 "MAPI_ABI_HEADER=\"glapi_mapi_tmp_shared.h\"", | 27 "MAPI_ABI_HEADER=\"glapi_mapi_tmp_shared.h\"", |
28 "PACKAGE_NAME=\"Mesa\"", | 28 "PACKAGE_NAME=\"Mesa\"", |
(...skipping 665 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
694 "BUILD_GL32", | 694 "BUILD_GL32", |
695 "KEYWORD1=GLAPI", | 695 "KEYWORD1=GLAPI", |
696 "KEYWORD2=GLAPIENTRY", | 696 "KEYWORD2=GLAPIENTRY", |
697 ] | 697 ] |
698 } | 698 } |
699 } | 699 } |
700 | 700 |
701 } # !is_android | 701 } # !is_android |
702 | 702 |
703 # TODO(GYP) Android osmesa_in_lib_dir target. | 703 # TODO(GYP) Android osmesa_in_lib_dir target. |
OLD | NEW |