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

Issue 9424042: Support import libraries for Windows ninja (Closed)

Created:
8 years, 10 months ago by scottmg
Modified:
8 years, 10 months ago
Reviewers:
Nico, Evan Martin
CC:
gyp-developer_googlegroups.com
Visibility:
Public.

Description

Support import libraries for Windows ninja There's 2 outputs for a shared library link on Windows, the .dll and a .lib to link other targets against. Split up the link step to generate these and link against the .lib rather than .dll. Committed: https://code.google.com/p/gyp/source/detail?r=1224

Patch Set 1 #

Patch Set 2 : #

Total comments: 11

Patch Set 3 : #

Patch Set 4 : #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -9 lines) Patch
M pylib/gyp/generator/ninja.py View 1 2 3 5 chunks +17 lines, -8 lines 2 comments Download
M test/lib/TestGyp.py View 1 2 3 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 13 (0 generated)
scottmg
8 years, 10 months ago (2012-02-21 04:33:28 UTC) #1
Evan Martin
weak LGTM, maybe thakis has input https://chromiumcodereview.appspot.com/9424042/diff/3001/pylib/gyp/generator/ninja.py File pylib/gyp/generator/ninja.py (right): https://chromiumcodereview.appspot.com/9424042/diff/3001/pylib/gyp/generator/ninja.py#newcode691 pylib/gyp/generator/ninja.py:691: extra_link_deps.add(target.import_library or target.binary) ...
8 years, 10 months ago (2012-02-21 18:10:47 UTC) #2
Nico
https://chromiumcodereview.appspot.com/9424042/diff/3001/pylib/gyp/generator/ninja.py File pylib/gyp/generator/ninja.py (right): https://chromiumcodereview.appspot.com/9424042/diff/3001/pylib/gyp/generator/ninja.py#newcode691 pylib/gyp/generator/ninja.py:691: extra_link_deps.add(target.import_library or target.binary) Why is this needed? It looks ...
8 years, 10 months ago (2012-02-21 18:20:54 UTC) #3
Evan Martin
https://chromiumcodereview.appspot.com/9424042/diff/3001/pylib/gyp/generator/ninja.py File pylib/gyp/generator/ninja.py (right): https://chromiumcodereview.appspot.com/9424042/diff/3001/pylib/gyp/generator/ninja.py#newcode691 pylib/gyp/generator/ninja.py:691: extra_link_deps.add(target.import_library or target.binary) On 2012/02/21 18:20:54, Nico wrote: > ...
8 years, 10 months ago (2012-02-21 18:23:45 UTC) #4
Nico
https://chromiumcodereview.appspot.com/9424042/diff/3001/pylib/gyp/generator/ninja.py File pylib/gyp/generator/ninja.py (right): https://chromiumcodereview.appspot.com/9424042/diff/3001/pylib/gyp/generator/ninja.py#newcode691 pylib/gyp/generator/ninja.py:691: extra_link_deps.add(target.import_library or target.binary) On 2012/02/21 18:23:45, Evan Martin wrote: ...
8 years, 10 months ago (2012-02-21 18:27:40 UTC) #5
scottmg1
On 2012/02/21 18:27:40, Nico wrote: > https://chromiumcodereview.appspot.com/9424042/diff/3001/pylib/gyp/generator/ninja.py > File pylib/gyp/generator/ninja.py (right): > > https://chromiumcodereview.appspot.com/9424042/diff/3001/pylib/gyp/generator/ninja.py#newcode691 > ...
8 years, 10 months ago (2012-02-21 18:30:38 UTC) #6
Nico
> Hmm, maybe, I'd have to try it. It feels a bit weird because the ...
8 years, 10 months ago (2012-02-21 18:38:54 UTC) #7
scottmg
I'll see what it's like to use .binary for the implib instead of the dll. ...
8 years, 10 months ago (2012-02-21 18:45:46 UTC) #8
scottmg
On 2012/02/21 18:45:46, scottmg wrote: > I'll see what it's like to use .binary for ...
8 years, 10 months ago (2012-02-21 23:12:06 UTC) #9
Evan Martin
On 2012/02/21 23:12:06, scottmg wrote: > On 2012/02/21 18:45:46, scottmg wrote: > > I'll see ...
8 years, 10 months ago (2012-02-21 23:22:48 UTC) #10
Nico
https://chromiumcodereview.appspot.com/9424042/diff/9001/pylib/gyp/generator/ninja.py File pylib/gyp/generator/ninja.py (right): https://chromiumcodereview.appspot.com/9424042/diff/9001/pylib/gyp/generator/ninja.py#newcode729 pylib/gyp/generator/ninja.py:729: output = [output, import_lib] Is this last line still ...
8 years, 10 months ago (2012-02-22 00:46:23 UTC) #11
scottmg
https://chromiumcodereview.appspot.com/9424042/diff/9001/pylib/gyp/generator/ninja.py File pylib/gyp/generator/ninja.py (right): https://chromiumcodereview.appspot.com/9424042/diff/9001/pylib/gyp/generator/ninja.py#newcode729 pylib/gyp/generator/ninja.py:729: output = [output, import_lib] On 2012/02/22 00:46:23, Nico wrote: ...
8 years, 10 months ago (2012-02-22 00:53:42 UTC) #12
Nico
8 years, 10 months ago (2012-02-22 00:55:12 UTC) #13
> Yes, still required because there has to be a build rule that outputs both the
> lib and the dll so both outputs have to be passed to self.ninja.build(output,
> ...). (Is that what you meant?)

Does anything actually need a build rule for the dll? (Maybe an actions copy
step?)

But LGTM either way.

Powered by Google App Engine
This is Rietveld 408576698