| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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("//build/config/ui.gni") | 5 import("//build/config/ui.gni") |
| 6 import("//third_party/protobuf/proto_library.gni") | 6 import("//third_party/protobuf/proto_library.gni") |
| 7 | 7 |
| 8 group("service") { | 8 group("service") { |
| 9 if (is_component_build) { | 9 if (is_component_build) { |
| 10 public_deps = [ | 10 public_deps = [ |
| 11 "//gpu", | 11 "//gpu", |
| 12 ] | 12 ] |
| 13 } else { | 13 } else { |
| 14 public_deps = [ | 14 public_deps = [ |
| 15 ":service_sources", | 15 ":service_sources", |
| 16 ] | 16 ] |
| 17 } | 17 } |
| 18 } | 18 } |
| 19 | 19 |
| 20 if (is_component_build) { | 20 source_set("service_sources") { |
| 21 link_target_type = "source_set" | |
| 22 } else { | |
| 23 link_target_type = "static_library" | |
| 24 } | |
| 25 target(link_target_type, "service_sources") { | |
| 26 # External code should depend on this via //gpu/command_buffer/service above | 21 # 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. | 22 # rather than depending on this directly or the component build will break. |
| 28 visibility = [ "//gpu/*" ] | 23 visibility = [ "//gpu/*" ] |
| 29 | 24 |
| 30 sources = [ | 25 sources = [ |
| 31 "buffer_manager.cc", | 26 "buffer_manager.cc", |
| 32 "buffer_manager.h", | 27 "buffer_manager.h", |
| 33 "cmd_buffer_engine.h", | 28 "cmd_buffer_engine.h", |
| 34 "cmd_parser.cc", | 29 "cmd_parser.cc", |
| 35 "cmd_parser.h", | 30 "cmd_parser.h", |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 configs -= [ "//build/config/compiler:default_optimization" ] | 182 configs -= [ "//build/config/compiler:default_optimization" ] |
| 188 configs += [ "//build/config/compiler:optimize_max" ] | 183 configs += [ "//build/config/compiler:optimize_max" ] |
| 189 } | 184 } |
| 190 } | 185 } |
| 191 | 186 |
| 192 proto_library("disk_cache_proto") { | 187 proto_library("disk_cache_proto") { |
| 193 sources = [ | 188 sources = [ |
| 194 "disk_cache_proto.proto", | 189 "disk_cache_proto.proto", |
| 195 ] | 190 ] |
| 196 } | 191 } |
| OLD | NEW |