qt 6.5.1 original

This commit is contained in:
kleuter
2023-10-29 23:33:08 +01:00
parent 71d22ab6b0
commit 85d238dfda
21202 changed files with 5499099 additions and 0 deletions

View File

@ -0,0 +1,6 @@
# QtCore can't be compiled with -Wl,-no-undefined because it uses the "environ"
# variable and on FreeBSD and OpenBSD, this variable is in the final executable itself.
# OpenBSD 6.0 will include environ in libc.
freebsd|openbsd: QMAKE_LFLAGS_NOUNDEF =
include(animation/animation.pri)

View File

@ -0,0 +1,2 @@
qmake-clean.commands += (cd qmake && $(MAKE) clean ":-(==)-:" '(Foo)' )

View File

@ -0,0 +1,4 @@
!system("dbus-send --session --type=signal / local.AutotestCheck.Hello >$$QMAKE_SYSTEM_NULL_DEVICE 2>&1") {
SOURCES = dbus.cpp
}

View File

@ -0,0 +1,22 @@
linux:!static {
precompile_header {
# we'll get an error if we just use SOURCES +=
no_pch_assembler.commands = $$QMAKE_CC -c $(CFLAGS) $(INCPATH) ${QMAKE_FILE_IN} -o ${QMAKE_FILE_OUT}
no_pch_assembler.dependency_type = TYPE_C
no_pch_assembler.output = ${QMAKE_VAR_OBJECTS_DIR}${QMAKE_FILE_BASE}$${first(QMAKE_EXT_OBJ)}
no_pch_assembler.input = NO_PCH_ASM
no_pch_assembler.name = compiling[no_pch] ${QMAKE_FILE_IN}
silent: no_pch_assembler.commands = @echo compiling[no_pch] ${QMAKE_FILE_IN} && $$no_pch_assembler.commands
CMAKE_ANGLE_GLES2_IMPLIB_RELEASE = libGLESv2.$${QMAKE_EXTENSION_STATICLIB}
HOST_BINS = $$[QT_HOST_BINS]
CMAKE_HOST_DATA_DIR = $$[QT_HOST_DATA/src]/
TR_EXCLUDE += ../3rdparty/*
QMAKE_EXTRA_COMPILERS += no_pch_assembler
NO_PCH_ASM += global/minimum-linux.S
} else {
SOURCES += global/minimum-linux.S
}
HEADERS += global/minimum-linux_p.h
}

View File

@ -0,0 +1,11 @@
a1|a2 {
DEFINES += d
}
b1|b2:b3 {
DEFINES += d
}
c1|c2:c3|c4 {
DEFINES += d
}

View File

@ -0,0 +1,2 @@
write_file("a", contents)|error()

View File

@ -0,0 +1,4 @@
contains(DEFINES,QT_EVAL):include(eval.pri)
HOST_BINS = $$[QT_HOST_BINS]

View File

@ -0,0 +1,4 @@
TARGET = myapp
QT = core network widgets
win32: QT += opengl
SOURCES = main.cpp

View File

@ -0,0 +1,8 @@
QT += core gui
SOURCES += main.cpp
greaterThan(QT_MAJOR_VERSION, 5):lessThan(QT_MINOR_VERSION, 1):equals(QT_PATCH_VERSION, 0) {
DEFINES += SUPER_FRESH_MAJOR_QT_RELEASE
}
greaterThan(QT_VERSION, 6.6.5):lessThan(QT_VERSION, 6.6.7):equals(QT_VERSION, 6.6.6): {
DEFINES += QT_VERSION_OF_THE_BEAST
}

View File

@ -0,0 +1,3 @@
TARGET = myapp
QT = core network widgets
SOURCES = main.cpp

View File

@ -0,0 +1,6 @@
defineTest(pathIsAbsolute) {
p = $$clean_path($$1)
!isEmpty(p):isEqual(p, $$absolute_path($$p)): return(true)
return(false)
}

View File

@ -0,0 +1,6 @@
linux {
SOURCES += a.cpp
} else {
SOURCES += b.cpp
}

View File

@ -0,0 +1,4 @@
osx: A = 1
else: win32: B = 2
else: C = 3

View File

@ -0,0 +1,7 @@
qtConfig(timezone) {
A = 1
} else:win32 {
B = 2
} else {
C = 3
}

View File

@ -0,0 +1,6 @@
qtConfig(timezone) {
A = 1
} else:win32: B = 2
else {
C = 3
}

View File

@ -0,0 +1,10 @@
# comments
qtConfig(timezone) { # bar
A = 1
} else:win32 {
B = 2 # foo
} else { C = 3
# baz
# foobar
}
# endcomment

View File

@ -0,0 +1,11 @@
qtConfig(timezone) \
{
A = \
1
} \
else:win32: \
B = 2
else: \
C \
= 3

View File

@ -0,0 +1,2 @@
msvc:equals(QT_ARCH, i386): QMAKE_LFLAGS += /BASE:0x65000000

View File

@ -0,0 +1,5 @@
qtConfig(timezone) { A = 1 } else:win32: {\
B = 2 \
} else: \
C \
= 3 \

View File

@ -0,0 +1,2 @@
MODULE_AUX_INCLUDES = \
\$\$QT_MODULE_INCLUDE_BASE/QtANGLE

View File

@ -0,0 +1,11 @@
SOURCES = main.cpp
for (config, SIMD) {
uc = $$upper($$config)
DEFINES += QT_COMPILER_SUPPORTS_$${uc}
add_cflags {
cflags = QMAKE_CFLAGS_$${uc}
!defined($$cflags, var): error("This compiler does not support $${uc}")
QMAKE_CXXFLAGS += $$eval($$cflags)
}
}

View File

@ -0,0 +1,4 @@
pathIsAbsolute($$CMAKE_HOST_DATA_DIR) {
CMAKE_HOST_DATA_DIR = $$[QT_HOST_DATA/src]/
}

View File

@ -0,0 +1,3 @@
A = 42
include(foo) # load foo
B=23

View File

@ -0,0 +1,10 @@
TEMPLATE=subdirs
SUBDIRS=\
qmacstyle \
qstyle \
qstyleoption \
qstylesheetstyle \
!qtConfig(private_tests): SUBDIRS -= \
qstylesheetstyle \

View File

@ -0,0 +1,22 @@
SUBDIRS = \
# dds \
tga \
wbmp
MYVAR = foo # comment
MYVAR = foo2# comment
MYVAR = foo3# comment #
MYVAR = foo4# comment #
##
#
#
##
#
#
#
# #
MYVAR = foo5# comment # #

View File

@ -0,0 +1,3 @@
A = 42
load(foo)# load foo
B=23

View File

@ -0,0 +1,3 @@
equals(a): \
greaterThan(a):flags += 1

View File

@ -0,0 +1,4 @@
A = 42 \
43 \
44
B=23

View File

@ -0,0 +1,2 @@
requires(qtConfig(dlopen))

View File

@ -0,0 +1,5 @@
if(linux*|hurd*):!cross_compile:!static:!*-armcc* {
prog=$$quote(if (/program interpreter: (.*)]/) { print $1; })
DEFINES += ELF_INTERPRETER=\\\"$$system(LC_ALL=C readelf -l /bin/ls | perl -n -e \'$$prog\')\\\"
}

View File

@ -0,0 +1,4 @@
for(d, sd): \
exists($$d/$${d}.pro): \
SUBDIRS += $$d

View File

@ -0,0 +1,3 @@
TEMPLATE = subdirs
SUBDIRS = \
kernel \

View File

@ -0,0 +1,17 @@
win32 {
!winrt {
SOURCES +=io/qstandardpaths_win.cpp
} else {
SOURCES +=io/qstandardpaths_winrt.cpp
}
} else:unix {
mac {
OBJECTIVE_SOURCES += io/qstandardpaths_mac.mm
} else:android {
SOURCES += io/qstandardpaths_android.cpp
} else:haiku {
SOURCES += io/qstandardpaths_haiku.cpp
} else {
SOURCES += io/qstandardpaths_unix.cpp
}
}

View File

@ -0,0 +1,2 @@
unset(f16c_cxx)

View File

@ -0,0 +1,2 @@
TARGET = Dummy
TARGET = $$qtLibraryTarget($$TARGET)