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

Unified Diff: build/mac/tweak_info_plist.gni

Issue 1925383003: [Mac/GN] Port tweak_info_plist.py and run it on //content targets. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove extra checks Created 4 years, 8 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
« no previous file with comments | « build/config/mac/rules.gni ('k') | build/mac/tweak_info_plist.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/mac/tweak_info_plist.gni
diff --git a/build/mac/tweak_info_plist.gni b/build/mac/tweak_info_plist.gni
new file mode 100644
index 0000000000000000000000000000000000000000..d24a95d2ef7163de0e5424670fc9aeae64dfa7ce
--- /dev/null
+++ b/build/mac/tweak_info_plist.gni
@@ -0,0 +1,46 @@
+# Copyright 2016 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+# Template to run the tweak_info_plist.py script on a plist.
+#
+# Arguments:
+#
+# info_plist:
+# string, the plist to tweak.
+#
+# args:
+# list of string, the arguments to pass to the tweak_info_plist.py
+# script.
+#
+# Callers should use get_target_outputs() to get the output name.
+template("tweak_info_plist") {
+ assert(defined(invoker.info_plist),
+ "The info_plist must be specified in $target_name")
+ assert(defined(invoker.args),
+ "The args to tweak_info_plist.py must be specified in $target_name")
+
+ action(target_name) {
+ forward_variables_from(invoker, [ "testonly" ])
+ script = "//build/mac/tweak_info_plist.py"
+ inputs = [
+ script,
+ "//build/util/version.py",
+ "//build/util/LASTCHANGE",
+ "//chrome/VERSION",
+ ]
+ sources = [
+ invoker.info_plist,
+ ]
+ _output_name = "$target_gen_dir/${target_name}_tweaked.plist"
+ outputs = [
+ _output_name,
+ ]
+ args = invoker.args + [
+ "--plist",
+ rebase_path(invoker.info_plist, root_build_dir),
+ "--output",
+ rebase_path(_output_name, root_build_dir),
+ ]
+ }
+}
« no previous file with comments | « build/config/mac/rules.gni ('k') | build/mac/tweak_info_plist.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698