|
1 |
|
2 QTDIR = $$QT_SOURCE_TREE |
|
3 |
|
4 CONFIG += designer plugin |
|
5 TEMPLATE = lib |
|
6 QTDIR_build:DESTDIR = $$QT_BUILD_TREE/plugins/designer |
|
7 |
|
8 contains(QT_CONFIG, opengl) { |
|
9 DEFINES += QT_OPENGL_SUPPORT |
|
10 QT += opengl |
|
11 } |
|
12 |
|
13 SHARED_FOLDER = ../shared |
|
14 include(../shared/shared.pri) |
|
15 |
|
16 DEMO_DEFORM_DIR = ../deform |
|
17 DEMO_AFFINE_DIR = ../affine |
|
18 DEMO_GRADIENT_DIR = ../gradients |
|
19 DEMO_STROKE_DIR = ../pathstroke |
|
20 DEMO_COMPOSITION_DIR = ../composition |
|
21 |
|
22 INCLUDEPATH += $$DEMO_DEFORM_DIR $$DEMO_AFFINE_DIR $$DEMO_GRADIENT_DIR $$DEMO_STROKE_DIR $$DEMO_COMPOSITION_DIR |
|
23 |
|
24 SOURCES = plugin.cpp \ |
|
25 $$DEMO_COMPOSITION_DIR/composition.cpp \ |
|
26 $$DEMO_AFFINE_DIR/xform.cpp \ |
|
27 $$DEMO_DEFORM_DIR/pathdeform.cpp \ |
|
28 $$DEMO_GRADIENT_DIR/gradients.cpp \ |
|
29 $$DEMO_STROKE_DIR/pathstroke.cpp \ |
|
30 |
|
31 |
|
32 HEADERS = \ |
|
33 $$DEMO_COMPOSITION_DIR/composition.h \ |
|
34 $$DEMO_AFFINE_DIR/xform.h \ |
|
35 $$DEMO_DEFORM_DIR/pathdeform.h \ |
|
36 $$DEMO_GRADIENT_DIR/gradients.h \ |
|
37 $$DEMO_STROKE_DIR/pathstroke.h \ |
|
38 |
|
39 RESOURCES += arthur_plugin.qrc |
|
40 |
|
41 # install |
|
42 target.path = $$[QT_INSTALL_PLUGINS]/designer |
|
43 sources.files = $$SOURCES $$HEADERS $$RESOURCES *.pro *.jpg *.png |
|
44 sources.path = $$[QT_INSTALL_DEMOS]/arthurplugin |
|
45 INSTALLS += target sources |
|
46 |
|
47 symbian: include($$QT_SOURCE_TREE/demos/symbianpkgrules.pri) |
|
48 |
|
49 win32-msvc* { |
|
50 QMAKE_CFLAGS += /Zm500 |
|
51 QMAKE_CXXFLAGS += /Zm500 |
|
52 } |
|
53 |