File: cfgtest_QtCore.cpp

package info (click to toggle)
pyqt6 6.10.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 7,740 kB
  • sloc: cpp: 18,294; python: 10,614; javascript: 721; makefile: 25; sh: 10
file content (39 lines) | stat: -rw-r--r-- 848 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#include <QCoreApplication>
#include <QFile>
#include <QLibraryInfo>
#include <QTextStream>


int main(int argc, char **argv)
{
    QCoreApplication app(argc, argv);
    QFile outf(argv[1]);

    if (!outf.open(QIODevice::WriteOnly|QIODevice::Truncate|QIODevice::Text))
        return 1;

    QTextStream out(&outf);

    // This is not a feature and needs to be handled separately.
#if defined(QT_SHARED) || defined(QT_DLL)
    out << "shared\n";
#else
    out << "static\n";
#endif

    // Determine which features should be disabled.

#if defined(QT_NO_PROCESS)
    out << "PyQt_Process\n";
#endif

    // qreal is double unless QT_COORD_TYPE is defined.
    if (sizeof (qreal) != sizeof (double))
        out << "PyQt_qreal_double\n";

#if QT_VERSION < 0x060500 || !QT_CONFIG(permissions)
    out << "PyQt_Permissions";
#endif

    return 0;
}