Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
build: fix the case where config.gypi doesn't exist
  • Loading branch information
Shigeki Ohtsu authored and bnoordhuis committed Feb 23, 2012
1 parent 680d75a commit 58e5d69
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions common.gypi
Expand Up @@ -10,6 +10,7 @@
},

'target_defaults': {
'default_configuration': 'Debug',
'configurations': {
'Debug': {
'defines': [ 'DEBUG', '_DEBUG' ],
Expand Down
3 changes: 2 additions & 1 deletion tools/gyp_addon
Expand Up @@ -15,7 +15,8 @@ if __name__ == '__main__':
config_gypi = os.path.join(node_root, 'config.gypi')
args.extend(['-I', addon_gypi])
args.extend(['-I', common_gypi])
args.extend(['-I', config_gypi])
if os.path.exists(config_gypi):
args.extend(['-I', config_gypi])
args.extend(['-Dlibrary=shared_library'])
args.extend(['-Dvisibility=default'])
args.extend(['-Dnode_root_dir=%s' % node_root])
Expand Down

0 comments on commit 58e5d69

Please sign in to comment.