mirror of
https://github.com/nodejs/node.git
synced 2024-12-01 16:10:02 +01:00
f782824d48
Updated gyp has "else if" syntax in condition. Use this for target_arch and OS switches. Several sources, defines, rules and libraries variables moved to gypi files. PR-URL: https://github.com/iojs/io.js/pull/1325 Reviewed-By: Fedor Indutny <fedor@indutny.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
45 lines
1.2 KiB
Python
45 lines
1.2 KiB
Python
{
|
|
'conditions': [
|
|
['target_arch=="ia32"', {
|
|
'rules': [
|
|
{
|
|
'rule_name': 'Assemble',
|
|
'extension': 'asm',
|
|
'inputs': [],
|
|
'outputs': [
|
|
'<(INTERMEDIATE_DIR)/<(RULE_INPUT_ROOT).obj',
|
|
],
|
|
'action': [
|
|
'ml.exe',
|
|
'/Zi',
|
|
'/safeseh',
|
|
'/Fo', '<(INTERMEDIATE_DIR)/<(RULE_INPUT_ROOT).obj',
|
|
'/c', '<(RULE_INPUT_PATH)',
|
|
],
|
|
'process_outputs_as_sources': 0,
|
|
'message': 'Assembling <(RULE_INPUT_PATH) to <(INTERMEDIATE_DIR)/<(RULE_INPUT_ROOT).obj.',
|
|
}
|
|
],
|
|
}, 'target_arch=="x64"', {
|
|
'rules': [
|
|
{
|
|
'rule_name': 'Assemble',
|
|
'extension': 'asm',
|
|
'inputs': [],
|
|
'outputs': [
|
|
'<(INTERMEDIATE_DIR)/<(RULE_INPUT_ROOT).obj',
|
|
],
|
|
'action': [
|
|
'ml64.exe',
|
|
'/Zi',
|
|
'/Fo', '<(INTERMEDIATE_DIR)/<(RULE_INPUT_ROOT).obj',
|
|
'/c', '<(RULE_INPUT_PATH)',
|
|
],
|
|
'process_outputs_as_sources': 0,
|
|
'message': 'Assembling <(RULE_INPUT_PATH) to <(INTERMEDIATE_DIR)/<(RULE_INPUT_ROOT).obj.',
|
|
}
|
|
],
|
|
}],
|
|
],
|
|
}
|