Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F102724425
SConscript
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, Feb 23, 13:16
Size
1 KB
Mime Type
text/x-python
Expires
Tue, Feb 25, 13:16 (2 d)
Engine
blob
Format
Raw Data
Handle
24405795
Attached To
rTAMAASPUB tamaas-public
SConscript
View Options
from __future__ import print_function
import os
from os.path import abspath, basename
import re
Import('main_env')
# Pybind11 wrapper
env_pybind = main_env.Clone(SHLIBPREFIX='')
env_pybind.Tool(pybind11)
pybind_sources = Split("""
tamaas_module.cpp
wrap/core.cpp
wrap/percolation.cpp
wrap/surface.cpp
wrap/model.cpp
wrap/solvers.cpp
""")
if main_env['CXX'] != 'icpc':
pybind_sources += ["wrap/bem.cpp"]
env_pybind.AppendUnique(CPPDEFINES="LEGACY_BEM")
# Building the pybind library
tamaas_wrap = env_pybind.SharedLibrary(
target='tamaas/_tamaas',
source=pybind_sources,
LIBS=['Tamaas'],
RPATH=[abspath('../src')]
)
# For some reason link happens too early
Import('libTamaas')
Depends(tamaas_wrap, libTamaas)
# Copying the __init__.py file with extra python classes
copy_env = env_pybind.Clone(
PRINT_CMD_LINE_FUNC=main_env['gen_print']("Copying", "red", main_env))
copy_env.Command("tamaas/__init__.py", "#/python/tamaas.py", Copy("$TARGET", "$SOURCE"))
copy_env.Command("setup.py", "#/python/setup.py", Copy("$TARGET", "$SOURCE"))
Event Timeline
Log In to Comment