blob: 9fd70c4b40df9cff57adb77e55195b12b5ffb8dd [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 = [
[email protected]c1372a62014-05-21 19:42:3127 "buffer_manager.cc",
satoruxc5bd7a32015-02-18 01:54:5228 "buffer_manager.h",
[email protected]c1372a62014-05-21 19:42:3129 "cmd_buffer_engine.h",
30 "cmd_parser.cc",
31 "cmd_parser.h",
32 "command_buffer_service.cc",
33 "command_buffer_service.h",
34 "common_decoder.cc",
35 "common_decoder.h",
[email protected]c1372a62014-05-21 19:42:3136 "context_group.cc",
satoruxc5bd7a32015-02-18 01:54:5237 "context_group.h",
38 "context_state.cc",
[email protected]c1372a62014-05-21 19:42:3139 "context_state.h",
40 "context_state_autogen.h",
41 "context_state_impl_autogen.h",
[email protected]c1372a62014-05-21 19:42:3142 "error_state.cc",
43 "error_state.h",
[email protected]c1372a62014-05-21 19:42:3144 "feature_info.cc",
satoruxc5bd7a32015-02-18 01:54:5245 "feature_info.h",
tobiasjsfc199b472015-08-22 00:39:0646 "framebuffer_completeness_cache.cc",
47 "framebuffer_completeness_cache.h",
[email protected]c1372a62014-05-21 19:42:3148 "framebuffer_manager.cc",
satoruxc5bd7a32015-02-18 01:54:5249 "framebuffer_manager.h",
[email protected]c1372a62014-05-21 19:42:3150 "gl_context_virtual.cc",
51 "gl_context_virtual.h",
52 "gl_state_restorer_impl.cc",
53 "gl_state_restorer_impl.h",
junov0cad1f42016-01-07 21:48:5154 "gl_utils.cc",
[email protected]c1372a62014-05-21 19:42:3155 "gl_utils.h",
satoruxc5bd7a32015-02-18 01:54:5256 "gles2_cmd_clear_framebuffer.cc",
57 "gles2_cmd_clear_framebuffer.h",
58 "gles2_cmd_copy_texture_chromium.cc",
59 "gles2_cmd_copy_texture_chromium.h",
60 "gles2_cmd_decoder.cc",
61 "gles2_cmd_decoder.h",
62 "gles2_cmd_decoder_autogen.h",
63 "gles2_cmd_validation.cc",
64 "gles2_cmd_validation.h",
65 "gles2_cmd_validation_autogen.h",
66 "gles2_cmd_validation_implementation_autogen.h",
penghuang7404df9882016-02-29 23:07:2967 "gpu_preferences.cc",
68 "gpu_preferences.h",
[email protected]c1372a62014-05-21 19:42:3169 "gpu_scheduler.cc",
70 "gpu_scheduler.h",
[email protected]c1372a62014-05-21 19:42:3171 "gpu_state_tracer.cc",
72 "gpu_state_tracer.h",
73 "gpu_switches.cc",
74 "gpu_switches.h",
satoruxc5bd7a32015-02-18 01:54:5275 "gpu_tracer.cc",
76 "gpu_tracer.h",
[email protected]c1372a62014-05-21 19:42:3177 "id_manager.cc",
satoruxc5bd7a32015-02-18 01:54:5278 "id_manager.h",
revemaneeba91b2014-10-28 22:49:2079 "image_factory.cc",
80 "image_factory.h",
[email protected]c1372a62014-05-21 19:42:3181 "image_manager.cc",
82 "image_manager.h",
83 "in_process_command_buffer.cc",
84 "in_process_command_buffer.h",
85 "logger.cc",
86 "logger.h",
boliu8e814cb2015-07-13 20:47:4687 "mailbox_manager.cc",
[email protected]c1372a62014-05-21 19:42:3188 "mailbox_manager.h",
sieversb727d532014-10-24 19:11:3489 "mailbox_manager_impl.cc",
90 "mailbox_manager_impl.h",
91 "mailbox_manager_sync.cc",
92 "mailbox_manager_sync.h",
[email protected]c1372a62014-05-21 19:42:3193 "memory_program_cache.cc",
satoruxc5bd7a32015-02-18 01:54:5294 "memory_program_cache.h",
kkinnunenb959a8462015-07-14 11:08:3495 "path_manager.cc",
96 "path_manager.h",
[email protected]c1372a62014-05-21 19:42:3197 "program_cache.cc",
satoruxc5bd7a32015-02-18 01:54:5298 "program_cache.h",
99 "program_manager.cc",
100 "program_manager.h",
101 "query_manager.cc",
102 "query_manager.h",
103 "renderbuffer_manager.cc",
104 "renderbuffer_manager.h",
bajones5141d032015-12-07 21:13:39105 "sampler_manager.cc",
106 "sampler_manager.h",
[email protected]c1372a62014-05-21 19:42:31107 "shader_manager.cc",
satoruxc5bd7a32015-02-18 01:54:52108 "shader_manager.h",
[email protected]c1372a62014-05-21 19:42:31109 "shader_translator.cc",
satoruxc5bd7a32015-02-18 01:54:52110 "shader_translator.h",
[email protected]c1372a62014-05-21 19:42:31111 "shader_translator_cache.cc",
satoruxc5bd7a32015-02-18 01:54:52112 "shader_translator_cache.h",
[email protected]c1372a62014-05-21 19:42:31113 "stream_texture_manager_in_process_android.cc",
satoruxc5bd7a32015-02-18 01:54:52114 "stream_texture_manager_in_process_android.h",
abarth3f1812022014-11-18 23:33:07115 "sync_point_manager.cc",
satoruxc5bd7a32015-02-18 01:54:52116 "sync_point_manager.h",
[email protected]c1372a62014-05-21 19:42:31117 "texture_definition.cc",
satoruxc5bd7a32015-02-18 01:54:52118 "texture_definition.h",
[email protected]c1372a62014-05-21 19:42:31119 "texture_manager.cc",
satoruxc5bd7a32015-02-18 01:54:52120 "texture_manager.h",
[email protected]c1372a62014-05-21 19:42:31121 "transfer_buffer_manager.cc",
122 "transfer_buffer_manager.h",
orglofchcad5a6742014-11-07 19:51:12123 "valuebuffer_manager.cc",
satoruxc5bd7a32015-02-18 01:54:52124 "valuebuffer_manager.h",
[email protected]c1372a62014-05-21 19:42:31125 "vertex_array_manager.cc",
satoruxc5bd7a32015-02-18 01:54:52126 "vertex_array_manager.h",
[email protected]c1372a62014-05-21 19:42:31127 "vertex_attrib_manager.cc",
satoruxc5bd7a32015-02-18 01:54:52128 "vertex_attrib_manager.h",
[email protected]c1372a62014-05-21 19:42:31129 ]
130
brettw8f2fd172015-03-16 22:14:18131 configs += [
brettwbc8b2a22015-07-28 18:24:42132 "//build/config:precompiled_headers",
brettw8f2fd172015-03-16 22:14:18133 "//gpu:gpu_implementation",
134 "//third_party/khronos:khronos_headers",
135 ]
[email protected]c1372a62014-05-21 19:42:31136
ckocagilfc8d7f232014-09-30 19:31:43137 # Prefer mesa GL headers to system headers, which cause problems on Win.
138 include_dirs = [ "//third_party/mesa/src/include" ]
139
brettw7dab582e2014-09-20 01:44:11140 public_deps = [
brettw542f7532015-04-06 22:35:45141 "//gpu/command_buffer/common:common_sources",
brettw7dab582e2014-09-20 01:44:11142 ]
[email protected]c1372a62014-05-21 19:42:31143 deps = [
144 ":disk_cache_proto",
145 "//base",
146 "//base/third_party/dynamic_annotations",
147 "//crypto",
tfarina15525c42015-04-28 19:04:16148 "//gpu/config:config_sources",
jmadilldc26192a2015-08-04 12:44:16149 "//third_party/angle:commit_id",
[email protected]d5ba08c2014-06-18 07:01:08150 "//third_party/angle:translator",
[email protected]c1372a62014-05-21 19:42:31151 "//third_party/protobuf:protobuf_lite",
152 "//third_party/re2",
153 "//third_party/smhasher:cityhash",
154 "//ui/gfx",
155 "//ui/gfx/geometry",
156 "//ui/gl",
[email protected]c1372a62014-05-21 19:42:31157 ]
158
jiangj2bd42fd2015-04-18 13:29:06159 if (is_mac) {
160 # Required by gles2_cmd_decoder.cc on Mac.
161 libs = [
162 "IOSurface.framework",
163 "OpenGL.framework",
164 ]
165 }
166
[email protected]c1372a62014-05-21 19:42:31167 if (is_android && !is_debug) {
168 # On Android optimize more since this component can be a bottleneck.
brettw4cab0f12015-09-14 21:40:01169 configs -= [ "//build/config/compiler:default_optimization" ]
[email protected]c1372a62014-05-21 19:42:31170 configs += [ "//build/config/compiler:optimize_max" ]
171 }
172}
173
174proto_library("disk_cache_proto") {
scottmg34fb7e52014-12-03 23:27:24175 sources = [
176 "disk_cache_proto.proto",
177 ]
[email protected]c1372a62014-05-21 19:42:31178}