~ubuntu-branches/ubuntu/maverick/dolfin/maverick

« back to all changes in this revision

Viewing changes to demo/pde/stokes/taylor-hood/cpp/SConstruct

  • Committer: Bazaar Package Importer
  • Author(s): Johannes Ring
  • Date: 2008-09-16 08:41:20 UTC
  • Revision ID: james.westby@ubuntu.com-20080916084120-i8k3u6lhx3mw3py3
Tags: upstream-0.9.2
ImportĀ upstreamĀ versionĀ 0.9.2

Show diffs side-by-side

added added

removed removed

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