c7b33e303190ca5f212c58eb1612d3deacec17c5
[timedsilencer] / TimedSilencer.pro
1 #-------------------------------------------------
2 #
3 # Project created by QtCreator 2010-06-26T11:35:08
4 #
5 #-------------------------------------------------
6
7 LANG_PATH = lang
8
9 QT       += maemo5 dbus
10
11 LIBS     += -lalarm
12
13 TARGET = timedsilencer
14
15 TEMPLATE = app
16
17
18 SOURCES += main.cpp\
19            mainwindow.cpp
20
21 HEADERS  += mainwindow.h \
22             alarmd_backend.h \
23             dbus_backend.h \
24             phone_profile.h
25
26 # Translations
27 TRANSLATIONS = $$LANG_PATH/timedsilencer_en.ts \
28                $$LANG_PATH/timedsilencer_fr.ts \
29                $$LANG_PATH/timedsilencer_zh.ts
30
31 RESOURCES = lang.qrc
32
33 DEFINES += QT_NO_DEBUG_OUTPUT
34
35 # INSTALL
36 unix {
37   #VARIABLES
38   isEmpty(PREFIX) {
39     PREFIX = /usr
40   }
41   BINDIR = $$PREFIX/bin
42   DATADIR =$$PREFIX/share
43
44   DEFINES += DATADIR=\\\"$$DATADIR\\\" PKGDATADIR=\\\"$$PKGDATADIR\\\"
45
46   #MAKE INSTALL
47
48   INSTALLS += target desktop iconxpm icon26 icon48 icon64
49
50   target.path =$$BINDIR
51
52   desktop.path = $$DATADIR/applications/hildon
53   desktop.files += desktop/$${TARGET}.desktop
54
55   iconxpm.path = $$DATADIR/pixmap
56   iconxpm.files += ico/xpm/$${TARGET}.xpm
57
58   icon26.path = $$DATADIR/icons/hicolor/26x26/apps
59   icon26.files += ico/26x26/$${TARGET}.png
60
61   icon48.path = $$DATADIR/icons/hicolor/48x48/apps
62   icon48.files += ico/48x48/$${TARGET}.png
63
64   icon64.path = $$DATADIR/icons/hicolor/64x64/apps
65   icon64.files += ico/64x64/$${TARGET}.png
66 }
67