Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 # Runs the version processing script over the given template file to produce | 5 # Runs the version processing script over the given template file to produce |
| 6 # an output file. This is used for generating various forms of files that | 6 # an output file. This is used for generating various forms of files that |
| 7 # incorporate the product name and version. | 7 # incorporate the product name and version. |
| 8 # | 8 # |
| 9 # This template automatically includes VERSION, LASTCHANGE, and BRANDING, | 9 # This template automatically includes VERSION, LASTCHANGE, and BRANDING, |
| 10 # | 10 # |
| (...skipping 22 matching lines...) Expand all Loading... | |
| 33 script = "//build/util/version.py" | 33 script = "//build/util/version.py" |
| 34 | 34 |
| 35 lastchange_path = "//build/util/LASTCHANGE" | 35 lastchange_path = "//build/util/LASTCHANGE" |
| 36 version_path = "//chrome/VERSION" | 36 version_path = "//chrome/VERSION" |
| 37 if (is_chrome_branded) { | 37 if (is_chrome_branded) { |
| 38 branding_path = "//chrome/app/theme/google_chrome/BRANDING" | 38 branding_path = "//chrome/app/theme/google_chrome/BRANDING" |
| 39 } else { | 39 } else { |
| 40 branding_path = "//chrome/app/theme/chromium/BRANDING" | 40 branding_path = "//chrome/app/theme/chromium/BRANDING" |
| 41 } | 41 } |
| 42 | 42 |
| 43 extra_args = [] | |
|
cjhopman
2014/10/23 21:42:05
document this new parameter above.
cjhopman
2014/10/23 21:42:05
Also, I think my preference would be to expose a l
newt (away)
2014/10/23 22:02:28
I considered that, but it didn't really seem worth
cjhopman
2014/10/23 22:05:48
sgtm
newt (away)
2014/10/23 22:25:24
Done.
| |
| 44 if (defined(invoker.extra_args)) { | |
| 45 extra_args = invoker.extra_args | |
| 46 } | |
| 47 | |
| 43 inputs = [ | 48 inputs = [ |
| 44 version_path, | 49 version_path, |
| 45 invoker.source, | 50 invoker.source, |
| 46 lastchange_path, | 51 lastchange_path, |
| 47 branding_path, | 52 branding_path, |
| 48 ] | 53 ] |
| 49 | 54 |
| 50 outputs = [ invoker.output ] | 55 outputs = [ invoker.output ] |
| 51 | 56 |
| 52 args = [ | 57 args = [ |
| 53 "-f", rebase_path(version_path, root_build_dir), | 58 "-f", rebase_path(version_path, root_build_dir), |
| 54 "-f", rebase_path(branding_path, root_build_dir), | 59 "-f", rebase_path(branding_path, root_build_dir), |
| 55 "-f", rebase_path(lastchange_path, root_build_dir), | 60 "-f", rebase_path(lastchange_path, root_build_dir), |
| 56 rebase_path(invoker.source, root_build_dir), | 61 "-i", rebase_path(invoker.source, root_build_dir), |
| 57 rebase_path(invoker.output, root_build_dir), | 62 "-o", rebase_path(invoker.output, root_build_dir), |
| 58 ] | 63 ] + extra_args |
| 59 } | 64 } |
| 60 } | 65 } |
| OLD | NEW |