Skip to content

Commit 638f5f1

Browse files
author
sima
committed
removing boost.qcm
1 parent 8b78902 commit 638f5f1

File tree

3 files changed

+0
-121
lines changed

3 files changed

+0
-121
lines changed

configure

-62
Original file line numberDiff line numberDiff line change
@@ -503,66 +503,7 @@ public:
503503
return false;
504504
}
505505
};
506-
#line 1 "boost.qcm"
507-
/*
508-
-----BEGIN QCMOD-----
509-
name: Boost.Signals2
510-
section: libraries
511-
description: Configuration for the Boost.Signals2 library, a part of the Boost C++ Libraries.
512-
-----END QCMOD-----
513-
*/
514-
class qc_boost : public ConfObj
515-
{
516-
public:
517-
qc_boost(Conf *c) : ConfObj(c) {}
518-
QString name() const { return "Boost.Signals2 >= 1.71"; }
519-
QString shortname() const { return "boost"; }
520-
bool checkBoostVersion() {
521-
QProcess process;
522-
process.start("bash", QStringList() << "-c" << "grep \\"BOOST_LIB_VERSION\\" \$(find /usr/local/Cellar/boost/ /usr/include /usr/local/include -name 'version.hpp' 2> /dev/null | grep 'boost/version.hpp') | grep -v \\"//\\" | cut -d '\\"' -f2 | sed 's/_/./g'");
523-
process.waitForFinished();
524-
QString output(process.readAllStandardOutput());
525-
output = output.trimmed();
526-
527-
QStringList versionParts = output.split(".");
528-
if (versionParts.size() < 2) {
529-
return false; // Version format error
530-
}
531-
532-
int majorVersion = versionParts[0].toInt();
533-
int minorVersion = versionParts[1].toInt();
534-
535-
return (majorVersion > 1 || (majorVersion == 1 && minorVersion >= 71));
536-
}
537-
QString findBoostIncludePath()
538-
{
539-
QStringList possiblePaths = { "/usr/local/include", "/usr/include" };
540-
QString boostHeader = "boost/signals2.hpp"; // Boost signals header file
541-
542-
foreach (const QString &path, possiblePaths) {
543-
QDir dir(path);
544-
if (dir.exists(boostHeader)) {
545-
return path; // Return the path where Boost headers are found
546-
}
547-
}
548506
549-
return QString(); // Return empty if Boost headers are not found
550-
}
551-
bool exec()
552-
{
553-
if (!checkBoostVersion()) {
554-
printf("checkBoostVersion err \\n");
555-
return false;
556-
}
557-
QString boostIncludePath = findBoostIncludePath();
558-
if (boostIncludePath.isEmpty()) {
559-
printf("boostIncludePath err \\n");
560-
return false;
561-
}
562-
563-
return true;
564-
}
565-
};
566507
EOT
567508
cat >"$1/modules_new.cpp" <<EOT
568509
o = new qc_conf(conf);
@@ -571,9 +512,6 @@ cat >"$1/modules_new.cpp" <<EOT
571512
o = new qc_cargo(conf);
572513
o->required = true;
573514
o->disabled = false;
574-
o = new qc_boost(conf);
575-
o->required = true;
576-
o->disabled = false;
577515
578516
EOT
579517
cat >"$1/conf4.h" <<EOT

configure.exe

102 KB
Binary file not shown.

qcm/boost.qcm

-59
This file was deleted.

0 commit comments

Comments
 (0)