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

Unified Diff: mojo/public/tools/bindings/mojom.gni

Issue 546943003: Revert of Make ui gn check pass. Misc GN build improvements. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « extensions/generated_extensions_api.gni ('k') | tools/gn/input_file_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/tools/bindings/mojom.gni
diff --git a/mojo/public/tools/bindings/mojom.gni b/mojo/public/tools/bindings/mojom.gni
index f497051de43967e3c1267715f216e4e344fed572..7ee71b2e5ef1d33294d2a4ef2adf6feb3a86e4b2 100644
--- a/mojo/public/tools/bindings/mojom.gni
+++ b/mojo/public/tools/bindings/mojom.gni
@@ -12,10 +12,8 @@
# List of source .mojom files to compile.
#
# deps (optional)
-#
# visibility (optional)
-# Normal meaning. However, this must be a list (normal visibility
-# allows a single string).
+# Normal meaning.
template("mojom") {
assert(defined(invoker.sources),
"\"sources\" must be defined for the $target_name template.")
@@ -77,18 +75,11 @@
"{{source_gen_dir}}/{{source_name_part}}_mojom.py",
]
- if (defined(invoker.visibility)) {
- # Need to save this because the the target_name is overwritten inside the
- # action to be that of the action itself. Only define this in the case the
- # var is used to avoid unused var error.
- target_visibility = ":$target_name"
- }
+ target_visibility = ":$target_name"
generator_target_name = target_name + "_generator"
action_foreach(generator_target_name) {
- if (defined(invoker.visibility)) {
- visibility = [ target_visibility ] + invoker.visibility # If you get an error here, make your visibility be a list.
- }
+ visibility = target_visibility
script = generator_script
inputs = generator_sources
sources = invoker.sources
« no previous file with comments | « extensions/generated_extensions_api.gni ('k') | tools/gn/input_file_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698