diff options
author | Miodrag Milanovic <mmicko@gmail.com> | 2018-06-23 14:32:18 +0200 |
---|---|---|
committer | Miodrag Milanovic <mmicko@gmail.com> | 2018-06-23 14:32:49 +0200 |
commit | 82ec1be31f2a13bca04cf1a6b69789c9cee0e535 (patch) | |
tree | fed19ab35ad400d2642da1c4a327d89b0ff90f36 /common | |
parent | b63fdfbeab5abb390c5c2c7b069672c9c8e06c82 (diff) | |
download | nextpnr-82ec1be31f2a13bca04cf1a6b69789c9cee0e535.tar.gz nextpnr-82ec1be31f2a13bca04cf1a6b69789c9cee0e535.tar.bz2 nextpnr-82ec1be31f2a13bca04cf1a6b69789c9cee0e535.zip |
Added BUILD_GUI, BUILD_PYTHON and BUILD_TESTS cmake options,
Diffstat (limited to 'common')
-rw-r--r-- | common/emb.cc | 3 | ||||
-rw-r--r-- | common/handle_error.cc | 4 | ||||
-rw-r--r-- | common/pybindings.cc | 4 |
3 files changed, 11 insertions, 0 deletions
diff --git a/common/emb.cc b/common/emb.cc index 2e3379d5..27c5d6e1 100644 --- a/common/emb.cc +++ b/common/emb.cc @@ -5,6 +5,7 @@ // http://www.boost.org/LICENSE_1_0.txt) // // Blog article: http://mateusz.loskot.net/?p=2819 +#ifndef NO_PYTHON #include "emb.h" #include <Python.h> @@ -136,3 +137,5 @@ void reset_stdout() void append_inittab() { PyImport_AppendInittab("emb", emb::PyInit_emb); } } // namespace emb + +#endif // NO_PYTHON
\ No newline at end of file diff --git a/common/handle_error.cc b/common/handle_error.cc index 7076c188..a091f07e 100644 --- a/common/handle_error.cc +++ b/common/handle_error.cc @@ -1,3 +1,5 @@ +#ifndef NO_PYTHON + #include <Python.h> #include <boost/python.hpp> #include "nextpnr.h" @@ -61,3 +63,5 @@ std::string parse_python_exception() } NEXTPNR_NAMESPACE_END + +#endif // NO_PYTHON
\ No newline at end of file diff --git a/common/pybindings.cc b/common/pybindings.cc index a9c32c1c..b67320a2 100644 --- a/common/pybindings.cc +++ b/common/pybindings.cc @@ -18,6 +18,8 @@ * */ +#ifndef NO_PYTHON + #include "pybindings.h" #include "emb.h" #include "jsonparse.h" @@ -186,3 +188,5 @@ void execute_python_file(const char *python_file) } NEXTPNR_NAMESPACE_END + +#endif // NO_PYTHON
\ No newline at end of file |