diff options
Diffstat (limited to 'common/project.h')
-rw-r--r-- | common/project.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/common/project.h b/common/project.h index 14f03ecd..03b4b7b5 100644 --- a/common/project.h +++ b/common/project.h @@ -20,6 +20,7 @@ #ifndef PROJECT_H #define PROJECT_H +#include <boost/filesystem/convenience.hpp> #include <boost/property_tree/ptree.hpp> #include "nextpnr.h" @@ -32,11 +33,13 @@ struct ProjectHandler void save(Context *ctx, std::string filename); std::unique_ptr<Context> load(std::string filename); // implemented per arch - void saveArch(Context *ctx, pt::ptree &root); + void saveArch(Context *ctx, pt::ptree &root, std::string path); std::unique_ptr<Context> createContext(pt::ptree &root); void loadArch(Context *ctx, pt::ptree &root, std::string path); }; +boost::filesystem::path make_relative(boost::filesystem::path child, boost::filesystem::path parent); + NEXTPNR_NAMESPACE_END #endif // PROJECT_H |