summaryrefslogtreecommitdiffstats
path: root/examples/designer/arthurplugin/arthurplugin.pro
blob: 4b481440fda42d1e6d80d0da535628912af76499 (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

CONFIG      += plugin
QT          += designer
TEMPLATE    = lib
TARGET = $$qtLibraryTarget(arthurplugin)
DESTDIR = $$QT.designer.plugins/designer

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

QT_BASE_EXAMPLES = $$QT.core.sources/../../examples

SHARED_FOLDER = $$QT_BASE_EXAMPLES/painting/shared
include($$QT_BASE_EXAMPLES/painting/shared/shared.pri)

EXAMPLE_AFFINE_DIR = $$QT_BASE_EXAMPLES/painting/affine
EXAMPLE_COMPOSITION_DIR = $$QT_BASE_EXAMPLES/painting/composition
EXAMPLE_DEFORM_DIR = $$QT_BASE_EXAMPLES/painting/deform
EXAMPLE_GRADIENT_DIR = $$QT_BASE_EXAMPLES/painting/gradients
EXAMPLE_STROKE_DIR = $$QT_BASE_EXAMPLES/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

# install
target.path = $$[QT_INSTALL_PLUGINS]/designer
sources.files = $$SOURCES $$HEADERS $$RESOURCES *.pro *.jpg *.png
sources.path = $$[QT_INSTALL_EXAMPLES]/qttools/designer/arthurplugin
INSTALLS += target sources

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