Add target name preprocessor define

Adds the name of the current target as a preprocessor define. Uses the automatic variable _target_name in combination with late expansion.
This commit is contained in:
David Siegel 2014-11-30 13:02:30 +01:00
parent d3583d7f5d
commit 9ceb83862f

View file

@ -7,6 +7,7 @@
'<(node_root_dir)/deps/uv/include',
'<(node_root_dir)/deps/v8/include'
],
'defines': ['NODE_GYP_MODULE_NAME=>(_target_name)'],
'target_conditions': [
['_type=="loadable_module"', {