[email protected] | c1372a6 | 2014-05-21 19:42:31 | [diff] [blame] | 1 | # 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 | |
| 5 | import("//build/config/ui.gni") |
| 6 | import("//third_party/protobuf/proto_library.gni") |
| 7 | |
brettw | 542f753 | 2015-04-06 22:35:45 | [diff] [blame] | 8 | group("service") { |
| 9 | if (is_component_build) { |
| 10 | public_deps = [ |
| 11 | "//gpu", |
| 12 | ] |
| 13 | } else { |
| 14 | public_deps = [ |
| 15 | ":service_sources", |
| 16 | ] |
| 17 | } |
| 18 | } |
| 19 | |
| 20 | source_set("service_sources") { |
| 21 | visibility = [ "//gpu/*" ] |
| 22 | |
[email protected] | c1372a6 | 2014-05-21 19:42:31 | [diff] [blame] | 23 | sources = [ |
| 24 | "async_pixel_transfer_delegate.cc", |
| 25 | "async_pixel_transfer_delegate.h", |
satorux | c5bd7a3 | 2015-02-18 01:54:52 | [diff] [blame] | 26 | "async_pixel_transfer_manager.cc", |
| 27 | "async_pixel_transfer_manager.h", |
[email protected] | c1372a6 | 2014-05-21 19:42:31 | [diff] [blame] | 28 | "async_pixel_transfer_manager_android.cc", |
| 29 | "async_pixel_transfer_manager_idle.cc", |
| 30 | "async_pixel_transfer_manager_idle.h", |
| 31 | "async_pixel_transfer_manager_linux.cc", |
| 32 | "async_pixel_transfer_manager_mac.cc", |
| 33 | "async_pixel_transfer_manager_share_group.cc", |
| 34 | "async_pixel_transfer_manager_share_group.h", |
| 35 | "async_pixel_transfer_manager_stub.cc", |
| 36 | "async_pixel_transfer_manager_stub.h", |
| 37 | "async_pixel_transfer_manager_sync.cc", |
| 38 | "async_pixel_transfer_manager_sync.h", |
| 39 | "async_pixel_transfer_manager_win.cc", |
[email protected] | c1372a6 | 2014-05-21 19:42:31 | [diff] [blame] | 40 | "buffer_manager.cc", |
satorux | c5bd7a3 | 2015-02-18 01:54:52 | [diff] [blame] | 41 | "buffer_manager.h", |
[email protected] | c1372a6 | 2014-05-21 19:42:31 | [diff] [blame] | 42 | "cmd_buffer_engine.h", |
| 43 | "cmd_parser.cc", |
| 44 | "cmd_parser.h", |
| 45 | "command_buffer_service.cc", |
| 46 | "command_buffer_service.h", |
| 47 | "common_decoder.cc", |
| 48 | "common_decoder.h", |
[email protected] | c1372a6 | 2014-05-21 19:42:31 | [diff] [blame] | 49 | "context_group.cc", |
satorux | c5bd7a3 | 2015-02-18 01:54:52 | [diff] [blame] | 50 | "context_group.h", |
| 51 | "context_state.cc", |
[email protected] | c1372a6 | 2014-05-21 19:42:31 | [diff] [blame] | 52 | "context_state.h", |
| 53 | "context_state_autogen.h", |
| 54 | "context_state_impl_autogen.h", |
[email protected] | c1372a6 | 2014-05-21 19:42:31 | [diff] [blame] | 55 | "error_state.cc", |
| 56 | "error_state.h", |
[email protected] | c1372a6 | 2014-05-21 19:42:31 | [diff] [blame] | 57 | "feature_info.cc", |
satorux | c5bd7a3 | 2015-02-18 01:54:52 | [diff] [blame] | 58 | "feature_info.h", |
[email protected] | c1372a6 | 2014-05-21 19:42:31 | [diff] [blame] | 59 | "framebuffer_manager.cc", |
satorux | c5bd7a3 | 2015-02-18 01:54:52 | [diff] [blame] | 60 | "framebuffer_manager.h", |
[email protected] | c1372a6 | 2014-05-21 19:42:31 | [diff] [blame] | 61 | "gl_context_virtual.cc", |
| 62 | "gl_context_virtual.h", |
| 63 | "gl_state_restorer_impl.cc", |
| 64 | "gl_state_restorer_impl.h", |
| 65 | "gl_utils.h", |
satorux | c5bd7a3 | 2015-02-18 01:54:52 | [diff] [blame] | 66 | "gles2_cmd_clear_framebuffer.cc", |
| 67 | "gles2_cmd_clear_framebuffer.h", |
| 68 | "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", |
| 73 | "gles2_cmd_validation.cc", |
| 74 | "gles2_cmd_validation.h", |
| 75 | "gles2_cmd_validation_autogen.h", |
| 76 | "gles2_cmd_validation_implementation_autogen.h", |
[email protected] | c1372a6 | 2014-05-21 19:42:31 | [diff] [blame] | 77 | "gpu_scheduler.cc", |
| 78 | "gpu_scheduler.h", |
[email protected] | c1372a6 | 2014-05-21 19:42:31 | [diff] [blame] | 79 | "gpu_state_tracer.cc", |
| 80 | "gpu_state_tracer.h", |
| 81 | "gpu_switches.cc", |
| 82 | "gpu_switches.h", |
satorux | c5bd7a3 | 2015-02-18 01:54:52 | [diff] [blame] | 83 | "gpu_tracer.cc", |
| 84 | "gpu_tracer.h", |
[email protected] | c1372a6 | 2014-05-21 19:42:31 | [diff] [blame] | 85 | "id_manager.cc", |
satorux | c5bd7a3 | 2015-02-18 01:54:52 | [diff] [blame] | 86 | "id_manager.h", |
reveman | eeba91b | 2014-10-28 22:49:20 | [diff] [blame] | 87 | "image_factory.cc", |
| 88 | "image_factory.h", |
[email protected] | c1372a6 | 2014-05-21 19:42:31 | [diff] [blame] | 89 | "image_manager.cc", |
| 90 | "image_manager.h", |
| 91 | "in_process_command_buffer.cc", |
| 92 | "in_process_command_buffer.h", |
| 93 | "logger.cc", |
| 94 | "logger.h", |
boliu | 8e814cb | 2015-07-13 20:47:46 | [diff] [blame] | 95 | "mailbox_manager.cc", |
[email protected] | c1372a6 | 2014-05-21 19:42:31 | [diff] [blame] | 96 | "mailbox_manager.h", |
sievers | b727d53 | 2014-10-24 19:11:34 | [diff] [blame] | 97 | "mailbox_manager_impl.cc", |
| 98 | "mailbox_manager_impl.h", |
| 99 | "mailbox_manager_sync.cc", |
| 100 | "mailbox_manager_sync.h", |
[email protected] | c1372a6 | 2014-05-21 19:42:31 | [diff] [blame] | 101 | "memory_program_cache.cc", |
satorux | c5bd7a3 | 2015-02-18 01:54:52 | [diff] [blame] | 102 | "memory_program_cache.h", |
kkinnunen | b959a846 | 2015-07-14 11:08:34 | [diff] [blame^] | 103 | "path_manager.cc", |
| 104 | "path_manager.h", |
[email protected] | c1372a6 | 2014-05-21 19:42:31 | [diff] [blame] | 105 | "program_cache.cc", |
satorux | c5bd7a3 | 2015-02-18 01:54:52 | [diff] [blame] | 106 | "program_cache.h", |
| 107 | "program_manager.cc", |
| 108 | "program_manager.h", |
| 109 | "query_manager.cc", |
| 110 | "query_manager.h", |
| 111 | "renderbuffer_manager.cc", |
| 112 | "renderbuffer_manager.h", |
[email protected] | c1372a6 | 2014-05-21 19:42:31 | [diff] [blame] | 113 | "shader_manager.cc", |
satorux | c5bd7a3 | 2015-02-18 01:54:52 | [diff] [blame] | 114 | "shader_manager.h", |
[email protected] | c1372a6 | 2014-05-21 19:42:31 | [diff] [blame] | 115 | "shader_translator.cc", |
satorux | c5bd7a3 | 2015-02-18 01:54:52 | [diff] [blame] | 116 | "shader_translator.h", |
[email protected] | c1372a6 | 2014-05-21 19:42:31 | [diff] [blame] | 117 | "shader_translator_cache.cc", |
satorux | c5bd7a3 | 2015-02-18 01:54:52 | [diff] [blame] | 118 | "shader_translator_cache.h", |
[email protected] | c1372a6 | 2014-05-21 19:42:31 | [diff] [blame] | 119 | "stream_texture_manager_in_process_android.cc", |
satorux | c5bd7a3 | 2015-02-18 01:54:52 | [diff] [blame] | 120 | "stream_texture_manager_in_process_android.h", |
abarth | 3f181202 | 2014-11-18 23:33:07 | [diff] [blame] | 121 | "sync_point_manager.cc", |
satorux | c5bd7a3 | 2015-02-18 01:54:52 | [diff] [blame] | 122 | "sync_point_manager.h", |
[email protected] | c1372a6 | 2014-05-21 19:42:31 | [diff] [blame] | 123 | "texture_definition.cc", |
satorux | c5bd7a3 | 2015-02-18 01:54:52 | [diff] [blame] | 124 | "texture_definition.h", |
[email protected] | c1372a6 | 2014-05-21 19:42:31 | [diff] [blame] | 125 | "texture_manager.cc", |
satorux | c5bd7a3 | 2015-02-18 01:54:52 | [diff] [blame] | 126 | "texture_manager.h", |
[email protected] | c1372a6 | 2014-05-21 19:42:31 | [diff] [blame] | 127 | "transfer_buffer_manager.cc", |
| 128 | "transfer_buffer_manager.h", |
orglofch | cad5a674 | 2014-11-07 19:51:12 | [diff] [blame] | 129 | "valuebuffer_manager.cc", |
satorux | c5bd7a3 | 2015-02-18 01:54:52 | [diff] [blame] | 130 | "valuebuffer_manager.h", |
[email protected] | c1372a6 | 2014-05-21 19:42:31 | [diff] [blame] | 131 | "vertex_array_manager.cc", |
satorux | c5bd7a3 | 2015-02-18 01:54:52 | [diff] [blame] | 132 | "vertex_array_manager.h", |
[email protected] | c1372a6 | 2014-05-21 19:42:31 | [diff] [blame] | 133 | "vertex_attrib_manager.cc", |
satorux | c5bd7a3 | 2015-02-18 01:54:52 | [diff] [blame] | 134 | "vertex_attrib_manager.h", |
[email protected] | c1372a6 | 2014-05-21 19:42:31 | [diff] [blame] | 135 | ] |
| 136 | |
brettw | 8f2fd17 | 2015-03-16 22:14:18 | [diff] [blame] | 137 | configs += [ |
| 138 | "//gpu:gpu_implementation", |
| 139 | "//third_party/khronos:khronos_headers", |
| 140 | ] |
[email protected] | c1372a6 | 2014-05-21 19:42:31 | [diff] [blame] | 141 | |
ckocagil | fc8d7f23 | 2014-09-30 19:31:43 | [diff] [blame] | 142 | # Prefer mesa GL headers to system headers, which cause problems on Win. |
| 143 | include_dirs = [ "//third_party/mesa/src/include" ] |
| 144 | |
brettw | 7dab582e | 2014-09-20 01:44:11 | [diff] [blame] | 145 | public_deps = [ |
brettw | 542f753 | 2015-04-06 22:35:45 | [diff] [blame] | 146 | "//gpu/command_buffer/common:common_sources", |
brettw | 7dab582e | 2014-09-20 01:44:11 | [diff] [blame] | 147 | ] |
[email protected] | c1372a6 | 2014-05-21 19:42:31 | [diff] [blame] | 148 | deps = [ |
| 149 | ":disk_cache_proto", |
| 150 | "//base", |
| 151 | "//base/third_party/dynamic_annotations", |
| 152 | "//crypto", |
tfarina | 15525c4 | 2015-04-28 19:04:16 | [diff] [blame] | 153 | "//gpu/config:config_sources", |
[email protected] | d5ba08c | 2014-06-18 07:01:08 | [diff] [blame] | 154 | "//third_party/angle:translator", |
[email protected] | c1372a6 | 2014-05-21 19:42:31 | [diff] [blame] | 155 | "//third_party/protobuf:protobuf_lite", |
| 156 | "//third_party/re2", |
| 157 | "//third_party/smhasher:cityhash", |
| 158 | "//ui/gfx", |
| 159 | "//ui/gfx/geometry", |
| 160 | "//ui/gl", |
[email protected] | c1372a6 | 2014-05-21 19:42:31 | [diff] [blame] | 161 | ] |
| 162 | |
[email protected] | c1372a6 | 2014-05-21 19:42:31 | [diff] [blame] | 163 | if (is_win || is_android || (is_linux && use_x11)) { |
| 164 | sources += [ |
| 165 | "async_pixel_transfer_manager_egl.cc", |
| 166 | "async_pixel_transfer_manager_egl.h", |
| 167 | ] |
| 168 | } |
| 169 | |
jiangj | 2bd42fd | 2015-04-18 13:29:06 | [diff] [blame] | 170 | if (is_mac) { |
| 171 | # Required by gles2_cmd_decoder.cc on Mac. |
| 172 | libs = [ |
| 173 | "IOSurface.framework", |
| 174 | "OpenGL.framework", |
| 175 | ] |
| 176 | } |
| 177 | |
[email protected] | c1372a6 | 2014-05-21 19:42:31 | [diff] [blame] | 178 | if (is_android && !is_debug) { |
| 179 | # On Android optimize more since this component can be a bottleneck. |
| 180 | configs -= [ "//build/config/compiler:optimize" ] |
| 181 | configs += [ "//build/config/compiler:optimize_max" ] |
| 182 | } |
| 183 | } |
| 184 | |
| 185 | proto_library("disk_cache_proto") { |
scottmg | 34fb7e5 | 2014-12-03 23:27:24 | [diff] [blame] | 186 | sources = [ |
| 187 | "disk_cache_proto.proto", |
| 188 | ] |
[email protected] | c1372a6 | 2014-05-21 19:42:31 | [diff] [blame] | 189 | } |