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

Issue 46003002: Add a target in GN that generates a last_change.h file for the SVN revision. (Closed)

Created:
7 years, 1 month ago by brettw
Modified:
7 years, 1 month ago
Reviewers:
viettrungluu
CC:
chromium-reviews
Visibility:
Public.

Description

Add a target in GN that generates a last_change.h file for the SVN revision. This is GN-only so the GYP build currently sets this to 0. This adds the root generated file directory to all targets, so you can do #include "foo/bar.h" and get a generated file "bar.h" generated in directory "foo". This basically matches the internal Google build, and I use it here. BUG= R=viettrungluu@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=233969

Patch Set 1 #

Total comments: 5

Patch Set 2 : review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+116 lines, -8 lines) Patch
M build/util/lastchange.py View 1 3 chunks +58 lines, -7 lines 0 comments Download
M tools/gn/BUILD.gn View 1 3 chunks +7 lines, -0 lines 0 comments Download
M tools/gn/command_help.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M tools/gn/gn_main.cc View 1 2 chunks +13 lines, -0 lines 0 comments Download
M tools/gn/secondary/build/config/compiler/BUILD.gn View 1 1 chunk +1 line, -1 line 0 comments Download
A tools/gn/secondary/build/util/BUILD.gn View 1 1 chunk +35 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
brettw
Closed in favor of https://codereview.chromium.org/46003002
7 years, 1 month ago (2013-10-25 23:05:47 UTC) #1
brettw
This replaces these changes with a new approach: https://codereview.chromium.org/46003002/ https://codereview.chromium.org/40833003/
7 years, 1 month ago (2013-10-25 23:06:26 UTC) #2
brettw
I kept "--version" as just a check for the switches rather than a command. This ...
7 years, 1 month ago (2013-10-25 23:08:04 UTC) #3
viettrungluu
https://codereview.chromium.org/46003002/diff/1/build/util/lastchange.py File build/util/lastchange.py (right): https://codereview.chromium.org/46003002/diff/1/build/util/lastchange.py#newcode184 build/util/lastchange.py:184: return guard.replace('/', '_').replace('.', '_').replace('\\', '_') + '_' Maybe it'd ...
7 years, 1 month ago (2013-11-06 18:39:21 UTC) #4
brettw
I did the other stuff https://codereview.chromium.org/46003002/diff/1/build/util/lastchange.py File build/util/lastchange.py (right): https://codereview.chromium.org/46003002/diff/1/build/util/lastchange.py#newcode184 build/util/lastchange.py:184: return guard.replace('/', '_').replace('.', '_').replace('\\', ...
7 years, 1 month ago (2013-11-07 18:47:33 UTC) #5
viettrungluu
lgtm
7 years, 1 month ago (2013-11-08 17:17:48 UTC) #6
brettw
7 years, 1 month ago (2013-11-08 20:31:52 UTC) #7
Message was sent while issue was closed.
Committed patchset #2 manually as r233969 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698