Permalink
Browse files

Added support for mac and cuda-5.0

  • Loading branch information...
1 parent 05c8959 commit 59006df6c76f49dd37737a54315f35bcff25a0f8 @kashif committed Aug 22, 2012
Showing with 16 additions and 2 deletions.
  1. +16 −2 binding.gyp
View
18 binding.gyp
@@ -10,10 +10,24 @@
"src/mem.cpp",
"src/module.cpp"
],
- "libraries": [
- "-L/usr/local/cuda/lib -lcuda"
+ 'conditions': [
+ [ 'OS=="mac"', {
+ "link_settings": {
+ "libraries": [
+ '$(SDKROOT)/System/Library/Frameworks/CUDA.framework',
+ ]
+ }
+ }],
+ [ 'OS=="linux"', {
+ "link_settings": {
+ "libraries": [
+ '-lcuda',
+ ]
+ }
+ }]
],
"include_dirs": [
+ "/usr/local/cuda-5.0/include",
"/usr/local/cuda/include"
],
}

0 comments on commit 59006df

Please sign in to comment.