# This is an example of a simple SConstruct file for building
# programs against DOLFIN. To build this demo, just type 'scons'.


import commands
from glob import glob
import os

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 compiler flags from pkg-config
# Get compiler from pkg-config
compiler = commands.getoutput('pkg-config --variable=compiler dolfin')
env.ParseConfig("pkg-config dolfin --cflags --libs")

# Get all source files
sources = []
sources += glob(os.path.join('*.cpp'))

# Library name
env.SharedLibrary('dolfwave', sources)






