forked from ugeneunipro/ugene
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathugene.pro
More file actions
237 lines (197 loc) · 7.36 KB
/
ugene.pro
File metadata and controls
237 lines (197 loc) · 7.36 KB
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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
include( src/ugene_globals.pri )
# Check the Qt version. If QT_VERSION is not set, it is probably Qt 3.
isEmpty(QT_VERSION) {
error("QT_VERSION not defined. Unipro UGENE does not work with Qt 3.")
}
!minQtVersion(5, 3, 2) {
message("Cannot build Unipro UGENE with Qt version $${QT_VERSION}")
error("Use at least Qt 5.3.2.")
}
TEMPLATE = subdirs
CONFIG += ordered debug_and_release
use_bundled_zlib() {
SUBDIRS += src/libs_3rdparty/zlib
}
use_bundled_sqlite() {
SUBDIRS += src/libs_3rdparty/sqlite3
}
SUBDIRS += \
src/libs_3rdparty/breakpad \
src/libs_3rdparty/qscore \
src/libs_3rdparty/samtools \
src/libs_3rdparty/QSpec \
src/corelibs/U2Core \
src/corelibs/U2Test \
src/corelibs/U2Algorithm \
src/corelibs/U2Formats \
src/corelibs/U2Lang \
src/corelibs/U2Private \
src/corelibs/U2Gui \
src/corelibs/U2View \
src/corelibs/U2Designer \
src/corelibs/U2Script \
src/ugeneui \
src/ugenecl \
src/ugenem \
src/plugins_checker \
src/plugins_3rdparty/ball \
src/plugins_3rdparty/sitecon \
src/plugins_3rdparty/umuscle \
src/plugins_3rdparty/hmm2 \
src/plugins_3rdparty/gor4 \
src/plugins_3rdparty/psipred \
src/plugins_3rdparty/primer3 \
src/plugins_3rdparty/phylip \
src/plugins_3rdparty/kalign \
src/plugins_3rdparty/ptools \
src/plugins_3rdparty/variants \
src/plugins/ngs_reads_classification \
src/plugins/CoreTests \
src/plugins/GUITestBase \
src/plugins/annotator \
src/plugins/api_tests \
src/plugins/biostruct3d_view \
src/plugins/chroma_view \
src/plugins/circular_view \
src/plugins/clark_support \
src/plugins/dbi_bam \
src/plugins/diamond_support \
src/plugins/dna_export \
src/plugins/dna_flexibility \
src/plugins/dna_graphpack \
src/plugins/dna_stat \
src/plugins/dotplot \
src/plugins/enzymes \
src/plugins/external_tool_support \
src/plugins/genome_aligner \
src/plugins/kraken_support \
src/plugins/linkdata_support \
src/plugins/metaphlan2_support \
src/plugins/orf_marker \
src/plugins/pcr \
src/plugins/perf_monitor \
src/plugins/query_designer \
src/plugins/remote_blast \
src/plugins/repeat_finder \
src/plugins/smith_waterman \
src/plugins/test_runner \
src/plugins/weight_matrix \
src/plugins/wevote_support \
src/plugins/workflow_designer
use_cuda() {
SUBDIRS += src/plugins/cuda_support
}
use_opencl() {
DEFINES += OPENCL_SUPPORT
SUBDIRS += src/plugins/opencl_support
}
exclude_list_enabled() {
SUBDIRS -= src/plugins/CoreTests
SUBDIRS -= src/plugins/test_runner
SUBDIRS -= src/plugins/perf_monitor
SUBDIRS -= src/plugins/GUITestBase
SUBDIRS -= src/plugins/api_tests
SUBDIRS -= src/libs_3rdparty/QSpec
}
message("Qt version is $${QT_VERSION}")
if (useWebKit()) {
message("WebKit is used as web engine")
} else {
message("Qt WebEngine is used as web engine")
}
GUI_TESTING_ENABLED = 0
if (exists(./src/libs_3rdparty/QSpec/QSpec.pro): !exclude_list_enabled()) {
if (!useWebKit()) {
message ("QT WebEngine is used, GUI testing is disabled")
} else {
message( "GUI testing is enabled" )
GUI_TESTING_ENABLED = 1
}
}
!equals(GUI_TESTING_ENABLED, 1) {
DEFINES += HI_EXCLUDED
SUBDIRS -= src/plugins/GUITestBase
SUBDIRS -= src/libs_3rdparty/QSpec
}
without_non_free() {
SUBDIRS -= src/plugins_3rdparty/psipred
}
# create target build & plugin folders (to copy licenses/descriptors to)
mkpath($$OUT_PWD/src/_debug/plugins)
mkpath($$OUT_PWD/src/_release/plugins)
!win32 {
system( cp ./installer/_common_data/ugene $$OUT_PWD/src/_release/ugene )
system( cp ./installer/_common_data/ugened $$OUT_PWD/src/_debug/ugened )
}
#prepare translations
UGENE_TRANSL_IDX = 0 1
UGENE_TRANSL_FILES = russian.ts english.ts
UGENE_TRANSL_TAG = ru en
UGENE_TRANSL_DIR = transl
UGENE_TRANSL_QM_TARGET_DIR = $$OUT_PWD/src/_debug $$OUT_PWD/src/_release
#detecting lrelease binary
win32 : UGENE_DEV_NULL = nul
unix : UGENE_DEV_NULL = /dev/null
UGENE_LRELEASE =
UGENE_LUPDATE =
message(Using QT from $$[QT_INSTALL_BINS])
system($$[QT_INSTALL_BINS]/lrelease-qt5 -version > $$UGENE_DEV_NULL 2> $$UGENE_DEV_NULL) {
UGENE_LRELEASE = $$[QT_INSTALL_BINS]/lrelease-qt5
UGENE_LUPDATE = $$[QT_INSTALL_BINS]/lupdate-qt5
} else : system($$[QT_INSTALL_BINS]/lrelease -version > $$UGENE_DEV_NULL 2> $$UGENE_DEV_NULL) {
UGENE_LRELEASE = $$[QT_INSTALL_BINS]/lrelease
UGENE_LUPDATE = $$[QT_INSTALL_BINS]/lupdate
}
#foreach 'language'
for( i, UGENE_TRANSL_IDX ) {
UGENE_TRANSLATIONS =
curTranslFile = $$member( UGENE_TRANSL_FILES, $$i )
curTranslTag = $$member( UGENE_TRANSL_TAG, $$i )
#foreach project folder
for( prj_dir, SUBDIRS ) {
#look for file and add it to translation list if it exists
translFile = $$prj_dir/$$UGENE_TRANSL_DIR/$$curTranslFile # 'project/transl/english.ts' etc.
exists( $$translFile ) {
UGENE_TRANSLATIONS += $$translFile
# system( $$UGENE_LUPDATE $$translFile ) FIXME
}
}
!isEmpty(UGENE_LRELEASE) {
for( targetDir, UGENE_TRANSL_QM_TARGET_DIR ) {
targetQmFile = $$targetDir/transl_$$curTranslTag # 'transl_en.qm' etc.
targetQmFile = $$join( targetQmFile, , , .qm ) # special workaround for adding suffix started with '.'
message( Generating traslations for language: $$curTranslTag )
system( $$UGENE_LRELEASE $$UGENE_TRANSLATIONS -qm $$targetQmFile > $$UGENE_DEV_NULL )
}
} else {
message( Cannot generate translations: no lrelease binary found )
}
}
unix {
system( chmod a+x ./src/gen_bin_script.cmd && ./src/gen_bin_script.cmd $$UGENE_INSTALL_DIR ugene > ugene; chmod a+x ugene )
binscript.files += ugene
binscript.path = $$UGENE_INSTALL_BINDIR
# to copy ugene executable to /usr/lib/ugene folder
ugene_starter.files = ./src/_release/ugene
ugene_starter.path = $$UGENE_INSTALL_DIR
transl.files = ./src/_release/transl_en.qm
transl.files += ./src/_release/transl_ru.qm
transl.path = $$UGENE_INSTALL_DIR
plugins.files = ./src/_release/plugins/*
plugins.path = $$UGENE_INSTALL_DIR/plugins
scripts.files += scripts/*
scripts.path = $$UGENE_INSTALL_DIR/scripts
data.files += data/*
data.path = $$UGENE_INSTALL_DATA
desktop.files += installer/_common_data/ugene.desktop
desktop.path = $$UGENE_INSTALL_DESKTOP
pixmaps.files += installer/_common_data/ugene.png installer/_common_data/ugene.xpm
pixmaps.path = $$UGENE_INSTALL_PIXMAPS
manual.files += installer/_common_data/ugene.1.gz
manual.path = $$UGENE_INSTALL_MAN
mime.files += installer/_common_data/application-x-ugene.xml
mime.path = $$UGENE_INSTALL_MIME
icons.files += installer/_common_data/application-x-ugene-ext.png
icons.path = $$UGENE_INSTALL_ICONS/hicolor/32x32/mimetypes/
INSTALLS += binscript ugene_starter transl plugins scripts data desktop pixmaps mime icons manual
}