diff options
author | Tobias Schmidl <T.Schmidl@erhardt-leimer.com> | 2016-02-10 09:52:10 +0100 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2016-02-11 09:31:51 +0100 |
commit | 06c081780e0937288e96f95022811b9de9f6397a (patch) | |
tree | a9f0ae48c498db44fa354abe9baedcefda899b51 /rules/boost.make | |
parent | c8c7c0f4c99caca114dd4b6ff3eef5a57c89e6c5 (diff) | |
download | ptxdist-06c081780e0937288e96f95022811b9de9f6397a.tar.gz ptxdist-06c081780e0937288e96f95022811b9de9f6397a.tar.xz |
Added support for boost.python
This works both against python2 and python3.
Signed-off-by: Tobias Schmidl <T.Schmidl@erhardt-leimer.com>
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules/boost.make')
-rw-r--r-- | rules/boost.make | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/rules/boost.make b/rules/boost.make index e9a1e334f..46858d020 100644 --- a/rules/boost.make +++ b/rules/boost.make @@ -132,6 +132,16 @@ $(STATEDIR)/boost.prepare: cd $(BOOST_DIR) && ./bootstrap.sh $(BOOST_CONF_OPT) @cd $(BOOST_DIR) && \ echo "using gcc : $(PTXCONF_ARCH_STRING) : $(CROSS_CXX) ;" > $(BOOST_DIR)/user-config.jam + +ifdef PTXCONF_BOOST_PYTHON3 + @cd $(BOOST_DIR) && \ + echo "using python : $(PYTHON3_MAJORMINOR) : $(SYSROOT)/usr/bin/python : $(SYSROOT)/usr/include/python$(PYTHON3_MAJORMINOR)m : $(SYSROOT)/usr/lib/python$(PYTHON3_MAJORMINOR) ;" >> $(BOOST_DIR)/user-config.jam +endif +ifdef PTXCONF_BOOST_PYTHON2 + @cd $(BOOST_DIR) && \ + echo "using python : $(PYTHON_MAJORMINOR) : $(SYSROOT)/usr/bin/python : $(SYSROOT)/usr/include/python$(PYTHON_MAJORMINOR)m : $(SYSROOT)/usr/lib/python$(PYTHON_MAJORMINOR) ;" >> $(BOOST_DIR)/user-config.jam +endif + @echo "all:" > $(BOOST_DIR)/Makefile @echo ' @$(BOOST_JAM) $(JAM_MAKE_OPT)' >> $(BOOST_DIR)/Makefile @echo "install:" >> $(BOOST_DIR)/Makefile |