mirror of
https://github.com/crystalidea/qt6windows7.git
synced 2025-07-06 01:05:23 +08:00
qt 6.5.1 original
This commit is contained in:
15
tests/auto/tools/qmake/testdata/subdirs/simple_app/main.cpp
vendored
Normal file
15
tests/auto/tools/qmake/testdata/subdirs/simple_app/main.cpp
vendored
Normal 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();
|
||||
}
|
9
tests/auto/tools/qmake/testdata/subdirs/simple_app/simple_app.pro
vendored
Normal file
9
tests/auto/tools/qmake/testdata/subdirs/simple_app/simple_app.pro
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
TEMPLATE = app
|
||||
HEADERS = test_file.h
|
||||
SOURCES = test_file.cpp \
|
||||
main.cpp
|
||||
TARGET = "simple app"
|
||||
DESTDIR = "dest dir"
|
||||
|
||||
INCLUDEPATH += ../simple_dll
|
||||
LIBS += -L"../simple_dll/dest dir" -l"simple dll"
|
9
tests/auto/tools/qmake/testdata/subdirs/simple_app/test_file.cpp
vendored
Normal file
9
tests/auto/tools/qmake/testdata/subdirs/simple_app/test_file.cpp
vendored
Normal 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()
|
||||
{
|
||||
}
|
12
tests/auto/tools/qmake/testdata/subdirs/simple_app/test_file.h
vendored
Normal file
12
tests/auto/tools/qmake/testdata/subdirs/simple_app/test_file.h
vendored
Normal 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();
|
||||
};
|
18
tests/auto/tools/qmake/testdata/subdirs/simple_dll/simple.cpp
vendored
Normal file
18
tests/auto/tools/qmake/testdata/subdirs/simple_dll/simple.cpp
vendored
Normal 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";
|
||||
}
|
26
tests/auto/tools/qmake/testdata/subdirs/simple_dll/simple.h
vendored
Normal file
26
tests/auto/tools/qmake/testdata/subdirs/simple_dll/simple.h
vendored
Normal file
@ -0,0 +1,26 @@
|
||||
// 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>
|
||||
|
||||
#ifdef SIMPLEDLL_MAKEDLL
|
||||
# define SIMPLEDLL_EXPORT Q_DECL_EXPORT
|
||||
#else
|
||||
# define SIMPLEDLL_EXPORT Q_DECL_IMPORT
|
||||
#endif
|
||||
|
||||
class SIMPLEDLL_EXPORT Simple
|
||||
{
|
||||
public:
|
||||
Simple();
|
||||
~Simple();
|
||||
|
||||
QString test();
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
13
tests/auto/tools/qmake/testdata/subdirs/simple_dll/simple_dll.pro
vendored
Normal file
13
tests/auto/tools/qmake/testdata/subdirs/simple_dll/simple_dll.pro
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
TEMPLATE = lib
|
||||
CONFIG += dll
|
||||
|
||||
DEFINES += SIMPLEDLL_MAKEDLL
|
||||
|
||||
HEADERS = simple.h
|
||||
SOURCES = simple.cpp
|
||||
|
||||
INCLUDEPATH += . tmp
|
||||
MOC_DIR = tmp
|
||||
OBJECTS_DIR = tmp
|
||||
TARGET = "simple dll"
|
||||
DESTDIR = "dest dir"
|
6
tests/auto/tools/qmake/testdata/subdirs/subdirs.pro
vendored
Normal file
6
tests/auto/tools/qmake/testdata/subdirs/subdirs.pro
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
TEMPLATE = subdirs
|
||||
SUBDIRS = simple_dll \
|
||||
simple_app
|
||||
CONFIG += ordered
|
||||
|
||||
|
Reference in New Issue
Block a user