| OLD | NEW |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 group("common") { | 5 group("common") { |
| 6 if (is_component_build) { | 6 if (is_component_build) { |
| 7 public_deps = [ | 7 public_deps = [ |
| 8 "//gpu", | 8 "//gpu", |
| 9 ] | 9 ] |
| 10 } else { | 10 } else { |
| 11 public_deps = [ | 11 public_deps = [ |
| 12 ":ipc_common_sources", | 12 ":ipc_common_sources", |
| 13 ] | 13 ] |
| 14 } | 14 } |
| 15 } | 15 } |
| 16 | 16 |
| 17 group("command_buffer_traits") { |
| 18 if (is_component_build) { |
| 19 public_deps = [ |
| 20 "//gpu", |
| 21 ] |
| 22 } else { |
| 23 public_deps = [ |
| 24 ":command_buffer_traits_sources", |
| 25 ] |
| 26 } |
| 27 } |
| 28 |
| 29 source_set("command_buffer_traits_sources") { |
| 30 visibility = [ "//gpu/*" ] |
| 31 |
| 32 sources = [ |
| 33 "gpu_command_buffer_traits.cc", |
| 34 "gpu_command_buffer_traits.h", |
| 35 "gpu_command_buffer_traits_multi.h", |
| 36 "id_type_traits.h", |
| 37 ] |
| 38 |
| 39 configs += [ |
| 40 "//gpu:gpu_implementation", |
| 41 "//third_party/khronos:khronos_headers", |
| 42 ] |
| 43 |
| 44 deps = [ |
| 45 "//base", |
| 46 "//gpu/command_buffer/common:common_sources", |
| 47 "//ipc", |
| 48 ] |
| 49 } |
| 50 |
| 17 source_set("ipc_common_sources") { | 51 source_set("ipc_common_sources") { |
| 18 visibility = [ "//gpu/*" ] | 52 visibility = [ "//gpu/*" ] |
| 19 | 53 |
| 20 sources = [ | 54 sources = [ |
| 21 "gpu_command_buffer_traits.cc", | 55 "gpu_message_generator.cc", |
| 22 "gpu_command_buffer_traits.h", | 56 "gpu_message_generator.h", |
| 23 "id_type_traits.h", | 57 "gpu_messages.h", |
| 58 "gpu_param_traits.cc", |
| 59 "gpu_param_traits.h", |
| 60 "gpu_param_traits_macros.h", |
| 61 "gpu_stream_constants.h", |
| 24 "memory_stats.cc", | 62 "memory_stats.cc", |
| 25 "memory_stats.h", | 63 "memory_stats.h", |
| 26 ] | 64 ] |
| 27 | 65 |
| 28 configs += [ | 66 configs += [ |
| 29 "//gpu:gpu_implementation", | 67 "//gpu:gpu_implementation", |
| 30 "//third_party/khronos:khronos_headers", | 68 "//third_party/khronos:khronos_headers", |
| 31 ] | 69 ] |
| 32 | 70 |
| 33 deps = [ | 71 deps = [ |
| 72 ":command_buffer_traits_sources", |
| 34 "//base", | 73 "//base", |
| 35 "//gpu/command_buffer/common:common_sources", | 74 "//gpu/command_buffer/common:common_sources", |
| 75 "//gpu/config:config_sources", |
| 36 "//ipc", | 76 "//ipc", |
| 37 "//ui/gfx:native_widget_types", | 77 "//ui/events/ipc:events_ipc", |
| 78 "//ui/gfx/ipc", |
| 79 "//ui/gl", |
| 80 "//url/ipc:url_ipc", |
| 38 ] | 81 ] |
| 39 | 82 |
| 40 if (is_android) { | 83 if (is_android) { |
| 41 sources += [ | 84 sources += [ |
| 42 "android/surface_texture_manager.cc", | 85 "android/surface_texture_manager.cc", |
| 43 "android/surface_texture_manager.h", | 86 "android/surface_texture_manager.h", |
| 44 "android/surface_texture_peer.cc", | 87 "android/surface_texture_peer.cc", |
| 45 "android/surface_texture_peer.h", | 88 "android/surface_texture_peer.h", |
| 46 ] | 89 ] |
| 47 | |
| 48 deps += [ "//ui/gl" ] | |
| 49 } | 90 } |
| 50 } | 91 } |
| OLD | NEW |