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

Issue 572893002: GN: Refine 'complete' static library handling (Closed)

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

Description

GN: Refine 'complete' static library handling Allow static libraries to be dependencies of complete static libraries. Propagate library settings (lib_dirs/libs) through complete static libraries. BUG=413776 TEST=gn_unittests R=brettw@chromium.org Committed: https://crrev.com/33d9b3bf67d9e64cb476784a0f120a81e546eba5 Cr-Commit-Position: refs/heads/master@{#389041}

Patch Set 1 #

Total comments: 3

Patch Set 2 : Added comments #

Patch Set 3 : Workaround for static library deps #

Patch Set 4 : Sync patches to recent GN changes #

Total comments: 1

Patch Set 5 : Add tests and refine help. #

Total comments: 3

Patch Set 6 : Improve complete_static_lib help; other style nitpicks #

Unified diffs Side-by-side diffs Delta from patch set Stats (+166 lines, -61 lines) Patch
M tools/gn/ninja_binary_target_writer.cc View 1 2 3 4 5 2 chunks +10 lines, -1 line 0 comments Download
M tools/gn/ninja_binary_target_writer_unittest.cc View 1 2 3 4 1 chunk +75 lines, -0 lines 0 comments Download
M tools/gn/target.h View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M tools/gn/target.cc View 1 2 3 4 5 4 chunks +17 lines, -40 lines 0 comments Download
M tools/gn/target_unittest.cc View 1 2 3 4 2 chunks +53 lines, -15 lines 0 comments Download
M tools/gn/variables.cc View 1 2 3 4 5 2 chunks +11 lines, -4 lines 0 comments Download

Messages

Total messages: 29 (6 generated)
kal
6 years, 3 months ago (2014-09-16 09:33:24 UTC) #1
brettw
https://codereview.chromium.org/572893002/diff/1/tools/gn/target.cc File tools/gn/target.cc (right): https://codereview.chromium.org/572893002/diff/1/tools/gn/target.cc#newcode247 tools/gn/target.cc:247: } else if (dep->complete_static_lib()) { I don't think there ...
6 years, 3 months ago (2014-09-16 16:46:02 UTC) #2
kal
Normally inherited libraries don't pass through "final" targets. Since we are considering complete static libraries ...
6 years, 3 months ago (2014-09-16 19:01:00 UTC) #3
brettw
On 2014/09/16 19:01:00, kal wrote: > Normally inherited libraries don't pass through "final" targets. Since ...
6 years, 3 months ago (2014-09-16 20:02:00 UTC) #4
kal
Won't doing that cause all dependent source sets and incomplete static libs in the dependency ...
6 years, 3 months ago (2014-09-16 20:54:46 UTC) #5
brettw
I understand now, thanks. https://codereview.chromium.org/572893002/diff/1/tools/gn/target.cc File tools/gn/target.cc (right): https://codereview.chromium.org/572893002/diff/1/tools/gn/target.cc#newcode247 tools/gn/target.cc:247: } else if (dep->complete_static_lib()) { ...
6 years, 3 months ago (2014-09-16 23:56:12 UTC) #6
kal
https://codereview.chromium.org/572893002/diff/1/tools/gn/target.cc File tools/gn/target.cc (right): https://codereview.chromium.org/572893002/diff/1/tools/gn/target.cc#newcode247 tools/gn/target.cc:247: } else if (dep->complete_static_lib()) { OK I will extend ...
6 years, 3 months ago (2014-09-17 05:03:55 UTC) #7
brettw
SO I think the net result is that this with the other patch the only ...
6 years, 3 months ago (2014-09-18 23:05:35 UTC) #8
kal
I actually need to distribute static libs that have dependencies on each other. With this ...
6 years, 3 months ago (2014-09-19 04:49:24 UTC) #9
kal
I mean can we at least keep support for complete static libs to depend on ...
6 years, 3 months ago (2014-09-19 05:04:59 UTC) #10
kal
If you think its more consistent I can update this patch to also fix _complete_ ...
6 years, 3 months ago (2014-09-19 05:11:14 UTC) #11
kal
Patch Set 3 allows complete static libraries to depend on incomplete static libraries again and ...
5 years, 11 months ago (2015-01-14 23:30:36 UTC) #12
kal
Can we get this merged?
5 years, 9 months ago (2015-03-15 16:39:35 UTC) #13
brettw
Sorry this fell off my list. We should have a test for this, doubly so ...
5 years, 8 months ago (2015-04-06 22:33:46 UTC) #14
brettw
not LGTM without a test <-- to make CQ do the right thing.
5 years, 8 months ago (2015-04-06 22:34:21 UTC) #15
kal
Brett what test is needed to make CQ happy? Or will any test suffice? https://codereview.chromium.org/572893002/diff/60001/tools/gn/target.cc ...
5 years, 8 months ago (2015-04-27 21:10:34 UTC) #16
brettw
What I mean there was just to undo the previous good review so CQ wouldn't ...
5 years, 8 months ago (2015-04-27 21:30:16 UTC) #17
kal
I made some tests. I think its ready now. Please review.
4 years, 8 months ago (2016-04-20 20:12:31 UTC) #18
brettw
https://codereview.chromium.org/572893002/diff/80001/tools/gn/ninja_binary_target_writer.cc File tools/gn/ninja_binary_target_writer.cc (left): https://codereview.chromium.org/572893002/diff/80001/tools/gn/ninja_binary_target_writer.cc#oldcode950 tools/gn/ninja_binary_target_writer.cc:950: I liked this blank line here as it was ...
4 years, 8 months ago (2016-04-21 20:47:00 UTC) #21
brettw
LGTM with my last set of comments addressed.
4 years, 8 months ago (2016-04-21 20:47:12 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/572893002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/572893002/100001
4 years, 8 months ago (2016-04-22 05:04:09 UTC) #25
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 8 months ago (2016-04-22 06:18:38 UTC) #27
commit-bot: I haz the power
4 years, 8 months ago (2016-04-22 19:44:52 UTC) #29
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/33d9b3bf67d9e64cb476784a0f120a81e546eba5
Cr-Commit-Position: refs/heads/master@{#389041}

Powered by Google App Engine
This is Rietveld 408576698