blob: 1acdb1bb099518bcf296becf3d770ec44450155e [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") {
skye143dde02015-08-07 01:56:0221 visibility = [
22 "//gpu/*",
23 "//mojo/gles2:gles2",
24 ]
brettw542f7532015-04-06 22:35:4525
[email protected]c1372a62014-05-21 19:42:3126 sources = [
27 "async_pixel_transfer_delegate.cc",
28 "async_pixel_transfer_delegate.h",
satoruxc5bd7a32015-02-18 01:54:5229 "async_pixel_transfer_manager.cc",
30 "async_pixel_transfer_manager.h",
[email protected]c1372a62014-05-21 19:42:3131 "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",
[email protected]c1372a62014-05-21 19:42:3143 "buffer_manager.cc",
satoruxc5bd7a32015-02-18 01:54:5244 "buffer_manager.h",
[email protected]c1372a62014-05-21 19:42:3145 "cmd_buffer_engine.h",
46 "cmd_parser.cc",
47 "cmd_parser.h",
48 "command_buffer_service.cc",
49 "command_buffer_service.h",
50 "common_decoder.cc",
51 "common_decoder.h",
[email protected]c1372a62014-05-21 19:42:3152 "context_group.cc",
satoruxc5bd7a32015-02-18 01:54:5253 "context_group.h",
54 "context_state.cc",
[email protected]c1372a62014-05-21 19:42:3155 "context_state.h",
56 "context_state_autogen.h",
57 "context_state_impl_autogen.h",
[email protected]c1372a62014-05-21 19:42:3158 "error_state.cc",
59 "error_state.h",
[email protected]c1372a62014-05-21 19:42:3160 "feature_info.cc",
satoruxc5bd7a32015-02-18 01:54:5261 "feature_info.h",
tobiasjsfc199b472015-08-22 00:39:0662 "framebuffer_completeness_cache.cc",
63 "framebuffer_completeness_cache.h",
[email protected]c1372a62014-05-21 19:42:3164 "framebuffer_manager.cc",
satoruxc5bd7a32015-02-18 01:54:5265 "framebuffer_manager.h",
[email protected]c1372a62014-05-21 19:42:3166 "gl_context_virtual.cc",
67 "gl_context_virtual.h",
68 "gl_state_restorer_impl.cc",
69 "gl_state_restorer_impl.h",
70 "gl_utils.h",
satoruxc5bd7a32015-02-18 01:54:5271 "gles2_cmd_clear_framebuffer.cc",
72 "gles2_cmd_clear_framebuffer.h",
73 "gles2_cmd_copy_texture_chromium.cc",
74 "gles2_cmd_copy_texture_chromium.h",
75 "gles2_cmd_decoder.cc",
76 "gles2_cmd_decoder.h",
77 "gles2_cmd_decoder_autogen.h",
78 "gles2_cmd_validation.cc",
79 "gles2_cmd_validation.h",
80 "gles2_cmd_validation_autogen.h",
81 "gles2_cmd_validation_implementation_autogen.h",
[email protected]c1372a62014-05-21 19:42:3182 "gpu_scheduler.cc",
83 "gpu_scheduler.h",
[email protected]c1372a62014-05-21 19:42:3184 "gpu_state_tracer.cc",
85 "gpu_state_tracer.h",
86 "gpu_switches.cc",
87 "gpu_switches.h",
satoruxc5bd7a32015-02-18 01:54:5288 "gpu_tracer.cc",
89 "gpu_tracer.h",
[email protected]c1372a62014-05-21 19:42:3190 "id_manager.cc",
satoruxc5bd7a32015-02-18 01:54:5291 "id_manager.h",
revemaneeba91b2014-10-28 22:49:2092 "image_factory.cc",
93 "image_factory.h",
[email protected]c1372a62014-05-21 19:42:3194 "image_manager.cc",
95 "image_manager.h",
96 "in_process_command_buffer.cc",
97 "in_process_command_buffer.h",
98 "logger.cc",
99 "logger.h",
boliu8e814cb2015-07-13 20:47:46100 "mailbox_manager.cc",
[email protected]c1372a62014-05-21 19:42:31101 "mailbox_manager.h",
sieversb727d532014-10-24 19:11:34102 "mailbox_manager_impl.cc",
103 "mailbox_manager_impl.h",
104 "mailbox_manager_sync.cc",
105 "mailbox_manager_sync.h",
[email protected]c1372a62014-05-21 19:42:31106 "memory_program_cache.cc",
satoruxc5bd7a32015-02-18 01:54:52107 "memory_program_cache.h",
kkinnunenb959a8462015-07-14 11:08:34108 "path_manager.cc",
109 "path_manager.h",
[email protected]c1372a62014-05-21 19:42:31110 "program_cache.cc",
satoruxc5bd7a32015-02-18 01:54:52111 "program_cache.h",
112 "program_manager.cc",
113 "program_manager.h",
114 "query_manager.cc",
115 "query_manager.h",
116 "renderbuffer_manager.cc",
117 "renderbuffer_manager.h",
[email protected]c1372a62014-05-21 19:42:31118 "shader_manager.cc",
satoruxc5bd7a32015-02-18 01:54:52119 "shader_manager.h",
[email protected]c1372a62014-05-21 19:42:31120 "shader_translator.cc",
satoruxc5bd7a32015-02-18 01:54:52121 "shader_translator.h",
[email protected]c1372a62014-05-21 19:42:31122 "shader_translator_cache.cc",
satoruxc5bd7a32015-02-18 01:54:52123 "shader_translator_cache.h",
[email protected]c1372a62014-05-21 19:42:31124 "stream_texture_manager_in_process_android.cc",
satoruxc5bd7a32015-02-18 01:54:52125 "stream_texture_manager_in_process_android.h",
abarth3f1812022014-11-18 23:33:07126 "sync_point_manager.cc",
satoruxc5bd7a32015-02-18 01:54:52127 "sync_point_manager.h",
[email protected]c1372a62014-05-21 19:42:31128 "texture_definition.cc",
satoruxc5bd7a32015-02-18 01:54:52129 "texture_definition.h",
[email protected]c1372a62014-05-21 19:42:31130 "texture_manager.cc",
satoruxc5bd7a32015-02-18 01:54:52131 "texture_manager.h",
[email protected]c1372a62014-05-21 19:42:31132 "transfer_buffer_manager.cc",
133 "transfer_buffer_manager.h",
orglofchcad5a6742014-11-07 19:51:12134 "valuebuffer_manager.cc",
satoruxc5bd7a32015-02-18 01:54:52135 "valuebuffer_manager.h",
[email protected]c1372a62014-05-21 19:42:31136 "vertex_array_manager.cc",
satoruxc5bd7a32015-02-18 01:54:52137 "vertex_array_manager.h",
[email protected]c1372a62014-05-21 19:42:31138 "vertex_attrib_manager.cc",
satoruxc5bd7a32015-02-18 01:54:52139 "vertex_attrib_manager.h",
[email protected]c1372a62014-05-21 19:42:31140 ]
141
brettw8f2fd172015-03-16 22:14:18142 configs += [
brettwbc8b2a22015-07-28 18:24:42143 "//build/config:precompiled_headers",
brettw8f2fd172015-03-16 22:14:18144 "//gpu:gpu_implementation",
145 "//third_party/khronos:khronos_headers",
146 ]
[email protected]c1372a62014-05-21 19:42:31147
ckocagilfc8d7f232014-09-30 19:31:43148 # Prefer mesa GL headers to system headers, which cause problems on Win.
149 include_dirs = [ "//third_party/mesa/src/include" ]
150
brettw7dab582e2014-09-20 01:44:11151 public_deps = [
brettw542f7532015-04-06 22:35:45152 "//gpu/command_buffer/common:common_sources",
brettw7dab582e2014-09-20 01:44:11153 ]
[email protected]c1372a62014-05-21 19:42:31154 deps = [
155 ":disk_cache_proto",
156 "//base",
157 "//base/third_party/dynamic_annotations",
158 "//crypto",
tfarina15525c42015-04-28 19:04:16159 "//gpu/config:config_sources",
jmadilldc26192a2015-08-04 12:44:16160 "//third_party/angle:commit_id",
[email protected]d5ba08c2014-06-18 07:01:08161 "//third_party/angle:translator",
[email protected]c1372a62014-05-21 19:42:31162 "//third_party/protobuf:protobuf_lite",
163 "//third_party/re2",
164 "//third_party/smhasher:cityhash",
165 "//ui/gfx",
166 "//ui/gfx/geometry",
167 "//ui/gl",
[email protected]c1372a62014-05-21 19:42:31168 ]
169
[email protected]c1372a62014-05-21 19:42:31170 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
jiangj2bd42fd2015-04-18 13:29:06177 if (is_mac) {
178 # Required by gles2_cmd_decoder.cc on Mac.
179 libs = [
180 "IOSurface.framework",
181 "OpenGL.framework",
182 ]
183 }
184
[email protected]c1372a62014-05-21 19:42:31185 if (is_android && !is_debug) {
186 # On Android optimize more since this component can be a bottleneck.
187 configs -= [ "//build/config/compiler:optimize" ]
188 configs += [ "//build/config/compiler:optimize_max" ]
189 }
190}
191
192proto_library("disk_cache_proto") {
scottmg34fb7e52014-12-03 23:27:24193 sources = [
194 "disk_cache_proto.proto",
195 ]
[email protected]c1372a62014-05-21 19:42:31196}