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

Issue 2064533002: [GN] Add JSON project writer (Closed)

Created:
4 years, 6 months ago by matt.k
Modified:
4 years, 5 months ago
Reviewers:
brettw
CC:
chromium-reviews, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[GN] Add JSON project writer Output is a JSON file containing information about targets. The generator can also optionally invoke a python script on generated file. Example: gn gen --ide=json ./out-json --json-ide-script=//scripts/custom-ide-generator.py \ --ison-ide-script-args="additional script arguments" Also implements --format=json for gn desc as described in https://bugs.chromium.org/p/chromium/issues/detail?id=620132 BUG= Committed: https://crrev.com/d2edeb9a743ad5a2046e655997277d3bb630db03 Cr-Commit-Position: refs/heads/master@{#406064}

Patch Set 1 #

Patch Set 2 : Keep toolchain in target label for non default toolchain targets #

Patch Set 3 : Remove declared args from json build settings #

Patch Set 4 : Add DescBuilder that generates base::Value that command_desc and json project writer use #

Patch Set 5 : [GN] add --format=json to command_desc #

Patch Set 6 : [GN] fix include order #

Total comments: 1

Patch Set 7 : Rebase, fix build, fix variable names #

Total comments: 37

Patch Set 8 : [GN] Address issues from codereview #

Patch Set 9 : [GN] document json format #

Patch Set 10 : [GN] Only include source_outputs in project JSON if not empty #

Patch Set 11 : [GN] Add myself to AUTHORS #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1354 lines, -744 lines) Patch
M AUTHORS View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M tools/gn/BUILD.gn View 1 2 3 4 5 6 2 chunks +4 lines, -0 lines 0 comments Download
M tools/gn/command_desc.cc View 1 2 3 4 5 6 7 5 chunks +257 lines, -700 lines 0 comments Download
M tools/gn/command_gen.cc View 1 2 3 4 5 6 7 8 10 chunks +55 lines, -9 lines 0 comments Download
M tools/gn/commands.h View 1 2 3 2 chunks +6 lines, -0 lines 0 comments Download
M tools/gn/commands.cc View 1 2 3 4 5 6 chunks +35 lines, -22 lines 0 comments Download
A tools/gn/desc_builder.h View 1 2 3 4 5 6 7 1 chunk +27 lines, -0 lines 0 comments Download
A tools/gn/desc_builder.cc View 1 2 3 4 5 6 7 8 1 chunk +694 lines, -0 lines 0 comments Download
A tools/gn/json_project_writer.h View 1 2 3 4 5 6 7 1 chunk +26 lines, -0 lines 0 comments Download
A tools/gn/json_project_writer.cc View 1 2 3 4 5 6 7 8 9 1 chunk +217 lines, -0 lines 0 comments Download
M tools/gn/target.cc View 1 2 3 4 5 6 7 8 2 chunks +13 lines, -12 lines 0 comments Download
M tools/gn/visibility.h View 1 2 3 4 5 6 2 chunks +8 lines, -0 lines 0 comments Download
M tools/gn/visibility.cc View 1 2 3 4 5 6 7 3 chunks +11 lines, -1 line 0 comments Download

Messages

