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

Issue 425803013: Refactor build target for sync (Closed)

Created:
6 years, 4 months ago by rlarocque
Modified:
6 years, 4 months ago
Reviewers:
maniscalco, awong
CC:
chromium-reviews, tim+watch_chromium.org, haitaol+watch_chromium.org, zea+watch_chromium.org, maniscalco+watch_chromium.org
Project:
chromium
Visibility:
Public.

Description

Refactor build target for sync Refactors the sync build target definition to fit the more common pattern. The old target was defined differently in component and non-component mode. This is brittle compared to the more standard pattern of setting the target type to '<(component)'. Introduces a shim target with type 'none'. Any target that depends on this shim will link inherit its dependency on the two sync libraries. A note on the history of this, for those who are interested: This pattern was recommended during the original componentization of sync almost two years ago. The pattern was, and still is, used by content.gyp to ensure that dependency restrictions are being respected. The difference with sync is that it doesn't actually make use of fine-grained dependencies. It's not unusual to see a target depend on conent_renderer, content_browser, or some other static library sub-component of content. With sync, on the other hand, we have the rule that other targets may depend only on the top level sync target. Since no one aside from sync depends on sync_internal_api, sync_core, or sync_api static library targets, and we have no intention of exposing these sub-components outside of sync, there's no point in maintaining them as separate targets. BUG=397574 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=287119

Patch Set 1 #

Patch Set 2 : Add libprotobuf dependency #

Patch Set 3 : Update export macros for sync_proto component #

Patch Set 4 : Some fixes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+524 lines, -607 lines) Patch
M sync/protocol/BUILD.gn View 1 2 3 1 chunk +3 lines, -3 lines 0 comments Download
A sync/protocol/sync_proto_export.h View 1 2 1 chunk +29 lines, -0 lines 0 comments Download
M sync/sync.gyp View 1 2 3 1 chunk +492 lines, -97 lines 0 comments Download
D sync/sync_api.gypi View 1 chunk +0 lines, -51 lines 0 comments Download
D sync/sync_core.gypi View 1 chunk +0 lines, -222 lines 0 comments Download
D sync/sync_internal_api.gypi View 1 chunk +0 lines, -170 lines 0 comments Download
D sync/sync_proto.gypi View 1 chunk +0 lines, -64 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
rlarocque
I think I've finally got it working. Please review.
6 years, 4 months ago (2014-07-31 22:41:00 UTC) #1
maniscalco
Nice. Thanks for refactoring this! LGTM.
6 years, 4 months ago (2014-08-01 00:24:16 UTC) #2
awong
LGTM too On Thu, Jul 31, 2014 at 5:24 PM, <maniscalco@chromium.org> wrote: > Nice. Thanks ...
6 years, 4 months ago (2014-08-01 00:25:02 UTC) #3
awong
LGTM On 2014/08/01 00:25:02, awong wrote: > LGTM too > > > On Thu, Jul ...
6 years, 4 months ago (2014-08-01 00:25:37 UTC) #4
rlarocque
The CQ bit was checked by rlarocque@chromium.org
6 years, 4 months ago (2014-08-01 00:29:13 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rlarocque@chromium.org/425803013/60001
6 years, 4 months ago (2014-08-01 00:32:20 UTC) #6
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_chromium_x64_rel on tryserver.chromium.win ...
6 years, 4 months ago (2014-08-01 17:27:23 UTC) #7
commit-bot: I haz the power
6 years, 4 months ago (2014-08-01 23:41:48 UTC) #8
Message was sent while issue was closed.
Change committed as 287119

Powered by Google App Engine
This is Rietveld 408576698