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

Issue 1801083002: [iOS] Add assert_no_deps to //build/config/ios/rules.gni "app" template. (Closed)

Created:
4 years, 9 months ago by sdefresne
Modified:
4 years, 9 months ago
Reviewers:
brettw
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@components-invalidation
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[iOS] Add assert_no_deps to //build/config/ios/rules.gni "app" template. The "assert_no_deps" stops recursion at Target::EXECUTABLE, so for the moment add the assertion to "app" template "executable" target so that they are correctly evaluated for all target build on iOS. BUG=459705

Patch Set 1 #

Patch Set 2 : Forbid dependency on third_party/webrtc #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -0 lines) Patch
M build/config/ios/rules.gni View 1 1 chunk +20 lines, -0 lines 1 comment Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 6 (1 generated)
sdefresne
I do not really like putting the assert_no_deps and would prefer to put it in ...
4 years, 9 months ago (2016-03-15 14:55:41 UTC) #2
brettw
https://codereview.chromium.org/1801083002/diff/20001/build/config/ios/rules.gni File build/config/ios/rules.gni (right): https://codereview.chromium.org/1801083002/diff/20001/build/config/ios/rules.gni#newcode116 build/config/ios/rules.gni:116: assert_no_deps = [ I think we should forward this ...
4 years, 9 months ago (2016-03-15 18:04:17 UTC) #3
sdefresne
On 2016/03/15 at 18:04:17, brettw wrote: > https://codereview.chromium.org/1801083002/diff/20001/build/config/ios/rules.gni > File build/config/ios/rules.gni (right): > > https://codereview.chromium.org/1801083002/diff/20001/build/config/ios/rules.gni#newcode116 ...
4 years, 9 months ago (2016-03-16 16:53:26 UTC) #4
brettw
Yeah, I try really hard not to mention things like content in the shared build ...
4 years, 9 months ago (2016-03-16 17:13:31 UTC) #5
sdefresne
4 years, 9 months ago (2016-03-16 17:47:15 UTC) #6
On 2016/03/16 at 17:13:31, brettw wrote:
> Yeah, I try really hard not to mention things like content in the shared build
directory, and from a build perspective I think it's wrong to say nobody can
create an iOS app that uses "X" (for any value of "X") without forking the build
setup.
> 
> At the end of the day, I think there's only one app that matters about these
dependencies and that's Chrome (I think). It will be pretty hard to make, say,
some test project depend on content but not iOS Chrome depend on content. If
there are a couple of critical targets, we can have a list in a .gni file
somewhere and just set that variable as the assert_no_deps on those targets,
since our list of targets is mostly static.

Well, components_unittests comes to mind (it's been frequently plagued by
submarine new dependencies on //content). I've also seen new dependencies on
//ipc added to //ui/base:unittests. I guess I'll go with the list in a .gni file
and adding the assert_no_deps to apps that we do care on iOS (mostly the apps
listed in ios/build/bots/tests/common_tests.json).

Thank you for the recommendations. Will close this CL and create a new one along
those.

Powered by Google App Engine
This is Rietveld 408576698