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

Issue 1922563002: Created BUILD.gn for libsecret (Closed)

Created:
4 years, 8 months ago by cfroussios
Modified:
4 years, 7 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Created BUILD.gn for libsecret Moved the libsecret headers to a subdirectory and added a config rule to include this directory during compilation of dependents. Also updated chrome/browser/BUILD.gn to use this dependency in the new way. Q: Why move the headers in a subdirectory? A: Dependents of libsecret expect the headers as <libsecret/secret.h> (libsecret files also reference each other this way). The previous way this worked was by including the entire //third_party/. This is too broad and it is also not configured by libsecret itself. Rather, libsecret piggybacks on other components doing it. Moving the headers into "//third_party/libsecret/libsecret/" allows us to include "//third_party/libsecret/" and keep referencing the headers like previously. It also removes the situation where libsecret piggybacks on other libraries, or that other libraries will piggyback on libsecret. BUG=606303 Committed: https://crrev.com/7267be8dae266d389392b211c5746fd1192a0ee5 Cr-Commit-Position: refs/heads/master@{#390062}

Patch Set 1 #

Patch Set 2 : Changed overkill all_dependent_configs to public_configs #

Patch Set 3 : Fixed gyp build #

Patch Set 4 : "Added libsecret compilation flag in gyp for unit tests " #

Patch Set 5 : Fixed gn dep for unittests #

Total comments: 1

Patch Set 6 : Using include_dirs instead of cflags to build #

Total comments: 11

Patch Set 7 : Fixed dropped tests and applied recommendations #

Total comments: 4

Patch Set 8 : Corrected source set #

Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -1532 lines) Patch
M chrome/browser/BUILD.gn View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 1 chunk +4 lines, -1 line 0 comments Download
M chrome/test/BUILD.gn View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
A third_party/libsecret/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +27 lines, -0 lines 0 comments Download
A + third_party/libsecret/libsecret/secret.h View 0 chunks +-1 lines, --1 lines 0 comments Download
A + third_party/libsecret/libsecret/secret-attributes.h View 0 chunks +-1 lines, --1 lines 0 comments Download
A + third_party/libsecret/libsecret/secret-collection.h View 0 chunks +-1 lines, --1 lines 0 comments Download
A + third_party/libsecret/libsecret/secret-enum-types.h View 0 chunks +-1 lines, --1 lines 0 comments Download
A + third_party/libsecret/libsecret/secret-item.h View 0 chunks +-1 lines, --1 lines 0 comments Download
A + third_party/libsecret/libsecret/secret-password.h View 0 chunks +-1 lines, --1 lines 0 comments Download
A + third_party/libsecret/libsecret/secret-paths.h View 0 chunks +-1 lines, --1 lines 0 comments Download
A + third_party/libsecret/libsecret/secret-prompt.h View 0 chunks +-1 lines, --1 lines 0 comments Download
A + third_party/libsecret/libsecret/secret-schema.h View 0 chunks +-1 lines, --1 lines 0 comments Download
A + third_party/libsecret/libsecret/secret-schemas.h View 0 chunks +-1 lines, --1 lines 0 comments Download
A + third_party/libsecret/libsecret/secret-service.h View 0 chunks +-1 lines, --1 lines 0 comments Download
A + third_party/libsecret/libsecret/secret-types.h View 0 chunks +-1 lines, --1 lines 0 comments Download
A + third_party/libsecret/libsecret/secret-value.h View 0 chunks +-1 lines, --1 lines 0 comments Download
D third_party/libsecret/secret.h View 1 chunk +0 lines, -47 lines 0 comments Download
D third_party/libsecret/secret-attributes.h View 1 chunk +0 lines, -38 lines 0 comments Download
D third_party/libsecret/secret-collection.h View 1 chunk +0 lines, -178 lines 0 comments Download
D third_party/libsecret/secret-enum-types.h View 1 chunk +0 lines, -60 lines 0 comments Download
D third_party/libsecret/secret-item.h View 1 chunk +0 lines, -196 lines 0 comments Download
D third_party/libsecret/secret-password.h View 1 chunk +0 lines, -135 lines 0 comments Download
D third_party/libsecret/secret-paths.h View 1 chunk +0 lines, -283 lines 0 comments Download
D third_party/libsecret/secret-prompt.h View 1 chunk +0 lines, -80 lines 0 comments Download
D third_party/libsecret/secret-schema.h View 1 chunk +0 lines, -77 lines 0 comments Download
D third_party/libsecret/secret-schemas.h View 1 chunk +0 lines, -42 lines 0 comments Download
D third_party/libsecret/secret-service.h View 1 chunk +0 lines, -309 lines 0 comments Download
D third_party/libsecret/secret-types.h View 1 chunk +0 lines, -43 lines 0 comments Download
D third_party/libsecret/secret-value.h View 1 chunk +0 lines, -56 lines 0 comments Download

Messages

