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,7 @@
SOURCES += main.cpp
QWERTY_BUNDLE.version = Bogus.78
QWERTY_BUNDLE.files = some-file "existing file" "non-existing file"
QWERTY_BUNDLE.path = QwertyData
QMAKE_BUNDLE_DATA = QWERTY_BUNDLE

View File

View File

@ -0,0 +1,6 @@
all:
C:\git\qt-kinetic-animations\bin\qmake qdir.pro -o Makefile -spec win32-msvc2008
nmake -f Makefile
first: all
qmake:
C:\git\qt-kinetic-animations\bin\qmake qdir.pro -o Makefile -spec win32-msvc2008

View File

@ -0,0 +1,5 @@
TEMPLATE = app
CONFIG += debug_and_release build_all
TARGET = bah
DESTDIR = shu
SOURCES += main.cpp

View File

@ -0,0 +1,4 @@
int main(int, char **)
{
return 0;
}

View File

@ -0,0 +1,7 @@
LIBS = -lqui -lqtest -lqui
CONFIG -= link_prl
JOINEDLIBS = $$join(LIBS, "_")
!contains(JOINEDLIBS, -lqui_-lqtest_-lqui) {
message("FAILED: duplibs")
}

View File

@ -0,0 +1 @@
# This just balances default_pre.prf (which does not daisy-chain to the one from qmake).

View File

@ -0,0 +1,7 @@
defineTest(setVar) {
eval($${1}=bar)
export($$1)
}
setVar(FOO)

View File

@ -0,0 +1,17 @@
TEMPLATE = aux
CONFIG =
!equals(FOO,bar) {
message( "FAILED: export() invisible from default_pre.prf to foo.pro" )
}
O_FOO=$$fromfile(oink.pri,FOO)
O_BAR=$$fromfile(oink.pri,BAR)
!equals(O_BAR,bar) {
message( "FAILED: export() invisible from oink.pri through \$$fromfile()" )
}
!equals(O_FOO,bar) {
message( "FAILED: export() invisible from default_pre.prf through \$$fromfile()" )
}

View File

@ -0,0 +1,2 @@
load(default_pre)
setVar(BAR)

View File

@ -0,0 +1,15 @@
DESTDIR = ./
gcc: QMAKE_CXXFLAGS += -Wno-comment
HEADERS += object1.h \
object2.h \
object3.h \
object4.h \
object5.h \
object6.h \
object7.h \
object8.h \
object9.h \
objecta.h \
objectf.h
SOURCES += main.cpp needed.cpp

View File

@ -0,0 +1,60 @@
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#define spurious \
/ #include "needed.cpp"
// if not ignored, symbol needed() won't be available ...
// Check we're not confused by string juxtaposition:
static const char text[] = "lorem ""ipsum /*";
#include <moc_object1.cpp>
/**/ #include "\
moc_object2.cpp\
"
/**//**/ #include <moc_\
o\
b\
j\
e\
c\
t\
3\
.cpp>
/*'"*/ #include <moc_object4.cpp>
/*"'
*/ #include <moc_object5.cpp> /*
#include "missing.cpp"
*/// a backslash newline does make the next line part of this comment \
/* so this text is in last line's C++-style comment, not a C-comment !
#include <moc_object6.cpp>
#if 0
#pragma "ignore me" '&' L"me"
#line 4321 "main.cpp" more /* preprocessing */ tokens
#endif
static void function1();
#include/* every comment
gets replaced (in phase 3) by a single
space */<moc_object7.cpp>
static void function2(); /**/
#include \
<moc_object8.cpp>
static void function3(); //
#include <moc_object9.cpp>
/* backslash-newline elimination happens in phase 2 *\
/ # /* and that's valid here, too. *\
/ include/* and, of course, here *\
/<moc_objecta.cpp>// while we're here, ... \
#include "needed.cpp"
int main () {
extern int needed(void);
return needed();
}
/*
Deliberately end file in a #include, with nothing after it but the mandatory
(unescaped) newline at the end of every source file.
*/
#include "moc_objectf.cpp"

