oh, yes, I misunderstand the second one.
For the first one, I mean gyp won't be aware of debug/release, right?