Total messages: 29 (11 generated)
cfroussios
On 2016/04/26 13:49:12, cfroussios wrote: > mailto:cfroussios@chromium.org changed reviewers: > + mailto:vabr@chromium.org Hey vabr. Can ...
4 years, 8 months ago (2016-04-26 13:51:45 UTC) #3
vabr (Chromium)
The failure looks like some troubles of the trybot, so I am rerunning it. Let's ...
4 years, 7 months ago (2016-04-27 07:10:12 UTC) #4
vabr (Chromium)
On 2016/04/27 07:10:12, vabr (Chromium) wrote: > The failure looks like some troubles of the ...
4 years, 7 months ago (2016-04-27 08:04:44 UTC) #5
vabr (Chromium)
Thanks, Christos! Looking mostly good, some comments below. Cheers, Vaclav https://codereview.chromium.org/1922563002/diff/100001/chrome/chrome_browser.gypi File chrome/chrome_browser.gypi (right): https://codereview.chromium.org/1922563002/diff/100001/chrome/chrome_browser.gypi#newcode3645 ...
4 years, 7 months ago (2016-04-27 11:14:25 UTC) #6
cfroussios
Hi, I applied your recommendations https://codereview.chromium.org/1922563002/diff/100001/chrome/chrome_browser.gypi File chrome/chrome_browser.gypi (right): https://codereview.chromium.org/1922563002/diff/100001/chrome/chrome_browser.gypi#newcode3645 chrome/chrome_browser.gypi:3645: '../third_party/libsecret/' On 2016/04/27 11:14:24, ...
4 years, 7 months ago (2016-04-27 12:44:02 UTC) #7
vabr (Chromium)
LGTM once you address the one new comment below. Thanks! Vaclav https://codereview.chromium.org/1922563002/diff/120001/third_party/libsecret/BUILD.gn File third_party/libsecret/BUILD.gn (right): ...
4 years, 7 months ago (2016-04-27 12:44:58 UTC) #8
cfroussios
https://codereview.chromium.org/1922563002/diff/120001/third_party/libsecret/BUILD.gn File third_party/libsecret/BUILD.gn (right): https://codereview.chromium.org/1922563002/diff/120001/third_party/libsecret/BUILD.gn#newcode11 third_party/libsecret/BUILD.gn:11: "secret-attributes.h", On 2016/04/27 12:44:58, vabr (Chromium) wrote: > It ...
4 years, 7 months ago (2016-04-27 13:04:03 UTC) #9
cfroussios
jochen@chromium.org: Please review changes in chrome/browser/BUILD.gn
4 years, 7 months ago (2016-04-27 13:19:31 UTC) #11
jochen (gone - plz use gerrit)
can you explain why you move the headers? would it make sense to split this ...
4 years, 7 months ago (2016-04-27 13:22:37 UTC) #12
vabr (Chromium)
On 2016/04/27 13:22:37, jochen wrote: > can you explain why you move the headers? > ...
4 years, 7 months ago (2016-04-27 13:29:43 UTC) #13
jochen (gone - plz use gerrit)
lgtm
4 years, 7 months ago (2016-04-27 13:32:12 UTC) #14
vabr (Chromium)
https://codereview.chromium.org/1922563002/diff/120001/third_party/libsecret/BUILD.gn File third_party/libsecret/BUILD.gn (right): https://codereview.chromium.org/1922563002/diff/120001/third_party/libsecret/BUILD.gn#newcode11 third_party/libsecret/BUILD.gn:11: "secret-attributes.h", On 2016/04/27 13:04:03, cfroussios wrote: > On 2016/04/27 ...
4 years, 7 months ago (2016-04-27 13:36:16 UTC) #15
vabr (Chromium)
Christos, before you land this, could you please consider also extending the CL description to ...
4 years, 7 months ago (2016-04-27 13:37:56 UTC) #16
vabr (Chromium)
On 2016/04/27 13:36:16, vabr (Chromium) wrote: > https://codereview.chromium.org/1922563002/diff/120001/third_party/libsecret/BUILD.gn > File third_party/libsecret/BUILD.gn (right): > > https://codereview.chromium.org/1922563002/diff/120001/third_party/libsecret/BUILD.gn#newcode11 ...
4 years, 7 months ago (2016-04-27 13:52:49 UTC) #21
vabr (Chromium)
And the new CL description LGTM, thanks!
4 years, 7 months ago (2016-04-27 13:53:35 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1922563002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1922563002/140001
4 years, 7 months ago (2016-04-27 13:54:22 UTC) #25
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 7 months ago (2016-04-27 13:59:03 UTC) #27
commit-bot: I haz the power
4 years, 7 months ago (2016-04-27 14:00:46 UTC) #29
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/7267be8dae266d389392b211c5746fd1192a0ee5
Cr-Commit-Position: refs/heads/master@{#390062}

Powered by Google App Engine
This is Rietveld 408576698