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

Issue 464153002: GN: Create a :gles2_interface target to resolve some check errors in //cc. (Closed)

Created:
6 years, 4 months ago by jbroman
Modified:
6 years, 3 months ago
Reviewers:
jamesr, brettw, sky, piman
CC:
chromium-reviews, piman+watch_chromium.org, cc-bugs_chromium.org
Project:
chromium
Visibility:
Public.

Description

GN: Create a :gles2_interface target to resolve some check errors in //cc. gles2_interface.h defines a pure virtual interface; targets which use it should depend on it, but not necessarily on an implementation target. Consequently, a //gpu/command_buffer/client:gles2_interface target was created to reflect the dependency on this interface without linking a particular implementation. This resolves an issue with //cc trying to use this header without having a dependency on a target which includes it. Committed: https://crrev.com/cba3d2fec7493eeb9a22d712be62969299750c55 Cr-Commit-Position: refs/heads/master@{#294956}

Patch Set 1 #

Patch Set 2 : :gles2_interface only #

Total comments: 2

Patch Set 3 : direct_dependent_configs #

Patch Set 4 : direct_dependent_configs #

Patch Set 5 : unneeded forwarding #

Total comments: 1

Patch Set 6 : missing config forwarding #

Total comments: 6

Patch Set 7 : rebase and adjust targets which newly depend on gles2_interface.h #

Patch Set 8 : add comment per brettw #

Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -3 lines) Patch
M cc/BUILD.gn View 1 2 3 4 5 6 3 chunks +6 lines, -0 lines 0 comments Download
M content/common/BUILD.gn View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/BUILD.gn View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M gpu/BUILD.gn View 1 2 3 4 5 6 1 chunk +4 lines, -2 lines 0 comments Download
M gpu/command_buffer/client/BUILD.gn View 1 2 3 4 5 6 7 5 chunks +14 lines, -1 line 0 comments Download
M mojo/examples/sample_app/BUILD.gn View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M mojo/gles2/BUILD.gn View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M ui/aura/BUILD.gn View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 21 (2 generated)
jbroman
I believe this is the correct way to model this sort of situation in GN, ...
6 years, 4 months ago (2014-08-13 14:58:33 UTC) #1
jamesr
This is backwards. //cc will eventually depend on surfaces and not the other way around
6 years, 4 months ago (2014-08-13 17:31:33 UTC) #2
jbroman
On 2014/08/13 17:31:33, jamesr wrote: > This is backwards. //cc will eventually depend on surfaces ...
6 years, 4 months ago (2014-08-13 17:35:41 UTC) #3
jamesr
For the //cc part, yes. The gles2_interface change looks good though, could you separate that ...
6 years, 4 months ago (2014-08-13 17:37:49 UTC) #4
jbroman
Changed to only do this for the :gles2_interface target.
6 years, 4 months ago (2014-08-13 17:53:01 UTC) #5
jamesr
Can you update the patch description? https://codereview.chromium.org/464153002/diff/20001/gpu/command_buffer/client/BUILD.gn File gpu/command_buffer/client/BUILD.gn (right): https://codereview.chromium.org/464153002/diff/20001/gpu/command_buffer/client/BUILD.gn#newcode99 gpu/command_buffer/client/BUILD.gn:99: all_dependent_configs = [ ...
6 years, 4 months ago (2014-08-13 17:55:01 UTC) #6
jbroman
I think I've done what you've asked. It's a little thorny, especially because we don't ...
6 years, 4 months ago (2014-08-13 19:27:16 UTC) #7
jamesr
Yeah, this seems better. Cleaning up all the dependent configs is a big task, for ...
6 years, 4 months ago (2014-08-13 19:31:26 UTC) #8
brettw
lgtm
6 years, 4 months ago (2014-08-13 20:14:30 UTC) #9
jbroman
this failed to get needed lgtms and probably doesn't apply anymore; I'm just going to ...
6 years, 3 months ago (2014-09-15 14:18:13 UTC) #10
jamesr
lgtm
6 years, 3 months ago (2014-09-15 15:32:44 UTC) #11
brettw
lgtm https://codereview.chromium.org/464153002/diff/100001/gpu/command_buffer/client/BUILD.gn File gpu/command_buffer/client/BUILD.gn (right): https://codereview.chromium.org/464153002/diff/100001/gpu/command_buffer/client/BUILD.gn#newcode97 gpu/command_buffer/client/BUILD.gn:97: source_set("gles2_interface") { Can you add a comment here ...
6 years, 3 months ago (2014-09-15 16:47:55 UTC) #12
jbroman
added a few more places that newly depend on gles2_interface.h and were causing 'gn check' ...
6 years, 3 months ago (2014-09-15 20:20:41 UTC) #13
jbroman
+piman for gpu/ +ski for ui/aura/
6 years, 3 months ago (2014-09-15 20:24:38 UTC) #15
piman
lgtm
6 years, 3 months ago (2014-09-15 21:20:35 UTC) #16
sky
LGTM
6 years, 3 months ago (2014-09-15 22:25:27 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/464153002/140001
6 years, 3 months ago (2014-09-15 23:32:22 UTC) #19
commit-bot: I haz the power
Committed patchset #8 (id:140001) as d8e3deeabfdc2678a2fbcc15ec31fce3543a45e5
6 years, 3 months ago (2014-09-16 01:05:25 UTC) #20
commit-bot: I haz the power
6 years, 3 months ago (2014-09-16 01:06:58 UTC) #21
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/cba3d2fec7493eeb9a22d712be62969299750c55
Cr-Commit-Position: refs/heads/master@{#294956}

Powered by Google App Engine
This is Rietveld 408576698