forked from caqtdm/caqtdm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
all.pro
110 lines (85 loc) · 3.09 KB
/
all.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
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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
# put in file 5.13.1/ios/mkspecs/features/toolchain.prf after line 184 darwin {
# cxx_flags += -arch $$QMAKE_APPLE_DEVICE_ARCHS otherwise nothing works for ios 14
# even parsing of the .pro files fails
_QTHOME=$$(QTHOME)
_QWTHOME=$$(QWTHOME)
_EPICSBASE=$$(EPICS_BASE)
_EPICSHOSTARCH=$$(EPICS_HOST_ARCH)
include (caQtDM_Viewer/qtdefs.pri)
isEmpty(_QTHOME){
message("QTHOME must be defined in order to locate QT")
error(please define QTHOME.)
}else{
message("QT located in $$_QTHOME")
}
isEmpty(_QWTHOME){
message("QWTHOME must be defined in order to locate QWT")
error(please define QWTHOME.)
}else{
message("qwt located in $$_QWTHOME")
}
isEmpty(_EPICSBASE){
message("EPICS_BASE must be defined in order to use EPICS")
error(please define EPICS_BASE.)
}else{
message("EPICS located in $$_EPICSBASE")
}
isEmpty(_EPICSHOSTARCH){
message("EPICS_HOST_ARCH must be defined in order to use EPICS")
error(please define EPICS_HOST_ARCH.)
}else{
message("EPICS_HOST_ARCH located in $$_EPICSHOSTARCH")
}
#version check qt
contains(QT_VERSION, ^4\\.[0-5]\\..*) {
message("Cannot build package with Qt version $${QT_VERSION}.")
error("Use at least Qt 4.6.")
}
TEMPLATE = subdirs
SUBDIRS = caQtDM_QtControls caQtDM_Lib caQtDM_Viewer
SUBDIRS += qtcontrols_controllers qtcontrols_graphics qtcontrols_monitors qtcontrols_utilities
SUBDIRS += caQtDM_Plugins
android {
SUBDIRS += caQtDM_AndroidFunctions
}
qtcontrols_controllers.file = caQtDM_QtControls/plugins/qtcontrols_controllers.pro
qtcontrols_controllers.depends = caQtDM_QtControls caQtDM_Lib
qtcontrols_graphics.file = caQtDM_QtControls/plugins/qtcontrols_graphics.pro
qtcontrols_graphics.depends = caQtDM_QtControls caQtDM_Lib
qtcontrols_monitors.file = caQtDM_QtControls/plugins/qtcontrols_monitors.pro
qtcontrols_monitors.depends = caQtDM_QtControls caQtDM_Lib
qtcontrols_utilities.file = caQtDM_QtControls/plugins/qtcontrols_utilities.pro
qtcontrols_utilities.depends = caQtDM_QtControls caQtDM_Lib
caQtDM_Plugins.file = caQtDM_Lib/caQtDM_Plugins/csplugins.pro
caQtDM_Plugins.depends = caQtDM_Lib
!MOBILE {
SUBDIRS += caQtDM_Parsers parser
unix:{
SUBDIRS += parserEDM
}
parser.file = caQtDM_Viewer/parser/parser.pro
parser.depends = caQtDM_Parsers
parserEDM.file = caQtDM_Viewer/parserEDM/parserEDM.pro
parserEDM.depends = caQtDM_Parsers
ADL_EDL_FILES {
caQtDM_Lib.depends += caQtDM_Parsers
}
}
caQtDM_Viewer.depends = caQtDM_QtControls caQtDM_Lib qtcontrols_controllers qtcontrols_graphics qtcontrols_utilities qtcontrols_monitors caQtDM_Plugins
caQtDM_Lib.depends = caQtDM_QtControls
caQtDM_QtControls.depends += caQtDM_Parsers
android {
caQtDM_Lib.depends += caQtDM_AndroidFunctions
}
archiveCA.depends = caQtDM_QtControls caQtDM_Lib
archivePRO.depends = caQtDM_QtControls caQtDM_Lib
archiveSF.depends = caQtDM_QtControls caQtDM_Lib
archiveHIPA.depends = caQtDM_QtControls caQtDM_Lib
iosArchitectures=armv7
iosTarget=5.0
# Set "Architectures"
QMAKE_IOS_DEVICE_ARCHS = $$iosArchitectures
# Set "Target"
QMAKE_IOS_DEPLOYMENT_TARGET = $$iosTarget
# Set "Devices" (1=iPhone, 2=iPad, 1,2=Universal)
QMAKE_IOS_TARGETED_DEVICE_FAMILY = 2