[Clean-up] Remove NetworkStats code, which has been dead code since July 2014.
[chromium-blink-merge.git] / remoting / remoting_version.gni
blobf8f6276d9e1265e81eae392274a853cd49f16af5
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
3 # found in the LICENSE file.
5 _version_py_abspath = "//build/util/version.py"
6 _remoting_version_abspath = "//remoting/VERSION"
7 _chrome_version_abspath = "//chrome/VERSION"
8 if (is_chrome_branded) {
9   _remoting_branding_abspath = "//remoting/branding_Chrome"
10 } else {
11   _remoting_branding_abspath = "//remoting/branding_Chromium"
14 # Set these files as being input dependencies to the scripts, so the build will
15 # be re-run if the files change.
16 _script_deps = [
17   _remoting_version_abspath,
18   _chrome_version_abspath,
19   _remoting_branding_abspath,
22 _chrome_version_path = rebase_path(_chrome_version_abspath, root_build_dir)
23 _remoting_version_path = rebase_path(_remoting_version_abspath, root_build_dir)
24 _remoting_branding_path =
25     rebase_path(_remoting_branding_abspath, root_build_dir)
27 version_major = exec_script(_version_py_abspath,
28                             [
29                               "-f",
30                               _chrome_version_path,
31                               "-f",
32                               _remoting_version_path,
33                               "-t \"@MAJOR@\"",
34                             ],
35                             "value",
36                             _script_deps)
38 version_minor = exec_script(_version_py_abspath,
39                             [
40                               "-f",
41                               _remoting_version_path,
42                               "-t \"@REMOTING_PATCH@\"",
43                             ],
44                             "value",
45                             _script_deps)
47 version_short =
48     "${version_major}.${version_minor}." + exec_script(_version_py_abspath,
49                                                        [
50                                                          "-f",
51                                                          _chrome_version_path,
52                                                          "-f",
53                                                          _remoting_version_path,
54                                                          "-t \"@BUILD@\"",
55                                                        ],
56                                                        "value",
57                                                        _script_deps)
59 version_full = "${version_short}." + exec_script(_version_py_abspath,
60                                                  [
61                                                    "-f",
62                                                    _chrome_version_path,
63                                                    "-f",
64                                                    _remoting_version_path,
65                                                    "-t \"@PATCH@\"",
66                                                  ],
67                                                  "value",
68                                                  _script_deps)
70 prefpane_bundle_name = exec_script(_version_py_abspath,
71                                    [
72                                      "-f",
73                                      _remoting_branding_path,
74                                      "-t \"@MAC_PREFPANE_BUNDLE_NAME@\"",
75                                    ],
76                                    "string",
77                                    _script_deps)
79 host_bundle_name = exec_script(_version_py_abspath,
80                                [
81                                  "-f",
82                                  _remoting_branding_path,
83                                  "-t \"@MAC_HOST_BUNDLE_NAME@\"",
84                                ],
85                                "string",
86                                _script_deps)