Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added Windows-specific build configuration

Requires CUDA_PATH environment variable to be set.
  • Loading branch information...
commit 20d65673969cc5e4a8977c278557161e79d53e65 1 parent 29c6bfb
ajoslyn ajoslyn authored
Showing with 26 additions and 5 deletions.
  1. +26 −5 binding.gyp
31 binding.gyp
View
@@ -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"
- ],
+ ]
}
]
}
Please sign in to comment.
Something went wrong with that request. Please try again.