← Back to team overview

dolfin team mailing list archive

Re: Building applications

 

Anders Logg wrote:
How does one build an application against DOLFIN with scons?

Before, we had a (very simple) Makefile in each demo directory such
that the demos could be rebuilt individually and someone wanting to
write an application could just copy the Makefile somewhere else.

So, could we add a (very very simple) example somewhere that could be
used as a template?

This is how it's done in Unicorn:

SConstruct:
---

env = Environment()
env.ParseConfig('pkg-config --cflags --libs dolfin')
env.ParseConfig('pkg-config --cflags --libs unicorn')

env.Program('demo', ['main.cpp'])

---

It should just work by removing the Unicorn line?

 Johan



References