forked from linuxdeepin/dde-device-formatter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dde-device-formatter.pro
executable file
·66 lines (52 loc) · 1.66 KB
/
dde-device-formatter.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
#-------------------------------------------------
#
# Project created by QtCreator 2016-12-07T09:33:51
#
#-------------------------------------------------
QT += core gui concurrent network x11extras dbus
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = dde-device-formatter
TEMPLATE = app
PKGCONFIG += x11 udisks2-qt5 dtkwidget dtkgui
CONFIG += c++11 link_pkgconfig
TRANSLATIONS += $$PWD/translations/$${TARGET}.ts \
$$PWD/translations/$${TARGET}_zh_CN.ts
SOURCES += main.cpp \
view/mainwindow.cpp \
view/mainpage.cpp \
view/warnpage.cpp \
view/formatingpage.cpp \
view/finishpage.cpp \
view/errorpage.cpp \
app/cmdmanager.cpp \
dialogs/messagedialog.cpp \
app/singletonapp.cpp \
utils/udisksutils.cpp \
utils/fsutils.cpp
HEADERS += \
view/mainwindow.h \
view/mainpage.h \
view/warnpage.h \
view/formatingpage.h \
view/finishpage.h \
view/errorpage.h \
app/cmdmanager.h \
dialogs/messagedialog.h \
app/singletonapp.h \
utils/udisksutils.h \
utils/fsutils.h
CONFIG(release, debug|release) {
# Automating generation .qm files from .ts files
!system($$PWD/generate_translations.sh): error("Failed to generate translation")
!system($$PWD/translate_ts2desktop.sh): error("Failed to generate translation")
}
PREFIX = /usr
BINDIR = $$PREFIX/bin
SHAREDIR = $$PREFIX/share/$${TARGET}
DESKTOPFILEDIR = $$PREFIX/share/applications
target.path = $$BINDIR
translations.files = $$PWD/translations/*.qm
translations.path = $$SHAREDIR/translations
desktopfile.files = $$PWD/dde-device-formatter.desktop
desktopfile.path = $$DESKTOPFILEDIR
INSTALLS += target translations desktopfile