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

Issue 43083002: Refactor make-file-arrays.py to ease reuse (Closed)

Created:
7 years, 1 month ago by Nils Barth (inactive)
Modified:
6 years, 9 months ago
Reviewers:
tkent, abarth-chromium
CC:
blink-reviews, eseidel, haraken, kouhei (in TOK)
Visibility:
Public.

Description

Refactor make-file-arrays.py to ease reuse Per: "Retiring build-time execution of Perl" https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/fnWX8n6JrTg ...we should be able to replace these 2 Perl files: xxd.pl make-css-file-arrays.pl ...with a generalization of make-file-arrays.py. As a preliminary step, this CL refactors make-file-arrays.py so it's easier to reuse or modify. BUG=347863 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=160549

Patch Set 1 #

Total comments: 6

Patch Set 2 : Revised #

Unified diffs Side-by-side diffs Delta from patch set Stats (+94 lines, -74 lines) Patch
M Source/web/scripts/make-file-arrays.py View 1 1 chunk +94 lines, -74 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
Nils Barth (inactive)
Hi Adam, A preliminary refactoring CL; how does it look?
7 years, 1 month ago (2013-10-25 03:11:55 UTC) #1
abarth-chromium
LGTM https://codereview.chromium.org/43083002/diff/1/Source/web/scripts/make-file-arrays.py File Source/web/scripts/make-file-arrays.py (right): https://codereview.chromium.org/43083002/diff/1/Source/web/scripts/make-file-arrays.py#newcode88 Source/web/scripts/make-file-arrays.py:88: header_file.write('namespace WebKit {\n') It's still hard-coded to use ...
7 years, 1 month ago (2013-10-25 04:04:02 UTC) #2
tkent
https://codereview.chromium.org/43083002/diff/1/Source/web/scripts/make-file-arrays.py File Source/web/scripts/make-file-arrays.py (right): https://codereview.chromium.org/43083002/diff/1/Source/web/scripts/make-file-arrays.py#newcode56 Source/web/scripts/make-file-arrays.py:56: single_line_comment = re.compile(r'//.*$', re.MULTILINE) This pattern will break XMLView.js. ...
7 years, 1 month ago (2013-10-25 04:06:06 UTC) #3
abarth-chromium
https://codereview.chromium.org/43083002/diff/1/Source/web/scripts/make-file-arrays.py File Source/web/scripts/make-file-arrays.py (right): https://codereview.chromium.org/43083002/diff/1/Source/web/scripts/make-file-arrays.py#newcode56 Source/web/scripts/make-file-arrays.py:56: single_line_comment = re.compile(r'//.*$', re.MULTILINE) On 2013/10/25 04:06:07, tkent wrote: ...
7 years, 1 month ago (2013-10-25 04:09:35 UTC) #4
abarth-chromium
I bet we already have one checked into third_party somewhere.
7 years, 1 month ago (2013-10-25 04:11:52 UTC) #5
Nils Barth (inactive)
Thanks for comments; some revisions to address issues. https://codereview.chromium.org/43083002/diff/1/Source/web/scripts/make-file-arrays.py File Source/web/scripts/make-file-arrays.py (right): https://codereview.chromium.org/43083002/diff/1/Source/web/scripts/make-file-arrays.py#newcode56 Source/web/scripts/make-file-arrays.py:56: single_line_comment ...
7 years, 1 month ago (2013-10-25 05:03:57 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nbarth@chromium.org/43083002/90001
7 years, 1 month ago (2013-10-25 05:04:08 UTC) #7
commit-bot: I haz the power
Change committed as 160549
7 years, 1 month ago (2013-10-25 06:26:52 UTC) #8
abarth-chromium
On 2013/10/25 05:03:57, Nils Barth wrote: > I understood you were suggesting we might want ...
7 years, 1 month ago (2013-10-25 15:48:58 UTC) #9
Nils Barth (inactive)
7 years, 1 month ago (2013-10-29 07:28:00 UTC) #10
Message was sent while issue was closed.
On 2013/10/25 15:48:58, abarth wrote:
> On 2013/10/25 05:03:57, Nils Barth wrote:
> > I understood you were suggesting we might want to simply replace
> > these scripts with something else?
> 
> Chromium has a resource system based on GRD files.  They already know how to
do
> some amount of minification.  It might be worth investigating whether we
should
> use that system instead of embedding these resources into the binary.

Got it; opened a bug to that effect so we remember it.
(No time to look into currently, but FWIW.)

Replace embedding resources by ad hoc Python with GRD resources	
https://code.google.com/p/chromium/issues/detail?id=312586

Powered by Google App Engine
This is Rietveld 408576698