OLD | NEW |
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 /// This library generates Mojo bindings for a Dart package. | 5 /// This library generates Mojo bindings for a Dart package. |
6 | 6 |
7 library generate; | 7 library generate; |
8 | 8 |
9 import 'dart:async'; | 9 import 'dart:async'; |
10 import 'dart:convert'; | 10 import 'dart:convert'; |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 | 163 |
164 final arguments = [ | 164 final arguments = [ |
165 '--use_bundled_pylibs', | 165 '--use_bundled_pylibs', |
166 '-g', | 166 '-g', |
167 'dart', | 167 'dart', |
168 '-o', | 168 '-o', |
169 output, | 169 output, |
170 '-I', | 170 '-I', |
171 sdkInc, | 171 sdkInc, |
172 '-I', | 172 '-I', |
173 importDir.path | 173 importDir.path, |
| 174 '--no-gen-imports' |
174 ]; | 175 ]; |
175 if (servicesPath != null) { | 176 if (servicesPath != null) { |
176 arguments.add('-I'); | 177 arguments.add('-I'); |
177 arguments.add(servicesPath); | 178 arguments.add(servicesPath); |
178 } | 179 } |
179 arguments.add(mojom.path); | 180 arguments.add(mojom.path); |
180 | 181 |
181 log.info('Generating $mojom'); | 182 log.info('Generating $mojom'); |
182 log.info('$script ${arguments.join(" ")}'); | 183 log.info('$script ${arguments.join(" ")}'); |
183 log.info('dryRun = $_dryRun'); | 184 log.info('dryRun = $_dryRun'); |
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
436 '\t$dart $packRoot $scriptPath single -m $mojoSdk -r $root ' | 437 '\t$dart $packRoot $scriptPath single -m $mojoSdk -r $root ' |
437 '-p $packagePath $skips'); | 438 '-p $packagePath $skips'); |
438 _errors++; | 439 _errors++; |
439 return; | 440 return; |
440 } | 441 } |
441 } | 442 } |
442 } | 443 } |
443 | 444 |
444 bool _shouldSkip(File f) => containsPrefix(f.path, _skip); | 445 bool _shouldSkip(File f) => containsPrefix(f.path, _skip); |
445 } | 446 } |
OLD | NEW |