-
Notifications
You must be signed in to change notification settings - Fork 3
/
liger.pro
65 lines (54 loc) · 2.02 KB
/
liger.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
# To disable MATLAB support, pass "CONFIG+=NO_MATLAB" to qmake as an argument
# To disable Python support, pass "DISABLE_PYTHON=yes" to qmake as an argument
# To disable tests, pass "CONFIG += NO_TESTS" to qmake as an argument
include(liger.pri)
# Qt version check
message("Qt version - $${QT_VERSION}")
!minQtVersion(5, 6, 0) {
message("Cannot build Liger with Qt version $${QT_VERSION}.")
error("Use at least Qt 5.6.0.")
}
# Documentation
include(doc/doc.pri)
TEMPLATE = subdirs
CONFIG += ordered
CONFIG += silent
SUBDIRS = src share
unix:!macx:!isEmpty(copydata): SUBDIRS += bin
!contains(CONFIG, NO_TESTS) {
SUBDIRS += tests
}
macx: PLATFORM = "mac"
else:win32: PLATFORM = "windows"
else:linux-*: PLATFORM = "linux-$${ARCHITECTURE}"
else: PLATFORM = "unknown"
BASENAME = $$(INSTALL_BASENAME)
isEmpty(BASENAME): BASENAME = liger-$${PLATFORM}$(INSTALL_EDITION)-$${LIGER_VERSION}$(INSTALL_POSTFIX)
macx:INSTALLER_NAME = "liger-$${LIGER_VERSION}"
else:INSTALLER_NAME = "$${BASENAME}"
# get Qt directory
QT_DIRECTORY=$$[QT_HOST_PREFIX]
win32 {
APPBUNDLE = "$$OUT_PWD\bin"
deployqt.commands = $$PWD\dev\WindowsBuild\deployqtHelper_win.bat "$$APPBUNDLE" "$${QT_DIRECTORY}\bin"
# TODO - Yiming: command for creating installer; leave it blank for now
deploy.commands = ""
deployqt.commands ~= s,/,\\,g
deploy.commands ~= s,/,\\,g
deploy.depends = deployqt
QMAKE_EXTRA_TARGETS += deploy deployqt
}
macx {
APPBUNDLE = "$$OUT_PWD/bin/Liger.app"
BINDIST_SOURCE = "$$OUT_PWD/bin/Liger.app"
BINDIST_INSTALLER_SOURCE = $$BINDIST_SOURCE
deployqt.commands = $$PWD/dev/MacOSXBuild/deployqtHelper_mac.sh $$APPBUNDLE "$${QT_DIRECTORY}/bin"
deploy.commands = $$PWD/dev/MacOSXBuild/makedmg.sh $$OUT_PWD/bin liger-$${LIGER_VERSION}.dmg
deploy.depends = deployqt
QMAKE_EXTRA_TARGETS += deploy deployqt
}
TMP = $$(BOOST_LIB)
linux-* {
deploy.commands = $$PWD/dev/LinuxBuild/linux_create_build.sh $${OUT_PWD} $${OUT_PWD} $${QT_DIRECTORY} $${PWD} $$TMP
QMAKE_EXTRA_TARGETS += deploy
}