]> git.tdb.fi Git - builder.git/blobdiff - source/systemlibrary.cpp
Migrate from msppath to mspfs
[builder.git] / source / systemlibrary.cpp
index 00cbddc5b67e5306161c4ddd8669a72e15bcddd7..cbeab4a70d3100e17ba0b5b04e8d414a05d96311 100644 (file)
@@ -1,4 +1,12 @@
-#include <msp/path/utils.h>
+/* $Id$
+
+This file is part of builder
+Copyright © 2006-2007 Mikko Rasa, Mikkosoft Productions
+Distributed under the LGPL
+*/
+
+#include <msp/fs/path.h>
+#include <msp/fs/utils.h>
 #include "systemlibrary.h"
 
 using namespace std;
@@ -7,7 +15,7 @@ using namespace Msp;
 SystemLibrary::SystemLibrary(Builder &b, const string &n):
        Target(b, 0, n)
 {
-       libname=Path::splitext(Path::basename(n)).base;
+       libname=FS::basepart(FS::basename(n));
        if(!libname.compare(0, 3, "lib"))
                libname.erase(0, 3);
 }