Skip to content

Instantly share code, notes, and snippets.

Created January 10, 2012 18:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/1590458 to your computer and use it in GitHub Desktop.
Save anonymous/1590458 to your computer and use it in GitHub Desktop.
{
'targets': [
{
'target_name': 'ffi_bindings',
'sources': [
'src/ffi.cc'
, 'src/callback_info.cc'
, 'src/pointer.cc'
, 'src/threaded_callback_invokation.cc'
, 'src/foreign_caller.cc'
],
'include_dirs': [
'deps/libffi/include'
],
'conditions': [
['OS=="win"', {
'libraries': [
'deps/libffi/.libs/libffi.lib'
],
'dependencies': [
'deps/dlfcn-win32/dlfcn.gyp:dlfcn'
, 'deps/pthreads-win32/pthread.gyp:pthread'
]
}, {
'libraries': [
'deps/libffi/.libs/libffi.a'
],
}],
['OS=="mac"', {
'cxxflags': [ '-ObjC++' ],
'libraries': [
'-lobjc'
]
}]
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment