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

Issue 298703005: First pass on blink compiling for GN build (Closed)

Created:
6 years, 7 months ago by brettw
Modified:
6 years, 7 months ago
CC:
blink-reviews, blink-reviews-bindings_chromium.org, arv+blink, abarth-chromium
Visibility:
Public.

Description

First pass on blink compiling for GN build This adds most of the blink bindings and code to the GN build. It runs but I have only spot-checked that the outputs are identical to the GYP ones. Moved the feature defines to config.gni. Added a string version of these defines (GN doesn't have a nice way to do this in the format the scripts expect, so I also added a python script). This is used in various actions. Provide GN equivalents for the core and bindings gypis. The bindings BUILD.gn file is a bit icky with rebase_path all over the place and it's difficult to follow where the names are relative to. We read the file lists from gypis and the source isn't really the way GN would prefer. I'm planning to add a function to GN to convert a path to a source-absolute path which will clean up some of these calls (in a later pass). R=nbarth@chromium.org, thakis@chromium.org Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=174920

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : feature defines #

Patch Set 4 : compiles #

Patch Set 5 : #

Patch Set 6 : rebuilding fixed #

Total comments: 1

Patch Set 7 : compiling #

Total comments: 26

Patch Set 8 : merge #

Patch Set 9 : Review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1851 lines, -70 lines) Patch
M Source/BUILD.gn View 1 2 3 4 5 6 2 chunks +16 lines, -50 lines 0 comments Download
A Source/bindings/BUILD.gn View 1 2 3 4 5 6 7 8 1 chunk +311 lines, -0 lines 0 comments Download
M Source/bindings/bindings.gni View 1 2 3 4 5 6 7 1 chunk +65 lines, -8 lines 0 comments Download
A Source/build/gn_list_to_space_separated_string.py View 1 2 1 chunk +12 lines, -0 lines 0 comments Download
M Source/build/scripts/scripts.gni View 1 2 3 4 5 6 7 2 chunks +161 lines, -2 lines 0 comments Download
M Source/config.gni View 1 2 3 4 5 1 chunk +64 lines, -0 lines 0 comments Download
M Source/core/BUILD.gn View 1 2 3 4 5 6 7 8 3 chunks +995 lines, -5 lines 0 comments Download
A Source/core/core.gni View 1 2 3 4 5 6 7 1 chunk +33 lines, -0 lines 0 comments Download
A Source/modules/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +127 lines, -0 lines 0 comments Download
A Source/modules/modules.gni View 1 2 3 4 5 6 7 1 chunk +47 lines, -0 lines 0 comments Download
M Source/platform/BUILD.gn View 1 2 3 4 5 6 7 chunks +20 lines, -5 lines 0 comments Download

Messages

Total messages: 24 (0 generated)
brettw
6 years, 7 months ago (2014-05-22 22:32:25 UTC) #1
brettw
New patch fixes the "always rebuilds" dependency issue.
6 years, 7 months ago (2014-05-22 23:09:00 UTC) #2
esprehn
It'd be nice if you gave the patch a title that was a bit more ...
6 years, 7 months ago (2014-05-22 23:59:02 UTC) #3
brettw
Clarified patch to be GN-specific
6 years, 7 months ago (2014-05-23 00:00:33 UTC) #4
eseidel
https://codereview.chromium.org/298703005/diff/100001/Source/bindings/bindings.gni File Source/bindings/bindings.gni (right): https://codereview.chromium.org/298703005/diff/100001/Source/bindings/bindings.gni#newcode32 Source/bindings/bindings.gni:32: bindings_core_generated_aggregate_files = [ I guess GN hasn't learned auto-sharding ...
6 years, 7 months ago (2014-05-23 00:00:41 UTC) #5
brettw
New snap up with modules and html/dom/rendering/css compiling.
6 years, 7 months ago (2014-05-23 21:13:07 UTC) #6
Nico
lgtm as far as I can tell, but I didn't compare all gn and gyp ...
6 years, 7 months ago (2014-05-25 15:07:22 UTC) #7
brettw
A few responses (no new patch yet)... https://codereview.chromium.org/298703005/diff/120001/Source/BUILD.gn File Source/BUILD.gn (right): https://codereview.chromium.org/298703005/diff/120001/Source/BUILD.gn#newcode74 Source/BUILD.gn:74: config("npapi_stub") { ...
6 years, 7 months ago (2014-05-25 17:35:34 UTC) #8
Nils Barth (inactive)
On 2014/05/25 15:07:22, Nico wrote: > I'd like nbarth to take a look at the ...
6 years, 7 months ago (2014-05-26 08:58:36 UTC) #9
Nils Barth (inactive)
AFAICT bindings LGTM. Main ugliness is the frequent use of rebase_path; the path handling is ...
6 years, 7 months ago (2014-05-26 09:14:01 UTC) #10
brettw
Background on rebase_path usage: GN expects paths to be relative to the current buildfile or ...
6 years, 7 months ago (2014-05-26 17:08:35 UTC) #11
brettw
I think what would be easiest for me is if we landed this without taking ...
6 years, 7 months ago (2014-05-26 17:58:02 UTC) #12
Nils Barth (inactive)
On 2014/05/26 17:08:35, brettw wrote: > Background on rebase_path usage: <snip> Thanks for the background! ...
6 years, 7 months ago (2014-05-27 01:23:32 UTC) #13
Nils Barth (inactive)
On 2014/05/26 17:58:02, brettw wrote: > I think what would be easiest for me is ...
6 years, 7 months ago (2014-05-27 01:24:11 UTC) #14
brettw
The CQ bit was checked by brettw@chromium.org
6 years, 7 months ago (2014-05-27 23:42:18 UTC) #15
brettw
The CQ bit was unchecked by brettw@chromium.org
6 years, 7 months ago (2014-05-27 23:42:20 UTC) #16
brettw
https://codereview.chromium.org/298703005/diff/120001/Source/bindings/BUILD.gn File Source/bindings/BUILD.gn (right): https://codereview.chromium.org/298703005/diff/120001/Source/bindings/BUILD.gn#newcode219 Source/bindings/BUILD.gn:219: # TODO(brettw) GYP adds a "-S before the script ...
6 years, 7 months ago (2014-05-27 23:53:03 UTC) #17
brettw
The CQ bit was checked by brettw@chromium.org
6 years, 7 months ago (2014-05-27 23:53:08 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/brettw@chromium.org/298703005/160001
6 years, 7 months ago (2014-05-27 23:53:22 UTC) #19
Nils Barth (inactive)
https://codereview.chromium.org/298703005/diff/120001/Source/bindings/BUILD.gn File Source/bindings/BUILD.gn (right): https://codereview.chromium.org/298703005/diff/120001/Source/bindings/BUILD.gn#newcode219 Source/bindings/BUILD.gn:219: # TODO(brettw) GYP adds a "-S before the script ...
6 years, 7 months ago (2014-05-28 00:52:36 UTC) #20
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: blink_presubmit on tryserver.blink ...
6 years, 7 months ago (2014-05-28 01:19:52 UTC) #21
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-28 01:20:32 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: linux_gpu_triggered_tests on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/linux_gpu_triggered_tests/builds/18108)
6 years, 7 months ago (2014-05-28 01:20:32 UTC) #23
brettw
6 years, 7 months ago (2014-05-28 01:58:29 UTC) #24
Message was sent while issue was closed.
Committed patchset #9 manually as r174920.

Powered by Google App Engine
This is Rietveld 408576698