-
Notifications
You must be signed in to change notification settings - Fork 7
/
gcodeworkshop_top.pro
66 lines (50 loc) · 2 KB
/
gcodeworkshop_top.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
TEMPLATE = subdirs
CONFIG += ordered
SUBDIRS = 3rdparty gcodeshared addons gcodeworkshop gcodefileserver
include(common.pri)
QMAKE_EXTRA_TARGETS += lupdate
lupdate.depends = lupdateGCodeWorkShop lupdateKdiff3
QMAKE_EXTRA_TARGETS += lupdateGCodeWorkShop lupdateKdiff3
lupdateGCodeWorkShop.commands = $$[QT_INSTALL_BINS]/lupdate \
$$PROJECT_ROOT_PATH/gcodeworkshop \
$$PROJECT_ROOT_PATH/gcodeshared \
$$PROJECT_ROOT_PATH/gcodefileserver \
$$PROJECT_ROOT_PATH/addons \
-ts $$tsFiles(gcodeworkshop)
lupdateKdiff3.commands = $$[QT_INSTALL_BINS]/lupdate \
$$PROJECT_ROOT_PATH/3rdparty/kdiff3 \
-ts $$tsFiles(kdiff3)
QMAKE_EXTRA_TARGETS += lrelease
lrelease.commands = $$[QT_INSTALL_BINS]/lrelease \
$$tsFiles(gcodeworkshop) \
$$tsFiles(kdiff3)
translate.files = $$LANG_PATH/*.qm
examples.files = $$PROJECT_ROOT_PATH/examples/*
doc.files = $$PROJECT_ROOT_PATH/README.md $$PROJECT_ROOT_PATH/doc/SerialTransmission_Help.html
# target platforms dependencies
#######################################
unix {
mime.files = $$PROJECT_ROOT_PATH/install/linux/application-x-g-code.xml
desktop.files = $$PROJECT_ROOT_PATH/install/linux/gcodeworkshop.desktop
# desktop.files += $$PROJECT_ROOT_PATH/install/linux/gcodefileserver.desktop
examples.path = $${PREFIX}/share/gcodeworkshop/examples
doc.path = $${PREFIX}/share/doc/gcodeworkshop
mime.path = $${PREFIX}/share/mime/packages
desktop.path = $${PREFIX}/share/applications
translate.path = $${PREFIX}/share/gcodeworkshop/lang
ICONS_BASE_PATH = $$PROJECT_ROOT_PATH/install/linux/images
icons.base = $$ICONS_BASE_PATH
icons.files = $$findFiles($$ICONS_BASE_PATH, *.png)
icons.path = $${PREFIX}/share/icons
INSTALLS += translate mime desktop icons examples doc
}
macx {
}
win32 {
examples.path = $${PREFIX}/examples
doc.path = $${PREFIX}/doc
translate.path = $${PREFIX}/lang
INSTALLS += translate examples doc
}
!defined(VERSION, var): VERSION = $$getVersion()
message(Project version: $$VERSION)