blob: 7dd6ea433c2ffa408af7da556e08a08b67529ea0 [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") {
brettwb78fc9e2016-03-25 21:02:5121 # External code should depend on this via //gpu/command_buffer/service above
22 # rather than depending on this directly or the component build will break.
23 visibility = [ "//gpu/*" ]
brettw542f7532015-04-06 22:35:4524
[email protected]c1372a62014-05-21 19:42:3125 sources = [
[email protected]c1372a62014-05-21 19:42:3126 "buffer_manager.cc",
satoruxc5bd7a32015-02-18 01:54:5227 "buffer_manager.h",
[email protected]c1372a62014-05-21 19:42:3128 "cmd_buffer_engine.h",
29 "cmd_parser.cc",
30 "cmd_parser.h",
31 "command_buffer_service.cc",
32 "command_buffer_service.h",
sunnypsd6bb1c02016-03-12 04:48:3133 "command_executor.cc",
34 "command_executor.h",
[email protected]c1372a62014-05-21 19:42:3135 "common_decoder.cc",
36 "common_decoder.h",
[email protected]c1372a62014-05-21 19:42:3137 "context_group.cc",
satoruxc5bd7a32015-02-18 01:54:5238 "context_group.h",
39 "context_state.cc",
[email protected]c1372a62014-05-21 19:42:3140 "context_state.h",
41 "context_state_autogen.h",
42 "context_state_impl_autogen.h",
[email protected]c1372a62014-05-21 19:42:3143 "error_state.cc",
44 "error_state.h",
[email protected]c1372a62014-05-21 19:42:3145 "feature_info.cc",
satoruxc5bd7a32015-02-18 01:54:5246 "feature_info.h",
tobiasjsfc199b472015-08-22 00:39:0647 "framebuffer_completeness_cache.cc",
48 "framebuffer_completeness_cache.h",
[email protected]c1372a62014-05-21 19:42:3149 "framebuffer_manager.cc",
satoruxc5bd7a32015-02-18 01:54:5250 "framebuffer_manager.h",
[email protected]c1372a62014-05-21 19:42:3151 "gl_context_virtual.cc",
52 "gl_context_virtual.h",
53 "gl_state_restorer_impl.cc",
54 "gl_state_restorer_impl.h",
junov0cad1f42016-01-07 21:48:5155 "gl_utils.cc",
[email protected]c1372a62014-05-21 19:42:3156 "gl_utils.h",
satoruxc5bd7a32015-02-18 01:54:5257 "gles2_cmd_clear_framebuffer.cc",
58 "gles2_cmd_clear_framebuffer.h",
59 "gles2_cmd_copy_texture_chromium.cc",
60 "gles2_cmd_copy_texture_chromium.h",
61 "gles2_cmd_decoder.cc",
62 "gles2_cmd_decoder.h",
63 "gles2_cmd_decoder_autogen.h",
64 "gles2_cmd_validation.cc",
65 "gles2_cmd_validation.h",
66 "gles2_cmd_validation_autogen.h",
67 "gles2_cmd_validation_implementation_autogen.h",
penghuang7404df9882016-02-29 23:07:2968 "gpu_preferences.cc",
69 "gpu_preferences.h",
[email protected]c1372a62014-05-21 19:42:3170 "gpu_state_tracer.cc",
71 "gpu_state_tracer.h",
72 "gpu_switches.cc",
73 "gpu_switches.h",
satoruxc5bd7a32015-02-18 01:54:5274 "gpu_tracer.cc",
75 "gpu_tracer.h",
[email protected]c1372a62014-05-21 19:42:3176 "id_manager.cc",
satoruxc5bd7a32015-02-18 01:54:5277 "id_manager.h",
revemaneeba91b2014-10-28 22:49:2078 "image_factory.cc",
79 "image_factory.h",
[email protected]c1372a62014-05-21 19:42:3180 "image_manager.cc",
81 "image_manager.h",
82 "in_process_command_buffer.cc",
83 "in_process_command_buffer.h",
zmo6c468ba2016-05-04 20:00:5184 "indexed_buffer_binding_host.cc",
85 "indexed_buffer_binding_host.h",
[email protected]c1372a62014-05-21 19:42:3186 "logger.cc",
87 "logger.h",
boliu8e814cb2015-07-13 20:47:4688 "mailbox_manager.cc",
[email protected]c1372a62014-05-21 19:42:3189 "mailbox_manager.h",
sieversb727d532014-10-24 19:11:3490 "mailbox_manager_impl.cc",
91 "mailbox_manager_impl.h",
92 "mailbox_manager_sync.cc",
93 "mailbox_manager_sync.h",
[email protected]c1372a62014-05-21 19:42:3194 "memory_program_cache.cc",
satoruxc5bd7a32015-02-18 01:54:5295 "memory_program_cache.h",
kkinnunenb959a8462015-07-14 11:08:3496 "path_manager.cc",
97 "path_manager.h",
[email protected]c1372a62014-05-21 19:42:3198 "program_cache.cc",
satoruxc5bd7a32015-02-18 01:54:5299 "program_cache.h",
100 "program_manager.cc",
101 "program_manager.h",
102 "query_manager.cc",
103 "query_manager.h",
104 "renderbuffer_manager.cc",
105 "renderbuffer_manager.h",
bajones5141d032015-12-07 21:13:39106 "sampler_manager.cc",
107 "sampler_manager.h",
[email protected]c1372a62014-05-21 19:42:31108 "shader_manager.cc",
satoruxc5bd7a32015-02-18 01:54:52109 "shader_manager.h",
[email protected]c1372a62014-05-21 19:42:31110 "shader_translator.cc",
satoruxc5bd7a32015-02-18 01:54:52111 "shader_translator.h",
[email protected]c1372a62014-05-21 19:42:31112 "shader_translator_cache.cc",
satoruxc5bd7a32015-02-18 01:54:52113 "shader_translator_cache.h",
abarth3f1812022014-11-18 23:33:07114 "sync_point_manager.cc",
satoruxc5bd7a32015-02-18 01:54:52115 "sync_point_manager.h",
[email protected]c1372a62014-05-21 19:42:31116 "texture_definition.cc",
satoruxc5bd7a32015-02-18 01:54:52117 "texture_definition.h",
[email protected]c1372a62014-05-21 19:42:31118 "texture_manager.cc",
satoruxc5bd7a32015-02-18 01:54:52119 "texture_manager.h",
[email protected]c1372a62014-05-21 19:42:31120 "transfer_buffer_manager.cc",
121 "transfer_buffer_manager.h",
zmo6c468ba2016-05-04 20:00:51122 "transform_feedback_manager.cc",
123 "transform_feedback_manager.h",
[email protected]c1372a62014-05-21 19:42:31124 "vertex_array_manager.cc",
satoruxc5bd7a32015-02-18 01:54:52125 "vertex_array_manager.h",
[email protected]c1372a62014-05-21 19:42:31126 "vertex_attrib_manager.cc",
satoruxc5bd7a32015-02-18 01:54:52127 "vertex_attrib_manager.h",
[email protected]c1372a62014-05-21 19:42:31128 ]
129
brettw8f2fd172015-03-16 22:14:18130 configs += [
brettwbc8b2a22015-07-28 18:24:42131 "//build/config:precompiled_headers",
brettw8f2fd172015-03-16 22:14:18132 "//gpu:gpu_implementation",
133 "//third_party/khronos:khronos_headers",
134 ]
[email protected]c1372a62014-05-21 19:42:31135
ckocagilfc8d7f232014-09-30 19:31:43136 # Prefer mesa GL headers to system headers, which cause problems on Win.
137 include_dirs = [ "//third_party/mesa/src/include" ]
138
brettw7dab582e2014-09-20 01:44:11139 public_deps = [
brettw542f7532015-04-06 22:35:45140 "//gpu/command_buffer/common:common_sources",
brettw7dab582e2014-09-20 01:44:11141 ]
[email protected]c1372a62014-05-21 19:42:31142 deps = [
143 ":disk_cache_proto",
144 "//base",
145 "//base/third_party/dynamic_annotations",
146 "//crypto",
brettw09039c12016-03-18 03:22:46147 "//gpu/command_buffer/client:client_sources",
148 "//gpu/command_buffer/common:gles2_utils",
tfarina15525c42015-04-28 19:04:16149 "//gpu/config:config_sources",
jmadilldc26192a2015-08-04 12:44:16150 "//third_party/angle:commit_id",
[email protected]d5ba08c2014-06-18 07:01:08151 "//third_party/angle:translator",
[email protected]c1372a62014-05-21 19:42:31152 "//third_party/protobuf:protobuf_lite",
153 "//third_party/re2",
154 "//third_party/smhasher:cityhash",
155 "//ui/gfx",
156 "//ui/gfx/geometry",
157 "//ui/gl",
[email protected]c1372a62014-05-21 19:42:31158 ]
159
jiangj2bd42fd2015-04-18 13:29:06160 if (is_mac) {
161 # Required by gles2_cmd_decoder.cc on Mac.
162 libs = [
163 "IOSurface.framework",
164 "OpenGL.framework",
165 ]
166 }
167
[email protected]c1372a62014-05-21 19:42:31168 if (is_android && !is_debug) {
169 # On Android optimize more since this component can be a bottleneck.
brettw4cab0f12015-09-14 21:40:01170 configs -= [ "//build/config/compiler:default_optimization" ]
[email protected]c1372a62014-05-21 19:42:31171 configs += [ "//build/config/compiler:optimize_max" ]
172 }
173}
174
175proto_library("disk_cache_proto") {
scottmg34fb7e52014-12-03 23:27:24176 sources = [
177 "disk_cache_proto.proto",
178 ]
[email protected]c1372a62014-05-21 19:42:31179}