-
Notifications
You must be signed in to change notification settings - Fork 3
/
common.pri
96 lines (69 loc) · 3.57 KB
/
common.pri
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
VERSION = 1.0
REPORT_VERSION=$$VERSION
#DEFINES += SYSTEMINSTALL
BUILD_DIR = build
#REPORT_ROOT_PATH = "/usr"
REPORT_ROOT_PATH = "/home/alex/temp/install/cutereport/"
# path for variables in home dir
REPORT_VARS_PATH = "temp/cutereport/"
contains(DEFINES, SYSTEMINSTALL) {
#systemwide install: for linux distributions
REPORT_LIBS_PATH = $$REPORT_ROOT_PATH/lib/
REPORT_HEADERS_PATH = $$REPORT_ROOT_PATH/include/cutereport
REPORT_RESOURCES_PATH = $$REPORT_ROOT_PATH/share/cutereport
REPORT_IMAGES_PATH = $$REPORT_ROOT_PATH/share/cutereport/images
REPORT_PLUGINS_PATH = $$REPORT_LIBS_PATH/cutereport/reportcore_plugins
REPORT_EXAMPLES_PATH = $$REPORT_ROOT_PATH/share/cutereport/examples
REPORT_DESIGNER_PATH = $$REPORT_ROOT_PATH/bin
REPORT_DESIGNER_PLUGINS_PATH = $$REPORT_LIBS_PATH/cutereport/designer_plugins
REPORT_DESIGNER_LIBS_PATH = $$REPORT_LIBS_PATH
REPORT_DESIGNER_IMAGES_PATH= $$REPORT_RESOURCES_PATH/designer/images
REPORT_DESIGNER_RESOURCES_PATH= $$REPORT_RESOURCES_PATH/designer/
PROPERTYEDITOR_LIBS_PATH = $$REPORT_LIBS_PATH
PROPERTYEDITOR_HEADERS_PATH = $$REPORT_ROOT_PATH/include/propertyeditor
PROPERTYEDITOR_PLUGINS_PATH = $$PROPERTYEDITOR_LIBS_PATH/propertyeditor
QTDESIGNER_PLUGINS_PATH =
} else {
# all in one folder install
REPORT_LIBS_PATH =
REPORT_HEADERS_PATH = cutereport/include
REPORT_RESOURCES_PATH = cutereport/share
REPORT_IMAGES_PATH = cutereport/images
REPORT_PLUGINS_PATH = cutereport/plugins
REPORT_EXAMPLES_PATH = cutereport/examples
REPORT_DESIGNER_PATH =
REPORT_DESIGNER_PLUGINS_PATH = cutereport/designer/plugins
REPORT_DESIGNER_LIBS_PATH =
REPORT_DESIGNER_IMAGES_PATH= cutereport/designer/images
REPORT_DESIGNER_RESOURCES_PATH= cutereport/designer/share
PROPERTYEDITOR_LIBS_PATH =
PROPERTYEDITOR_HEADERS_PATH = cutereport/include/propertyeditor
PROPERTYEDITOR_PLUGINS_PATH = cutereport/propertyeditor/plugins
QTDESIGNER_PLUGINS_PATH = designer
}
#DEFINES += PROPERTYEDITOR_STATICPLAGINS
# -------------------------------------------------------------
DEFINES += REPORT_VERSION=\\\"$$REPORT_VERSION\\\"
DEFINES += REPORT_VARS_PATH=\\\"$$REPORT_VARS_PATH\\\"
DEFINES += REPORT_LIBS_PATH=\\\"$$REPORT_LIBS_PATH\\\"
DEFINES += REPORT_HEADERS_PATH=\\\"$$REPORT_HEADERS_PATH\\\"
DEFINES += REPORT_RESOURCES_PATH=\\\"$$REPORT_RESOURCES_PATH\\\"
DEFINES += REPORT_IMAGES_PATH=\\\"$$REPORT_IMAGES_PATH\\\"
DEFINES += REPORT_PLUGINS_PATH=\\\"$$REPORT_PLUGINS_PATH\\\"
DEFINES += REPORT_EXAMPLES_PATH=\\\"$$REPORT_EXAMPLES_PATH\\\"
DEFINES += REPORT_DESIGNER_PATH=\\\"$$REPORT_DESIGNER_PATH\\\"
DEFINES += REPORT_DESIGNER_PLUGINS_PATH=\\\"$$REPORT_DESIGNER_PLUGINS_PATH\\\"
DEFINES += REPORT_DESIGNER_LIBS_PATH=\\\"$$REPORT_DESIGNER_LIBS_PATH\\\"
DEFINES += REPORT_DESIGNER_IMAGES_PATH=\\\"$$REPORT_DESIGNER_IMAGES_PATH\\\"
DEFINES += REPORT_DESIGNER_RESOURCES_PATH=\\\"$$REPORT_DESIGNER_RESOURCES_PATH\\\"
DEFINES += PROPERTYEDITOR_LIBS=\\\"$$PROPERTYEDITOR_LIBS_PATH\\\"
DEFINES += PROPERTYEDITOR_HEADERS_PATH=\\\"$$PROPERTYEDITOR_HEADERS_PATH\\\"
DEFINES += PROPERTYEDITOR_PLUGINS_PATH=\\\"$$PROPERTYEDITOR_PLUGINS_PATH\\\"
INCLUDEPATH += lib/
DEPENDPATH += $$INCLUDEPATH
lessThan(QT_MAJOR_VERSION, 5) {
QT += script xml sql
} else {
QT += script xml sql widgets
}
CONFIG -= debug_and_release