blob: c18f0ce25b93d6cc928cdc7446ed84218f2cf1f1 [file] [log] [blame]
James Robinson646469d2014-10-03 15:33:28 -07001# 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
5action("webkit_version") {
6 script = "version.py"
7
8 lastchange_file = "LASTCHANGE.blink"
James Robinson6a64b812014-12-03 13:38:42 -08009
James Robinson646469d2014-10-03 15:33:28 -070010 # TODO(brettw) move from content to this directory.
11 template_file = "//content/webkit_version.h.in"
James Robinson6a64b812014-12-03 13:38:42 -080012 inputs = [
13 lastchange_file,
14 template_file,
15 ]
James Robinson646469d2014-10-03 15:33:28 -070016
17 output_file = "$root_gen_dir/webkit_version.h"
James Robinson447ca5e2014-12-03 17:32:51 -080018 outputs = [
19 output_file,
20 ]
James Robinson646469d2014-10-03 15:33:28 -070021
22 args = [
James Robinson6a64b812014-12-03 13:38:42 -080023 "-f",
24 rebase_path(lastchange_file, root_build_dir),
James Robinson646469d2014-10-03 15:33:28 -070025 rebase_path(template_file, root_build_dir),
26 rebase_path(output_file, root_build_dir),
27 ]
28}