[libcalamaresui] Be more careful about which bindings are in use
This commit is contained in:
parent
dbddeaba68
commit
633d6bda0d
@ -10,13 +10,16 @@
|
|||||||
|
|
||||||
#include "PythonJobModule.h"
|
#include "PythonJobModule.h"
|
||||||
|
|
||||||
|
#include "CalamaresConfig.h"
|
||||||
#ifdef WITH_PYBIND11
|
#ifdef WITH_PYBIND11
|
||||||
#include "python/PythonJob.h"
|
#include "python/PythonJob.h"
|
||||||
using JobType = Calamares::Python::Job;
|
using JobType = Calamares::Python::Job;
|
||||||
#else
|
#elif defined(WITH_BOOST_PYTHON)
|
||||||
// Old Boost::Python version
|
// Old Boost::Python version
|
||||||
#include "PythonJob.h"
|
#include "PythonJob.h"
|
||||||
using JobType = Calamares::PythonJob;
|
using JobType = Calamares::PythonJob;
|
||||||
|
#else
|
||||||
|
#error Python without bindings
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <QDir>
|
#include <QDir>
|
||||||
|
Loading…
Reference in New Issue
Block a user