]> git.tdb.fi Git - builder.git/blob - source/pkgconfig.cpp
d31ab9d2d9ce01cc4d8be570ba37d3fe428ea9f0
[builder.git] / source / pkgconfig.cpp
1 /* $Id$
2
3 This file is part of builder
4 Copyright © 2006-2007 Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
6 */
7
8 #include "package.h"
9 #include "pkgconfig.h"
10 #include "pkgconfigaction.h"
11
12 PkgConfig::PkgConfig(Builder &b, const SourcePackage &p):
13         Target(b, &p, (p.get_source()/(p.get_name()+".pc")).str()),
14         pkg(p)
15 {
16         buildable=true;
17 }
18
19 Action *PkgConfig::build()
20 {
21         return Target::build(new PkgConfigAction(builder, *this));
22 }