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

Issue 565283002: GN: Add notion of 'complete' static libraries, akin to GYP. (Closed)

Created:
6 years, 3 months ago by Chris Masone
Modified:
6 years, 3 months ago
Reviewers:
brettw
CC:
chromium-reviews, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

GN: Add notion of 'complete' static libraries, akin to GYP. In general, GN assumes that static libraries are intermediate targets and will forward their child dependencies up the tree until a "final" target is reached. Until now, this meant only shared_library and executable targets. This change introduces the notion of a "complete" static_library target which is linked and, as such, suitable for distribution. BUG=413776 TEST=gn_unittests R=brettw@chromium.org Committed: https://crrev.com/a426cf930c6bb1955b2662be12534fc9dce2030e Cr-Commit-Position: refs/heads/master@{#294709}

Patch Set 1 #

Patch Set 2 : Actually added the variable now #

Total comments: 8

Patch Set 3 : Fix test in Target::PullDependentTargetInfo, add test #

Total comments: 6

Patch Set 4 : Actually process new argument. Duh. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+149 lines, -21 lines) Patch
M tools/gn/binary_target_generator.h View 2 chunks +1 line, -1 line 0 comments Download
M tools/gn/binary_target_generator.cc View 1 2 3 2 chunks +15 lines, -0 lines 0 comments Download
M tools/gn/ninja_binary_target_writer.cc View 1 2 3 1 chunk +17 lines, -18 lines 0 comments Download
M tools/gn/ninja_binary_target_writer_unittest.cc View 1 chunk +32 lines, -0 lines 0 comments Download
M tools/gn/target.h View 1 2 3 3 chunks +12 lines, -0 lines 0 comments Download
M tools/gn/target.cc View 1 2 3 chunks +7 lines, -2 lines 0 comments Download
M tools/gn/target_unittest.cc View 1 2 1 chunk +35 lines, -0 lines 0 comments Download
M tools/gn/variables.h View 1 chunk +4 lines, -0 lines 0 comments Download
M tools/gn/variables.cc View 1 2 2 chunks +26 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (1 generated)
Chris Masone
PLZ advise on what test cases I missed. I'm sure there are more things I ...
6 years, 3 months ago (2014-09-12 17:32:57 UTC) #1
brettw
Looks pretty good, I noticed only one omission https://codereview.chromium.org/565283002/diff/20001/tools/gn/target.cc File tools/gn/target.cc (right): https://codereview.chromium.org/565283002/diff/20001/tools/gn/target.cc#newcode244 tools/gn/target.cc:244: if ...
6 years, 3 months ago (2014-09-12 20:53:34 UTC) #2
Chris Masone
https://codereview.chromium.org/565283002/diff/20001/tools/gn/target.cc File tools/gn/target.cc (right): https://codereview.chromium.org/565283002/diff/20001/tools/gn/target.cc#newcode244 tools/gn/target.cc:244: if (dep->output_type() != SHARED_LIBRARY && On 2014/09/12 20:53:33, brettw ...
6 years, 3 months ago (2014-09-12 22:56:37 UTC) #3
brettw
lgtm https://codereview.chromium.org/565283002/diff/40001/tools/gn/ninja_binary_target_writer.cc File tools/gn/ninja_binary_target_writer.cc (right): https://codereview.chromium.org/565283002/diff/40001/tools/gn/ninja_binary_target_writer.cc#newcode413 tools/gn/ninja_binary_target_writer.cc:413: if (target_->IsFinal()) { Can we just re-use can_link_libs ...
6 years, 3 months ago (2014-09-12 23:01:46 UTC) #4
Chris Masone
On 2014/09/12 22:56:37, Chris Masone wrote: > https://codereview.chromium.org/565283002/diff/20001/tools/gn/target.cc > File tools/gn/target.cc (right): > > https://codereview.chromium.org/565283002/diff/20001/tools/gn/target.cc#newcode244 ...
6 years, 3 months ago (2014-09-12 23:03:08 UTC) #5
brettw
https://codereview.chromium.org/565283002/diff/40001/tools/gn/binary_target_generator.cc File tools/gn/binary_target_generator.cc (right): https://codereview.chromium.org/565283002/diff/40001/tools/gn/binary_target_generator.cc#newcode79 tools/gn/binary_target_generator.cc:79: void BinaryTargetGenerator::FillCompleteStaticLib() { You forgot to call this function, ...
6 years, 3 months ago (2014-09-12 23:05:07 UTC) #6
Chris Masone
On 2014/09/12 23:05:07, brettw wrote: > https://codereview.chromium.org/565283002/diff/40001/tools/gn/binary_target_generator.cc > File tools/gn/binary_target_generator.cc (right): > > https://codereview.chromium.org/565283002/diff/40001/tools/gn/binary_target_generator.cc#newcode79 > ...
6 years, 3 months ago (2014-09-12 23:08:13 UTC) #7
Chris Masone
https://codereview.chromium.org/565283002/diff/40001/tools/gn/binary_target_generator.cc File tools/gn/binary_target_generator.cc (right): https://codereview.chromium.org/565283002/diff/40001/tools/gn/binary_target_generator.cc#newcode79 tools/gn/binary_target_generator.cc:79: void BinaryTargetGenerator::FillCompleteStaticLib() { On 2014/09/12 23:05:06, brettw wrote: > ...
6 years, 3 months ago (2014-09-12 23:15:00 UTC) #8
brettw
still lgtm
6 years, 3 months ago (2014-09-12 23:17:25 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/565283002/60001
6 years, 3 months ago (2014-09-12 23:22:18 UTC) #11
commit-bot: I haz the power
Committed patchset #4 (id:60001) as 998ae50de876b88ce8839a28f2dfa37d505643ed
6 years, 3 months ago (2014-09-13 00:52:47 UTC) #12
commit-bot: I haz the power
6 years, 3 months ago (2014-09-13 00:56:55 UTC) #13
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/a426cf930c6bb1955b2662be12534fc9dce2030e
Cr-Commit-Position: refs/heads/master@{#294709}

Powered by Google App Engine
This is Rietveld 408576698