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 group("service") { | 8 group("service") { |
9 if (is_component_build) { | 9 if (is_component_build) { |
10 public_deps = [ | 10 public_deps = [ |
11 "//gpu", | 11 "//gpu", |
12 ] | 12 ] |
13 } else { | 13 } else { |
14 public_deps = [ | 14 public_deps = [ |
15 ":service_sources", | 15 ":service_sources", |
16 ] | 16 ] |
17 } | 17 } |
18 } | 18 } |
19 | 19 |
20 source_set("service_sources") { | 20 source_set("service_sources") { |
21 visibility = [ | 21 visibility = [ |
22 "//gpu/*", | 22 "//gpu/*", |
23 "//mojo/gles2:gles2", | 23 "//mojo/gles2:gles2", |
24 ] | 24 ] |
25 | 25 |
26 sources = [ | 26 sources = [ |
27 "async_pixel_transfer_delegate.cc", | |
28 "async_pixel_transfer_delegate.h", | |
29 "async_pixel_transfer_manager.cc", | |
30 "async_pixel_transfer_manager.h", | |
31 "async_pixel_transfer_manager_android.cc", | |
32 "async_pixel_transfer_manager_idle.cc", | |
33 "async_pixel_transfer_manager_idle.h", | |
34 "async_pixel_transfer_manager_linux.cc", | |
35 "async_pixel_transfer_manager_mac.cc", | |
36 "async_pixel_transfer_manager_share_group.cc", | |
37 "async_pixel_transfer_manager_share_group.h", | |
38 "async_pixel_transfer_manager_stub.cc", | |
39 "async_pixel_transfer_manager_stub.h", | |
40 "async_pixel_transfer_manager_sync.cc", | |
41 "async_pixel_transfer_manager_sync.h", | |
42 "async_pixel_transfer_manager_win.cc", | |
43 "buffer_manager.cc", | 27 "buffer_manager.cc", |
44 "buffer_manager.h", | 28 "buffer_manager.h", |
45 "cmd_buffer_engine.h", | 29 "cmd_buffer_engine.h", |
46 "cmd_parser.cc", | 30 "cmd_parser.cc", |
47 "cmd_parser.h", | 31 "cmd_parser.h", |
48 "command_buffer_service.cc", | 32 "command_buffer_service.cc", |
49 "command_buffer_service.h", | 33 "command_buffer_service.h", |
50 "common_decoder.cc", | 34 "common_decoder.cc", |
51 "common_decoder.h", | 35 "common_decoder.h", |
52 "context_group.cc", | 36 "context_group.cc", |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 "//third_party/angle:commit_id", | 144 "//third_party/angle:commit_id", |
161 "//third_party/angle:translator", | 145 "//third_party/angle:translator", |
162 "//third_party/protobuf:protobuf_lite", | 146 "//third_party/protobuf:protobuf_lite", |
163 "//third_party/re2", | 147 "//third_party/re2", |
164 "//third_party/smhasher:cityhash", | 148 "//third_party/smhasher:cityhash", |
165 "//ui/gfx", | 149 "//ui/gfx", |
166 "//ui/gfx/geometry", | 150 "//ui/gfx/geometry", |
167 "//ui/gl", | 151 "//ui/gl", |
168 ] | 152 ] |
169 | 153 |
170 if (is_win || is_android || (is_linux && use_x11)) { | |
171 sources += [ | |
172 "async_pixel_transfer_manager_egl.cc", | |
173 "async_pixel_transfer_manager_egl.h", | |
174 ] | |
175 } | |
176 | |
177 if (is_mac) { | 154 if (is_mac) { |
178 # Required by gles2_cmd_decoder.cc on Mac. | 155 # Required by gles2_cmd_decoder.cc on Mac. |
179 libs = [ | 156 libs = [ |
180 "IOSurface.framework", | 157 "IOSurface.framework", |
181 "OpenGL.framework", | 158 "OpenGL.framework", |
182 ] | 159 ] |
183 } | 160 } |
184 | 161 |
185 if (is_android && !is_debug) { | 162 if (is_android && !is_debug) { |
186 # On Android optimize more since this component can be a bottleneck. | 163 # On Android optimize more since this component can be a bottleneck. |
187 configs -= [ "//build/config/compiler:optimize" ] | 164 configs -= [ "//build/config/compiler:optimize" ] |
188 configs += [ "//build/config/compiler:optimize_max" ] | 165 configs += [ "//build/config/compiler:optimize_max" ] |
189 } | 166 } |
190 } | 167 } |
191 | 168 |
192 proto_library("disk_cache_proto") { | 169 proto_library("disk_cache_proto") { |
193 sources = [ | 170 sources = [ |
194 "disk_cache_proto.proto", | 171 "disk_cache_proto.proto", |
195 ] | 172 ] |
196 } | 173 } |
OLD | NEW |