Skip to content

Commit

Permalink
Added Windows-specific build configuration
Browse files Browse the repository at this point in the history
Requires CUDA_PATH environment variable to be set.
  • Loading branch information
Aaron Joslyn committed Jan 9, 2013
1 parent 29c6bfb commit 20d6567
Showing 1 changed file with 26 additions and 5 deletions.
31 changes: 26 additions & 5 deletions binding.gyp
Expand Up @@ -24,12 +24,33 @@
'-lcuda',
]
}
}],
[ 'OS=="win"', {
'conditions': [
['target_arch=="x64"',
{
'variables': { 'arch': 'x64' }
}, {
'variables': { 'arch': 'Win32' }
}
],
],
'variables': {
'cuda_root%': '$(CUDA_PATH)'
},
'libraries': [
'-l<(cuda_root)/lib/<(arch)/cuda.lib',
],
"include_dirs": [
"<(cuda_root)/include",
],
}, {
"include_dirs": [
"/usr/local/cuda-5.0/include",
"/usr/local/cuda/include"
],
}]
],
"include_dirs": [
"/usr/local/cuda-5.0/include",
"/usr/local/cuda/include"
],
]
}
]
}

0 comments on commit 20d6567

Please sign in to comment.