~njansson/dolfin/hpc

« back to all changes in this revision

Viewing changes to scons/simula-scons/simula_scons/pkgconfiggenerators/dolfin.py

  • Committer: Johannes Ring
  • Date: 2008-03-05 22:43:06 UTC
  • Revision ID: johannr@simula.no-20080305224306-2npsdyhfdpl2esji
The BIG commit!

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/env python
 
2
# -*- coding: utf-8 -*-
 
3
#
 
4
# Copyright (C) 2006 Simula Research Laboratory
 
5
# Author: Ola Skavhaug, Åsmund Ødegård
 
6
 
 
7
from os import system
 
8
import os, sys
 
9
from os.path import sep, join
 
10
 
 
11
from commonPkgConfigUtils import *
 
12
 
 
13
def pkgTests(forceCompiler=None, sconsEnv=None, **kwargs):
 
14
    return True
 
15
 
 
16
# Generate a pkg-config file for dolfin, put it in the given 
 
17
# directory, if no directory is given, a suitable location is found 
 
18
# using the functionality from commonPkgConfigUtils.
 
19
# Nothing in kwargs is used, it is included to ensure a consitent 
 
20
# interface for the generatePkgConf function.
 
21
def generatePkgConf(directory=suitablePkgConfDir(),**kwargs):
 
22
    
 
23
    print """\nError:\n\nDolfin now supplies its own pkg-config file, which we are
 
24
unable to find! Either copy that file to a directory search by pkg-config, or 
 
25
add the directory where dolfin installs the file to your PKG_CONFIG_PATH 
 
26
environment variable. The directory in question is $prefix/lib/pkgconfig, where 
 
27
$prefix is the install prefix for Dolfin\n\n"""
 
28
 
 
29
    sys.exit(1)
 
30
 
 
31
if __name__ == "__main__":
 
32
    generatePkgConf(directory=".")