blob: 64d195be4d28755890becb5ff4d12304335f8643 [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
brucedawson6e53a2e12016-07-23 19:35:4720if (is_component_build) {
21 link_target_type = "source_set"
22} else {
23 link_target_type = "static_library"
24}
25target(link_target_type, "service_sources") {
brettwb78fc9e2016-03-25 21:02:5126 # External code should depend on this via //gpu/command_buffer/service above
27 # rather than depending on this directly or the component build will break.
28 visibility = [ "//gpu/*" ]
brettw542f7532015-04-06 22:35:4529
[email protected]c1372a62014-05-21 19:42:3130 sources = [
Antoine Laboure0990c1c2017-05-17 21:05:5631 "async_api_interface.h",
[email protected]c1372a62014-05-21 19:42:3132 "buffer_manager.cc",
satoruxc5bd7a32015-02-18 01:54:5233 "buffer_manager.h",
geofflang851a4812016-09-14 19:20:2934 "client_service_map.h",
Antoine Laboure7e2da62017-05-25 00:28:2635 "command_buffer_direct.cc",
36 "command_buffer_direct.h",
[email protected]c1372a62014-05-21 19:42:3137 "command_buffer_service.cc",
38 "command_buffer_service.h",
39 "common_decoder.cc",
40 "common_decoder.h",
[email protected]c1372a62014-05-21 19:42:3141 "context_group.cc",
satoruxc5bd7a32015-02-18 01:54:5242 "context_group.h",
43 "context_state.cc",
[email protected]c1372a62014-05-21 19:42:3144 "context_state.h",
45 "context_state_autogen.h",
46 "context_state_impl_autogen.h",
[email protected]c1372a62014-05-21 19:42:3147 "error_state.cc",
48 "error_state.h",
[email protected]c1372a62014-05-21 19:42:3149 "feature_info.cc",
satoruxc5bd7a32015-02-18 01:54:5250 "feature_info.h",
tobiasjsfc199b472015-08-22 00:39:0651 "framebuffer_completeness_cache.cc",
52 "framebuffer_completeness_cache.h",
[email protected]c1372a62014-05-21 19:42:3153 "framebuffer_manager.cc",
satoruxc5bd7a32015-02-18 01:54:5254 "framebuffer_manager.h",
[email protected]c1372a62014-05-21 19:42:3155 "gl_context_virtual.cc",
56 "gl_context_virtual.h",
57 "gl_state_restorer_impl.cc",
58 "gl_state_restorer_impl.h",
junov0cad1f42016-01-07 21:48:5159 "gl_utils.cc",
[email protected]c1372a62014-05-21 19:42:3160 "gl_utils.h",
adrian.belgun8a992f12016-06-17 16:29:0561 "gles2_cmd_apply_framebuffer_attachment_cmaa_intel.cc",
62 "gles2_cmd_apply_framebuffer_attachment_cmaa_intel.h",
satoruxc5bd7a32015-02-18 01:54:5263 "gles2_cmd_clear_framebuffer.cc",
64 "gles2_cmd_clear_framebuffer.h",
geofflangb205ab62016-06-13 21:24:4465 "gles2_cmd_copy_tex_image.cc",
66 "gles2_cmd_copy_tex_image.h",
satoruxc5bd7a32015-02-18 01:54:5267 "gles2_cmd_copy_texture_chromium.cc",
68 "gles2_cmd_copy_texture_chromium.h",
69 "gles2_cmd_decoder.cc",
70 "gles2_cmd_decoder.h",
71 "gles2_cmd_decoder_autogen.h",
geofflang6aa8dd22016-05-24 21:35:3372 "gles2_cmd_decoder_passthrough.cc",
73 "gles2_cmd_decoder_passthrough.h",
geofflangd00f0b22016-06-03 16:34:2974 "gles2_cmd_decoder_passthrough_doer_prototypes.h",
75 "gles2_cmd_decoder_passthrough_doers.cc",
76 "gles2_cmd_decoder_passthrough_handlers.cc",
77 "gles2_cmd_decoder_passthrough_handlers_autogen.cc",
yunchao.hefd791692016-09-18 07:27:0578 "gles2_cmd_srgb_converter.cc",
79 "gles2_cmd_srgb_converter.h",
satoruxc5bd7a32015-02-18 01:54:5280 "gles2_cmd_validation.cc",
81 "gles2_cmd_validation.h",
82 "gles2_cmd_validation_autogen.h",
83 "gles2_cmd_validation_implementation_autogen.h",
Klaus Weidnere66cc7d2017-12-09 17:26:3084 "gpu_fence_manager.cc",
85 "gpu_fence_manager.h",
penghuang7404df9882016-02-29 23:07:2986 "gpu_preferences.cc",
87 "gpu_preferences.h",
[email protected]c1372a62014-05-21 19:42:3188 "gpu_state_tracer.cc",
89 "gpu_state_tracer.h",
90 "gpu_switches.cc",
91 "gpu_switches.h",
satoruxc5bd7a32015-02-18 01:54:5292 "gpu_tracer.cc",
93 "gpu_tracer.h",
[email protected]c1372a62014-05-21 19:42:3194 "id_manager.cc",
satoruxc5bd7a32015-02-18 01:54:5295 "id_manager.h",
revemaneeba91b2014-10-28 22:49:2096 "image_factory.cc",
97 "image_factory.h",
[email protected]c1372a62014-05-21 19:42:3198 "image_manager.cc",
99 "image_manager.h",
zmo6c468ba2016-05-04 20:00:51100 "indexed_buffer_binding_host.cc",
101 "indexed_buffer_binding_host.h",
[email protected]c1372a62014-05-21 19:42:31102 "logger.cc",
103 "logger.h",
boliu8e814cb2015-07-13 20:47:46104 "mailbox_manager.cc",
[email protected]c1372a62014-05-21 19:42:31105 "mailbox_manager.h",
sieversb727d532014-10-24 19:11:34106 "mailbox_manager_impl.cc",
107 "mailbox_manager_impl.h",
108 "mailbox_manager_sync.cc",
109 "mailbox_manager_sync.h",
[email protected]c1372a62014-05-21 19:42:31110 "memory_program_cache.cc",
satoruxc5bd7a32015-02-18 01:54:52111 "memory_program_cache.h",
Jamie Madill2d47d482017-07-28 15:23:24112 "passthrough_program_cache.cc",
113 "passthrough_program_cache.h",
kkinnunenb959a8462015-07-14 11:08:34114 "path_manager.cc",
115 "path_manager.h",
[email protected]c1372a62014-05-21 19:42:31116 "program_cache.cc",
satoruxc5bd7a32015-02-18 01:54:52117 "program_cache.h",
118 "program_manager.cc",
119 "program_manager.h",
120 "query_manager.cc",
121 "query_manager.h",
122 "renderbuffer_manager.cc",
123 "renderbuffer_manager.h",
bajones5141d032015-12-07 21:13:39124 "sampler_manager.cc",
125 "sampler_manager.h",
sunnyps8f9139e2017-05-12 17:53:25126 "scheduler.cc",
127 "scheduler.h",
sunnypsc8cc93e272017-03-21 20:52:27128 "sequence_id.h",
ericrkdc5eeaa2017-05-19 02:23:50129 "service_discardable_manager.cc",
130 "service_discardable_manager.h",
Eric Karl16711ec2017-11-18 00:58:11131 "service_transfer_cache.cc",
132 "service_transfer_cache.h",
geofflangdf7fff2d42016-11-11 00:34:03133 "service_utils.cc",
134 "service_utils.h",
[email protected]c1372a62014-05-21 19:42:31135 "shader_manager.cc",
satoruxc5bd7a32015-02-18 01:54:52136 "shader_manager.h",
[email protected]c1372a62014-05-21 19:42:31137 "shader_translator.cc",
satoruxc5bd7a32015-02-18 01:54:52138 "shader_translator.h",
[email protected]c1372a62014-05-21 19:42:31139 "shader_translator_cache.cc",
satoruxc5bd7a32015-02-18 01:54:52140 "shader_translator_cache.h",
abarth3f1812022014-11-18 23:33:07141 "sync_point_manager.cc",
satoruxc5bd7a32015-02-18 01:54:52142 "sync_point_manager.h",
[email protected]c1372a62014-05-21 19:42:31143 "texture_definition.cc",
satoruxc5bd7a32015-02-18 01:54:52144 "texture_definition.h",
[email protected]c1372a62014-05-21 19:42:31145 "texture_manager.cc",
satoruxc5bd7a32015-02-18 01:54:52146 "texture_manager.h",
[email protected]c1372a62014-05-21 19:42:31147 "transfer_buffer_manager.cc",
148 "transfer_buffer_manager.h",
zmo6c468ba2016-05-04 20:00:51149 "transform_feedback_manager.cc",
150 "transform_feedback_manager.h",
[email protected]c1372a62014-05-21 19:42:31151 "vertex_array_manager.cc",
satoruxc5bd7a32015-02-18 01:54:52152 "vertex_array_manager.h",
[email protected]c1372a62014-05-21 19:42:31153 "vertex_attrib_manager.cc",
satoruxc5bd7a32015-02-18 01:54:52154 "vertex_attrib_manager.h",
[email protected]c1372a62014-05-21 19:42:31155 ]
156
brettw8f2fd172015-03-16 22:14:18157 configs += [
brettwbc8b2a22015-07-28 18:24:42158 "//build/config:precompiled_headers",
brettw8f2fd172015-03-16 22:14:18159 "//gpu:gpu_implementation",
160 "//third_party/khronos:khronos_headers",
161 ]
[email protected]c1372a62014-05-21 19:42:31162
ckocagilfc8d7f232014-09-30 19:31:43163 # Prefer mesa GL headers to system headers, which cause problems on Win.
164 include_dirs = [ "//third_party/mesa/src/include" ]
165
brettw7dab582e2014-09-20 01:44:11166 public_deps = [
brettw542f7532015-04-06 22:35:45167 "//gpu/command_buffer/common:common_sources",
brettw7dab582e2014-09-20 01:44:11168 ]
[email protected]c1372a62014-05-21 19:42:31169 deps = [
170 ":disk_cache_proto",
171 "//base",
172 "//base/third_party/dynamic_annotations",
Adrienne Walker436a7752017-08-28 23:33:09173 "//cc/paint",
[email protected]c1372a62014-05-21 19:42:31174 "//crypto",
brettw09039c12016-03-18 03:22:46175 "//gpu/command_buffer/client:client_sources",
176 "//gpu/command_buffer/common:gles2_utils",
tfarina15525c42015-04-28 19:04:16177 "//gpu/config:config_sources",
sadrul763bd592016-09-27 14:33:44178 "//gpu/ipc/common:surface_handle_type",
Brett Wilson0748bf412016-11-22 17:55:46179 "//media:media_features",
geofflang398fb212016-07-13 16:27:42180 "//third_party/angle:angle_image_util",
jmadilldc26192a2015-08-04 12:44:16181 "//third_party/angle:commit_id",
[email protected]d5ba08c2014-06-18 07:01:08182 "//third_party/angle:translator",
[email protected]c1372a62014-05-21 19:42:31183 "//third_party/protobuf:protobuf_lite",
184 "//third_party/re2",
185 "//third_party/smhasher:cityhash",
Eric Karld625a732017-08-03 22:47:31186 "//third_party/zlib",
[email protected]c1372a62014-05-21 19:42:31187 "//ui/gfx",
188 "//ui/gfx/geometry",
John Bauman91f2d572017-07-29 00:24:14189 "//ui/gfx/ipc/color",
[email protected]c1372a62014-05-21 19:42:31190 "//ui/gl",
kylechar5b9dec12016-05-16 15:40:57191 "//ui/gl/init",
[email protected]c1372a62014-05-21 19:42:31192 ]
193
jiangj2bd42fd2015-04-18 13:29:06194 if (is_mac) {
195 # Required by gles2_cmd_decoder.cc on Mac.
196 libs = [
197 "IOSurface.framework",
198 "OpenGL.framework",
199 ]
200 }
201
[email protected]c1372a62014-05-21 19:42:31202 if (is_android && !is_debug) {
203 # On Android optimize more since this component can be a bottleneck.
brettw4cab0f12015-09-14 21:40:01204 configs -= [ "//build/config/compiler:default_optimization" ]
[email protected]c1372a62014-05-21 19:42:31205 configs += [ "//build/config/compiler:optimize_max" ]
206 }
207}
208
209proto_library("disk_cache_proto") {
scottmg34fb7e52014-12-03 23:27:24210 sources = [
211 "disk_cache_proto.proto",
212 ]
[email protected]c1372a62014-05-21 19:42:31213}