chenguanzhou / QGIS-Windows-Build-Qt5-VS2015-x64

It is an unofficial build of Qt5-based QGIS on Windows.
11 stars 7 forks source link

Master builds #1

Open m-kuhn opened 7 years ago

m-kuhn commented 7 years ago

That's pretty cool!

If I understand correctly, that's a build of 2.18. Did you also try to build master?

chenguanzhou commented 7 years ago

Yes, it's 2.18 Compilation of qgis is really cost time and cpu. I am so sorry that I cannot always follow the master branch of QGIS. As far as I know, QGIS3.0 will be built by Qt5 on windows officially.

guiserguez commented 7 years ago

This is awesome!

One question, could you please upload mocs like moc_qgsapplication.cpp?

Best Regards.

chenguanzhou commented 7 years ago

moc_qgsapplication.cpp

/****************************************************************************
** Meta object code from reading C++ file 'qgsapplication.h'
**
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.7.0)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/

#include "../../../qgis-2.18.0/src/core/qgsapplication.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'qgsapplication.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.7.0. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif

QT_BEGIN_MOC_NAMESPACE
struct qt_meta_stringdata_QgsApplication_t {
    QByteArrayData data[10];
    char stringdata0[96];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_QgsApplication_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_QgsApplication_t qt_meta_stringdata_QgsApplication = {
    {
QT_MOC_LITERAL(0, 0, 14), // "QgsApplication"
QT_MOC_LITERAL(1, 15, 9), // "preNotify"
QT_MOC_LITERAL(2, 25, 0), // ""
QT_MOC_LITERAL(3, 26, 8), // "receiver"
QT_MOC_LITERAL(4, 35, 7), // "QEvent*"
QT_MOC_LITERAL(5, 43, 5), // "event"
QT_MOC_LITERAL(6, 49, 5), // "bool*"
QT_MOC_LITERAL(7, 55, 4), // "done"
QT_MOC_LITERAL(8, 60, 15), // "settingsChanged"
QT_MOC_LITERAL(9, 76, 19) // "emitSettingsChanged"

    },
    "QgsApplication\0preNotify\0\0receiver\0"
    "QEvent*\0event\0bool*\0done\0settingsChanged\0"
    "emitSettingsChanged"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_QgsApplication[] = {

 // content:
       7,       // revision
       0,       // classname
       0,    0, // classinfo
       3,   14, // methods
       0,    0, // properties
       0,    0, // enums/sets
       0,    0, // constructors
       0,       // flags
       2,       // signalCount

 // signals: name, argc, parameters, tag, flags
       1,    3,   29,    2, 0x06 /* Public */,
       8,    0,   36,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
       9,    0,   37,    2, 0x0a /* Public */,

 // signals: parameters
    QMetaType::Void, QMetaType::QObjectStar, 0x80000000 | 4, 0x80000000 | 6,    3,    5,    7,
    QMetaType::Void,

 // slots: parameters
    QMetaType::Void,

       0        // eod
};

void QgsApplication::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        QgsApplication *_t = static_cast<QgsApplication *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->preNotify((*reinterpret_cast< QObject*(*)>(_a[1])),(*reinterpret_cast< QEvent*(*)>(_a[2])),(*reinterpret_cast< bool*(*)>(_a[3]))); break;
        case 1: _t->settingsChanged(); break;
        case 2: _t->emitSettingsChanged(); break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        void **func = reinterpret_cast<void **>(_a[1]);
        {
            typedef void (QgsApplication::*_t)(QObject * , QEvent * , bool * );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&QgsApplication::preNotify)) {
                *result = 0;
                return;
            }
        }
        {
            typedef void (QgsApplication::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&QgsApplication::settingsChanged)) {
                *result = 1;
                return;
            }
        }
    }
}

const QMetaObject QgsApplication::staticMetaObject = {
    { &QApplication::staticMetaObject, qt_meta_stringdata_QgsApplication.data,
      qt_meta_data_QgsApplication,  qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
};

const QMetaObject *QgsApplication::metaObject() const
{
    return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
}

void *QgsApplication::qt_metacast(const char *_clname)
{
    if (!_clname) return Q_NULLPTR;
    if (!strcmp(_clname, qt_meta_stringdata_QgsApplication.stringdata0))
        return static_cast<void*>(const_cast< QgsApplication*>(this));
    return QApplication::qt_metacast(_clname);
}

int QgsApplication::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QApplication::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 3)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 3;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 3)
            *reinterpret_cast<int*>(_a[0]) = -1;
        _id -= 3;
    }
    return _id;
}

// SIGNAL 0
void QgsApplication::preNotify(QObject * _t1, QEvent * _t2, bool * _t3)
{
    void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)), const_cast<void*>(reinterpret_cast<const void*>(&_t3)) };
    QMetaObject::activate(this, &staticMetaObject, 0, _a);
}

// SIGNAL 1
void QgsApplication::settingsChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 1, Q_NULLPTR);
}
QT_END_MOC_NAMESPACE