diff options
author | Miodrag Milanović <mmicko@gmail.com> | 2018-08-08 11:22:01 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-08 11:22:01 -0700 |
commit | bc378fc3e4bbb16251f4076384eb6aaf25ef79e3 (patch) | |
tree | 18ff4129f05a457f0afaf8edcef90fe73252ad24 /common/project.h | |
parent | b326b03a5261a824f428fe0811a5376c8758b929 (diff) | |
parent | 61bce47f3cb7b4adf1d5292b3c431ca4048ad038 (diff) | |
download | nextpnr-bc378fc3e4bbb16251f4076384eb6aaf25ef79e3.tar.gz nextpnr-bc378fc3e4bbb16251f4076384eb6aaf25ef79e3.tar.bz2 nextpnr-bc378fc3e4bbb16251f4076384eb6aaf25ef79e3.zip |
Merge pull request #46 from YosysHQ/use_settings
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 |