|
gn: Generalize process_version() and move it to build/util (take #2)
(Compared to https://codereview.chromium.org/2308313003/, this version
fixes chrome/installer/linux/BUILD.gn by including all required files)
There is nothing really chrome-specific in the process_version()
template, and if we stop always passing some files in chrome/ on every
invocation it is possible to generalize it and move it to build/util
instead (and fix some layering violation comments along the way).
Compared to its previous incarnation, process_version() no longer passes
LASTCHANGE, BRANDING and VERSION automatically to version.py. This makes
it easier for callers to specify their own |sources| with values that
may override those set in those 3 files.
A new wrapper, process_version_rc_template(), was introduced to cater
for callers (generally Windows ones) who need to process a .rc.version
file that requires the values from LASTCHANGE, BRANDING and VERSION. It
always passes those 3 files to process_version() before any optional
additional |sources|, and |template_file| defaults to
chrome_version.rc.version.
Since this template depends on files from //chrome, it lives in the
newly-added //chrome/process_version_rc_template.gni.
R=dpranke@chromium.org,brettw@chromium.org,phajdan.jr@chromium.org,ddorwin@chromium.org
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.win:win10_chromium_x64_rel_ng
Committed: https://crrev.com/dc683d2a5c9af8b55245ce5ab2253d0b6977ccfb
Cr-Commit-Position: refs/heads/master@{#419377}
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+162 lines, -240 lines) |
Patch |
|
M |
android_webview/common/BUILD.gn
|
View
|
|
1 chunk |
+4 lines, -1 line |
0 comments
|
Download
|
|
M |
blimp/common/BUILD.gn
|
View
|
|
2 chunks |
+4 lines, -1 line |
0 comments
|
Download
|
|
A + |
build/util/process_version.gni
|
View
|
|
8 chunks |
+8 lines, -36 lines |
0 comments
|
Download
|
|
M |
build/util/version.gni
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
chrome/BUILD.gn
|
View
|
1
2
|
3 chunks |
+5 lines, -9 lines |
0 comments
|
Download
|
|
M |
chrome/android/BUILD.gn
|
View
|
|
2 chunks |
+6 lines, -1 line |
0 comments
|
Download
|
|
M |
chrome/app/version_assembly/BUILD.gn
|
View
|
|
3 chunks |
+7 lines, -1 line |
0 comments
|
Download
|
|
M |
chrome/chrome_watcher/BUILD.gn
|
View
|
|
2 chunks |
+2 lines, -3 lines |
0 comments
|
Download
|
|
M |
chrome/common/BUILD.gn
|
View
|
1
2
|
2 chunks |
+7 lines, -3 lines |
0 comments
|
Download
|
|
M |
chrome/installer/gcapi/BUILD.gn
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
chrome/installer/linux/BUILD.gn
|
View
|
1
|
2 chunks |
+7 lines, -1 line |
0 comments
|
Download
|
|
M |
chrome/installer/mini_installer/BUILD.gn
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
chrome/installer/setup/BUILD.gn
|
View
|
1
2
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
A |
chrome/process_version_rc_template.gni
|
View
|
|
1 chunk |
+65 lines, -0 lines |
0 comments
|
Download
|
|
D |
chrome/version.gni
|
View
|
|
1 chunk |
+0 lines, -153 lines |
0 comments
|
Download
|
|
M |
chrome_elf/BUILD.gn
|
View
|
|
1 chunk |
+2 lines, -3 lines |
0 comments
|
Download
|
|
M |
chromecast/base/BUILD.gn
|
View
|
|
2 chunks |
+4 lines, -1 line |
0 comments
|
Download
|
|
M |
chromecast/crypto/BUILD.gn
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
|
M |
components/cronet/android/BUILD.gn
|
View
|
1
2
|
3 chunks |
+9 lines, -1 line |
0 comments
|
Download
|
|
M |
components/cronet/ios/BUILD.gn
|
View
|
|
2 chunks |
+4 lines, -1 line |
0 comments
|
Download
|
|
M |
components/data_reduction_proxy/core/common/BUILD.gn
|
View
|
|
2 chunks |
+4 lines, -1 line |
0 comments
|
Download
|
|
M |
components/version_info/BUILD.gn
|
View
|
|
2 chunks |
+7 lines, -1 line |
0 comments
|
Download
|
|
M |
extensions/shell/BUILD.gn
|
View
|
|
2 chunks |
+5 lines, -5 lines |
0 comments
|
Download
|
|
M |
ios/crnet/BUILD.gn
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
|
M |
media/cdm/ppapi/BUILD.gn
|
View
|
|
2 chunks |
+2 lines, -3 lines |
0 comments
|
Download
|
|
M |
remoting/build/config/remoting_build.gni
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
|
M |
remoting/host/BUILD.gn
|
View
|
1
2
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
remoting/host/win/BUILD.gn
|
View
|
1
2
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
|
M |
third_party/widevine/cdm/BUILD.gn
|
View
|
|
2 chunks |
+2 lines, -3 lines |
0 comments
|
Download
|
Total messages: 17 (7 generated)
|