Index: tools/gn/binary_target_generator.cc |
diff --git a/tools/gn/binary_target_generator.cc b/tools/gn/binary_target_generator.cc |
index b11a529dc0ff0a6baf570c00133a98e3d3d7ab10..74cd6af7732e675a04eb8db5082be296eca91451 100644 |
--- a/tools/gn/binary_target_generator.cc |
+++ b/tools/gn/binary_target_generator.cc |
@@ -76,6 +76,17 @@ void BinaryTargetGenerator::FillCheckIncludes() { |
target_->set_check_includes(value->boolean_value()); |
} |
+void BinaryTargetGenerator::FillCompleteStaticLib() { |
brettw
2014/09/12 23:05:06
You forgot to call this function, silly-pants!
Chris Masone
2014/09/12 23:15:00
Done.
|
+ if (target_->output_type() == Target::STATIC_LIBRARY) { |
+ const Value* value = scope_->GetValue(variables::kCompleteStaticLib, true); |
+ if (!value) |
+ return; |
+ if (!value->VerifyTypeIs(Value::BOOLEAN, err_)) |
+ return; |
+ target_->set_complete_static_lib(value->boolean_value()); |
+ } |
+} |
+ |
void BinaryTargetGenerator::FillOutputName() { |
const Value* value = scope_->GetValue(variables::kOutputName, true); |
if (!value) |