]> git.tdb.fi Git - builder.git/blob - source/systemlibrary.cpp
Migrate from msppath to mspfs
[builder.git] / source / systemlibrary.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 <msp/fs/path.h>
9 #include <msp/fs/utils.h>
10 #include "systemlibrary.h"
11
12 using namespace std;
13 using namespace Msp;
14
15 SystemLibrary::SystemLibrary(Builder &b, const string &n):
16         Target(b, 0, n)
17 {
18         libname=FS::basepart(FS::basename(n));
19         if(!libname.compare(0, 3, "lib"))
20                 libname.erase(0, 3);
21 }