Skip to content

Commit

Permalink
Merge pull request #7 from pfernique/master
Browse files Browse the repository at this point in the history
Add AutoWIG in SCons
  • Loading branch information
pfernique committed Mar 8, 2017
2 parents 3ff7570 + 927133f commit 9a02a46
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 97 deletions.
78 changes: 0 additions & 78 deletions AutoWIG.py

This file was deleted.

19 changes: 18 additions & 1 deletion src/cpp/SConscript
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,21 @@ sources = [source for source in cppenv.Glob('*.*') if not source.name in exclude

targets = cppenv.CppLibrary("statiskit_stl", sources)
Alias("cpp", targets)
Alias("install", targets)
Alias("autowig", targets)
Alias("install", targets)

try:
wigenv = cppenv.Clone(tools = ['wig'])

targets = wigenv.BoostPythonWIG('statiskit_stl', [target for target in targets if target.name.endswith('.h')],
module='../py/_stl.cpp',
decorator='../py/statiskit/stl/_stl.py',
parser_bootstrap=1,
controller='AutoWIG.py',
generator='AutoWIG.py')
Alias("autowig", targets)
Alias("install", targets)
except EnvironmentError:
pass
except Exception:
raise

0 comments on commit 9a02a46

Please sign in to comment.