Total messages: 46 (13 generated)
matt.k
4 years, 6 months ago (2016-06-13 14:03:10 UTC) #2
brettw
Hi! Thanks for looking at this. I've told a number of people who have asked ...
4 years, 6 months ago (2016-06-14 22:37:25 UTC) #4
matt.k
On 2016/06/14 22:37:25, brettw wrote: > Hi! Thanks for looking at this. I've told a ...
4 years, 6 months ago (2016-06-14 23:33:38 UTC) #5
brettw
I think there are already too many types of project writers in GN, and I ...
4 years, 6 months ago (2016-06-15 19:42:22 UTC) #6
matt.k
On 2016/06/15 19:42:22, brettw wrote: > I think there are already too many types of ...
4 years, 6 months ago (2016-06-15 22:02:30 UTC) #7
brettw
I see, I saw the execute process calls and assumed you were doing it for ...
4 years, 6 months ago (2016-06-16 05:49:39 UTC) #8
matt.k
On 2016/06/16 05:49:39, brettw wrote: > I see, I saw the execute process calls and ...
4 years, 6 months ago (2016-06-16 09:09:21 UTC) #9
brettw
On 2016/06/16 09:09:21, matej.knopp wrote: > On 2016/06/16 05:49:39, brettw wrote: > > I see, ...
4 years, 6 months ago (2016-06-17 20:31:14 UTC) #10
matt.k
> > Let's treat these things separately. I don't want to add hacks around the ...
4 years, 6 months ago (2016-06-18 17:01:08 UTC) #11
brettw
Sorry if I wasn't super clear above, but I really think the code to generate ...
4 years, 6 months ago (2016-06-20 18:06:43 UTC) #12
matt.k
On 2016/06/20 18:06:43, brettw wrote: > Sorry if I wasn't super clear above, but I ...
4 years, 6 months ago (2016-06-20 19:48:43 UTC) #13
matt.k
On 2016/06/20 18:06:43, brettw (egregiously slow) wrote: > Sorry if I wasn't super clear above, ...
4 years, 5 months ago (2016-06-30 01:15:34 UTC) #14
brettw
Hi, sorry this fell off my list, will refresh my memory of what's going on ...
4 years, 5 months ago (2016-07-01 23:17:42 UTC) #15
brettw
I tried to patch this in to my tree to test it: - visibility.h needs ...
4 years, 5 months ago (2016-07-01 23:34:18 UTC) #16
matt.k
On 2016/07/01 23:34:18, brettw (plz ping after 24h) wrote: > I tried to patch this ...
4 years, 5 months ago (2016-07-01 23:57:44 UTC) #17
matt.k
Issues should be fixed now, could you give it another go? As a sidenote, I ...
4 years, 5 months ago (2016-07-05 20:07:39 UTC) #18
brettw
I finally had time to go through this carefully. Sorry I took so long. This ...
4 years, 5 months ago (2016-07-06 22:19:27 UTC) #19
matt.k
Hi Brett, thank you very much for thorough review. I'll try to address every single ...
4 years, 5 months ago (2016-07-06 22:34:34 UTC) #20
brettw
On 2016/07/06 22:34:34, matt.k wrote: > Hi Brett, thank you very much for thorough review. ...
4 years, 5 months ago (2016-07-07 17:11:00 UTC) #21
matt.k
> I think the goal for the rule (it's a very old one at Google) ...
4 years, 5 months ago (2016-07-07 18:28:44 UTC) #22
matt.k
All issues should be addressed except the format overview at the beginning of desc_builder.cc. I'll ...
4 years, 5 months ago (2016-07-08 00:39:08 UTC) #23
brettw
lgtm
4 years, 5 months ago (2016-07-14 16:39:10 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2064533002/180001
4 years, 5 months ago (2016-07-14 16:39:32 UTC) #31
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/218183)
4 years, 5 months ago (2016-07-14 16:48:17 UTC) #33
brettw
Looks like you signed the CLA, but since this is your first patch, also add ...
4 years, 5 months ago (2016-07-14 16:52:32 UTC) #34
matt.k
On 2016/07/14 16:52:32, brettw (ping after 24h) wrote: > Looks like you signed the CLA, ...
4 years, 5 months ago (2016-07-18 10:32:47 UTC) #35
brettw
That should be it, I'll push commit for you and we'll see if the bots ...
4 years, 5 months ago (2016-07-18 17:54:52 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2064533002/200001
4 years, 5 months ago (2016-07-18 17:55:58 UTC) #39
commit-bot: I haz the power
Committed patchset #11 (id:200001)
4 years, 5 months ago (2016-07-18 19:35:28 UTC) #41
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-18 19:35:58 UTC) #42
commit-bot: I haz the power
Patchset 11 (id:??) landed as https://crrev.com/d2edeb9a743ad5a2046e655997277d3bb630db03 Cr-Commit-Position: refs/heads/master@{#406064}
4 years, 5 months ago (2016-07-18 19:38:04 UTC) #44
grt (UTC plus 2)
A revert of this CL (patchset #11 id:200001) has been created in https://codereview.chromium.org/2160533004/ by grt@chromium.org. ...
4 years, 5 months ago (2016-07-18 20:00:36 UTC) #45
Dirk Pranke
4 years, 5 months ago (2016-07-18 22:02:53 UTC) #46
Message was sent while issue was closed.
Fixing and relanding in https://codereview.chromium.org/2156173003/ .

Powered by Google App Engine
This is Rietveld 408576698