Chromium Code Reviews| Index: gpu/command_buffer/common/BUILD.gn |
| diff --git a/gpu/command_buffer/common/BUILD.gn b/gpu/command_buffer/common/BUILD.gn |
| index 57935ac4cead8d32a3c751f362106d1626f3db2b..babaa42e9991fc30fc9a0601b20bbcd08a629213 100644 |
| --- a/gpu/command_buffer/common/BUILD.gn |
| +++ b/gpu/command_buffer/common/BUILD.gn |
| @@ -2,7 +2,24 @@ |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| -source_set("common") { |
| +# The files here go into the "gpu" component in a component build (with |
| +# "command_buffer_common" just forwarding) and goes into a static library in |
| +# non-component build. |
|
Dirk Pranke
2015/04/06 16:54:07
same comment?
|
| +group("common") { |
| + if (is_component_build) { |
| + public_deps = [ |
| + "//gpu", |
| + ] |
| + } else { |
| + public_deps = [ |
| + ":common_sources", |
| + ] |
| + } |
| +} |
| + |
| +source_set("common_sources") { |
| + visibility = [ "//gpu/*" ] |
| + |
| sources = [ |
| "bitfield_helpers.h", |
| "buffer.cc", |