node-gyp Debug|Release configuration variable

2.9k Views Asked by At

is there a way, how to tell if the configuration is set to Debug or Release inside of a bindings.gyp?

For example in Visual Studio there is a variable $(Configuration), which contains this information. Does something similar exist in gyp?

Thanks

1

There are 1 best solutions below

0
On

node's own common.gypi contains an example of how to configure things differently depending on the build configuration.