]> git.tdb.fi Git - builder.git/blob - source/pkgconfig.cpp
Rework the Target class hierarchy
[builder.git] / source / pkgconfig.cpp
1 /* $Id$
2
3 This file is part of builder
4 Copyright © 2006-2009  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         FileTarget(b, &p, p.get_source()/(p.get_name()+".pc"))
14 {
15         buildable=true;
16 }
17
18 Action *PkgConfig::create_action()
19 {
20         return new PkgConfigAction(builder, *this);
21 }