OLD | NEW |
(Empty) | |
| 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. |
| 4 |
| 5 action("webkit_version") { |
| 6 script = "version.py" |
| 7 |
| 8 lastchange_file = "LASTCHANGE.blink" |
| 9 |
| 10 # TODO(brettw) move from content to this directory. |
| 11 template_file = "//content/webkit_version.h.in" |
| 12 inputs = [ |
| 13 lastchange_file, |
| 14 template_file, |
| 15 ] |
| 16 |
| 17 output_file = "$root_gen_dir/webkit_version.h" |
| 18 outputs = [ |
| 19 output_file, |
| 20 ] |
| 21 |
| 22 args = [ |
| 23 "-f", |
| 24 rebase_path(lastchange_file, root_build_dir), |
| 25 rebase_path(template_file, root_build_dir), |
| 26 rebase_path(output_file, root_build_dir), |
| 27 ] |
| 28 } |
| 29 |
| 30 action("chrome_version_json") { |
| 31 script = "version.py" |
| 32 _chrome_version_path = "//chrome/VERSION" |
| 33 inputs = [ |
| 34 _chrome_version_path, |
| 35 ] |
| 36 _output_file = "$root_gen_dir/CHROME_VERSION.json" |
| 37 outputs = [ |
| 38 _output_file, |
| 39 ] |
| 40 args = [ |
| 41 "--file", |
| 42 rebase_path(_chrome_version_path, root_build_dir), |
| 43 "--template", |
| 44 "{\"full-quoted\": \"\\\"@MAJOR@.@MINOR@.@BUILD@.@PATCH@\\\"\"}", |
| 45 "--output", |
| 46 rebase_path(_output_file, root_build_dir), |
| 47 ] |
| 48 } |
OLD | NEW |