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("//third_party/protobuf/proto_library.gni") | 6 import("//third_party/protobuf/proto_library.gni") |
7 | 7 |
8 source_set("service") { | 8 source_set("service") { |
9 sources = [ | 9 sources = [ |
10 "async_pixel_transfer_delegate.cc", | 10 "async_pixel_transfer_delegate.cc", |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 "valuebuffer_manager.h", | 114 "valuebuffer_manager.h", |
115 "valuebuffer_manager.cc", | 115 "valuebuffer_manager.cc", |
116 "vertex_array_manager.h", | 116 "vertex_array_manager.h", |
117 "vertex_array_manager.cc", | 117 "vertex_array_manager.cc", |
118 "vertex_attrib_manager.h", | 118 "vertex_attrib_manager.h", |
119 "vertex_attrib_manager.cc", | 119 "vertex_attrib_manager.cc", |
120 ] | 120 ] |
121 | 121 |
122 defines = [ "GPU_IMPLEMENTATION" ] | 122 defines = [ "GPU_IMPLEMENTATION" ] |
123 | 123 |
124 configs += [ | 124 configs += [ "//third_party/khronos:khronos_headers" ] |
125 "//third_party/khronos:khronos_headers", | |
126 ] | |
127 | 125 |
128 # Prefer mesa GL headers to system headers, which cause problems on Win. | 126 # Prefer mesa GL headers to system headers, which cause problems on Win. |
129 include_dirs = [ "//third_party/mesa/src/include" ] | 127 include_dirs = [ "//third_party/mesa/src/include" ] |
130 | 128 |
131 public_deps = [ | 129 public_deps = [ |
132 "//gpu/command_buffer/common", | 130 "//gpu/command_buffer/common", |
133 ] | 131 ] |
134 deps = [ | 132 deps = [ |
135 ":disk_cache_proto", | 133 ":disk_cache_proto", |
136 "//base", | 134 "//base", |
137 "//base/third_party/dynamic_annotations", | 135 "//base/third_party/dynamic_annotations", |
138 "//crypto", | 136 "//crypto", |
139 "//third_party/angle:translator", | 137 "//third_party/angle:translator", |
140 "//third_party/protobuf:protobuf_lite", | 138 "//third_party/protobuf:protobuf_lite", |
141 "//third_party/re2", | 139 "//third_party/re2", |
142 "//third_party/smhasher:cityhash", | 140 "//third_party/smhasher:cityhash", |
143 "//ui/gfx", | 141 "//ui/gfx", |
144 "//ui/gfx/geometry", | 142 "//ui/gfx/geometry", |
145 "//ui/gl", | 143 "//ui/gl", |
146 ] | 144 ] |
147 | 145 |
148 if (ui_compositor_image_transport) { | 146 if (ui_compositor_image_transport) { |
149 include_dirs += [ "//third_party/khronos" ] | 147 include_dirs += [ "//third_party/khronos" ] |
150 } | 148 } |
151 | 149 |
152 if (is_win || is_android || (is_linux && use_x11)) { | 150 if (is_win || is_android || is_linux && use_x11) { |
153 sources += [ | 151 sources += [ |
154 "async_pixel_transfer_manager_egl.cc", | 152 "async_pixel_transfer_manager_egl.cc", |
155 "async_pixel_transfer_manager_egl.h", | 153 "async_pixel_transfer_manager_egl.h", |
156 ] | 154 ] |
157 } | 155 } |
158 | 156 |
159 if (is_android && !is_debug) { | 157 if (is_android && !is_debug) { |
160 # On Android optimize more since this component can be a bottleneck. | 158 # On Android optimize more since this component can be a bottleneck. |
161 configs -= [ "//build/config/compiler:optimize" ] | 159 configs -= [ "//build/config/compiler:optimize" ] |
162 configs += [ "//build/config/compiler:optimize_max" ] | 160 configs += [ "//build/config/compiler:optimize_max" ] |
163 } | 161 } |
164 } | 162 } |
165 | 163 |
166 proto_library("disk_cache_proto") { | 164 proto_library("disk_cache_proto") { |
167 sources = [ "disk_cache_proto.proto" ] | 165 sources = [ |
| 166 "disk_cache_proto.proto", |
| 167 ] |
168 } | 168 } |
OLD | NEW |