@@ -503,66 +503,7 @@ public:
503
503
return false;
504
504
}
505
505
};
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
- }
548
506
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
- };
566
507
EOT
567
508
cat > " $1 /modules_new.cpp" << EOT
568
509
o = new qc_conf(conf);
@@ -571,9 +512,6 @@ cat >"$1/modules_new.cpp" <<EOT
571
512
o = new qc_cargo(conf);
572
513
o->required = true;
573
514
o->disabled = false;
574
- o = new qc_boost(conf);
575
- o->required = true;
576
- o->disabled = false;
577
515
578
516
EOT
579
517
cat > " $1 /conf4.h" << EOT
0 commit comments