blob: 7858b575de147517199fc80ae6bb3c3eb057e975 [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 = [
[email protected]c1372a62014-05-21 19:42:3131 "buffer_manager.cc",
satoruxc5bd7a32015-02-18 01:54:5232 "buffer_manager.h",
[email protected]c1372a62014-05-21 19:42:3133 "cmd_buffer_engine.h",
34 "cmd_parser.cc",
35 "cmd_parser.h",
36 "command_buffer_service.cc",
37 "command_buffer_service.h",
sunnypsd6bb1c02016-03-12 04:48:3138 "command_executor.cc",
39 "command_executor.h",
[email protected]c1372a62014-05-21 19:42:3140 "common_decoder.cc",
41 "common_decoder.h",
[email protected]c1372a62014-05-21 19:42:3142 "context_group.cc",
satoruxc5bd7a32015-02-18 01:54:5243 "context_group.h",
44 "context_state.cc",
[email protected]c1372a62014-05-21 19:42:3145 "context_state.h",
46 "context_state_autogen.h",
47 "context_state_impl_autogen.h",
[email protected]c1372a62014-05-21 19:42:3148 "error_state.cc",
49 "error_state.h",
[email protected]c1372a62014-05-21 19:42:3150 "feature_info.cc",
satoruxc5bd7a32015-02-18 01:54:5251 "feature_info.h",
tobiasjsfc199b472015-08-22 00:39:0652 "framebuffer_completeness_cache.cc",
53 "framebuffer_completeness_cache.h",
[email protected]c1372a62014-05-21 19:42:3154 "framebuffer_manager.cc",
satoruxc5bd7a32015-02-18 01:54:5255 "framebuffer_manager.h",
[email protected]c1372a62014-05-21 19:42:3156 "gl_context_virtual.cc",
57 "gl_context_virtual.h",
58 "gl_state_restorer_impl.cc",
59 "gl_state_restorer_impl.h",
junov0cad1f42016-01-07 21:48:5160 "gl_utils.cc",
[email protected]c1372a62014-05-21 19:42:3161 "gl_utils.h",
adrian.belgun8a992f12016-06-17 16:29:0562 "gles2_cmd_apply_framebuffer_attachment_cmaa_intel.cc",
63 "gles2_cmd_apply_framebuffer_attachment_cmaa_intel.h",
satoruxc5bd7a32015-02-18 01:54:5264 "gles2_cmd_clear_framebuffer.cc",
65 "gles2_cmd_clear_framebuffer.h",
geofflangb205ab62016-06-13 21:24:4466 "gles2_cmd_copy_tex_image.cc",
67 "gles2_cmd_copy_tex_image.h",
satoruxc5bd7a32015-02-18 01:54:5268 "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",
geofflang6aa8dd22016-05-24 21:35:3373 "gles2_cmd_decoder_passthrough.cc",
74 "gles2_cmd_decoder_passthrough.h",
geofflangd00f0b22016-06-03 16:34:2975 "gles2_cmd_decoder_passthrough_doer_prototypes.h",
76 "gles2_cmd_decoder_passthrough_doers.cc",
77 "gles2_cmd_decoder_passthrough_handlers.cc",
78 "gles2_cmd_decoder_passthrough_handlers_autogen.cc",
satoruxc5bd7a32015-02-18 01:54:5279 "gles2_cmd_validation.cc",
80 "gles2_cmd_validation.h",
81 "gles2_cmd_validation_autogen.h",
82 "gles2_cmd_validation_implementation_autogen.h",
penghuang7404df9882016-02-29 23:07:2983 "gpu_preferences.cc",
84 "gpu_preferences.h",
[email protected]c1372a62014-05-21 19:42:3185 "gpu_state_tracer.cc",
86 "gpu_state_tracer.h",
87 "gpu_switches.cc",
88 "gpu_switches.h",
satoruxc5bd7a32015-02-18 01:54:5289 "gpu_tracer.cc",
90 "gpu_tracer.h",
[email protected]c1372a62014-05-21 19:42:3191 "id_manager.cc",
satoruxc5bd7a32015-02-18 01:54:5292 "id_manager.h",
revemaneeba91b2014-10-28 22:49:2093 "image_factory.cc",
94 "image_factory.h",
[email protected]c1372a62014-05-21 19:42:3195 "image_manager.cc",
96 "image_manager.h",
97 "in_process_command_buffer.cc",
98 "in_process_command_buffer.h",
zmo6c468ba2016-05-04 20:00:5199 "indexed_buffer_binding_host.cc",
100 "indexed_buffer_binding_host.h",
[email protected]c1372a62014-05-21 19:42:31101 "logger.cc",
102 "logger.h",
boliu8e814cb2015-07-13 20:47:46103 "mailbox_manager.cc",
[email protected]c1372a62014-05-21 19:42:31104 "mailbox_manager.h",
sieversb727d532014-10-24 19:11:34105 "mailbox_manager_impl.cc",
106 "mailbox_manager_impl.h",
107 "mailbox_manager_sync.cc",
108 "mailbox_manager_sync.h",
[email protected]c1372a62014-05-21 19:42:31109 "memory_program_cache.cc",
satoruxc5bd7a32015-02-18 01:54:52110 "memory_program_cache.h",
kkinnunenb959a8462015-07-14 11:08:34111 "path_manager.cc",
112 "path_manager.h",
[email protected]c1372a62014-05-21 19:42:31113 "program_cache.cc",
satoruxc5bd7a32015-02-18 01:54:52114 "program_cache.h",
115 "program_manager.cc",
116 "program_manager.h",
117 "query_manager.cc",
118 "query_manager.h",
119 "renderbuffer_manager.cc",
120 "renderbuffer_manager.h",
bajones5141d032015-12-07 21:13:39121 "sampler_manager.cc",
122 "sampler_manager.h",
[email protected]c1372a62014-05-21 19:42:31123 "shader_manager.cc",
satoruxc5bd7a32015-02-18 01:54:52124 "shader_manager.h",
[email protected]c1372a62014-05-21 19:42:31125 "shader_translator.cc",
satoruxc5bd7a32015-02-18 01:54:52126 "shader_translator.h",
[email protected]c1372a62014-05-21 19:42:31127 "shader_translator_cache.cc",
satoruxc5bd7a32015-02-18 01:54:52128 "shader_translator_cache.h",
abarth3f1812022014-11-18 23:33:07129 "sync_point_manager.cc",
satoruxc5bd7a32015-02-18 01:54:52130 "sync_point_manager.h",
[email protected]c1372a62014-05-21 19:42:31131 "texture_definition.cc",
satoruxc5bd7a32015-02-18 01:54:52132 "texture_definition.h",
[email protected]c1372a62014-05-21 19:42:31133 "texture_manager.cc",
satoruxc5bd7a32015-02-18 01:54:52134 "texture_manager.h",
[email protected]c1372a62014-05-21 19:42:31135 "transfer_buffer_manager.cc",
136 "transfer_buffer_manager.h",
zmo6c468ba2016-05-04 20:00:51137 "transform_feedback_manager.cc",
138 "transform_feedback_manager.h",
[email protected]c1372a62014-05-21 19:42:31139 "vertex_array_manager.cc",
satoruxc5bd7a32015-02-18 01:54:52140 "vertex_array_manager.h",
[email protected]c1372a62014-05-21 19:42:31141 "vertex_attrib_manager.cc",
satoruxc5bd7a32015-02-18 01:54:52142 "vertex_attrib_manager.h",
[email protected]c1372a62014-05-21 19:42:31143 ]
144
brettw8f2fd172015-03-16 22:14:18145 configs += [
brettwbc8b2a22015-07-28 18:24:42146 "//build/config:precompiled_headers",
brettw8f2fd172015-03-16 22:14:18147 "//gpu:gpu_implementation",
148 "//third_party/khronos:khronos_headers",
149 ]
[email protected]c1372a62014-05-21 19:42:31150
ckocagilfc8d7f232014-09-30 19:31:43151 # Prefer mesa GL headers to system headers, which cause problems on Win.
152 include_dirs = [ "//third_party/mesa/src/include" ]
153
brettw7dab582e2014-09-20 01:44:11154 public_deps = [
brettw542f7532015-04-06 22:35:45155 "//gpu/command_buffer/common:common_sources",
brettw7dab582e2014-09-20 01:44:11156 ]
[email protected]c1372a62014-05-21 19:42:31157 deps = [
158 ":disk_cache_proto",
159 "//base",
160 "//base/third_party/dynamic_annotations",
161 "//crypto",
brettw09039c12016-03-18 03:22:46162 "//gpu/command_buffer/client:client_sources",
163 "//gpu/command_buffer/common:gles2_utils",
tfarina15525c42015-04-28 19:04:16164 "//gpu/config:config_sources",
geofflang398fb212016-07-13 16:27:42165 "//third_party/angle:angle_image_util",
jmadilldc26192a2015-08-04 12:44:16166 "//third_party/angle:commit_id",
[email protected]d5ba08c2014-06-18 07:01:08167 "//third_party/angle:translator",
[email protected]c1372a62014-05-21 19:42:31168 "//third_party/protobuf:protobuf_lite",
169 "//third_party/re2",
170 "//third_party/smhasher:cityhash",
171 "//ui/gfx",
172 "//ui/gfx/geometry",
173 "//ui/gl",
kylechar5b9dec12016-05-16 15:40:57174 "//ui/gl/init",
[email protected]c1372a62014-05-21 19:42:31175 ]
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.
brettw4cab0f12015-09-14 21:40:01187 configs -= [ "//build/config/compiler:default_optimization" ]
[email protected]c1372a62014-05-21 19:42:31188 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}