~njansson/dolfin/hpc

« back to all changes in this revision

Viewing changes to sandbox/ilmarw/test/SConstruct

  • Committer: Anders Logg
  • Date: 2008-05-22 06:46:27 UTC
  • mto: (2668.9.6 trunk)
  • mto: This revision was merged to the branch mainline in revision 2670.
  • Revision ID: logg@simula.no-20080522064627-rahrtqj3jqxnlc2j
More work on BCs

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')