mirror of
https://github.com/electron/node-gyp.git
synced 2025-08-15 12:58:19 +02:00
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:
parent
d3583d7f5d
commit
9ceb83862f
1 changed files with 1 additions and 0 deletions
|
@ -7,6 +7,7 @@
|
||||||
'<(node_root_dir)/deps/uv/include',
|
'<(node_root_dir)/deps/uv/include',
|
||||||
'<(node_root_dir)/deps/v8/include'
|
'<(node_root_dir)/deps/v8/include'
|
||||||
],
|
],
|
||||||
|
'defines': ['NODE_GYP_MODULE_NAME=>(_target_name)'],
|
||||||
|
|
||||||
'target_conditions': [
|
'target_conditions': [
|
||||||
['_type=="loadable_module"', {
|
['_type=="loadable_module"', {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue