Created
July 10, 2012 02:03
-
-
Save malyn/3080523 to your computer and use it in GitHub Desktop.
malyn/node-midi binding.gyp with Mac OS X framework libraries
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
'targets': [ | |
{ | |
'target_name': 'midi', | |
'include_dirs': [ | |
'src' | |
], | |
'sources': [ | |
'src/node-midi.cpp' | |
], | |
'conditions': [ | |
['OS=="linux"', | |
{ | |
'cflags_cc!': [ | |
'-fno-exceptions' | |
], | |
'defines': [ | |
'__LINUX_ALSASEQ__' | |
], | |
'link_settings': { | |
'libraries': [ | |
'-lasound', | |
'-lpthread', | |
] | |
} | |
} | |
], | |
['OS=="mac"', | |
{ | |
'defines': [ | |
'__MACOSX_CORE__' | |
], | |
'link_settings': { | |
'libraries': [ | |
'-framework', 'CoreMidi', | |
'-framework', 'CoreAudio', | |
'-framework', 'CoreFoundation', | |
] | |
}, | |
'xcode_settings': { | |
'GCC_ENABLE_CPP_EXCEPTIONS': 'YES' | |
} | |
} | |
], | |
['OS=="win"', | |
{ | |
'defines': [ | |
'__WINDOWS_MM__' | |
], | |
'link_settings': { | |
'libraries': [ | |
'-lwinmm.lib' | |
], | |
} | |
} | |
] | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Doesn't work with
node-gyp configure -- -f xcode