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 defines += [ "USE_EXTERNAL_DXTN_LIB=0" ] | |
Nico
2017/05/11 15:05:33
Add comment for as to why. Also, we could probably
| |
119 } | |
117 } | 120 } |
118 | 121 |
119 # mesa_internal_config is prepended to the config lists. Flags that | 122 # mesa_internal_config is prepended to the config lists. Flags that |
120 # disable warnings need to be appended instead so that they show up | 123 # 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 | 124 # after flags like -Wall. (gn orders flags on a target before flags from |
122 # configs.) | 125 # configs.) |
123 config("mesa_internal_warnings") { | 126 config("mesa_internal_warnings") { |
124 cflags = [] | 127 cflags = [] |
125 if (is_clang) { | 128 if (is_clang) { |
126 cflags += [ | 129 cflags += [ |
(...skipping 656 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
783 deps = [ | 786 deps = [ |
784 "//third_party/wayland:wayland_util", | 787 "//third_party/wayland:wayland_util", |
785 ] | 788 ] |
786 | 789 |
787 configs -= [ "//build/config/compiler:chromium_code" ] | 790 configs -= [ "//build/config/compiler:chromium_code" ] |
788 configs += [ "//build/config/compiler:no_chromium_code" ] | 791 configs += [ "//build/config/compiler:no_chromium_code" ] |
789 | 792 |
790 public_configs = [ ":wayland_drm_protocol_config" ] | 793 public_configs = [ ":wayland_drm_protocol_config" ] |
791 } | 794 } |
792 } | 795 } |
OLD | NEW |