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

Issue 14456006: Fixes to make scripts generate includes with paths. (Closed)

Created:
7 years, 8 months ago by Daniel Bratell
Modified:
7 years, 4 months ago
CC:
blink-reviews, Nate Chapin, abarth-chromium, Nico
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Fixes to make scripts generate includes with paths. Adds a hacky idl->path table and equally hacky script changes to use that script. BUG=

Patch Set 1 #

Total comments: 1

Patch Set 2 : Updated #

Total comments: 16

Patch Set 3 : Improved based on review comments and testing #

Patch Set 4 : #

Patch Set 5 : Updated to a newer chromium version #

Unified diffs Side-by-side diffs Delta from patch set Stats (+317 lines, -38 lines) Patch
M Source/bindings/derived_sources.gyp View 1 2 3 4 3 chunks +30 lines, -0 lines 0 comments Download
M Source/bindings/scripts/CodeGeneratorV8.pm View 1 2 3 4 5 chunks +15 lines, -3 lines 0 comments Download
M Source/bindings/scripts/generate-bindings.pl View 1 2 3 4 chunks +7 lines, -0 lines 0 comments Download
A Source/bindings/scripts/idltopath.pm View 1 2 3 4 1 chunk +59 lines, -0 lines 0 comments Download
A Source/bindings/scripts/idltopathgenerator.py View 1 2 3 1 chunk +102 lines, -0 lines 0 comments Download
M Source/core/core.gyp/core.gyp View 1 2 3 4 1 chunk +0 lines, -12 lines 0 comments Download
M Source/core/core.gyp/core_derived_sources.gyp View 1 2 3 4 22 chunks +45 lines, -0 lines 0 comments Download
M Source/core/core.gyp/scripts/action_makenames.py View 1 2 3 chunks +13 lines, -4 lines 0 comments Download
M Source/core/scripts/InFilesCompiler.pm View 1 2 3 4 5 chunks +17 lines, -1 line 0 comments Download
M Source/core/scripts/make_dom_exceptions.pl View 1 2 3 4 2 chunks +1 line, -2 lines 0 comments Download
M Source/core/scripts/make_event_factory.py View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/scripts/make_names.pl View 1 2 3 4 9 chunks +26 lines, -14 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
eseidel
Haraken is definitely your best reviewer here. abarth might have thoughts too. https://codereview.chromium.org/14456006/diff/1/Source/bindings/scripts/idltopathgenerator.py File Source/bindings/scripts/idltopathgenerator.py ...
7 years, 8 months ago (2013-04-25 07:03:39 UTC) #1
eseidel
CCing nico for good measure.
7 years, 8 months ago (2013-04-25 07:03:55 UTC) #2
Daniel Bratell
On 2013/04/25 07:03:39, Eric Seidel (Google) wrote: > Woh. Using python to generate perl, eh? ...
7 years, 8 months ago (2013-04-25 08:48:28 UTC) #3
haraken
Nico: Would you first check if the proposed patch is OK in term of build ...
7 years, 8 months ago (2013-04-25 13:58:14 UTC) #4
abarth-chromium
I don't think this CL is better than the alternative of just adding the needed ...
7 years, 8 months ago (2013-04-25 14:14:24 UTC) #5
Daniel Bratell
On 2013/04/25 14:14:24, abarth wrote: > I don't think this CL is better than the ...
7 years, 8 months ago (2013-04-25 17:54:09 UTC) #6
Nico
I think there are two parts here: 1.) Should generated header files have absolute paths? ...
7 years, 8 months ago (2013-04-25 19:26:16 UTC) #7
Daniel Bratell
On 2013/04/25 19:26:16, Nico wrote: > I think there are two parts here: > > ...
7 years, 8 months ago (2013-04-25 19:59:59 UTC) #8
Daniel Bratell
https://codereview.chromium.org/14456006/diff/5001/Source/bindings/derived_sources.gyp File Source/bindings/derived_sources.gyp (right): https://codereview.chromium.org/14456006/diff/5001/Source/bindings/derived_sources.gyp#newcode123 Source/bindings/derived_sources.gyp:123: 'action_name': 'generateIDL2PathMapping', On 2013/04/25 14:14:24, abarth wrote: > Maybe ...
7 years, 8 months ago (2013-04-25 21:24:26 UTC) #9
Daniel Bratell
https://codereview.chromium.org/14456006/diff/5001/Source/bindings/scripts/generate-bindings.pl File Source/bindings/scripts/generate-bindings.pl (right): https://codereview.chromium.org/14456006/diff/5001/Source/bindings/scripts/generate-bindings.pl#newcode73 Source/bindings/scripts/generate-bindings.pl:73: $ENV{"IDLTOPATHFILE"} = $idlToPathFile; On 2013/04/25 21:24:26, bratell wrote: > ...
7 years, 8 months ago (2013-04-25 21:26:40 UTC) #10
Daniel Bratell
I've done some measurements of my own and at best this saves 0.5% compilation time ...
7 years, 7 months ago (2013-05-03 14:19:49 UTC) #11
Daniel Bratell
7 years, 4 months ago (2013-08-21 13:41:17 UTC) #12
On 2013/05/03 14:19:49, bratell wrote:
> I've done some measurements of my own and at best this saves 0.5% compilation
> time of the compilation of webcore_derived, at worse it has no effect at all.
> 
> Which means I need to keep looking for what part of my old 5000 file patch
saved
> those last 10-20% compilation time.
> 
> The current effect of this patch now is to add some complexity in the build
> system and remove some FIXMEs so not very important things.

I think this is good enough now and with the conversion to the python hopefully
as good as it should be. Closing.

Powered by Google App Engine
This is Rietveld 408576698