View File

@ -0,0 +1 @@
extern int needed(void) { return 1; }

View File

@ -0,0 +1,11 @@
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#include <QObject>
class Object1 : public QObject
{
Q_OBJECT
};

View File

@ -0,0 +1,11 @@
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#include <QObject>
class Object2 : public QObject
{
Q_OBJECT
};

View File

@ -0,0 +1,11 @@
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#include <QObject>
class Object3 : public QObject
{
Q_OBJECT
};

View File

@ -0,0 +1,11 @@
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#include <QObject>
class Object4 : public QObject
{
Q_OBJECT
};

View File

@ -0,0 +1,11 @@
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#include <QObject>
class Object5 : public QObject
{
Q_OBJECT
};

View File

@ -0,0 +1,11 @@
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#include <QObject>
class Object6 : public QObject
{
Q_OBJECT
};

View File

@ -0,0 +1,11 @@
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#include <QObject>
class Object7 : public QObject
{
Q_OBJECT
};

View File

@ -0,0 +1,11 @@
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#include <QObject>
class Object8 : public QObject
{
Q_OBJECT
};

View File

@ -0,0 +1,11 @@
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#include <QObject>
class Object9 : public QObject
{
Q_OBJECT
};

View File

@ -0,0 +1,11 @@
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#include <QObject>
class ObjectA : public QObject
{
Q_OBJECT
};

View File

@ -0,0 +1,11 @@
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#include <QObject>
class ObjectF : public QObject
{
Q_OBJECT
};

View File

@ -0,0 +1,8 @@
#include <QObject>
class AfterDigitSeparator : public QObject
{
Q_OBJECT
public:
AfterDigitSeparator() : QObject(nullptr) {}
};

View File

@ -0,0 +1,6 @@
DESTDIR = ./
HEADERS += object1.h object2.h object3.h object4.h \
object5.h object6.h object7.h object8.h object9.h \
digitseparated.h
SOURCES += main.cpp

View File

