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" ] |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 "HAVE_LIBEXPAT=1", | 52 "HAVE_LIBEXPAT=1", |
53 "HAVE_LIBXCB_DRI2=1", | 53 "HAVE_LIBXCB_DRI2=1", |
54 "FEATURE_GL=1", | 54 "FEATURE_GL=1", |
55 "MAPI_MODE_GLAPI", | 55 "MAPI_MODE_GLAPI", |
56 | 56 |
57 #"USE_X86_64_ASM", | 57 #"USE_X86_64_ASM", |
58 "IN_DRI_DRIVER", | 58 "IN_DRI_DRIVER", |
59 "USE_XCB", | 59 "USE_XCB", |
60 "GLX_INDIRECT_RENDERING", | 60 "GLX_INDIRECT_RENDERING", |
61 "GLX_DIRECT_RENDERING", | 61 "GLX_DIRECT_RENDERING", |
62 "USE_EXTERNAL_DXTN_LIB=1", | |
63 "IN_DRI_DRIVER", | 62 "IN_DRI_DRIVER", |
64 "HAVE_ALIAS", | 63 "HAVE_ALIAS", |
65 "HAVE_MINCORE", | 64 "HAVE_MINCORE", |
66 "HAVE_LIBUDEV", | 65 "HAVE_LIBUDEV", |
67 "_GLAPI_NO_EXPORTS", | 66 "_GLAPI_NO_EXPORTS", |
68 ] | 67 ] |
69 include_dirs = [ | 68 include_dirs = [ |
70 "src/src/gallium/auxiliary", | 69 "src/src/gallium/auxiliary", |
71 "src/src/gallium/include", | 70 "src/src/gallium/include", |
72 "src/src/glsl", | 71 "src/src/glsl", |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 ] | 106 ] |
108 | 107 |
109 if (!is_android) { | 108 if (!is_android) { |
110 defines += [ "HAVE_POSIX_MEMALIGN" ] | 109 defines += [ "HAVE_POSIX_MEMALIGN" ] |
111 } | 110 } |
112 | 111 |
113 if (!is_android && !is_mac) { | 112 if (!is_android && !is_mac) { |
114 cflags += [ "-fPIC" ] | 113 cflags += [ "-fPIC" ] |
115 } | 114 } |
116 } | 115 } |
| 116 |
| 117 if (is_msan) { |
| 118 # Disable code in mesa that loads the libtxc_dxtn.so library if msan is |
| 119 # enabled, as the library will be loaded from a system directory, which |
| 120 # may cause spurious msan reports because msan expects most libraries in |
| 121 # the process to be compiled with msan. |
| 122 defines += [ "USE_EXTERNAL_DXTN_LIB=0" ] |
| 123 } |
117 } | 124 } |
118 | 125 |
119 # mesa_internal_config is prepended to the config lists. Flags that | 126 # mesa_internal_config is prepended to the config lists. Flags that |
120 # disable warnings need to be appended instead so that they show up | 127 # disable warnings need to be appended instead so that they show up |
121 # after flags like -Wall. (gn orders flags on a target before flags from | 128 # after flags like -Wall. (gn orders flags on a target before flags from |
122 # configs.) | 129 # configs.) |
123 config("mesa_internal_warnings") { | 130 config("mesa_internal_warnings") { |
124 cflags = [] | 131 cflags = [] |
125 if (is_clang) { | 132 if (is_clang) { |
126 cflags += [ | 133 cflags += [ |
(...skipping 656 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
783 deps = [ | 790 deps = [ |
784 "//third_party/wayland:wayland_util", | 791 "//third_party/wayland:wayland_util", |
785 ] | 792 ] |
786 | 793 |
787 configs -= [ "//build/config/compiler:chromium_code" ] | 794 configs -= [ "//build/config/compiler:chromium_code" ] |
788 configs += [ "//build/config/compiler:no_chromium_code" ] | 795 configs += [ "//build/config/compiler:no_chromium_code" ] |
789 | 796 |
790 public_configs = [ ":wayland_drm_protocol_config" ] | 797 public_configs = [ ":wayland_drm_protocol_config" ] |
791 } | 798 } |
792 } | 799 } |
OLD | NEW |