rename PIInit BuildOption
This commit is contained in:
@@ -308,49 +308,49 @@ PIInit::~PIInit() {
|
|||||||
|
|
||||||
bool PIInit::isBuildOptionEnabled(PIInit::BuildOption o) {
|
bool PIInit::isBuildOptionEnabled(PIInit::BuildOption o) {
|
||||||
switch (o) {
|
switch (o) {
|
||||||
case ICU: return
|
case boICU: return
|
||||||
#ifdef PIP_ICU
|
#ifdef PIP_ICU
|
||||||
true;
|
true;
|
||||||
#else
|
#else
|
||||||
false;
|
false;
|
||||||
#endif
|
#endif
|
||||||
case USB: return
|
case boUSB: return
|
||||||
#ifdef PIP_USB
|
#ifdef PIP_USB
|
||||||
true;
|
true;
|
||||||
#else
|
#else
|
||||||
false;
|
false;
|
||||||
#endif
|
#endif
|
||||||
case Crypt: return
|
case boCrypt: return
|
||||||
#ifdef PIP_CRYPT
|
#ifdef PIP_CRYPT
|
||||||
true;
|
true;
|
||||||
#else
|
#else
|
||||||
false;
|
false;
|
||||||
#endif
|
#endif
|
||||||
case Introspection: return
|
case boIntrospection: return
|
||||||
#ifdef PIP_INTROSPECTION
|
#ifdef PIP_INTROSPECTION
|
||||||
true;
|
true;
|
||||||
#else
|
#else
|
||||||
false;
|
false;
|
||||||
#endif
|
#endif
|
||||||
case FFTW: return
|
case boFFTW: return
|
||||||
#ifdef PIP_FFTW
|
#ifdef PIP_FFTW
|
||||||
true;
|
true;
|
||||||
#else
|
#else
|
||||||
false;
|
false;
|
||||||
#endif
|
#endif
|
||||||
case Compress: return
|
case boCompress: return
|
||||||
#ifdef PIP_COMPRESS
|
#ifdef PIP_COMPRESS
|
||||||
true;
|
true;
|
||||||
#else
|
#else
|
||||||
false;
|
false;
|
||||||
#endif
|
#endif
|
||||||
case OpenCL: return
|
case boOpenCL: return
|
||||||
#ifdef PIP_OPENCL
|
#ifdef PIP_OPENCL
|
||||||
true;
|
true;
|
||||||
#else
|
#else
|
||||||
false;
|
false;
|
||||||
#endif
|
#endif
|
||||||
case Cloud: return
|
case boCloud: return
|
||||||
#ifdef PIP_CLOUD
|
#ifdef PIP_CLOUD
|
||||||
true;
|
true;
|
||||||
#else
|
#else
|
||||||
@@ -364,14 +364,14 @@ bool PIInit::isBuildOptionEnabled(PIInit::BuildOption o) {
|
|||||||
|
|
||||||
PIStringList PIInit::buildOptions() {
|
PIStringList PIInit::buildOptions() {
|
||||||
PIStringList ret;
|
PIStringList ret;
|
||||||
if (isBuildOptionEnabled(ICU)) ret << "ICU";
|
if (isBuildOptionEnabled(boICU)) ret << "ICU";
|
||||||
if (isBuildOptionEnabled(USB)) ret << "USB";
|
if (isBuildOptionEnabled(boUSB)) ret << "USB";
|
||||||
if (isBuildOptionEnabled(Crypt)) ret << "Crypt";
|
if (isBuildOptionEnabled(boCrypt)) ret << "Crypt";
|
||||||
if (isBuildOptionEnabled(Introspection)) ret << "Introspection";
|
if (isBuildOptionEnabled(boIntrospection)) ret << "Introspection";
|
||||||
if (isBuildOptionEnabled(FFTW)) ret << "FFTW";
|
if (isBuildOptionEnabled(boFFTW)) ret << "FFTW";
|
||||||
if (isBuildOptionEnabled(Compress)) ret << "Compress";
|
if (isBuildOptionEnabled(boCompress)) ret << "Compress";
|
||||||
if (isBuildOptionEnabled(OpenCL)) ret << "OpenCL";
|
if (isBuildOptionEnabled(boOpenCL)) ret << "OpenCL";
|
||||||
if (isBuildOptionEnabled(Cloud)) ret << "Cloud";
|
if (isBuildOptionEnabled(boCloud)) ret << "Cloud";
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -49,14 +49,14 @@ public:
|
|||||||
|
|
||||||
//! @brief Build options which PIP library was built
|
//! @brief Build options which PIP library was built
|
||||||
enum BuildOption {
|
enum BuildOption {
|
||||||
ICU /*! Unicode support */ = 0x01,
|
boICU /*! Unicode support */ = 0x01,
|
||||||
USB /*! USB support */ = 0x02,
|
boUSB /*! USB support */ = 0x02,
|
||||||
Crypt /*! Crypt support */ = 0x08,
|
boCrypt /*! Crypt support */ = 0x08,
|
||||||
Introspection /*! Introspection */ = 0x010,
|
boIntrospection /*! Introspection */ = 0x010,
|
||||||
FFTW /*! FFTW3 support */ = 0x40,
|
boFFTW /*! FFTW3 support */ = 0x40,
|
||||||
Compress /*! Zlib compression support */ = 0x80,
|
boCompress /*! Zlib compression support */ = 0x80,
|
||||||
OpenCL /*! OpenCL support */ = 0x100,
|
boOpenCL /*! OpenCL support */ = 0x100,
|
||||||
Cloud /*! Cloud transport support */ = 0x200,
|
boCloud /*! Cloud transport support */ = 0x200,
|
||||||
};
|
};
|
||||||
static PIInit * instance() {return __PIInit_Initializer__::__instance__;}
|
static PIInit * instance() {return __PIInit_Initializer__::__instance__;}
|
||||||
static bool isBuildOptionEnabled(BuildOption o);
|
static bool isBuildOptionEnabled(BuildOption o);
|
||||||
|
|||||||
Reference in New Issue
Block a user