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

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

Issue 1607613007: Regenerate .mojo file if any dependent .dart sources change (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: 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 unified diff | Download patch
« no previous file with comments | « mojo/dart/embedder/snapshotter/main.cc ('k') | mojo/public/tools/dart_snapshotter.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 # This file has rules for making Dart packages and Dart-based Mojo applications. 5 # This file has rules for making Dart packages and Dart-based Mojo applications.
6 # The entrypoint is the dart_pkg rule. 6 # The entrypoint is the dart_pkg rule.
7 7
8 import("../mojo.gni") 8 import("../mojo.gni")
9 import("//build/module_args/mojo.gni") 9 import("//build/module_args/mojo.gni")
10 import("//build/module_args/dart.gni") 10 import("//build/module_args/dart.gni")
(...skipping 24 matching lines...) Expand all
35 snapshot, 35 snapshot,
36 ] 36 ]
37 37
38 if (defined(invoker.sources)) { 38 if (defined(invoker.sources)) {
39 sources = invoker.sources 39 sources = invoker.sources
40 } 40 }
41 41
42 script = 42 script =
43 rebase_path("mojo/public/tools/dart_snapshotter.py", ".", mojo_sdk_root) 43 rebase_path("mojo/public/tools/dart_snapshotter.py", ".", mojo_sdk_root)
44 44
45 depfile = "$target_gen_dir/${bundle_prefix}_snapshot.bin.d"
46
45 args = [ 47 args = [
46 rebase_path(dart_snapshotter), 48 rebase_path(dart_snapshotter),
47 rebase_path(main_dart), 49 rebase_path(main_dart),
48 "--package-root", 50 "--package-root",
49 rebase_path("$root_gen_dir/dart-pkg/packages"), 51 rebase_path("$root_gen_dir/dart-pkg/packages"),
50 "--snapshot", 52 "--snapshot",
51 rebase_path(snapshot), 53 rebase_path(snapshot),
54 "--depfile",
55 rebase_path(depfile),
56 "--build-output",
57 "${bundle_prefix}_snapshot.bin",
52 ] 58 ]
53 59
54 deps = [ 60 deps = [
55 dart_snapshotter_rule, 61 dart_snapshotter_rule,
56 ] 62 ]
57 if (defined(invoker.deps)) { 63 if (defined(invoker.deps)) {
58 deps += invoker.deps 64 deps += invoker.deps
59 } 65 }
60 } 66 }
61 67
(...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after
442 group(target_name) { 448 group(target_name) {
443 deps = [] 449 deps = []
444 foreach(package_dir, packages) { 450 foreach(package_dir, packages) {
445 deps += [ ":$package_dir" ] 451 deps += [ ":$package_dir" ]
446 } 452 }
447 if (defined(invoker.deps)) { 453 if (defined(invoker.deps)) {
448 deps += invoker.deps 454 deps += invoker.deps
449 } 455 }
450 } 456 }
451 } 457 }
OLDNEW
« no previous file with comments | « mojo/dart/embedder/snapshotter/main.cc ('k') | mojo/public/tools/dart_snapshotter.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698