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

Unified Diff: tools/gn/functions_target.cc

Issue 1606553002: Add support for Mac/iOS application bundles to GN tool. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: base_unittests builds and pass all tests with GN Created 4 years, 11 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/functions_target.cc
diff --git a/tools/gn/functions_target.cc b/tools/gn/functions_target.cc
index b04fea8b0f49d56c9121ac9b7432f27aad272751..66594ee1d3ad97970b9d12e94f7b59ff0da84744 100644
--- a/tools/gn/functions_target.cc
+++ b/tools/gn/functions_target.cc
@@ -299,6 +299,28 @@ Value RunCopy(const FunctionCallNode* function,
return Value();
}
+// copy bundle data ------------------------------------------------------------
+
+const char kCopyBundleData[] = "copy_bundle_data";
+const char kCopyBundleData_HelpShort[] =
+ "copy_bundle_data: Declare a target that copies files to app bundle.";
+const char kCopyBundleData_Help[] =
+ "copy_bundle_data: Declare a target that copies files to app bundle.\n"
+ "\n"
+ "More detailed help need to be written\n";
brettw 2016/01/20 22:23:17 Please do this :)
sdefresne 2016/01/21 22:00:56 Done.
+
+Value RunCopyBundleData(const FunctionCallNode* function,
+ const std::vector<Value>& args,
+ Scope* scope,
+ Err* err) {
+ if (!EnsureNotProcessingImport(function, scope, err) ||
+ !EnsureNotProcessingBuildConfig(function, scope, err))
+ return Value();
+ TargetGenerator::GenerateTarget(
+ scope, function, args, functions::kCopyBundleData, err);
+ return Value();
+}
+
// executable ------------------------------------------------------------------
const char kExecutable[] = "executable";

Powered by Google App Engine
This is Rietveld 408576698