| 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 import("//testing/test.gni") | 5 import("//testing/test.gni") |
| 6 import("//build/config/ui.gni") | 6 import("//build/config/ui.gni") |
| 7 if (is_mac) { | 7 if (is_mac) { |
| 8 import("//build/config/mac/mac_sdk.gni") | 8 import("//build/config/mac/mac_sdk.gni") |
| 9 } | 9 } |
| 10 | 10 |
| 11 group("service") { | 11 group("service") { |
| 12 if (is_component_build) { | 12 if (is_component_build) { |
| 13 public_deps = [ | 13 public_deps = [ |
| 14 "//gpu", | 14 "//gpu", |
| 15 ] | 15 ] |
| 16 } else { | 16 } else { |
| 17 public_deps = [ | 17 public_deps = [ |
| 18 ":ipc_service_sources", | 18 ":ipc_service_sources", |
| 19 ] | 19 ] |
| 20 } | 20 } |
| 21 } | 21 } |
| 22 | 22 |
| 23 if (is_component_build) { | 23 source_set("ipc_service_sources") { |
| 24 link_target_type = "source_set" | |
| 25 } else { | |
| 26 link_target_type = "static_library" | |
| 27 } | |
| 28 target(link_target_type, "ipc_service_sources") { | |
| 29 visibility = [ "//gpu/*" ] | 24 visibility = [ "//gpu/*" ] |
| 30 sources = [ | 25 sources = [ |
| 31 "gpu_channel.cc", | 26 "gpu_channel.cc", |
| 32 "gpu_channel.h", | 27 "gpu_channel.h", |
| 33 "gpu_channel_manager.cc", | 28 "gpu_channel_manager.cc", |
| 34 "gpu_channel_manager.h", | 29 "gpu_channel_manager.h", |
| 35 "gpu_channel_manager_delegate.h", | 30 "gpu_channel_manager_delegate.h", |
| 36 "gpu_command_buffer_stub.cc", | 31 "gpu_command_buffer_stub.cc", |
| 37 "gpu_command_buffer_stub.h", | 32 "gpu_command_buffer_stub.h", |
| 38 "gpu_config.h", | 33 "gpu_config.h", |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 deps += [ "//ui/android:ui_java" ] | 159 deps += [ "//ui/android:ui_java" ] |
| 165 } | 160 } |
| 166 if (is_mac) { | 161 if (is_mac) { |
| 167 sources += [ "gpu_memory_buffer_factory_io_surface_unittest.cc" ] | 162 sources += [ "gpu_memory_buffer_factory_io_surface_unittest.cc" ] |
| 168 } | 163 } |
| 169 if (use_ozone) { | 164 if (use_ozone) { |
| 170 sources += [ "gpu_memory_buffer_factory_ozone_native_pixmap_unittest.cc" ] | 165 sources += [ "gpu_memory_buffer_factory_ozone_native_pixmap_unittest.cc" ] |
| 171 deps += [ "//ui/ozone" ] | 166 deps += [ "//ui/ozone" ] |
| 172 } | 167 } |
| 173 } | 168 } |
| OLD | NEW |