Browse Source

build: fix the case where config.gypi doesn't exist

v0.9.1-release
Shigeki Ohtsu 13 years ago
committed by Ben Noordhuis
parent
commit
58e5d69250
  1. 1
      common.gypi
  2. 1
      tools/gyp_addon

1
common.gypi

@ -10,6 +10,7 @@
},
'target_defaults': {
'default_configuration': 'Debug',
'configurations': {
'Debug': {
'defines': [ 'DEBUG', '_DEBUG' ],

1
tools/gyp_addon

@ -15,6 +15,7 @@ if __name__ == '__main__':
config_gypi = os.path.join(node_root, 'config.gypi')
args.extend(['-I', addon_gypi])
args.extend(['-I', common_gypi])
if os.path.exists(config_gypi):
args.extend(['-I', config_gypi])
args.extend(['-Dlibrary=shared_library'])
args.extend(['-Dvisibility=default'])

Loading…
Cancel
Save