summaryrefslogtreecommitdiffstats
path: root/examples/designer/arthurplugin/arthurplugin.pro
blob: 57cfd360200c83db675af1cc9baf5733dacc40a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
QT += designer

QTDIR_build {
# This is only for the Qt build. Do not use externally. We mean it.
PLUGIN_TYPE = designer
load(qt_plugin)
} else {
# Public example:

CONFIG      += plugin
TEMPLATE    = lib

TARGET = $$qtLibraryTarget($$TARGET)

target.path = $$[QT_INSTALL_PLUGINS]/designer
INSTALLS += target

}

contains(QT_CONFIG, opengl) {
    DEFINES += QT_OPENGL_SUPPORT
    QT += opengl
}

QT_BASE_EXAMPLES = $$QT.core.sources/../../examples
SHARED_FOLDER = $$QT_BASE_EXAMPLES/widgets/painting/shared
include($$QT_BASE_EXAMPLES/widgets/painting/shared/shared.pri)

EXAMPLE_AFFINE_DIR = $$QT_BASE_EXAMPLES/widgets/painting/affine
EXAMPLE_COMPOSITION_DIR = $$QT_BASE_EXAMPLES/widgets/painting/composition
EXAMPLE_DEFORM_DIR = $$QT_BASE_EXAMPLES/widgets/painting/deform
EXAMPLE_GRADIENT_DIR = $$QT_BASE_EXAMPLES/widgets/painting/gradients
EXAMPLE_STROKE_DIR = $$QT_BASE_EXAMPLES/widgets/painting/pathstroke

INCLUDEPATH += $$EXAMPLE_AFFINE_DIR $$EXAMPLE_COMPOSITION_DIR $$EXAMPLE_DEFORM_DIR $$EXAMPLE_GRADIENT_DIR $$EXAMPLE_STROKE_DIR

SOURCES = plugin.cpp \
    $$EXAMPLE_AFFINE_DIR/xform.cpp \
    $$EXAMPLE_COMPOSITION_DIR/composition.cpp \
    $$EXAMPLE_DEFORM_DIR/pathdeform.cpp \
    $$EXAMPLE_GRADIENT_DIR/gradients.cpp \
    $$EXAMPLE_STROKE_DIR/pathstroke.cpp \


HEADERS = \
    $$EXAMPLE_AFFINE_DIR/xform.h \
    $$EXAMPLE_COMPOSITION_DIR/composition.h \
    $$EXAMPLE_DEFORM_DIR/pathdeform.h \
    $$EXAMPLE_GRADIENT_DIR/gradients.h \
    $$EXAMPLE_STROKE_DIR/pathstroke.h \

RESOURCES += arthur_plugin.qrc

win32-msvc* {
    QMAKE_CFLAGS += /Zm500
    QMAKE_CXXFLAGS += /Zm500
}