forked from makerbot/Miracle-Grue
-
Notifications
You must be signed in to change notification settings - Fork 1
/
miracle_grue.pro
55 lines (43 loc) · 1.01 KB
/
miracle_grue.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
!noclean {
system(python clean_qmake_files.py)
}
# Build versioning
GIT_COMMIT = $$(GIT_COMMIT)
isEmpty(GIT_COMMIT) {
GIT_COMMIT = $$system(git rev-parse --short HEAD)
}
GIT_BRANCH = $$(GIT_BRANCH)
isEmpty(GIT_BRANCH) {
GIT_BRANCH = $$system(git rev-parse --abbrev-ref HEAD)
}
BUILD_NUMBER = $$(BUILD_NUMBER)
isEmpty(BUILD_NUMBER) {
BUILD_NUMBER = 'manual_build'
}
win32 {
QMAKE_LFLAGS += -static -static-ligbcc -static-libstdc++
}
MAJOR=0
MINOR=05
VERSION = $${MAJOR}.$${MINOR}
CHECKIN = '$${GIT_BRANCH}-$${GIT_COMMIT}'
DEFINES += VERSION_STR=\\\"$${VERSION}\\\"
DEFINES += CHECKIN_STR=\\\"$${CHECKIN}\\\"
DEFINES += BUILD_STR=\\\"$${BUILD_NUMBER}\\\"
TEMPLATE = subdirs
SUBDIRS = src/mgl src/miracle_grue
src/miracle_grue.depends = mgl
test {
win32 {
system(cd src/unit_tests && python make_test_pro.py)
}
!win32 {
system(cd src/unit_tests ; python make_test_pro.py)
}
include(src/unit_tests/unit_tests.pri)
}
mac {
CONFIG -= app_bundle
QT -= gui core
LIBS -= -lQtGui -lQtCore
}