evanlabs / gyp

Automatically exported from code.google.com/p/gyp
0 stars 0 forks source link

Configuration-specific libraries are ignored by ninja generator #317

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

...
'configurations' : {
 'Debug' : {
  'libraries' : ['libdbg'],
 }
}

What is the expected output? What do you see instead?

A generated makefile or MSVS project will include libdbg in the Debug config's 
link settings.  Whereas the ninja.build libs variable won't include it in the 
libs variable.

I think ninja.py ~line 913 should have something like

libs = spec.get('libraries', [])
libs.extend(config.get('libraries', []))
libraries = gyp.common.uniquer(map(self.ExpandSpecial, libs))

Original issue reported on code.google.com by rjogr...@google.com on 4 Jan 2013 at 12:10