Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(304)

Side by Side Diff: build/util/version.gni

Issue 1930403003: [Mac/GN] Get chrome and chrome_framework building. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gn-chrome-app-shim
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 # Copyright 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 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 # This exposes the Chrome version as GN variables for use in build files. 5 # This exposes the Chrome version as GN variables for use in build files.
6 # 6 #
7 # PREFER NOT TO USE THESE. The GYP build uses this kind of thing extensively. 7 # PREFER NOT TO USE THESE. The GYP build uses this kind of thing extensively.
8 # However, it is far better to write an action (or use the process_version 8 # However, it is far better to write an action (or use the process_version
9 # wrapper in chrome/version.gni) to generate a file at build-time with the 9 # wrapper in chrome/version.gni) to generate a file at build-time with the
10 # information you need. This allows better dependency checking and GN will 10 # information you need. This allows better dependency checking and GN will
(...skipping 27 matching lines...) Expand all
38 38
39 # Full version. For example "45.0.12321.0" 39 # Full version. For example "45.0.12321.0"
40 chrome_version_full = _result.full 40 chrome_version_full = _result.full
41 41
42 # The consituent parts of the full version. 42 # The consituent parts of the full version.
43 chrome_version_major = _result.major 43 chrome_version_major = _result.major
44 chrome_version_minor = _result.minor 44 chrome_version_minor = _result.minor
45 chrome_version_build = _result.build 45 chrome_version_build = _result.build
46 chrome_version_patch = _result.patch 46 chrome_version_patch = _result.patch
47 remoting_version_patch = _result.remoting 47 remoting_version_patch = _result.remoting
48
49 if (is_mac) {
50 _result = exec_script("version.py",
51 [
52 "-f",
53 rebase_path(chrome_version_file, root_build_dir),
54 "-t",
55 "@BUILD@.@PATCH_HI@.@PATCH_LO@",
56 "-e",
57 "PATCH_HI=int(PATCH)/256",
58 "-e",
59 "PATCH_LO=int(PATCH)%256",
60 ],
61 "trim string",
62 [ chrome_version_file ])
63 chrome_dylib_version = _result
64 }
OLDNEW
« build/util/branding.gni ('K') | « build/util/branding.gni ('k') | chrome/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698