Skip to content

Commit da1b3d6

Browse files
committed
Testing oldschool builds
1 parent e32ca10 commit da1b3d6

2 files changed

Lines changed: 12 additions & 1 deletion

File tree

.github/workflows/build.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ on:
44
push:
55
branches:
66
- master
7+
- oldschool_builds
78
pull_request:
8-
9+
910
concurrency:
1011
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
1112
cancel-in-progress: true
@@ -16,6 +17,7 @@ defaults:
1617

1718
jobs:
1819
ubuntu:
20+
if: false
1921
strategy:
2022
fail-fast: false
2123
matrix:
@@ -149,6 +151,7 @@ jobs:
149151
# workaround to allow to find the Qt include dirs for installed standard qt packages
150152
mkdir /usr/include/qt5ln; ln -s /usr/include/qt5 /usr/include/qt5ln/include
151153
export QTDIR=/usr/include/qt5ln
154+
cat /usr/include/qt5/QtCore/QtCore
152155
cd generator
153156
./pythonqt_generator
154157
@@ -159,6 +162,7 @@ jobs:
159162
path: generated_cpp
160163

161164
macOS:
165+
if: false
162166
strategy:
163167
fail-fast: false
164168
matrix:
@@ -249,6 +253,7 @@ jobs:
249253
path: generated_cpp
250254

251255
windows:
256+
if: false
252257
strategy:
253258
fail-fast: false
254259
matrix:

generator/qtscript_masterinclude.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,15 @@
8585
#define QOPENGLFUNCTIONS_H
8686
#define QOPENGLEXTRAFUNCTIONS_H
8787

88+
#define QT_BOOTSTRAPPED
89+
8890
/* This must only be included after 'QT_NO_' definitions have been defined. */
8991
#include <QtCore/qglobal.h>
9092

93+
// workaround to avoid compile error for undefined feature, original define:
94+
// #define QT_CONFIG(feature) (1/QT_FEATURE_##feature == 1)
95+
#define QT_CONFIG(feature) (QT_FEATURE_##feature == 1)
96+
9197
/* NOTE: Qt5.12 and later (including Qt6) uses template functions for the
9298
* static implementations of QTimer::singleShot() (the function, not the
9399
* property). The generator does not handle template functions. Defining

0 commit comments

Comments
 (0)