@@ -24,22 +24,22 @@ endif
2424# BASE_URL=http://www.mirrorservice.org/sites/download.qt-project.org
2525BASE_URL =https://download.qt.io
2626
27+ QT_VER_FULL =6.7.2
28+ QT_VER_SHORT =6.7
2729ifeq (${PLATFORM},win)
28- QT_SRC_FILE =qt-everywhere-opensource- src-5.15.5 .zip
29- QT_SRC_MD5 =7f4ec67f41635ba338f505f09b68fe02
30- QT_SRC_URL =${BASE_URL}/official_releases/qt/5.15/5.15.5 /single/qt-everywhere-opensource-src-5.15.5.zip
30+ QT_SRC_FILE =qt-everywhere-src-${QT_VER_FULL} .zip
31+ QT_SRC_MD5 =69c87bb306ab78b988fb69819c32f3de
32+ QT_SRC_URL =${BASE_URL}/official_releases/qt/${QT_VER_SHORT}/${QT_VER_FULL} /single/${QT_SRC_FILE}
3133else
32- QT_SRC_FILE =qt-everywhere-opensource- src-5.15.5 .tar.xz
33- QT_SRC_MD5 =0fbcde36556a366df8ecf24a7ea1f7ec
34- QT_SRC_URL =${BASE_URL}/official_releases/qt/5.15/5.15.5 /single/qt-everywhere-opensource-src-5.15.5.tar.xz
34+ QT_SRC_FILE =qt-everywhere-src-${QT_VER_FULL} .tar.xz
35+ QT_SRC_MD5 =06d35b47349c7c0a45710daad359e07b
36+ QT_SRC_URL =${BASE_URL}/official_releases/qt/${QT_VER_SHORT}/${QT_VER_FULL} /single/${QT_SRC_FILE}
3537endif
3638
37- QT_SRC_DIR =qt-everywhere-src-5.15.5
39+ QT_SRC_DIR =qt-everywhere-src-${QT_VER_FULL}
3840QT_BUILD_DIR =${QT_SRC_DIR}/build
3941QT_PREFIX =${ROOT_DIR}/qt
4042
41- JOM_URL =https://download.qt.io/official_releases/jom/jom.zip
42-
4343ifeq (${PLATFORM},linux)
4444PLATFORM_QT_CONFIGURE =configure
4545# -ccache
@@ -123,23 +123,8 @@ define download_extract
123123 $(call extract,$2)
124124endef
125125
126- ifeq (${PLATFORM},win)
127- PLATFORM_QT_DEPS =jom
128- PLATFORM_CLEAN_DEPS =clean-jom
129-
130- jom :
131- mkdir -p jom
132- curl -fL " ${JOM_URL} " -o jom/jom.zip
133- cd jom && 7z x jom.zip
134-
135- .PHONY : clean-jom
136- clean-jom :
137- rm -rf jom
138-
139- else
140126PLATFORM_QT_DEPS =
141127PLATFORM_CLEAN_DEPS =
142- endif
143128
144129.PHONY : clean
145130clean : clean-qt ${PLATFORM_CLEAN_DEPS}
@@ -155,9 +140,6 @@ ${QT_SRC_DIR}:
155140 @echo " "
156141 $(call download_extract,${QT_SRC_URL},${QT_SRC_FILE},${QT_SRC_MD5})
157142 # Add patches here if required
158- patch ${QT_SRC_DIR} /qtbase/src/plugins/platforms/cocoa/qiosurfacegraphicsbuffer.h qiosurfacegraphicsbuffer.h.patch
159- # https://github.com/macports/macports-ports/blob/d2a7c094acba41c84dbe792480f6a1b32371d5e7/aqua/qt5/Portfile#L1057-L1059
160- cd ${QT_SRC_DIR} /qtbase && patch -p0 < ../../patch-qmake-dont-hard-code-x86_64-as-the-architecture-when-using-qmake.diff
161143
162144.PHONY : src
163145src : ${QT_SRC_DIR}
@@ -169,6 +151,7 @@ qt: ${QT_SRC_DIR} ${PLATFORM_QT_DEPS}
169151 @echo " #########################"
170152 @echo " "
171153
154+ # -nomake tools
172155 mkdir -p "${QT_BUILD_DIR}"
173156 cd "${QT_BUILD_DIR}" && \
174157 ../${PLATFORM_QT_CONFIGURE} \
@@ -185,47 +168,52 @@ qt: ${QT_SRC_DIR} ${PLATFORM_QT_DEPS}
185168 -no-sql-oci \
186169 -no-sql-odbc \
187170 -no-sql-psql \
188- -no-sql-sqlite2 \
189171 -no-sql-sqlite \
190- -no-sql-tds \
172+ -no-feature-assistant \
173+ -no-feature-designer \
191174 -nomake tests \
192175 -nomake examples \
193- -nomake tools \
194- -skip qtwebengine \
195176 -skip qt3d \
196- -skip qtcanvas3d \
177+ -skip qtactiveqt \
197178 -skip qtcharts \
179+ -skip qtcoap \
198180 -skip qtconnectivity \
181+ -skip qtdatavis3d \
199182 -skip qtdeclarative \
200183 -skip qtdoc \
201- -skip qtscript \
202- -skip qtdatavis3d \
203- -skip qtgamepad \
184+ -skip qtgraphs \
185+ -skip qtgrpc \
186+ -skip qthttpserver \
187+ -skip qtlanguageserver \
204188 -skip qtlocation \
205- -skip qtgraphicaleffects \
189+ -skip qtlottie \
190+ -skip qtmqtt \
206191 -skip qtmultimedia \
207- -skip qtpurchasing \
192+ -skip qtnetworkauth \
193+ -skip qtopcua \
194+ -skip qtpositioning \
195+ -skip qtquick3d \
196+ -skip qtquick3dphysics \
197+ -skip qtquickeffectmaker \
198+ -skip qtquicktimeline \
199+ -skip qtremoteobjects \
208200 -skip qtscxml \
209201 -skip qtsensors \
210202 -skip qtserialbus \
211203 -skip qtserialport \
204+ -skip qtshadertools \
212205 -skip qtspeech \
213206 -skip qttranslations \
214207 -skip qtvirtualkeyboard \
215- -skip qtwebglplugin \
208+ -skip qtwebchannel \
209+ -skip qtwebengine \
216210 -skip qtwebsockets \
217211 -skip qtwebview \
218- -skip qtquickcontrols \
219- -skip qtquickcontrols2 \
212+ -DCMAKE_WrapClang_FOUND=false \
220213 ${PLATFORM_QT_OPTIONS}
221214
222- ifeq (${PLATFORM},win)
223- cd "${QT_BUILD_DIR}" && "${ROOT_DIR}/jom/jom.exe" -J ${BUILD_THREADS}
224- cd "${QT_BUILD_DIR}" && "${ROOT_DIR}/jom/jom.exe" install
225- else
226- cd "${QT_BUILD_DIR}" && make -j${BUILD_THREADS} | awk "NR%10==1" # Travis doesn't like too much and too little output
227- cd "${QT_BUILD_DIR}" && make install
228- endif
215+ cmake --build "${QT_BUILD_DIR}" -j ${BUILD_THREADS}
216+ cmake --install "${QT_BUILD_DIR}"
229217
230218ifeq (${PLATFORM},macos)
231219 cd "${QT_PREFIX}/include" && \
0 commit comments