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

Issue 2583573002: [Closure Externs] Generate closure compiler externs as part of compile

Created:
4 years ago by Devlin
Modified:
3 years, 11 months ago
Reviewers:
Dirk Pranke, Dan Beam
CC:
chromium-reviews, extensions-reviews_chromium.org, jlklein+watch-closure_chromium.org, michaelpg+watch-md-ui_chromium.org, arv+watch_chromium.org, vitalyp+closure_chromium.org, chromium-apps-reviews_chromium.org, dbeam+watch-closure_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Closure Externs] Generate closure compiler externs as part of compile BUG= CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation

Patch Set 1 #

Patch Set 2 : missing #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+83 lines, -812 lines) Patch
M chrome/browser/extensions/BUILD.gn View 1 chunk +1 line, -0 lines 1 comment Download
M chrome/browser/resources/extensions/compiled_resources.gyp View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/resources/md_extensions/compiled_resources2.gyp View 11 chunks +11 lines, -11 lines 0 comments Download
M chrome/common/extensions/api/BUILD.gn View 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/PRESUBMIT.py View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/closure_compiler/externs/compiled_resources2.gyp View 1 chunk +1 line, -1 line 3 comments Download
D third_party/closure_compiler/externs/developer_private.js View 1 chunk +0 lines, -794 lines 0 comments Download
M tools/json_schema_compiler/compiler.py View 5 chunks +10 lines, -4 lines 0 comments Download
A tools/json_schema_compiler/externs.gni View 1 1 chunk +55 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (4 generated)
Devlin
Dan, mind taking a look? This is still early on, so please ignore things like ...
4 years ago (2016-12-15 18:56:40 UTC) #3
Dan Beam
https://codereview.chromium.org/2583573002/diff/20001/third_party/closure_compiler/externs/compiled_resources2.gyp File third_party/closure_compiler/externs/compiled_resources2.gyp (right): https://codereview.chromium.org/2583573002/diff/20001/third_party/closure_compiler/externs/compiled_resources2.gyp#newcode48 third_party/closure_compiler/externs/compiled_resources2.gyp:48: 'target_name': '../../../out/gnd/gen/third_party/closure_compiler/externs/developer_private', On 2016/12/15 18:56:40, Devlin wrote: > This ...
4 years ago (2016-12-16 05:39:53 UTC) #4
Devlin
On 2016/12/16 05:39:53, Dan Beam wrote: > https://codereview.chromium.org/2583573002/diff/20001/third_party/closure_compiler/externs/compiled_resources2.gyp > File third_party/closure_compiler/externs/compiled_resources2.gyp (right): > > https://codereview.chromium.org/2583573002/diff/20001/third_party/closure_compiler/externs/compiled_resources2.gyp#newcode48 ...
4 years ago (2016-12-16 23:51:03 UTC) #7
Dirk Pranke
3 years, 11 months ago (2017-01-09 05:20:02 UTC) #8
The move to GN was supposed to happen months ago, but someone (*cough* *cough*)
has failed to actually do that work :(.

It's unclear to me if I'm going to have the time to it any time soon given my
new role and work schedule. Maybe later this week we can meet to discuss what we
should try to do?

https://codereview.chromium.org/2583573002/diff/20001/third_party/closure_com...
File third_party/closure_compiler/externs/compiled_resources2.gyp (right):

https://codereview.chromium.org/2583573002/diff/20001/third_party/closure_com...
third_party/closure_compiler/externs/compiled_resources2.gyp:48: 'target_name':
'../../../out/gnd/gen/third_party/closure_compiler/externs/developer_private',
On 2016/12/16 05:39:52, Dan Beam wrote:
> On 2016/12/15 18:56:40, Devlin wrote:
> > This is obviously wrong. :)  How should this be?
> 
> it's hard to say exactly how GYP and GN should share this info (or if they
> should).
> 
> if closure was GN, it would be easier.
> 
> it's possible that something like SHARED_INTERMEDIATE_DIR might work, but I'm
> worried
> https://gyp.gsrc.io/docs/InputFormatReference.md#Predefined-Variables
> 
> we could also just generate to somewhere in src/ and add the generated files
to
> .gitignore... but all of these are less nice than sharing GN between both
> systems

We shouldn't generate things into src/. I'm not sure if SHARED_INTERMEDIATE_DIR
will work, but it's worth trying. Otherwise I'd be fine w/ just getting some
hack working until we can move to GN.

Powered by Google App Engine
This is Rietveld 408576698