2011-04-27 10:05:43 +00:00
|
|
|
!if "$(SOURCE_PATH)" == ""
|
|
|
|
SOURCE_PATH = ..
|
|
|
|
!endif
|
|
|
|
!if "$(BUILD_PATH)" == ""
|
|
|
|
BUILD_PATH = ..
|
|
|
|
!endif
|
|
|
|
|
2012-03-09 09:50:23 +00:00
|
|
|
QMKSRC = $(SOURCE_PATH)\qmake
|
|
|
|
|
2011-04-27 10:05:43 +00:00
|
|
|
#
|
2014-12-19 00:33:42 +00:00
|
|
|
# per-compiler options
|
2011-04-27 10:05:43 +00:00
|
|
|
#
|
|
|
|
!if "$(QMAKESPEC)" == "win32-icc"
|
2014-12-19 00:33:42 +00:00
|
|
|
CXX = icl
|
2019-02-11 12:39:36 +00:00
|
|
|
LINKER = xilink
|
2019-11-17 12:09:00 +00:00
|
|
|
CFLAGS_EXTRA = /Zc:forScope /Qstd=c++11
|
2016-06-16 06:21:03 +00:00
|
|
|
!elseif "$(QMAKESPEC)" == "win32-clang-msvc"
|
2016-02-10 12:05:26 +00:00
|
|
|
CXX = clang-cl
|
2019-02-11 12:39:36 +00:00
|
|
|
LINKER = lld-link
|
2016-02-10 12:05:26 +00:00
|
|
|
CFLAGS_EXTRA = -fms-compatibility-version=19.00.23506 -Wno-microsoft-enum-value
|
2011-04-27 10:05:43 +00:00
|
|
|
!else
|
2014-12-19 00:33:42 +00:00
|
|
|
CXX = cl
|
|
|
|
LINKER = link
|
2017-03-18 02:09:06 +00:00
|
|
|
CFLAGS_EXTRA = /MP /wd4577 $(CFLAGS_CRT)
|
2014-12-19 00:33:42 +00:00
|
|
|
!endif # !win32-icc
|
2011-04-27 10:05:43 +00:00
|
|
|
|
2016-02-10 12:05:26 +00:00
|
|
|
CFLAGS_PCH = -Yuqmake_pch.h -FIqmake_pch.h -Fpqmake_pch.pch
|
|
|
|
PCH_OBJECT = qmake_pch.obj
|
|
|
|
|
2013-11-21 13:33:01 +00:00
|
|
|
CFLAGS_BARE = -c -Fo./ -Fdqmake.pdb \
|
2019-12-03 10:53:32 +00:00
|
|
|
-W2 -nologo -O2 -std:c++17 -Zc:__cplusplus \
|
2011-04-27 10:05:43 +00:00
|
|
|
$(CFLAGS_EXTRA) \
|
2016-11-18 17:11:41 +00:00
|
|
|
-I$(QMKSRC) -I$(QMKSRC)\library -I$(QMKSRC)\generators -I$(QMKSRC)\generators\unix -I$(QMKSRC)\generators\win32 -I$(QMKSRC)\generators\mac \
|
2019-10-29 12:50:22 +00:00
|
|
|
-I$(SOURCE_PATH)/src/3rdparty/tinycbor/src \
|
2020-04-03 13:39:37 +00:00
|
|
|
-I$(SOURCE_PATH)/src/3rdparty/pcre2/src \
|
2013-05-28 19:34:05 +00:00
|
|
|
-I$(INC_PATH) -I$(INC_PATH)\QtCore -I$(INC_PATH)\QtCore\$(QT_VERSION) -I$(INC_PATH)\QtCore\$(QT_VERSION)\QtCore \
|
2016-09-16 12:37:16 +00:00
|
|
|
-I$(BUILD_PATH)\src\corelib\global \
|
2011-04-27 10:05:43 +00:00
|
|
|
-I$(SOURCE_PATH)\mkspecs\$(QMAKESPEC) \
|
2017-03-18 02:09:06 +00:00
|
|
|
-D_CRT_SECURE_NO_WARNINGS -D_SCL_SECURE_NO_WARNINGS \
|
2015-09-18 01:17:40 +00:00
|
|
|
-DQT_VERSION_STR=\"$(QT_VERSION)\" -DQT_VERSION_MAJOR=$(QT_MAJOR_VERSION) -DQT_VERSION_MINOR=$(QT_MINOR_VERSION) -DQT_VERSION_PATCH=$(QT_PATCH_VERSION) \
|
2012-08-28 17:24:30 +00:00
|
|
|
-DQT_BUILD_QMAKE -DQT_BOOTSTRAPPED -DPROEVALUATOR_FULL \
|
2020-04-03 13:39:37 +00:00
|
|
|
-DQT_NO_FOREACH -DQT_USE_QSTRINGBUILDER -DUNICODE -D_ENABLE_EXTENDED_ALIGNED_STORAGE \
|
2020-05-12 09:09:26 +00:00
|
|
|
-DPCRE2_CODE_UNIT_WIDTH=16 -DHAVE_CONFIG_H -DPCRE2_STATIC -DPCRE2_DISABLE_JIT
|
2020-04-03 13:39:37 +00:00
|
|
|
|
|
|
|
CFLAGS = $(CFLAGS_BARE) $(CFLAGS)
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
CXXFLAGS_BARE = $(CFLAGS_BARE)
|
2020-04-03 13:39:37 +00:00
|
|
|
CXXFLAGS = $(CFLAGS) $(CFLAGS_PCH)
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
LFLAGS =
|
2017-07-09 20:58:26 +00:00
|
|
|
LIBS = ole32.lib advapi32.lib shell32.lib netapi32.lib
|
2013-11-21 13:33:01 +00:00
|
|
|
ADDCLEAN = qmake.pdb qmake.ilk
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
#qmake code
|
2013-05-29 18:18:51 +00:00
|
|
|
OBJS = project.obj main.obj ioutils.obj proitems.obj qmakevfs.obj \
|
2012-09-05 16:29:19 +00:00
|
|
|
qmakeglobals.obj qmakeparser.obj qmakeevaluator.obj qmakebuiltins.obj \
|
|
|
|
makefile.obj unixmake.obj unixmake2.obj mingw_make.obj \
|
2011-04-27 10:05:43 +00:00
|
|
|
option.obj winmakefile.obj projectgenerator.obj property.obj meta.obj \
|
2014-07-24 14:17:34 +00:00
|
|
|
makefiledeps.obj metamakefile.obj xmloutput.obj \
|
2012-04-25 15:12:53 +00:00
|
|
|
msvc_nmake.obj msvc_vcproj.obj msvc_vcxproj.obj \
|
2016-03-09 13:59:20 +00:00
|
|
|
msvc_objectmodel.obj msbuild_objectmodel.obj registry.obj
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
#qt code
|
|
|
|
QTOBJS= \
|
|
|
|
qbitarray.obj \
|
|
|
|
qbuffer.obj \
|
|
|
|
qcryptographichash.obj \
|
|
|
|
qfilesystementry.obj \
|
|
|
|
qfilesystemengine.obj \
|
|
|
|
qfilesystemengine_win.obj \
|
|
|
|
qfilesystemiterator_win.obj \
|
|
|
|
qfsfileengine.obj \
|
|
|
|
qfsfileengine_iterator.obj \
|
2012-03-27 09:21:27 +00:00
|
|
|
qarraydata.obj \
|
2011-04-27 10:05:43 +00:00
|
|
|
qbytearray.obj \
|
Include likely-adjusted uiLanguages for the system locale
QLocale::uiLanguages() on the system locale uses whatever the system
locale's query(QSystemLocale::UILanguages,...) returns. On Android,
this is just a list of locales. However, for non-system locales, we
also include some results of removing likely sub-tags from the locale
name, where equivalent. Thus zh-CN would also get zh and zh-Hans-CN
added to it; however, if the system locale is zh-Hans-CN, the shorter
forms are omitted. So post-process the system locale list in the same
way, albeit tweaked to avoid duplicates and rearranged so that we can
insert likely-adjusted entries between what they adjust and what
followed it.
Added QLocalePrivate::rawName() in the process, since it looks likely
to be useful in other contexts (and I needed its value): it just joins
such tags as are non-Any. This, however, uses QByteArrayList, so added
that (it's small) to the bootstrap library and qmake.
This follows up on commit 8796e3016fae1672e727e2fa4e48f671a0c667ba.
[ChangeLog][QtCore][QLocale] The system locale's UI languages list now
includes, as for that of an ordinary locale, the results of adding
likely sub-tags from each locale name, and of removing some, where
this doesn't change which locale is specified. This gives searches for
translation files a better chance of finding a suitable file.
Fixes: QTBUG-75413
Change-Id: Iaafd79aac6a0fdd5f44aed16e445e84a2267c9da
Reviewed-by: Paul Wicking <paul.wicking@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2019-04-29 10:33:55 +00:00
|
|
|
qbytearraylist.obj \
|
2011-04-27 10:05:43 +00:00
|
|
|
qvsnprintf.obj \
|
|
|
|
qbytearraymatcher.obj \
|
2017-01-14 16:53:31 +00:00
|
|
|
qcalendar.obj \
|
2011-04-27 10:05:43 +00:00
|
|
|
qdatetime.obj \
|
|
|
|
qdir.obj \
|
|
|
|
qdiriterator.obj \
|
2012-02-26 09:05:39 +00:00
|
|
|
qfiledevice.obj \
|
2011-04-27 10:05:43 +00:00
|
|
|
qfile.obj \
|
|
|
|
qtemporaryfile.obj \
|
|
|
|
qabstractfileengine.obj \
|
|
|
|
qfsfileengine_win.obj \
|
|
|
|
qsystemlibrary.obj \
|
|
|
|
qfileinfo.obj \
|
2018-05-25 19:33:48 +00:00
|
|
|
qendian.obj \
|
2011-04-27 10:05:43 +00:00
|
|
|
qglobal.obj \
|
2017-01-14 16:53:31 +00:00
|
|
|
qgregoriancalendar.obj \
|
2011-04-27 10:05:43 +00:00
|
|
|
qhash.obj \
|
|
|
|
qiodevice.obj \
|
2015-05-01 11:02:16 +00:00
|
|
|
qringbuffer.obj \
|
2014-04-29 10:39:31 +00:00
|
|
|
qdebug.obj \
|
2011-04-27 10:05:43 +00:00
|
|
|
qlocale.obj \
|
|
|
|
qlocale_tools.obj \
|
|
|
|
qlocale_win.obj \
|
2017-01-07 09:23:47 +00:00
|
|
|
qversionnumber.obj \
|
2011-04-27 10:05:43 +00:00
|
|
|
qmalloc.obj \
|
2016-04-23 03:54:51 +00:00
|
|
|
qoperatingsystemversion.obj \
|
|
|
|
qoperatingsystemversion_win.obj \
|
2017-01-14 16:53:31 +00:00
|
|
|
qromancalendar.obj \
|
2011-04-27 10:05:43 +00:00
|
|
|
qstring.obj \
|
2020-04-17 10:10:21 +00:00
|
|
|
qstringconverter.obj \
|
2011-04-27 10:05:43 +00:00
|
|
|
qstringlist.obj \
|
2012-02-26 14:20:24 +00:00
|
|
|
qstringbuilder.obj \
|
2011-04-27 10:05:43 +00:00
|
|
|
qsystemerror.obj \
|
|
|
|
qtextstream.obj \
|
|
|
|
qdatastream.obj \
|
|
|
|
quuid.obj \
|
2017-04-14 00:50:05 +00:00
|
|
|
qrandom.obj \
|
2011-04-27 10:05:43 +00:00
|
|
|
qsettings.obj \
|
|
|
|
qvariant.obj \
|
|
|
|
qsettings_win.obj \
|
2020-08-25 15:41:42 +00:00
|
|
|
qiterable.obj \
|
|
|
|
qmetacontainer.obj \
|
2011-04-27 10:05:43 +00:00
|
|
|
qmetatype.obj \
|
2012-02-03 08:35:22 +00:00
|
|
|
qnumeric.obj \
|
2013-09-05 05:55:49 +00:00
|
|
|
qlogging.obj \
|
2019-10-29 12:50:22 +00:00
|
|
|
qcborstreamwriter.obj \
|
2019-06-19 11:43:00 +00:00
|
|
|
qcborvalue.obj \
|
|
|
|
qjsoncbor.obj \
|
2013-09-05 05:55:49 +00:00
|
|
|
qjsondocument.obj \
|
|
|
|
qjsonparser.obj \
|
|
|
|
qjsonarray.obj \
|
|
|
|
qjsonobject.obj \
|
2020-04-03 13:39:37 +00:00
|
|
|
qjsonvalue.obj \
|
|
|
|
qregularexpression.obj \
|
|
|
|
pcre2_auto_possess.obj \
|
|
|
|
pcre2_chartables.obj \
|
|
|
|
pcre2_compile.obj \
|
|
|
|
pcre2_config.obj \
|
|
|
|
pcre2_context.obj \
|
|
|
|
pcre2_dfa_match.obj \
|
|
|
|
pcre2_error.obj \
|
|
|
|
pcre2_extuni.obj \
|
|
|
|
pcre2_find_bracket.obj \
|
|
|
|
pcre2_jit_compile.obj \
|
|
|
|
pcre2_maketables.obj \
|
|
|
|
pcre2_match.obj \
|
|
|
|
pcre2_match_data.obj \
|
|
|
|
pcre2_newline.obj \
|
|
|
|
pcre2_ord2utf.obj \
|
|
|
|
pcre2_pattern_info.obj \
|
|
|
|
pcre2_script_run.obj \
|
|
|
|
pcre2_serialize.obj \
|
|
|
|
pcre2_string_utils.obj \
|
|
|
|
pcre2_study.obj \
|
|
|
|
pcre2_substitute.obj \
|
|
|
|
pcre2_substring.obj \
|
|
|
|
pcre2_tables.obj \
|
|
|
|
pcre2_ucd.obj \
|
|
|
|
pcre2_valid_utf.obj \
|
|
|
|
pcre2_xclass.obj \
|
2011-04-27 10:05:43 +00:00
|
|
|
|
2016-11-07 14:59:22 +00:00
|
|
|
first all: $(BUILD_PATH)\bin\qmake.exe
|
2017-01-03 15:40:30 +00:00
|
|
|
binary: $(BUILD_PATH)\qmake\qmake.exe
|
2011-04-27 10:05:43 +00:00
|
|
|
|
2017-01-03 15:40:30 +00:00
|
|
|
$(BUILD_PATH)\bin\qmake.exe: $(OBJS) $(QTOBJS) qlibraryinfo.obj
|
|
|
|
$(LINKER) $(LFLAGS) /OUT:$(BUILD_PATH)\bin\qmake.exe $(OBJS) $(QTOBJS) qlibraryinfo.obj $(PCH_OBJECT) $(LIBS)
|
|
|
|
|
|
|
|
$(BUILD_PATH)\qmake\qmake.exe: $(OBJS) $(QTOBJS) qlibraryinfo_final.obj
|
|
|
|
$(LINKER) $(LFLAGS) /OUT:$(BUILD_PATH)\qmake\qmake.exe $(OBJS) $(QTOBJS) qlibraryinfo_final.obj $(PCH_OBJECT) $(LIBS)
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
clean::
|
2017-01-03 15:40:30 +00:00
|
|
|
-del $(QTOBJS) qlibraryinfo.obj qlibraryinfo_final.obj
|
2011-04-27 10:05:43 +00:00
|
|
|
-del $(OBJS)
|
|
|
|
-del qmake_pch.obj
|
|
|
|
-del qmake_pch.pch
|
|
|
|
-del qmake.pdb
|
|
|
|
-del qmake.ilk
|
|
|
|
-del qmake.tds
|
|
|
|
|
|
|
|
distclean:: clean
|
2015-04-23 11:40:49 +00:00
|
|
|
-del $(BUILD_PATH)\bin\qmake.exe
|
2017-01-03 15:40:30 +00:00
|
|
|
-del $(BUILD_PATH)\qmake\qmake.exe
|
2015-04-23 11:40:49 +00:00
|
|
|
-del Makefile
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
.cpp.obj:
|
|
|
|
$(CXX) $(CXXFLAGS) $<
|
|
|
|
|
2016-02-10 12:05:26 +00:00
|
|
|
$(OBJS): $(PCH_OBJECT)
|
2011-04-27 10:05:43 +00:00
|
|
|
|
2016-02-10 12:05:26 +00:00
|
|
|
$(QTOBJS): $(PCH_OBJECT)
|
2011-04-27 10:05:43 +00:00
|
|
|
|
2017-01-03 15:40:30 +00:00
|
|
|
qlibraryinfo.obj: $(PCH_OBJECT)
|
|
|
|
qlibraryinfo_final.obj: $(PCH_OBJECT)
|
|
|
|
|
2011-04-27 10:05:43 +00:00
|
|
|
qmake_pch.obj:
|
2012-03-16 17:59:09 +00:00
|
|
|
$(CXX) $(CXXFLAGS_BARE) -c -Yc -Fpqmake_pch.pch -TP $(QMKSRC)\qmake_pch.h
|
2011-04-27 10:05:43 +00:00
|
|
|
|
2012-09-05 16:29:19 +00:00
|
|
|
{$(SOURCE_PATH)\qmake\library}.cpp{}.obj::
|
|
|
|
$(CXX) $(CXXFLAGS) $<
|
|
|
|
|
2011-04-27 10:05:43 +00:00
|
|
|
{$(SOURCE_PATH)\qmake\generators\mac}.cpp{}.obj::
|
|
|
|
$(CXX) $(CXXFLAGS) $<
|
|
|
|
|
|
|
|
{$(SOURCE_PATH)\qmake\generators\unix}.cpp{}.obj::
|
|
|
|
$(CXX) $(CXXFLAGS) $<
|
|
|
|
|
|
|
|
{$(SOURCE_PATH)\qmake\generators\win32}.cpp{}.obj::
|
|
|
|
$(CXX) $(CXXFLAGS) $<
|
|
|
|
|
|
|
|
{$(SOURCE_PATH)\qmake\generators}.cpp{}.obj::
|
|
|
|
$(CXX) $(CXXFLAGS) $<
|
|
|
|
|
|
|
|
{$(SOURCE_PATH)\qmake}.cpp{}.obj::
|
|
|
|
$(CXX) $(CXXFLAGS) $<
|
|
|
|
|
|
|
|
{$(SOURCE_PATH)\src\3rdparty\md5}.cpp{}.obj::
|
|
|
|
$(CXX) $(CXXFLAGS) $<
|
|
|
|
|
|
|
|
{$(SOURCE_PATH)\src\corelib\global}.cpp{}.obj::
|
|
|
|
$(CXX) $(CXXFLAGS) $<
|
|
|
|
|
|
|
|
{$(SOURCE_PATH)\src\corelib\io}.cpp{}.obj::
|
|
|
|
$(CXX) $(CXXFLAGS) $<
|
|
|
|
|
|
|
|
{$(SOURCE_PATH)\src\corelib\kernel}.cpp{}.obj::
|
|
|
|
$(CXX) $(CXXFLAGS) $<
|
|
|
|
|
|
|
|
{$(SOURCE_PATH)\src\corelib\plugin}.cpp{}.obj::
|
|
|
|
$(CXX) $(CXXFLAGS) $<
|
|
|
|
|
2017-12-13 02:32:19 +00:00
|
|
|
{$(SOURCE_PATH)\src\corelib\serialization}.cpp{}.obj::
|
2011-04-27 10:05:43 +00:00
|
|
|
$(CXX) $(CXXFLAGS) $<
|
|
|
|
|
2019-05-27 17:13:54 +00:00
|
|
|
{$(SOURCE_PATH)\src\corelib\text}.cpp{}.obj::
|
|
|
|
$(CXX) $(CXXFLAGS) $<
|
|
|
|
|
2019-05-27 15:47:22 +00:00
|
|
|
{$(SOURCE_PATH)\src\corelib\time}.cpp{}.obj::
|
|
|
|
$(CXX) $(CXXFLAGS) $<
|
|
|
|
|
2017-12-13 02:32:19 +00:00
|
|
|
{$(SOURCE_PATH)\src\corelib\tools}.cpp{}.obj::
|
2013-09-05 05:55:49 +00:00
|
|
|
$(CXX) $(CXXFLAGS) $<
|
|
|
|
|
2020-04-03 13:39:37 +00:00
|
|
|
{$(SOURCE_PATH)\src\3rdparty\pcre2\src}.c{}.obj::
|
|
|
|
$(CXX) $(CFLAGS) $<
|
|
|
|
|
2019-05-29 12:00:05 +00:00
|
|
|
# Make sure qlibraryinfo.obj isn't compiled with PCH enabled
|
2017-01-03 15:40:30 +00:00
|
|
|
qlibraryinfo.obj: $(SOURCE_PATH)\src\corelib\global\qlibraryinfo.cpp
|
2017-01-26 23:02:04 +00:00
|
|
|
$(CXX) $(CXXFLAGS_BARE) -DQT_BUILD_QMAKE_BOOTSTRAP $(SOURCE_PATH)\src\corelib\global\qlibraryinfo.cpp
|
2017-01-03 15:40:30 +00:00
|
|
|
|
|
|
|
qlibraryinfo_final.obj: $(SOURCE_PATH)\src\corelib\global\qlibraryinfo.cpp $(BUILD_PATH)\src\corelib\global\qconfig.cpp
|
|
|
|
$(CXX) $(CXXFLAGS) -Foqlibraryinfo_final.obj $(SOURCE_PATH)\src\corelib\global\qlibraryinfo.cpp
|