@ -0,0 +1,19 @@
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#include <moc_object1.cpp>
#include <moc_object2.cpp>
#include <moc_object3.cpp>
#include "object4.h"
#include <moc_object5.cpp>
#include <moc_object6.cpp>
#include <moc_object7.cpp>
#include "object8.h"
#include <moc_object9.cpp>
int main() { return 0'000; }
/* Included *after* the use of a numeric literal with an *odd* number of digit
separator tick marks in it (and no subsequent apostrophe to end the
"single-quoted character literal" that the old parser though it was thus left
in). */
#include <moc_digitseparated.cpp>

View File

@ -0,0 +1,12 @@
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
/**//*'*/
#include <QObject>
class Object1 : public QObject
{
Q\
_OBJECT
};

View File

@ -0,0 +1,11 @@
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
/**//*"*/
#include <QObject>
class Object2 : public QObject
{
Q_\
OBJECT
};

View File

@ -0,0 +1,12 @@
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
/*
*/
#include <QObject>
class Object3 : public QObject
{
Q_OBJ\
ECT
};

View File

@ -0,0 +1,22 @@
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#include <QObject>
/*/ <-- Inside a comment
class Object4 : public QObject
{
Q_OBJECT
};
Comment ends there --> /*/
// Now we poison moc, just to make sure this doesn't get moc'ed :)
class NonMocObject4
/* : QObject */
{
/* qmake ignore Q_OBJECT */
Q_OBJECT
};

View File

@ -0,0 +1,10 @@
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#include <QObject>
class Object5 : public QObject
{
/**/Q_OBJECT
};

View File

@ -0,0 +1,12 @@
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
/**//*'*/
#include <QObject>
class Object6 : public QObject
{
/**//*
*/Q_OBJECT
};

View File

@ -0,0 +1,13 @@
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
/**//*'*/
#include <QObject>
#define bogon /"/*"
class Object7 : public QObject
{
//
Q_OBJECT
};

View File

@ -0,0 +1,20 @@
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#include <QObject>
#define Q_OBJECTOID_THING // empty
class Object8 : public QObject
{
Q_OBJECT\
OID_THING
};
// Now we poison moc, just to make sure this doesn't get moc'ed :)
class NonMocObject8
/* : QObject */
{
/* qmake ignore Q_OBJECT */
Q_OBJECT
};

View File

@ -0,0 +1,11 @@
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#include <QObject>
#define juxtaposed "lorem ""ipsum /*"
class Object9 : public QObject
{
Q_OBJECT
};

View File

@ -0,0 +1,11 @@
UI_DIR =
MOC_DIR=
TEMPLATE=app
TARGET=foo
FORMS=untitled.ui
HEADERS=test_file.h
SOURCES=\
test_file.cpp\
main.cpp
CONFIG -= debug_and_release_target
QT += widgets

View File

@ -0,0 +1,13 @@
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#include "test_file.h"
#include <qapplication.h>
int main( int argc, char **argv )
{
QApplication a( argc, argv );
SomeObject sc;
return a.exec();
}

View File

@ -0,0 +1,10 @@
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#include "test_file.h"
SomeObject::SomeObject() : QWidget()
{
setupUi( this );
}

View File

@ -0,0 +1,14 @@
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#include <qwidget.h>
#include "ui_untitled.h"
class SomeObject : public QWidget, public Ui_Form
{
Q_OBJECT
public:
SomeObject();
signals:
void someSignal();
};

View File

@ -0,0 +1,22 @@
<ui version="4.0" >
<author></author>
<comment></comment>
<exportmacro></exportmacro>
<class>Form</class>
<widget class="QWidget" name="Form" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>400</width>
<height>300</height>
</rect>
</property>
<property name="windowTitle" >
<string>Form</string>
</property>
</widget>
<pixmapfunction></pixmapfunction>
<resources/>
<connections/>
</ui>

View File

@ -0,0 +1 @@
Here to ensure include_dir_build exists

View File

@ -0,0 +1,2 @@
/* This file should be included indirectly through main.cpp */

View File

@ -0,0 +1,4 @@
TEMPLATE = app
SOURCES = main.cpp
CONFIG -= debug_and_release_target
INCLUDEPATH += somedirectory

View File

@ -0,0 +1,6 @@
#include "someheader.h"
int main()
{
return 0;
}

View File

@ -0,0 +1 @@
#include "anotherheader.h"

View File

@ -0,0 +1,20 @@
TEMPLATE=app
TARGET=foo
CONFIG -= debug_and_release_target
HEADERS=test_file.h
SOURCES=\
test_file.cpp\
main.cpp
test1.files=test1
test1.path=dist
INSTALLS+=test1
test2.files=test2
test2.path=dist
INSTALLS+=test2
target.path=dist
target.depends=install_test1 install_test2
INSTALLS+=target

View File

@ -0,0 +1,13 @@
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#include "test_file.h"
#include <qguiapplication.h>
int main( int argc, char **argv )
{
QGuiApplication a( argc, argv );
SomeObject sc;
return a.exec();
}

View File

View File

View File

@ -0,0 +1,9 @@
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#include "test_file.h"
SomeObject::SomeObject() : QObject()
{
}

View File

@ -0,0 +1,12 @@
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#include <qobject.h>
class SomeObject : public QObject
{
Q_OBJECT
public:
SomeObject();
signals:
void someSignal();
};

View File

@ -0,0 +1,12 @@
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#include <qguiapplication.h>
int main( int argc, char **argv )
{
QGuiApplication a( argc, argv );
return a.exec();
}

View File

@ -0,0 +1,4 @@
TEMPLATE = app
SOURCES = main.cpp
TARGET = "one space"
DESTDIR = ./

View File

@ -0,0 +1,19 @@
TEMPLATE = app
CONFIG -= debug_and_release_target
SOURCES =
content = ""
write_file("include.pri", content)
include(include.pri)
content = "SOURCES = main.cpp"
write_file("include.pri", content)
include(include.pri)
# Make sure that including the .pri file a second time will reload it properly
# off disk with the new content.
isEmpty(SOURCES): error(No sources defined)
# Empty it again to silence qmake about non-existance sources
SOURCES =

View File

@ -0,0 +1,12 @@
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#include "test_file.h"
#include <qguiapplication.h>
int main( int argc, char **argv )
{
QGuiApplication a(argc, argv);
SomeObject sc;
return a.exec();
}

View File

@ -0,0 +1,5 @@
<RCC>
<qresource prefix="/">
<file>test.qrc</file>
</qresource>
</RCC>

View File

@ -0,0 +1,8 @@
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#include "test_file.h"
SomeObject::SomeObject() : QObject()
{
}

View File

@ -0,0 +1,13 @@
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#include <qobject.h>
class SomeObject : public QObject
{
Q_OBJECT
public:
SomeObject();
signals:
void someSignal();
};

View File

@ -0,0 +1 @@
# a = $$prompt(Prompteroo)

View File

@ -0,0 +1 @@
/* a random header file */

View File

@ -0,0 +1,13 @@
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#include <header.h>
#include <qguiapplication.h>
int main( int argc, char **argv )
{
QGuiApplication a( argc, argv );
return a.exec();
}

View File

@ -0,0 +1,24 @@
TEMPLATE = app
TARGET = quotedfilenames
SOURCES = main.cpp
CONFIG += no_batch
INCLUDEPATH += "include folder"
RCCINPUT = "rc folder/test.qrc"
RCCOUTPUT = "cpp folder/test.cpp"
qtPrepareLibExecTool(QMAKE_RCC, rcc)
rcc_test.commands = $$QMAKE_RCC -o ${QMAKE_FILE_OUT} ${QMAKE_FILE_IN}
rcc_test.output = $$RCCOUTPUT
rcc_test.input = RCCINPUT
rcc_test.variable_out = SOURCES
rcc_test.name = RCC_TEST
rcc_test.CONFIG += no_link
rcc_test.depends = $$QMAKE_RCC_EXE
QMAKE_EXTRA_COMPILERS += rcc_test
DESTDIR = ./

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

View File

@ -0,0 +1,5 @@
<!DOCTYPE RCC><RCC version="1.0">
<qresource>
<file>logo.png</file>
</qresource>
</RCC>

View File

@ -0,0 +1,107 @@
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
// macro names that *aren't* string-literal-prefixes:
#define Ru8 "rue-it"
#define RL "real life"
#define Ru "are you ?"
#define RU "Are You ?"
#define LLR "double-hockey-sticks"
#define LUR "Tricky"
#define LuR "tricky"
#define Lu8R "l'uber"
#define UUR "Double-Yew"
#define ULR "Eweler"
#define UuR "You ... you-are"
#define Uu8R "You ... you *ate* our ..."
#define uuR "water"
#define uLR "eweler"
#define uUR "double-Your"
#define uu8R "totally uber"
#define u8u8R "rubber-you"
#define u8LR "Uber left-to-right"
#define u8UR "Uber Upper-Right"
#define u8uR "Uber upper-right"
#define Ru8R "bouncy"
#define RLR "Marching"
#define RuR "Rossum's general-purpose workers"
#define RUR "Rossum's Universal Robots"
static const char monstrosity[] =
Ru8"Ru8("
RL"RL("
Ru"Ru("
RU"RU("
LLR"LLR("
LUR"LUR("
LuR"LuR("
Lu8R"Lu8R("
UUR"UUR("
ULR"ULR("
UuR"UuR("
Uu8R"Uu8R("
uuR"uuR("
uLR"uLR("
uUR"uUR("
uu8R"uu8R("
u8u8R"u8u8R("
u8LR"u8LR("
u8UR"u8UR("
u8uR"u8uR("
Ru8R"Ru8R("
RLR"RLR("
RuR"RuR("
RUR"RUR("
"Finally, some content";
#include <moc_object2.cpp>
static const char closure[] =
")RUR"
")RuR"
")RLR"
")Ru8R"
")u8uR"
")u8UR"
")u8LR"
")u8u8R"
")uu8R"
")uUR"
")uLR"
")uuR"
")Uu8R"
")UuR"
")ULR"
")UUR"
")Lu8R"
")LuR"
")LUR"
")LLR"
")RU"
")Ru"
")RL"
")Ru8";
// If moc got confused, the confusion should now be over
// Real raw strings, not actually leaving us inside any comments:
static const char raw[] = R"blah(lorem " ipsum /*)blah"\
;
static const wchar_t wider[] = LR"blah(lorem " ipsum /*)blah"\
;
static const char32_t UCS4[] = UR"blah(lorem " ipsum /*)blah"\
;
static const char16_t UCS2[] = uR"blah(lorem " ipsum /*)blah"\
;
static const char utf8[] = u8R"blah(lorem " ipsum /*)blah"\
;
#include <moc_object1.cpp>
/* Avoid unused variable warnings by silly uses of arrays: */
#define final(x) x[sizeof(x) - 1] // 0, of course
int main () {
return final(raw)
* (final(wider) - final(UCS4))
* (final(UCS2) - final(utf8))
* (final(monstrosity) - final(closure));
}
#undef final

View File

@ -0,0 +1,10 @@
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#define rawstring R"blah(lorem " ipsum /*)blah";
#include <QObject>
class Object1 : public QObject
{
Q_OBJECT
};

View File

@ -0,0 +1,24 @@
// Copyright (C) 2017 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
#ifndef TEST_QMAKE_RAWSTRING_OBJECT2_H
#define TEST_QMAKE_RAWSTRING_OBJECT2_H
#define Lu8UR "land"
inline char opener(int i) {
const char text[] = Lu8UR"blah( not a raw string; just juxtaposed";
return text[i];
}
#include <QObject>
class Object2 : public QObject
{
Q_OBJECT
};
inline char closer(int i) {
const char text[] = "pretend to close it, all the same )blah";
return text[i];
}
#endif // TEST_QMAKE_RAWSTRING_OBJECT2_H

View File

@ -0,0 +1,4 @@
DESTDIR = ./
HEADERS += object1.h object2.h
SOURCES += main.cpp

View File

@ -0,0 +1,12 @@
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#include <qguiapplication.h>
int main( int argc, char **argv )
{
QGuiApplication a( argc, argv );
return a.exec();
}

View File

@ -0,0 +1,11 @@
TEMPLATE = app
CONFIG -= debug_and_release
SOURCES = main.cpp
pro_file.files = resources.pro
pro_file.prefix = /prefix
subdir.files = subdir/file.txt
subdir.base = subdir
RESOURCES = test.qrc main.cpp pro_file subdir

View File

@ -0,0 +1,5 @@
<RCC>
<qresource prefix="/">
<file>test.qrc</file>
</qresource>
</RCC>

View File

@ -0,0 +1,14 @@
TEMPLATE=app
CONFIG -= debug_and_release_target
TARGET=foo
HEADERS=test_file.h
SOURCES=\
test_file.cpp\
main.cpp
target.path=dist
INSTALLS+=target
test.files=test.txt foo.bar
test.path=dist
INSTALLS+=test

View File

@ -0,0 +1,13 @@
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#include "test_file.h"
#include <qguiapplication.h>
int main( int argc, char **argv )
{
QGuiApplication a( argc, argv );
SomeObject sc;
return a.exec();
}

View File

View File

@ -0,0 +1,9 @@
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#include "test_file.h"
SomeObject::SomeObject() : QObject()
{
}

View File

@ -0,0 +1,12 @@
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#include <qobject.h>
class SomeObject : public QObject
{
Q_OBJECT
public:
SomeObject();
signals:
void someSignal();
};

View File

@ -0,0 +1 @@
Here to ensure shadow_files_build exists, used by the shadow_files test.

View File

@ -0,0 +1 @@
Here to ensure build/ exists, used by the simple_app_shadowbuild2 test.

View File

@ -0,0 +1,14 @@
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#include "test_file.h"
#include <qguiapplication.h>
int main( int argc, char **argv )
{
QGuiApplication a( argc, argv );
SomeObject sc;
return a.exec();
}

View File

@ -0,0 +1,12 @@
TEMPLATE = app
HEADERS = test_file.h
SOURCES = test_file.cpp \
main.cpp
RESOURCES = test.qrc
TARGET = "simple app"
DESTDIR = "dest dir"
target.path = $$OUT_PWD/dist
INSTALLS += target
!build_pass:msvc:CONFIG(debug, debug|release):message("check for pdb, please")

View File

@ -0,0 +1,5 @@
<RCC>
<qresource prefix="/">
<file>test.qrc</file>
</qresource>
</RCC>

View File

@ -0,0 +1,9 @@
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#include "test_file.h"
SomeObject::SomeObject() : QObject()
{
}

View File

@ -0,0 +1,12 @@
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#include <qobject.h>
class SomeObject : public QObject
{
Q_OBJECT
public:
SomeObject();
signals:
void someSignal();
};

View File

@ -0,0 +1 @@
Placeholder file to ensure this directory exists

View File

@ -0,0 +1,18 @@
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#include "simple.h"
Simple::Simple()
{
}
Simple::~Simple()
{
}
QString Simple::test()
{
return "This is a test";
}

View File

@ -0,0 +1,21 @@
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#ifndef SIMPLE_H
#define SIMPLE_H
#include <qstring.h>
//class SIMPLEDLL_EXPORT Simple
class Simple
{
public:
Simple();
~Simple();
QString test();
};
#endif

View File

@ -0,0 +1,14 @@
TEMPLATE = lib
CONFIG += dll
win32:DEFINES += SIMPLEDLL_MAKEDLL
HEADERS = simple.h
SOURCES = simple.cpp
VERSION = 1.0.0
INCLUDEPATH += . tmp
MOC_DIR = tmp
OBJECTS_DIR = tmp
TARGET = "simple dll"
DESTDIR = "dest dir"

View File

@ -0,0 +1,18 @@
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#include "simple.h"
Simple::Simple()
{
}
Simple::~Simple()
{
}
QString Simple::test()
{
return "This is a test";
}

View File

@ -0,0 +1,20 @@
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#ifndef SIMPLE_H
#define SIMPLE_H
#include <qstring.h>
class Simple
{
public:
Simple();
~Simple();
QString test();
};
#endif

View File

@ -0,0 +1,13 @@
TEMPLATE = lib
CONFIG += release staticlib
CONFIG -= dll
HEADERS = simple.h
SOURCES = simple.cpp
VERSION = 1.0.0
INCLUDEPATH += . tmp
MOC_DIR = tmp
OBJECTS_DIR = tmp
TARGET = "simple lib"
DESTDIR = "dest dir"

View File

@ -0,0 +1,7 @@
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
int main(int,char**)
{
}

View File

@ -0,0 +1,5 @@
TEMPLATE = app
SOURCES = main.cpp
extratarget.commands = @echo extra target worked OK
QMAKE_EXTRA_TARGETS += extratarget

View File

@ -0,0 +1,7 @@
TEMPLATE = subdirs
SUBDIRS = simple
extratarget.CONFIG = recursive
extratarget.recurse = $$SUBDIRS
extratarget.recurse_target = extratarget
QMAKE_EXTRA_TARGETS += extratarget

View File

@ -0,0 +1,7 @@
TEMPLATE = subdirs
SUBDIRS = subdir.pro
extratarget.CONFIG = recursive
extratarget.recurse = $$SUBDIRS
extratarget.recurse_target = extratarget
QMAKE_EXTRA_TARGETS += extratarget

View File

@ -0,0 +1,15 @@
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#include <simple.h>
#include "test_file.h"
#include <qguiapplication.h>
int main( int argc, char **argv )
{
QGuiApplication a( argc, argv );
Simple s;
SomeObject sc;
return a.exec();
}

Some files were not shown because too many files have changed in this diff Show More