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

Issue 1570113002: Visual Studio generators for GN (Closed)

Created:
4 years, 11 months ago by Tomasz Moniuszko
Modified:
4 years, 10 months ago
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

Visual Studio generators for GN BUG=305761 Committed: https://crrev.com/050f20691a64eda7dc6df981bd576856fa19be4c Cr-Commit-Position: refs/heads/master@{#372354}

Patch Set 1 #

Total comments: 25

Patch Set 2 : Generate .sln and .vcxproj.filters files. Add tests. #

Total comments: 6

Patch Set 3 : Move XmlElementWriter to separate file + minor fixes #

Total comments: 14

Patch Set 4 : Address review issues #

Patch Set 5 : Fix clang compilation issues #

Patch Set 6 : Fix more compilation issues #

Patch Set 7 : Fix tests failing on non-Windows platforms #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+1598 lines, -3 lines) Patch
M tools/gn/BUILD.gn View 1 2 2 chunks +9 lines, -0 lines 0 comments Download
M tools/gn/command_gen.cc View 1 2 6 chunks +42 lines, -3 lines 3 comments Download
M tools/gn/gn.gyp View 1 2 2 chunks +9 lines, -0 lines 0 comments Download
A tools/gn/visual_studio_utils.h View 1 2 3 4 1 chunk +37 lines, -0 lines 0 comments Download
A tools/gn/visual_studio_utils.cc View 1 2 3 4 1 chunk +117 lines, -0 lines 0 comments Download
A tools/gn/visual_studio_utils_unittest.cc View 1 1 chunk +94 lines, -0 lines 0 comments Download
A tools/gn/visual_studio_writer.h View 1 2 3 4 1 chunk +98 lines, -0 lines 0 comments Download
A tools/gn/visual_studio_writer.cc View 1 2 3 4 5 1 chunk +754 lines, -0 lines 0 comments Download
A tools/gn/visual_studio_writer_unittest.cc View 1 2 3 4 5 6 1 chunk +152 lines, -0 lines 0 comments Download
A tools/gn/xml_element_writer.h View 1 2 3 1 chunk +121 lines, -0 lines 2 comments Download
A tools/gn/xml_element_writer.cc View 1 2 1 chunk +79 lines, -0 lines 0 comments Download
A tools/gn/xml_element_writer_unittest.cc View 1 2 1 chunk +86 lines, -0 lines 0 comments Download

Messages

