-
Notifications
You must be signed in to change notification settings - Fork 163
/
imagewriter.pro
106 lines (99 loc) · 2.52 KB
/
imagewriter.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
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
# #####################################################################
# Automatically generated by qmake (2.01a) Thu Oct 23 14:13:58 2008
# #####################################################################
unix:isEmpty(PREFIX):PREFIX = /usr/local
TEMPLATE = app
TARGET = imagewriter
DEPENDPATH += .
INCLUDEPATH += .
DESTDIR += .
VERSION=1.10
DEFINES += APP_VERSION=\\\"$$VERSION\\\"
QMAKE_CXXFLAGS_RELEASE += "-fvisibility=hidden -fvisibility-inlines-hidden"
QT += dbus gui widgets
# Input
HEADERS += DeviceItem.h \
MainWindow.h \
Platform.h \
PlatformHal.h \
PlatformUdisks.h \
PlatformUdisks2.h \
udisks2_interface.h \
udisks2_mountpoints_interface.h \
MetaTypes.h
SOURCES += main.cpp \
MainWindow.cpp \
PlatformHal.cpp \
PlatformUdisks.cpp \
Platform.cpp \
PlatformUdisks2.cpp \
udisks2_interface.cpp \
udisks2_mountpoints_interface.cpp
CONFIG += c++11 link_pkgconfig
exists("/usr/include/hal/libhal.h") {
PKGCONFIG += hal \
hal-storage
DEFINES += USEHAL
DEFINES -= USEUDISKS2
HEADERS -= PlatformUdisks2.h udisks2_interface.h udisks2_mountpoints_interface.h MetaTypes.h
SOURCES -= PlatformUdisks2.cpp udisks2_interface.cpp udisks2_mountpoints_interface.cpp
}
QMAKE_EXTRA_TARGETS += distfile
DISTFILE_MAKEDIR = .tmp/imagewriter-$$VERSION
DISTFILE_EXTRAFILES = $$RESOURCES \
COPYING \
imagewriter.1 \
imagewriter.pro \
README.md \
INSTALL \
*.png \
imagewriter.qrc \
imagewriter.desktop \
imagewriter.spec \
icons/
distfile.commands = mkdir \
-p \
$$DISTFILE_MAKEDIR \
&& \
cp \
-r \
-f \
--parent \
$$SOURCES \
$$HEADERS \
$$FORMS \
$$DISTFILE_EXTRAFILES \
$$DISTFILE_MAKEDIR \
&& \
cd \
.tmp \
&& \
tar \
cvzf \
imagewriter-$$VERSION\.tar.gz \
imagewriter-$$VERSION \
&& \
mv \
imagewriter-$$VERSION\.tar.gz \
.. \
&& \
cd \
..
INSTALLS += target \
icon32 \
icon64 \
icon128 \
desktop \
manpage
target.path = $$PREFIX/bin
desktop.path = $$PREFIX/share/applications/
desktop.files += imagewriter.desktop
icon32.path = $$PREFIX/share/icons/hicolor/32x32/apps
icon32.files += icons/32x32/imagewriter.png
icon64.path = $$PREFIX/share/icons/hicolor/64x64/apps
icon64.files += icons/64x64/imagewriter.png
icon128.path = $$PREFIX/share/icons/hicolor/128x128/apps
icon128.files += icons/128x128/imagewriter.png
manpage.path =$$PREFIX/share/man/man1
manpage.files += imagewriter.1
RESOURCES += imagewriter.qrc