Better build script
[irwi] / src / src.pro
1 TEMPLATE = app
2 TARGET = irwi
3
4 SOURCES += main.cpp
5 SOURCES += mainwidget.cpp
6 SOURCES += irctrl.cpp
7 SOURCES += settingsdlg.cpp
8 HEADERS += mainwidget.h
9 HEADERS += irctrl.h
10 HEADERS += settingsdlg.h
11
12 include(qmaemo5homescreenadaptor/qmaemo5homescreenadaptor.pri)
13
14
15 QT += network
16
17 unix {
18 #VARIABLES
19 isEmpty(PREFIX) {
20     PREFIX = /usr
21 }
22
23 BINDIR = $$PREFIX/bin
24 DATADIR =$$PREFIX/share
25
26 DEFINES += DATADIR=\\\"$$DATADIR\\\" PKGDATADIR=\\\"$$PKGDATADIR\\\"
27
28 #MAKE INSTALL
29
30 INSTALLS += target desktop iconxpm icon26 icon48 icon64
31
32   target.path = $$PREFIX/lib/hildon-desktop
33
34   desktop.path = $$PREFIX/share/applications/hildon-home
35   desktop.files += $${TARGET}.desktop
36
37   iconxpm.path = $$DATADIR/pixmap
38   iconxpm.files += ../data/maemo/$${TARGET}.xpm
39
40   icon26.path = $$DATADIR/icons/hicolor/26x26/apps
41   icon26.files += ../data/26x26/$${TARGET}.png
42
43   icon48.path = $$DATADIR/icons/hicolor/48x48/apps
44   icon48.files += ../data/48x48/$${TARGET}.png
45
46   icon64.path = $$DATADIR/icons/hicolor/64x64/apps
47   icon64.files += ../data/64x64/$${TARGET}.png
48 }
49