-
Notifications
You must be signed in to change notification settings - Fork 3
/
CuteReport.pro
44 lines (37 loc) · 1.5 KB
/
CuteReport.pro
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
TEMPLATE = subdirs
SUBDIRS = src
!include( $$PWD/common.pri ) {
error( Can not find the common.pri file! )
}
!contains(DEFINES, SYSTEMINSTALL) {
unix:!macx {
startscripts.files = $$PWD/pkg/cutereport.sh
startscripts.path = $$OUT_PWD/$$BUILD_DIR/$$REPORT_DESIGNER_PATH
INSTALLS += startscripts
}
win32:{
installscripts.files = $$PWD/pkg/install.iss
installscripts.path = $$OUT_PWD/$$BUILD_DIR/
INSTALLS += installscripts
warning(dir = $$installscripts.path)
}
}
ADDITIONAL_FILES.files = COPYING pkg/cutereport.ico
DATASET_FILES.files = examples/datasets/*
REPORT_FILES.files = examples/reports/*
TEMPLATE_FILES.files = examples/templates/*
IMAGE_FILES.files = examples/images/*
INSTALLS += ADDITIONAL_FILES DATASET_FILES REPORT_FILES TEMPLATE_FILES IMAGE_FILES
contains(DEFINES, SYSTEMINSTALL) {
ADDITIONAL_FILES.path = $$REPORT_RESOURCES_PATH
DATASET_FILES.path = $$REPORT_EXAMPLES_PATH/datasets/
REPORT_FILES.path = $$REPORT_EXAMPLES_PATH/reports/
TEMPLATE_FILES.path = $$REPORT_EXAMPLES_PATH/templates/
IMAGE_FILES.path = $$REPORT_EXAMPLES_PATH/images/
} else {
ADDITIONAL_FILES.path = $$OUT_PWD/$$BUILD_DIR
DATASET_FILES.path = $$OUT_PWD/$$BUILD_DIR/$$REPORT_EXAMPLES_PATH/datasets/
REPORT_FILES.path = $$OUT_PWD/$$BUILD_DIR/$$REPORT_EXAMPLES_PATH/reports/
TEMPLATE_FILES.path = $$OUT_PWD/$$BUILD_DIR/$$REPORT_EXAMPLES_PATH/templates/
IMAGE_FILES.path = $$OUT_PWD/$$BUILD_DIR/$$REPORT_EXAMPLES_PATH/images/
}