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

Side by Side Diff: mojo/public/dart/rules.gni

Issue 973363002: Run dartanalyzer by default. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 9 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 unified diff | Download patch
« no previous file with comments | « BUILD.gn ('k') | mojo/tools/mojob.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 # Rules to generate python packaged applications for Dart 5 # Rules to generate python packaged applications for Dart
6 6
7 import("../mojo_sdk.gni") 7 import("../mojo_sdk.gni")
8 8
9 template("dart_package") { 9 template("dart_package") {
10 action(target_name) { 10 action(target_name) {
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 inputs = [ 116 inputs = [
117 input, 117 input,
118 ] 118 ]
119 119
120 output = mojo_output 120 output = mojo_output
121 outputs = [ 121 outputs = [
122 output, 122 output,
123 ] 123 ]
124 124
125 deps = [ 125 deps = [
126 # TODO(erg): When dartanalyze runs at an acceptable speed, add 126 ":$package_analyze_sources",
127 # ":$package_analyze_sources" as a dependency here and remove the
128 # manual group("check") in the toplevel build file.
129 ":$package_name", 127 ":$package_name",
130 ] 128 ]
131 if (defined(invoker.deps)) { 129 if (defined(invoker.deps)) {
132 deps += invoker.deps 130 deps += invoker.deps
133 } 131 }
134 if (defined(invoker.mojom_deps)) { 132 if (defined(invoker.mojom_deps)) {
135 deps += invoker.mojom_deps 133 deps += invoker.mojom_deps
136 } 134 }
137 if (defined(invoker.datadeps)) { 135 if (defined(invoker.datadeps)) {
138 datadeps = invoker.datadeps 136 datadeps = invoker.datadeps
139 } 137 }
140 138
141 line = "#!mojo mojo:dart_content_handler" 139 line = "#!mojo mojo:dart_content_handler"
142 if (defined(invoker.strict) && invoker.strict == true) { 140 if (defined(invoker.strict) && invoker.strict == true) {
143 line = "#!mojo mojo:dart_content_handler?strict=true" 141 line = "#!mojo mojo:dart_content_handler?strict=true"
144 } 142 }
145 143
146 rebase_input = rebase_path(input, root_build_dir) 144 rebase_input = rebase_path(input, root_build_dir)
147 rebase_output = rebase_path(output, root_build_dir) 145 rebase_output = rebase_path(output, root_build_dir)
148 args = [ 146 args = [
149 "--input=$rebase_input", 147 "--input=$rebase_input",
150 "--output=$rebase_output", 148 "--output=$rebase_output",
151 "--line=$line", 149 "--line=$line",
152 ] 150 ]
153 } 151 }
154 } 152 }
OLDNEW
« no previous file with comments | « BUILD.gn ('k') | mojo/tools/mojob.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698