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

Issue 12217077: Generate separate json files for each library. (Closed)

Created:
7 years, 10 months ago by Jacob
Modified:
7 years, 10 months ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Generate separate json files for each library and include the version #. BUG= Committed: https://code.google.com/p/dart/source/detail?r=18432

Patch Set 1 : ready to review #

Total comments: 15

Patch Set 2 : PTAL #

Total comments: 7
Unified diffs Side-by-side diffs Delta from patch set Stats (+220 lines, -41 lines) Patch
M sdk/lib/_internal/dartdoc/lib/dartdoc.dart View 1 3 chunks +75 lines, -4 lines 0 comments Download
M sdk/lib/_internal/dartdoc/lib/src/json_serializer.dart View 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/_internal/dartdoc/lib/universe_serializer.dart View 1 11 chunks +116 lines, -31 lines 0 comments Download
A tools/list_version.py View 1 1 chunk +20 lines, -0 lines 2 comments Download
M utils/apidoc/apidoc.dart View 1 4 chunks +7 lines, -5 lines 0 comments Download
M utils/apidoc/apidoc.gyp View 1 chunk +1 line, -0 lines 5 comments Download

Messages

Total messages: 9 (0 generated)
Jacob
Sigmund, can you review the .gyp and tools/list_version.py changes? amouravski, can you review the dartdoc ...
7 years, 10 months ago (2013-02-08 19:50:38 UTC) #1
Siggi Cherem (dart-lang)
lgtm on the gyp changes
7 years, 10 months ago (2013-02-08 21:14:13 UTC) #2
Jacob
ahe, is it alright if I add this tiny util .py script to the tools ...
7 years, 10 months ago (2013-02-08 21:37:14 UTC) #3
Andrei Mouravski
What's going to happen if someone tries to run dartdoc on their own libraries? https://codereview.chromium.org/12217077/diff/1007/sdk/lib/_internal/dartdoc/lib/dartdoc.dart ...
7 years, 10 months ago (2013-02-08 23:36:31 UTC) #4
Jacob
PTAL https://codereview.chromium.org/12217077/diff/1007/sdk/lib/_internal/dartdoc/lib/dartdoc.dart File sdk/lib/_internal/dartdoc/lib/dartdoc.dart (right): https://codereview.chromium.org/12217077/diff/1007/sdk/lib/_internal/dartdoc/lib/dartdoc.dart#newcode152 sdk/lib/_internal/dartdoc/lib/dartdoc.dart:152: * For our purposes we treat the dart ...
7 years, 10 months ago (2013-02-09 02:37:28 UTC) #5
Andrei Mouravski
lgtm
7 years, 10 months ago (2013-02-09 02:57:27 UTC) #6
ahe
GYP and tools/ changes LGTM, if this is what you want. I suggest you rename ...
7 years, 10 months ago (2013-02-09 11:54:20 UTC) #7
Jacob
https://codereview.chromium.org/12217077/diff/10003/tools/list_version.py File tools/list_version.py (right): https://codereview.chromium.org/12217077/diff/10003/tools/list_version.py#newcode7 tools/list_version.py:7: # A script which will be invoked from gyp ...
7 years, 10 months ago (2013-02-11 01:44:11 UTC) #8
ahe
7 years, 10 months ago (2013-02-11 07:27:56 UTC) #9
https://codereview.chromium.org/12217077/diff/10003/utils/apidoc/apidoc.gyp
File utils/apidoc/apidoc.gyp (right):

https://codereview.chromium.org/12217077/diff/10003/utils/apidoc/apidoc.gyp#n...
utils/apidoc/apidoc.gyp:49: '--version=<!@(["python",
"../../tools/list_version.py"])',
On 2013/02/11 01:44:11, Jacob wrote:
> On 2013/02/09 11:54:20, ahe wrote:
> > The value is captured when you run GYP, not when you build. Is that what you
> > expect?
> 
> I think it should be fine for print_version.py to run at GYP generation time.
I
> can't think of a reasonable case where you'd want to publish docs but have
> synced to a newer version without executing "gclient runhooks" 
> I don't really know gyp that well. I'm assuming that when you run "gclient
> runhooks", the python script will run even if none of the listed dependencies
or
> inputs have changed. 

Correct. This is why we shouldn't list list_version.py as a dependency. It isn't
used at build time.

Powered by Google App Engine
This is Rietveld 408576698