| OLD | NEW |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 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 assert(is_chromeos) | 5 assert(is_chromeos) |
| 6 | 6 |
| 7 closure_library_dir = | 7 closure_library_dir = |
| 8 "//chrome/third_party/chromevox/third_party/closure-library/closure/goog" | 8 "//chrome/third_party/chromevox/third_party/closure-library/closure/goog" |
| 9 | 9 |
| 10 jsbundler_modules = rebase_path([ | 10 jsbundler_modules = rebase_path([ |
| 11 "depstree.py", | 11 "depstree.py", |
| 12 "source.py", | 12 "source.py", |
| 13 "treescan.py", | 13 "treescan.py", |
| 14 ], | 14 ], |
| 15 ".", | 15 ".", |
| 16 "$closure_library_dir/../bin/build") | 16 "$closure_library_dir/../bin/build") |
| 17 jsbundler_modules += | 17 jsbundler_modules += |
| 18 [ "//third_party/WebKit/Source/devtools/scripts/build/rjsmin.py" ] | 18 [ "//third_party/WebKit/Source/devtools/scripts/rjsmin.py" ] |
| 19 | 19 |
| 20 template("run_jsbundler") { | 20 template("run_jsbundler") { |
| 21 assert(defined(invoker.mode)) | 21 assert(defined(invoker.mode)) |
| 22 assert(defined(invoker.sources)) | 22 assert(defined(invoker.sources)) |
| 23 if (defined(invoker.modules)) { | 23 if (defined(invoker.modules)) { |
| 24 modules = invoker.modules | 24 modules = invoker.modules |
| 25 } else { | 25 } else { |
| 26 modules = [] | 26 modules = [] |
| 27 } | 27 } |
| 28 if (defined(invoker.rewrite_rules)) { | 28 if (defined(invoker.rewrite_rules)) { |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 } | 85 } |
| 86 foreach(rule, rewrite_rules) { | 86 foreach(rule, rewrite_rules) { |
| 87 args += [ | 87 args += [ |
| 88 "-w", | 88 "-w", |
| 89 rule, | 89 rule, |
| 90 ] | 90 ] |
| 91 } | 91 } |
| 92 args += rebase_path(sources, root_build_dir) | 92 args += rebase_path(sources, root_build_dir) |
| 93 } | 93 } |
| 94 } | 94 } |
| OLD | NEW |