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

Issue 23030005: Android: exclude dead code from android build (Closed)

Created:
7 years, 4 months ago by Anton
Modified:
7 years, 3 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, chromium-apps-reviews_chromium.org, darin-cc_chromium.org, jam, extensions-reviews_chromium.org
Visibility:
Public.

Description

Android: exclude dead code from android build Dead code is found examining symbols in the final targets of the 'All' build target. Note, Ninja/Gyp combination does not provide a mechanism to blocking include files. A later change could make something undead and the developer would get a link error, where they might expect a compile error. I didn't modify GYP files were there was currently no branching or where there was already a very complex set of conditional configurations. Other than these cases which are minor, the majority of remaining dead code is because we link third party libraries with whole-archive flag. BUG= Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=220856

Patch Set 1 #

Patch Set 2 : Slightly less aggressive for clang. #

Patch Set 3 : Removed unnecessary ordering changes #

Patch Set 4 : cosmetic whitespace #

Patch Set 5 : Don't exclude vector_canvas #

Total comments: 2

Patch Set 6 : Fix ordering in ui.gyp #

Total comments: 2

Patch Set 7 : Remove find_match_rect_android and font_list_android #

Patch Set 8 : Fixes for build breakage #

Unified diffs Side-by-side diffs Delta from patch set Stats (+214 lines, -66 lines) Patch
M chrome/chrome.gyp View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 1 chunk +51 lines, -0 lines 0 comments Download
M chrome/chrome_browser_extensions.gypi View 1 2 3 4 5 6 7 1 chunk +19 lines, -0 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 2 3 4 5 6 7 1 chunk +45 lines, -0 lines 0 comments Download
M chrome/chrome_common.gypi View 1 2 3 4 5 6 7 1 chunk +16 lines, -0 lines 0 comments Download
M chrome/chrome_renderer.gypi View 1 2 3 4 5 6 7 1 chunk +12 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/api.gyp View 1 2 3 4 5 6 1 chunk +37 lines, -2 lines 0 comments Download
D content/common/find_match_rect_android.h View 1 2 3 4 5 6 1 chunk +0 lines, -22 lines 0 comments Download
D content/common/find_match_rect_android.cc View 1 2 3 4 5 6 1 chunk +0 lines, -23 lines 0 comments Download
D content/common/font_list_android.cc View 1 2 3 4 5 6 1 chunk +0 lines, -15 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 5 6 7 1 chunk +9 lines, -0 lines 0 comments Download
M content/content_common.gypi View 1 2 3 4 5 6 7 2 chunks +5 lines, -3 lines 0 comments Download
M content/content_renderer.gypi View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M skia/skia_chrome.gypi View 1 2 3 4 5 6 7 2 chunks +1 line, -1 line 0 comments Download
M ui/ui.gyp View 1 2 3 4 5 6 1 chunk +16 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
anton1
tomhudson@google.com: Please review changes in skia avi@chromium.org: Please review changes in content jochen@chromium.org: Please review ...
7 years, 4 months ago (2013-08-21 10:56:49 UTC) #1
tomhudson
Please leave vector_canvas in; removing skia_utils_base LGTM.
7 years, 4 months ago (2013-08-21 11:04:48 UTC) #2
anton1
On 2013/08/21 11:04:48, tomhudson wrote: > Please leave vector_canvas in; removing skia_utils_base LGTM. Done
7 years, 4 months ago (2013-08-21 11:06:48 UTC) #3
jochen (gone - plz use gerrit)
lgtm
7 years, 4 months ago (2013-08-21 12:35:40 UTC) #4
sky
LGTM https://codereview.chromium.org/23030005/diff/16001/ui/ui.gyp File ui/ui.gyp (right): https://codereview.chromium.org/23030005/diff/16001/ui/ui.gyp#newcode890 ui/ui.gyp:890: 'base/animation/throb_animation.cc', nit: sort
7 years, 4 months ago (2013-08-21 13:56:41 UTC) #5
anton1
https://codereview.chromium.org/23030005/diff/16001/ui/ui.gyp File ui/ui.gyp (right): https://codereview.chromium.org/23030005/diff/16001/ui/ui.gyp#newcode890 ui/ui.gyp:890: 'base/animation/throb_animation.cc', On 2013/08/21 13:56:42, sky wrote: > nit: sort ...
7 years, 4 months ago (2013-08-21 14:06:43 UTC) #6
anton1
Add brettw as an alternative reviewer.
7 years, 4 months ago (2013-08-23 10:29:56 UTC) #7
anton1
Adding creis as an alternative reviewer
7 years, 3 months ago (2013-08-28 15:21:42 UTC) #8
Charlie Reis
LGTM with one question. https://codereview.chromium.org/23030005/diff/25001/content/content_common.gypi File content/content_common.gypi (right): https://codereview.chromium.org/23030005/diff/25001/content/content_common.gypi#newcode425 content/content_common.gypi:425: 'common/font_list.cc', nit: Swap lines 424 ...
7 years, 3 months ago (2013-08-28 23:33:23 UTC) #9
Charlie Reis
https://codereview.chromium.org/23030005/diff/25001/content/content_common.gypi File content/content_common.gypi (right): https://codereview.chromium.org/23030005/diff/25001/content/content_common.gypi#newcode425 content/content_common.gypi:425: 'common/font_list.cc', On 2013/08/28 23:33:24, creis wrote: > nit: Swap ...
7 years, 3 months ago (2013-08-28 23:34:10 UTC) #10
anton1
On 2013/08/28 23:34:10, creis wrote: > https://codereview.chromium.org/23030005/diff/25001/content/content_common.gypi > File content/content_common.gypi (right): > > https://codereview.chromium.org/23030005/diff/25001/content/content_common.gypi#newcode425 > ...
7 years, 3 months ago (2013-08-29 10:46:43 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/anton@chromium.org/23030005/35001
7 years, 3 months ago (2013-08-29 13:52:34 UTC) #12
commit-bot: I haz the power
Retried try job too often on win7_aura for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win7_aura&number=73968
7 years, 3 months ago (2013-08-29 19:09:10 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/anton@chromium.org/23030005/35001
7 years, 3 months ago (2013-08-30 12:58:36 UTC) #14
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 3 months ago (2013-08-30 13:26:44 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/anton@chromium.org/23030005/63001
7 years, 3 months ago (2013-09-02 10:18:44 UTC) #16
commit-bot: I haz the power
7 years, 3 months ago (2013-09-02 21:13:02 UTC) #17
Message was sent while issue was closed.
Change committed as 220856

Powered by Google App Engine
This is Rietveld 408576698