2
# -*- coding: utf-8 -*-
4
# Copyright (C) 2006 Simula Research Laboratory
5
# Author: Ola Skavhaug, Åsmund Ødegård
9
from os.path import sep, join
11
from commonPkgConfigUtils import *
13
def pkgTests(forceCompiler=None, sconsEnv=None, **kwargs):
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):
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"""
31
if __name__ == "__main__":
32
generatePkgConf(directory=".")