2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-23 05:42:30 +00:00

overhauled scons scripts

This commit is contained in:
Jim Bosch
2012-03-18 18:57:14 -04:00
parent 35a62fea52
commit 38e68fa2ae
7 changed files with 250 additions and 664 deletions

View File

@@ -1,11 +1,19 @@
Import("boost_numpy_env")
# -*- python -*-
Import("env")
import os
example_env = env.Clone()
lib_path = os.path.abspath(os.path.join("..", "src"))
example_env.Append(LIBPATH=[lib_path])
example_env.Append(LIBS=["boost_numpy"])
example = []
for name in ("ufunc", "dtype", "fromdata", "ndarray", "simple"):
example.extend(boost_numpy_env.Program(name, "%s.cpp" % name, LIBS="boost_numpy"))
example.extend(example_env.Program(name, "%s.cpp" % name))
for name in ("gaussian",):
example.extend(boost_numpy_env.SharedLibrary(name, "%s.cpp" % name, SHLIBPREFIX="", LIBS="boost_numpy"))
example.extend(example_env.SharedLibrary(name, "%s.cpp" % name, SHLIBPREFIX=""))
Return("example")