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

Issue 2797403002: Merge features of cronet_licenses.py into licenses.py. (Closed)

Created:
3 years, 8 months ago by Hiroshi Ichikawa
Modified:
3 years, 8 months ago
Reviewers:
mef, Paweł Hajdan Jr.
CC:
chromium-reviews, Eugene But (OOO till 7-30)
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Merge features of cronet_licenses.py into licenses.py. Motivation here is to generate LICENSE file for //ios/web_view in the same way as //components/cronet/tools/cronet_licenses.py. To avoid code duplication, I merged features of cronet_licenses.py into licenses.py and will use it for //ios/web_view. I can remove cronet_licenses.py and use licenses.py instead to generate Cronet license file too in a separated CL if it sounds good. Merged features: - Generate a plain text LICENSE file for a given GN target. - Make the script work inside GN action rules. Review-Url: https://codereview.chromium.org/2797403002 Cr-Commit-Position: refs/heads/master@{#463537} Committed: https://chromium.googlesource.com/chromium/src/+/cc4ae12d1dffdfef4d816b945ac200b853e622b6

Patch Set 1 #

Total comments: 4

Patch Set 2 : Apply review comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+71 lines, -4 lines) Patch
M tools/licenses.py View 1 5 chunks +71 lines, -4 lines 0 comments Download

Messages

Total messages: 16 (7 generated)
Hiroshi Ichikawa
mef@: Did you have any reason to separate cronet_licenses.py from licenses.py?
3 years, 8 months ago (2017-04-06 04:53:25 UTC) #3
Paweł Hajdan Jr.
LGTM w/nits https://codereview.chromium.org/2797403002/diff/1/tools/licenses.py File tools/licenses.py (right): https://codereview.chromium.org/2797403002/diff/1/tools/licenses.py#newcode494 tools/licenses.py:494: shutil.copy(gn_out_dir + "/args.gn", tmp_dir) nit: Use os.path.join ...
3 years, 8 months ago (2017-04-06 11:52:13 UTC) #5
Hiroshi Ichikawa
https://codereview.chromium.org/2797403002/diff/1/tools/licenses.py File tools/licenses.py (right): https://codereview.chromium.org/2797403002/diff/1/tools/licenses.py#newcode494 tools/licenses.py:494: shutil.copy(gn_out_dir + "/args.gn", tmp_dir) On 2017/04/06 11:52:13, Paweł Hajdan ...
3 years, 8 months ago (2017-04-07 01:47:16 UTC) #6
mef
lgtm. There was no particular reason to have separate cronet_licenses.py apart from the concern of ...
3 years, 8 months ago (2017-04-10 15:48:12 UTC) #7
Hiroshi Ichikawa
On 2017/04/10 15:48:12, mef wrote: > lgtm. > > There was no particular reason to ...
3 years, 8 months ago (2017-04-11 03:42:40 UTC) #8
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/2797403002/20001
3 years, 8 months ago (2017-04-11 03:43:12 UTC) #11
commit-bot: I haz the power
Committed patchset #2 (id:20001) as https://chromium.googlesource.com/chromium/src/+/cc4ae12d1dffdfef4d816b945ac200b853e622b6
3 years, 8 months ago (2017-04-11 05:05:33 UTC) #14
mef
On 2017/04/11 03:42:40, Hiroshi Ichikawa wrote: > On 2017/04/10 15:48:12, mef wrote: > > lgtm. ...
3 years, 8 months ago (2017-04-11 14:58:55 UTC) #15
Hiroshi Ichikawa
3 years, 8 months ago (2017-04-12 09:33:38 UTC) #16
Message was sent while issue was closed.
On 2017/04/11 14:58:55, mef wrote:
> On 2017/04/11 03:42:40, Hiroshi Ichikawa wrote:
> > On 2017/04/10 15:48:12, mef wrote:
> > > lgtm. 
> > > 
> > > There was no particular reason to have separate cronet_licenses.py apart
> from
> > > the concern of messing up the Chrome proper.
> > 
> > I see, thanks. What do you think if we replace use of cronet_licenses.py
with
> > licenses.py and remove cronet_licenses.py? I can do that (when I have time)
if
> > you are OK with that. 
> I'll be totally happy and grateful if you do that. :)
> Please note that cronet_licenses.py is used for both iOS and Android builds.

Thanks, filed a bug crbug.com/710801

> 
> >One feature still missing in licenses.py is an option to
> > use hard-coded dependencies instead of calling gn:
> >
>
https://cs.chromium.org/chromium/src/components/cronet/tools/cronet_licenses....
> > But would that be still needed?
> 
> The hardcoded list was used before gn. 
> It is still used on Android because
https://codereview.chromium.org/2150933007/
> has failed to find gn on the buildbot.
> I hope that _GnBinary() fixes that and we wouldn't need hardcoded list.

Powered by Google App Engine
This is Rietveld 408576698