diff options
author | Miodrag Milanovic <mmicko@gmail.com> | 2018-08-08 20:14:18 +0200 |
---|---|---|
committer | Miodrag Milanovic <mmicko@gmail.com> | 2018-08-08 20:14:18 +0200 |
commit | 61bce47f3cb7b4adf1d5292b3c431ca4048ad038 (patch) | |
tree | 18ff4129f05a457f0afaf8edcef90fe73252ad24 /common/project.h | |
parent | b326b03a5261a824f428fe0811a5376c8758b929 (diff) | |
download | nextpnr-61bce47f3cb7b4adf1d5292b3c431ca4048ad038.tar.gz nextpnr-61bce47f3cb7b4adf1d5292b3c431ca4048ad038.tar.bz2 nextpnr-61bce47f3cb7b4adf1d5292b3c431ca4048ad038.zip |
Use settings for json and pcf
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 |