| Index: tools/gn/bundle_data_target_generator.cc
|
| diff --git a/tools/gn/bundle_data_target_generator.cc b/tools/gn/bundle_data_target_generator.cc
|
| index 81a9b959ebc3b8ae81bbf1c60d0004851e1b6420..96f490a350b4b8f524b7f17a961c38720e6557a3 100644
|
| --- a/tools/gn/bundle_data_target_generator.cc
|
| +++ b/tools/gn/bundle_data_target_generator.cc
|
| @@ -27,6 +27,16 @@ void BundleDataTargetGenerator::DoRun() {
|
| if (!FillOutputs())
|
| return;
|
|
|
| + const Value* value = scope_->GetValue(variables::kBinaryCompress, true);
|
| + if (value) {
|
| + if (value->type() != Value::BOOLEAN) {
|
| + *err_ = Err(function_call_,
|
| + "The binary_compress variable must be boolean");
|
| + return;
|
| + }
|
| + target_->bundle_data().set_binary_compress(value->boolean_value());
|
| + }
|
| +
|
| if (target_->sources().empty()) {
|
| *err_ = Err(function_call_, "Empty sources for bundle_data target."
|
| "You have to specify at least one file in the \"sources\".");
|
|
|