# Copyright (C) 2008 Kristian B. Oelgaard and Garth N. Wells.
# Licensed under the GNU LGPL Version 3.
#
# First added:  2009-07-10
# Last changed: 2009-07-10
#

import commands
import os

# Get compiler from pkg-config
compiler = commands.getoutput('pkg-config --variable=compiler dolfin')

# Create a SCons Environment based on the main os environment
env = Environment(ENV=os.environ, CXX=compiler)

# Get cflags and libs from DOLFIN and FEniCS-plasticity
env.ParseConfig('pkg-config --cflags --libs dolfin')
env.ParseConfig('pkg-config --cflags --libs new-app')

# Build program
env.Program('demo', 'main.cpp')

