blob: 62fce76b4acb582d4711f14ead1bc488578c609e [file] [log] [blame]
[email protected]c1372a62014-05-21 19:42:311# Copyright 2014 The Chromium Authors. All rights reserved.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5import("//build/config/ui.gni")
6import("//third_party/protobuf/proto_library.gni")
7
brettw542f7532015-04-06 22:35:458group("service") {
9 if (is_component_build) {
10 public_deps = [
11 "//gpu",
12 ]
13 } else {
14 public_deps = [
15 ":service_sources",
16 ]
17 }
18}
19
20source_set("service_sources") {
21 visibility = [ "//gpu/*" ]
22
[email protected]c1372a62014-05-21 19:42:3123 sources = [
24 "async_pixel_transfer_delegate.cc",
25 "async_pixel_transfer_delegate.h",
satoruxc5bd7a32015-02-18 01:54:5226 "async_pixel_transfer_manager.cc",
27 "async_pixel_transfer_manager.h",
[email protected]c1372a62014-05-21 19:42:3128 "async_pixel_transfer_manager_android.cc",
29 "async_pixel_transfer_manager_idle.cc",
30 "async_pixel_transfer_manager_idle.h",
31 "async_pixel_transfer_manager_linux.cc",
32 "async_pixel_transfer_manager_mac.cc",
33 "async_pixel_transfer_manager_share_group.cc",
34 "async_pixel_transfer_manager_share_group.h",
35 "async_pixel_transfer_manager_stub.cc",
36 "async_pixel_transfer_manager_stub.h",
37 "async_pixel_transfer_manager_sync.cc",
38 "async_pixel_transfer_manager_sync.h",
39 "async_pixel_transfer_manager_win.cc",
[email protected]c1372a62014-05-21 19:42:3140 "buffer_manager.cc",
satoruxc5bd7a32015-02-18 01:54:5241 "buffer_manager.h",
[email protected]c1372a62014-05-21 19:42:3142 "cmd_buffer_engine.h",
43 "cmd_parser.cc",
44 "cmd_parser.h",
45 "command_buffer_service.cc",
46 "command_buffer_service.h",
47 "common_decoder.cc",
48 "common_decoder.h",
[email protected]c1372a62014-05-21 19:42:3149 "context_group.cc",
satoruxc5bd7a32015-02-18 01:54:5250 "context_group.h",
51 "context_state.cc",
[email protected]c1372a62014-05-21 19:42:3152 "context_state.h",
53 "context_state_autogen.h",
54 "context_state_impl_autogen.h",
[email protected]c1372a62014-05-21 19:42:3155 "error_state.cc",
56 "error_state.h",
[email protected]c1372a62014-05-21 19:42:3157 "feature_info.cc",
satoruxc5bd7a32015-02-18 01:54:5258 "feature_info.h",
[email protected]c1372a62014-05-21 19:42:3159 "framebuffer_manager.cc",
satoruxc5bd7a32015-02-18 01:54:5260 "framebuffer_manager.h",
[email protected]c1372a62014-05-21 19:42:3161 "gl_context_virtual.cc",
62 "gl_context_virtual.h",
63 "gl_state_restorer_impl.cc",
64 "gl_state_restorer_impl.h",
65 "gl_utils.h",
satoruxc5bd7a32015-02-18 01:54:5266 "gles2_cmd_clear_framebuffer.cc",
67 "gles2_cmd_clear_framebuffer.h",
68 "gles2_cmd_copy_texture_chromium.cc",
69 "gles2_cmd_copy_texture_chromium.h",
70 "gles2_cmd_decoder.cc",
71 "gles2_cmd_decoder.h",
72 "gles2_cmd_decoder_autogen.h",
73 "gles2_cmd_validation.cc",
74 "gles2_cmd_validation.h",
75 "gles2_cmd_validation_autogen.h",
76 "gles2_cmd_validation_implementation_autogen.h",
[email protected]c1372a62014-05-21 19:42:3177 "gpu_scheduler.cc",
78 "gpu_scheduler.h",
[email protected]c1372a62014-05-21 19:42:3179 "gpu_state_tracer.cc",
80 "gpu_state_tracer.h",
81 "gpu_switches.cc",
82 "gpu_switches.h",
satoruxc5bd7a32015-02-18 01:54:5283 "gpu_tracer.cc",
84 "gpu_tracer.h",
[email protected]c1372a62014-05-21 19:42:3185 "id_manager.cc",
satoruxc5bd7a32015-02-18 01:54:5286 "id_manager.h",
revemaneeba91b2014-10-28 22:49:2087 "image_factory.cc",
88 "image_factory.h",
[email protected]c1372a62014-05-21 19:42:3189 "image_manager.cc",
90 "image_manager.h",
91 "in_process_command_buffer.cc",
92 "in_process_command_buffer.h",
93 "logger.cc",
94 "logger.h",
boliu8e814cb2015-07-13 20:47:4695 "mailbox_manager.cc",
[email protected]c1372a62014-05-21 19:42:3196 "mailbox_manager.h",
sieversb727d532014-10-24 19:11:3497 "mailbox_manager_impl.cc",
98 "mailbox_manager_impl.h",
99 "mailbox_manager_sync.cc",
100 "mailbox_manager_sync.h",
[email protected]c1372a62014-05-21 19:42:31101 "memory_program_cache.cc",
satoruxc5bd7a32015-02-18 01:54:52102 "memory_program_cache.h",
kkinnunenb959a8462015-07-14 11:08:34103 "path_manager.cc",
104 "path_manager.h",
[email protected]c1372a62014-05-21 19:42:31105 "program_cache.cc",
satoruxc5bd7a32015-02-18 01:54:52106 "program_cache.h",
107 "program_manager.cc",
108 "program_manager.h",
109 "query_manager.cc",
110 "query_manager.h",
111 "renderbuffer_manager.cc",
112 "renderbuffer_manager.h",
[email protected]c1372a62014-05-21 19:42:31113 "shader_manager.cc",
satoruxc5bd7a32015-02-18 01:54:52114 "shader_manager.h",
[email protected]c1372a62014-05-21 19:42:31115 "shader_translator.cc",
satoruxc5bd7a32015-02-18 01:54:52116 "shader_translator.h",
[email protected]c1372a62014-05-21 19:42:31117 "shader_translator_cache.cc",
satoruxc5bd7a32015-02-18 01:54:52118 "shader_translator_cache.h",
[email protected]c1372a62014-05-21 19:42:31119 "stream_texture_manager_in_process_android.cc",
satoruxc5bd7a32015-02-18 01:54:52120 "stream_texture_manager_in_process_android.h",
abarth3f1812022014-11-18 23:33:07121 "sync_point_manager.cc",
satoruxc5bd7a32015-02-18 01:54:52122 "sync_point_manager.h",
[email protected]c1372a62014-05-21 19:42:31123 "texture_definition.cc",
satoruxc5bd7a32015-02-18 01:54:52124 "texture_definition.h",
[email protected]c1372a62014-05-21 19:42:31125 "texture_manager.cc",
satoruxc5bd7a32015-02-18 01:54:52126 "texture_manager.h",
[email protected]c1372a62014-05-21 19:42:31127 "transfer_buffer_manager.cc",
128 "transfer_buffer_manager.h",
orglofchcad5a6742014-11-07 19:51:12129 "valuebuffer_manager.cc",
satoruxc5bd7a32015-02-18 01:54:52130 "valuebuffer_manager.h",
[email protected]c1372a62014-05-21 19:42:31131 "vertex_array_manager.cc",
satoruxc5bd7a32015-02-18 01:54:52132 "vertex_array_manager.h",
[email protected]c1372a62014-05-21 19:42:31133 "vertex_attrib_manager.cc",
satoruxc5bd7a32015-02-18 01:54:52134 "vertex_attrib_manager.h",
[email protected]c1372a62014-05-21 19:42:31135 ]
136
brettw8f2fd172015-03-16 22:14:18137 configs += [
138 "//gpu:gpu_implementation",
139 "//third_party/khronos:khronos_headers",
140 ]
[email protected]c1372a62014-05-21 19:42:31141
ckocagilfc8d7f232014-09-30 19:31:43142 # Prefer mesa GL headers to system headers, which cause problems on Win.
143 include_dirs = [ "//third_party/mesa/src/include" ]
144
brettw7dab582e2014-09-20 01:44:11145 public_deps = [
brettw542f7532015-04-06 22:35:45146 "//gpu/command_buffer/common:common_sources",
brettw7dab582e2014-09-20 01:44:11147 ]
[email protected]c1372a62014-05-21 19:42:31148 deps = [
149 ":disk_cache_proto",
150 "//base",
151 "//base/third_party/dynamic_annotations",
152 "//crypto",
tfarina15525c42015-04-28 19:04:16153 "//gpu/config:config_sources",
[email protected]d5ba08c2014-06-18 07:01:08154 "//third_party/angle:translator",
[email protected]c1372a62014-05-21 19:42:31155 "//third_party/protobuf:protobuf_lite",
156 "//third_party/re2",
157 "//third_party/smhasher:cityhash",
158 "//ui/gfx",
159 "//ui/gfx/geometry",
160 "//ui/gl",
[email protected]c1372a62014-05-21 19:42:31161 ]
162
[email protected]c1372a62014-05-21 19:42:31163 if (is_win || is_android || (is_linux && use_x11)) {
164 sources += [
165 "async_pixel_transfer_manager_egl.cc",
166 "async_pixel_transfer_manager_egl.h",
167 ]
168 }
169
jiangj2bd42fd2015-04-18 13:29:06170 if (is_mac) {
171 # Required by gles2_cmd_decoder.cc on Mac.
172 libs = [
173 "IOSurface.framework",
174 "OpenGL.framework",
175 ]
176 }
177
[email protected]c1372a62014-05-21 19:42:31178 if (is_android && !is_debug) {
179 # On Android optimize more since this component can be a bottleneck.
180 configs -= [ "//build/config/compiler:optimize" ]
181 configs += [ "//build/config/compiler:optimize_max" ]
182 }
183}
184
185proto_library("disk_cache_proto") {
scottmg34fb7e52014-12-03 23:27:24186 sources = [
187 "disk_cache_proto.proto",
188 ]
[email protected]c1372a62014-05-21 19:42:31189}