aboutsummaryrefslogtreecommitdiffstats
path: root/common/project.h
diff options
context:
space:
mode:
authorMiodrag Milanovic <mmicko@gmail.com>2018-08-08 20:14:18 +0200
committerMiodrag Milanovic <mmicko@gmail.com>2018-08-08 20:14:18 +0200
commit61bce47f3cb7b4adf1d5292b3c431ca4048ad038 (patch)
tree18ff4129f05a457f0afaf8edcef90fe73252ad24 /common/project.h
parentb326b03a5261a824f428fe0811a5376c8758b929 (diff)
downloadnextpnr-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.h5
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