| Index: tools/gn/target_generator.cc
|
| diff --git a/tools/gn/target_generator.cc b/tools/gn/target_generator.cc
|
| index 5a7078cfb13cad3414b266eb6b04ff26d5aadc4c..570e1f89441b9f5f0939a32a750c9735f1e56079 100644
|
| --- a/tools/gn/target_generator.cc
|
| +++ b/tools/gn/target_generator.cc
|
| @@ -137,6 +137,21 @@ void TargetGenerator::FillSources() {
|
| target_->sources().swap(dest_sources);
|
| }
|
|
|
| +void TargetGenerator::FillPublic() {
|
| + const Value* value = scope_->GetValue(variables::kPublic, true);
|
| + if (!value)
|
| + return;
|
| +
|
| + // If the public headers are defined, don't default to public.
|
| + target_->set_all_headers_public(false);
|
| +
|
| + Target::FileList dest_public;
|
| + if (!ExtractListOfRelativeFiles(scope_->settings()->build_settings(), *value,
|
| + scope_->GetSourceDir(), &dest_public, err_))
|
| + return;
|
| + target_->public_headers().swap(dest_public);
|
| +}
|
| +
|
| void TargetGenerator::FillSourcePrereqs() {
|
| const Value* value = scope_->GetValue(variables::kSourcePrereqs, true);
|
| if (!value)
|
|
|