Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(47)

Unified Diff: tools/gn/binary_target_generator.cc

Issue 565283002: GN: Add notion of 'complete' static libraries, akin to GYP. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix test in Target::PullDependentTargetInfo, add test Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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)

Powered by Google App Engine
This is Rietveld 408576698