]> git.tdb.fi Git - builder.git/blobdiff - source/objectfile.cpp
Migrate from msppath to mspfs
[builder.git] / source / objectfile.cpp
index c5a87fde883117e61d2cafdce85bae1a4656213e..778f74642acc72ca476f2a70224db1e886f7bd2e 100644 (file)
@@ -6,7 +6,7 @@ Distributed under the LGPL
 */
 
 #include <algorithm>
-#include <msp/path/utils.h>
+#include <msp/fs/utils.h>
 #include "builder.h"
 #include "compile.h"
 #include "component.h"
@@ -96,5 +96,5 @@ Action *ObjectFile::create_action()
 string ObjectFile::generate_target_name(const Component &comp, const string &src)
 {
        const SourcePackage &pkg=comp.get_package();
-       return (pkg.get_temp_dir()/comp.get_name()/(splitext(basename(src)).base+".o")).str();
+       return (pkg.get_temp_dir()/comp.get_name()/(FS::basepart(FS::basename(src))+".o")).str();
 }