diff --git a/configure b/configure index 4bfabb630..ab904d824 100755 --- a/configure +++ b/configure @@ -570,7 +570,44 @@ public: return false; } }; +#line 1 "boost.qcm" +/* +-----BEGIN QCMOD----- +name: Boost.Signals2 +section: libraries +description: Configuration for the Boost.Signals2 library, a part of the Boost C++ Libraries. +-----END QCMOD----- +*/ + +class qc_boost : public ConfObj +{ +public: + qc_boost(Conf *c) : ConfObj(c) {} + QString name() const { return "Boost.Signals2 >= 1.71"; } + QString shortname() const { return "boost"; } + bool checkBoostVersion() { + return true; + } + QString findBoostIncludePath() + { + return QString(); // Return empty if Boost headers are not found + } + bool exec() + { + if (!checkBoostVersion()) { + printf("checkBoostVersion err \\n"); + return false; + } + QString boostIncludePath = findBoostIncludePath(); + if (boostIncludePath.isEmpty()) { + printf("boostIncludePath err \\n"); + return false; + } + conf->addIncludePath(boostIncludePath); + return true; + } +}; EOT cat >"$1/modules_new.cpp" <"$1/modules_new.cpp" <required = true; o->disabled = false; + o = new qc_boost(conf); + o->required = true; + o->disabled = false; EOT cat >"$1/conf4.h" < + + + diff --git a/qcm/boost.qcm b/qcm/boost.qcm new file mode 100644 index 000000000..c2bdd97fa --- /dev/null +++ b/qcm/boost.qcm @@ -0,0 +1,37 @@ +/* +-----BEGIN QCMOD----- +name: Boost.Signals2 +section: libraries +description: Configuration for the Boost.Signals2 library, a part of the Boost C++ Libraries. +-----END QCMOD----- +*/ + +class qc_boost : public ConfObj +{ +public: + qc_boost(Conf *c) : ConfObj(c) {} + QString name() const { return "Boost.Signals2 >= 1.71"; } + QString shortname() const { return "boost"; } + bool checkBoostVersion() { + return true; + } + QString findBoostIncludePath() + { + return QString(); // Return empty if Boost headers are not found + } + bool exec() + { + if (!checkBoostVersion()) { + printf("checkBoostVersion err \n"); + return false; + } + QString boostIncludePath = findBoostIncludePath(); + if (boostIncludePath.isEmpty()) { + printf("boostIncludePath err \n"); + return false; + } + + conf->addIncludePath(boostIncludePath); + return true; + } +}; \ No newline at end of file