1
# This is an example of a simple SConstruct file for building
2
# programs against DOLFIN. To build this demo, just type 'scons'.
6
# Get compiler from pkg-config
7
compiler = commands.getoutput('pkg-config --variable=compiler dolfin')
9
# Create a SCons Environment based on the main os environment
10
env = Environment(ENV=os.environ, CXX=compiler)
12
# Get compiler flags from pkg-config
13
env.ParseConfig('pkg-config --cflags --libs dolfin')
16
env.Program('demo', 'main.cpp')