OLD | NEW |
1 # Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 # Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file |
2 # for details. All rights reserved. Use of this source code is governed by a | 2 # for details. All rights reserved. Use of this source code is governed by a |
3 # BSD-style license that can be found in the LICENSE file. | 3 # BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 import("../utils/create_timestamp.gni") | 5 import("../utils/create_timestamp.gni") |
6 | 6 |
7 template("make_third_party_pkg_files_stamp") { | 7 template("make_third_party_pkg_files_stamp") { |
8 assert(defined(invoker.id), "Must define the stamp file id") | 8 assert(defined(invoker.id), "Must define the stamp file id") |
9 path = rebase_path("../third_party/pkg") | 9 path = rebase_path("../third_party/pkg") |
10 if (defined(invoker.path)) { | 10 if (defined(invoker.path)) { |
11 path = invoker.path | 11 path = invoker.path |
12 } | 12 } |
13 id = invoker.id | 13 id = invoker.id |
14 create_timestamp_file(target_name) { | 14 create_timestamp_file(target_name) { |
15 if (defined(invoker.pattern)) { | 15 if (defined(invoker.pattern)) { |
16 pattern = invoker.pattern | 16 pattern = invoker.pattern |
17 } | 17 } |
18 path = path | 18 path = path |
| 19 new_base = "//" |
19 output = "$target_gen_dir/third_party_pkg_files_$id.stamp" | 20 output = "$target_gen_dir/third_party_pkg_files_$id.stamp" |
20 } | 21 } |
21 } | 22 } |
22 | 23 |
23 make_third_party_pkg_files_stamp("make_third_party_pkg_files_0_stamp") { | 24 make_third_party_pkg_files_stamp("make_third_party_pkg_files_0_stamp") { |
24 path = rebase_path(".") | 25 path = rebase_path(".") |
25 id = "0" | 26 id = "0" |
26 } | 27 } |
27 | 28 |
28 make_third_party_pkg_files_stamp("make_third_party_pkg_files_1_stamp") { | 29 make_third_party_pkg_files_stamp("make_third_party_pkg_files_1_stamp") { |
(...skipping 26 matching lines...) Expand all Loading... |
55 | 56 |
56 inputs = stamp0_outputs + stamp1_outputs + stamp2_outputs + stamp3_outputs | 57 inputs = stamp0_outputs + stamp1_outputs + stamp2_outputs + stamp3_outputs |
57 | 58 |
58 outputs = [ | 59 outputs = [ |
59 "$root_gen_dir/pkg_files.stamp", | 60 "$root_gen_dir/pkg_files.stamp", |
60 ] | 61 ] |
61 | 62 |
62 script = "../tools/create_timestamp_file.py" | 63 script = "../tools/create_timestamp_file.py" |
63 args = [ rebase_path("$root_gen_dir/pkg_files.stamp") ] | 64 args = [ rebase_path("$root_gen_dir/pkg_files.stamp") ] |
64 } | 65 } |
OLD | NEW |