Total messages: 58 (15 generated)
Tomasz Moniuszko
Hi, I'm uploading initial work on supporting generators for Visual Studio files in GN. Only ...
4 years, 11 months ago (2016-01-08 13:41:25 UTC) #2
brettw
Looks like a nice start. https://codereview.chromium.org/1570113002/diff/1/tools/gn/command_gen.cc File tools/gn/command_gen.cc (right): https://codereview.chromium.org/1570113002/diff/1/tools/gn/command_gen.cc#newcode169 tools/gn/command_gen.cc:169: " gn gen [--ide=IDE] ...
4 years, 11 months ago (2016-01-08 23:51:50 UTC) #3
Daniel Bratell
https://codereview.chromium.org/1570113002/diff/1/tools/gn/visual_studio_writer.cc File tools/gn/visual_studio_writer.cc (right): https://codereview.chromium.org/1570113002/diff/1/tools/gn/visual_studio_writer.cc#newcode418 tools/gn/visual_studio_writer.cc:418: properties->SubElement("LinkIncremental") LinkIncremental really needed? VS will not do any ...
4 years, 11 months ago (2016-01-14 12:08:56 UTC) #5
Daniel Bratell
https://codereview.chromium.org/1570113002/diff/1/tools/gn/visual_studio_writer.cc File tools/gn/visual_studio_writer.cc (right): https://codereview.chromium.org/1570113002/diff/1/tools/gn/visual_studio_writer.cc#newcode588 tools/gn/visual_studio_writer.cc:588: std::ofstream file; On 2016/01/08 23:51:50, brettw wrote: > In ...
4 years, 11 months ago (2016-01-14 15:41:14 UTC) #6
brettw
On 2016/01/14 15:41:14, Daniel Bratell wrote: > Furthermore changing the code to only write the ...
4 years, 11 months ago (2016-01-19 22:55:40 UTC) #7
Tomasz Moniuszko
On 2016/01/19 22:55:40, brettw wrote: > On 2016/01/14 15:41:14, Daniel Bratell wrote: > > Furthermore ...
4 years, 11 months ago (2016-01-21 10:48:50 UTC) #8
Tomasz Moniuszko
https://codereview.chromium.org/1570113002/diff/1/tools/gn/command_gen.cc File tools/gn/command_gen.cc (right): https://codereview.chromium.org/1570113002/diff/1/tools/gn/command_gen.cc#newcode169 tools/gn/command_gen.cc:169: " gn gen [--ide=IDE] <out_dir>\n" On 2016/01/08 23:51:50, brettw ...
4 years, 11 months ago (2016-01-21 10:50:03 UTC) #9
pkotwicz
I am currently writing the generator for eclipse. The eclipse config file is also XML. ...
4 years, 11 months ago (2016-01-22 17:20:42 UTC) #10
Tomasz Moniuszko
On 2016/01/22 17:20:42, pkotwicz wrote: > I am currently writing the generator for eclipse. The ...
4 years, 11 months ago (2016-01-25 08:07:47 UTC) #11
Daniel Bratell
Just a cursory review. https://codereview.chromium.org/1570113002/diff/20001/tools/gn/command_gen.cc File tools/gn/command_gen.cc (right): https://codereview.chromium.org/1570113002/diff/20001/tools/gn/command_gen.cc#newcode159 tools/gn/command_gen.cc:159: OutputString("Generating Visual Studio projects took ...
4 years, 10 months ago (2016-01-25 14:06:52 UTC) #12
Tomasz Moniuszko
https://codereview.chromium.org/1570113002/diff/20001/tools/gn/command_gen.cc File tools/gn/command_gen.cc (right): https://codereview.chromium.org/1570113002/diff/20001/tools/gn/command_gen.cc#newcode159 tools/gn/command_gen.cc:159: OutputString("Generating Visual Studio projects took " + On 2016/01/25 ...
4 years, 10 months ago (2016-01-28 15:06:58 UTC) #13
Tomasz Moniuszko
@brettw: All required Visual Studio files are generated now. I did some tests: browsing the ...
4 years, 10 months ago (2016-01-28 15:13:14 UTC) #14
brettw
lgtm https://codereview.chromium.org/1570113002/diff/40001/tools/gn/visual_studio_writer.cc File tools/gn/visual_studio_writer.cc (right): https://codereview.chromium.org/1570113002/diff/40001/tools/gn/visual_studio_writer.cc#newcode8 tools/gn/visual_studio_writer.cc:8: #include <fstream> Delete this when you remove the ...
4 years, 10 months ago (2016-01-28 23:24:46 UTC) #15
pkotwicz
Random comment https://codereview.chromium.org/1570113002/diff/40001/tools/gn/visual_studio_writer.h File tools/gn/visual_studio_writer.h (right): https://codereview.chromium.org/1570113002/diff/40001/tools/gn/visual_studio_writer.h#newcode40 tools/gn/visual_studio_writer.h:40: const std::string& guid); When I patched your ...
4 years, 10 months ago (2016-01-29 02:10:48 UTC) #17
Tomasz Moniuszko
https://codereview.chromium.org/1570113002/diff/40001/tools/gn/visual_studio_writer.cc File tools/gn/visual_studio_writer.cc (right): https://codereview.chromium.org/1570113002/diff/40001/tools/gn/visual_studio_writer.cc#newcode8 tools/gn/visual_studio_writer.cc:8: #include <fstream> On 2016/01/28 23:24:45, brettw wrote: > Delete ...
4 years, 10 months ago (2016-01-29 12:29:36 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1570113002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1570113002/60001
4 years, 10 months ago (2016-01-29 12:30:29 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/172287) win_chromium_x64_rel_ng on tryserver.chromium.win (JOB_FAILED, ...
4 years, 10 months ago (2016-01-29 12:39:46 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1570113002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1570113002/80001
4 years, 10 months ago (2016-01-29 13:32:34 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_gn_rel on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_gn_rel/builds/59261) mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, ...
4 years, 10 months ago (2016-01-29 13:39:23 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1570113002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1570113002/100001
4 years, 10 months ago (2016-01-29 14:09:56 UTC) #31
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/172311)
4 years, 10 months ago (2016-01-29 14:24:08 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1570113002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1570113002/120001
4 years, 10 months ago (2016-01-29 15:26:04 UTC) #36
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 10 months ago (2016-01-29 16:15:43 UTC) #37
commit-bot: I haz the power
Patchset 7 (id:??) landed as https://crrev.com/050f20691a64eda7dc6df981bd576856fa19be4c Cr-Commit-Position: refs/heads/master@{#372354}
4 years, 10 months ago (2016-01-29 16:16:49 UTC) #39
tfarina
https://codereview.chromium.org/1570113002/diff/120001/tools/gn/command_gen.cc File tools/gn/command_gen.cc (right): https://codereview.chromium.org/1570113002/diff/120001/tools/gn/command_gen.cc#newcode155 tools/gn/command_gen.cc:155: base::TimeTicks begin_vs_gen = base::TimeTicks::Now(); Have you considered using base::ElapsedTimer ...
4 years, 10 months ago (2016-01-29 16:30:12 UTC) #40
tfarina
https://codereview.chromium.org/1570113002/diff/120001/tools/gn/xml_element_writer.h File tools/gn/xml_element_writer.h (right): https://codereview.chromium.org/1570113002/diff/120001/tools/gn/xml_element_writer.h#newcode32 tools/gn/xml_element_writer.h:32: class XmlElementWriter { Hum, XmlWriter [1] had no good ...
4 years, 10 months ago (2016-01-29 16:32:18 UTC) #41
Daniel Bratell
https://codereview.chromium.org/1570113002/diff/120001/tools/gn/command_gen.cc File tools/gn/command_gen.cc (right): https://codereview.chromium.org/1570113002/diff/120001/tools/gn/command_gen.cc#newcode155 tools/gn/command_gen.cc:155: base::TimeTicks begin_vs_gen = base::TimeTicks::Now(); On 2016/01/29 16:30:12, tfarina wrote: ...
4 years, 10 months ago (2016-01-29 16:41:21 UTC) #42
jam
Thank you for doing this! One question: I just tried this and I got 2545 ...
4 years, 10 months ago (2016-01-29 21:39:35 UTC) #43
jam
one more comment: I can't right click on an include path and open it.
4 years, 10 months ago (2016-01-29 22:25:50 UTC) #44
Tomasz Moniuszko
On 2016/01/29 22:25:50, jam wrote: > one more comment: I can't right click on an ...
4 years, 10 months ago (2016-02-01 11:47:06 UTC) #45
Tomasz Moniuszko
On 2016/01/29 21:39:35, jam wrote: > Thank you for doing this! > > One question: ...
4 years, 10 months ago (2016-02-01 12:22:10 UTC) #46
Tomasz Moniuszko
https://codereview.chromium.org/1570113002/diff/120001/tools/gn/command_gen.cc File tools/gn/command_gen.cc (right): https://codereview.chromium.org/1570113002/diff/120001/tools/gn/command_gen.cc#newcode155 tools/gn/command_gen.cc:155: base::TimeTicks begin_vs_gen = base::TimeTicks::Now(); On 2016/01/29 16:30:12, tfarina wrote: ...
4 years, 10 months ago (2016-02-01 13:51:12 UTC) #47
Tomasz Moniuszko
https://codereview.chromium.org/1570113002/diff/120001/tools/gn/xml_element_writer.h File tools/gn/xml_element_writer.h (right): https://codereview.chromium.org/1570113002/diff/120001/tools/gn/xml_element_writer.h#newcode32 tools/gn/xml_element_writer.h:32: class XmlElementWriter { On 2016/01/29 16:32:18, tfarina wrote: > ...
4 years, 10 months ago (2016-02-01 14:13:24 UTC) #48
jam
On 2016/02/01 11:47:06, Tomasz Moniuszko wrote: > On 2016/01/29 22:25:50, jam wrote: > > one ...
4 years, 10 months ago (2016-02-02 00:05:09 UTC) #49
Tomasz Moniuszko
On 2016/02/02 00:05:09, jam wrote: > On 2016/02/01 11:47:06, Tomasz Moniuszko wrote: > > On ...
4 years, 10 months ago (2016-02-02 15:48:24 UTC) #50
brettw
I'm guessing the difference is that John has the Googler way of automatically getting the ...
4 years, 10 months ago (2016-02-02 17:02:50 UTC) #51
Tomasz Moniuszko
On 2016/02/02 17:02:50, brettw wrote: > I'm guessing the difference is that John has the ...
4 years, 10 months ago (2016-02-03 08:39:15 UTC) #52
jam
On 2016/02/03 08:39:15, Tomasz Moniuszko wrote: > On 2016/02/02 17:02:50, brettw wrote: > > I'm ...
4 years, 10 months ago (2016-02-04 19:02:43 UTC) #53
Tomasz Moniuszko
On 2016/02/04 19:02:43, jam wrote: > On 2016/02/03 08:39:15, Tomasz Moniuszko wrote: > > On ...
4 years, 10 months ago (2016-02-05 14:42:46 UTC) #54
jam
On 2016/02/05 14:42:46, Tomasz Moniuszko wrote: > On 2016/02/04 19:02:43, jam wrote: > > On ...
4 years, 10 months ago (2016-02-10 17:11:26 UTC) #55
jam
btw what's your args.gn file look like? I tried component and static configs, both debug ...
4 years, 10 months ago (2016-02-12 17:58:38 UTC) #56
jam
On 2016/02/12 17:58:38, jam wrote: > btw what's your args.gn file look like? I tried ...
4 years, 10 months ago (2016-02-12 19:26:00 UTC) #57
Tomasz Moniuszko
4 years, 10 months ago (2016-02-17 08:22:52 UTC) #58
Message was sent while issue was closed.
On 2016/02/12 19:26:00, jam wrote:
> On 2016/02/12 17:58:38, jam wrote:
> > btw what's your args.gn file look like? I tried component and static
configs,
> > both debug and x86. neither worked.
> > 
> > I'm using VS 2015.
> > 
> > I tried using procmon to look at the paths that VS tries to open when I open
a
> > file using right click. If I pick a file in content/renderer, say foo.h, it
> > tries to open src/content/renderer/content/renderer/foo.h. It doesn't use
any
> of
> > the other include paths that are inherited, which is perplexing.
> 
> actually, total operator error. i had intellisense turned off in VS! fixing
that
> made things work.

Good to hear it's working :)

Powered by Google App Engine
This is Rietveld 408576698