mirror of
https://github.com/boostorg/python.git
synced 2026-01-20 04:42:28 +00:00
22 lines
594 B
Python
22 lines
594 B
Python
# -*- 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(RPATH=[lib_path])
|
|
example_env.Append(LINKFLAGS = ["$__RPATH"]) # workaround for SCons bug #1644
|
|
example_env.Append(LIBS=["boost_numpy"])
|
|
|
|
example = []
|
|
|
|
for name in ("ufunc", "dtype", "fromdata", "ndarray", "simple"):
|
|
example.extend(example_env.Program(name, "%s.cpp" % name))
|
|
|
|
for name in ("gaussian",):
|
|
example.extend(example_env.SharedLibrary(name, "%s.cpp" % name, SHLIBPREFIX=""))
|
|
|
|
Return("example")
|