-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathSConscript
More file actions
27 lines (19 loc) · 833 Bytes
/
Copy pathSConscript
File metadata and controls
27 lines (19 loc) · 833 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/usr/bin/env python3
import os
Import('envcontrib')
envPyCuAmpcor = envcontrib.Clone()
package = envPyCuAmpcor['PACKAGE']
project = 'pycuampcor'
envPyCuAmpcor['PROJECT'] = project
Export('envPyCuAmpcor')
if envPyCuAmpcor['GPU_ACC_ENABLED']:
envPyCuAmpcor.Append(CPPPATH=envPyCuAmpcor['CUDACPPPATH'])
envPyCuAmpcor.Append(LIBPATH=envPyCuAmpcor['CUDALIBPATH'])
envPyCuAmpcor.Append(LIBS=['cudart','cufft','cublas'])
cudaScons = os.path.join('src', 'SConscript')
SConscript(cudaScons, variant_dir=os.path.join(envPyCuAmpcor['PRJ_SCONS_BUILD'], package, project, 'src'))
install = os.path.join(envPyCuAmpcor['PRJ_SCONS_INSTALL'],package,project)
initFile = 'pycuampcor/__init__.py'
listFiles = [initFile]
envPyCuAmpcor.Install(install, listFiles)
envPyCuAmpcor.Alias('install', install)