README
[n9profile] / src.pro
1 # -------------------------------------------------
2 # Project created by QtCreator 2010-02-17T11:50:47
3 # -------------------------------------------------
4 # Obsahuje Qt >= 4.6.* ?
5 contains(QT_VERSION, ^4\.[0-6]\.*) { 
6     message("Use new version of QT, you are using: $$QT_VERSION .")
7     error("Use Qt 4.6.*")
8 }
9
10   unix {
11     #VARIABLES
12     isEmpty(PREFIX) {
13         PREFIX = /usr
14   }
15
16
17 # potřebuji přidat maemo5
18 QT += xml xmlpatterns dbus maemo5 network
19
20 # ted bude debug a potřebuji ještě pkgconfig
21 # http://doc.trolltech.com/4.6/qmake-project-files.html#configuration-features
22 CONFIG += debug link_pkgconfig qt mobility
23
24 MOBILITY += systeminfo
25 # pro d-bus v libprofile
26 PKGCONFIG += dbus-1
27
28 # include pro libprofile.h and cal backend
29 INCLUDEPATH += /usr/include/profiled \
30     /usr/include/calendar-backend
31
32 # lib libprofile
33 LIBS += /usr/lib/libprofile.so \
34     -lcalendar_backend
35
36 TARGET = N9Profil
37 TEMPLATE = app
38 SOURCES += main.cpp \
39     mainwindow.cpp \
40     controlclass.cpp \
41     profil.cpp \
42     profiledb.cpp \
43     profiledeamon.cpp \
44     profildialog.cpp \
45     timeprofile.cpp \
46     timedprofildialog.cpp \
47     calendatprofile.cpp \
48     calendar.cpp \
49     event.cpp \
50     calendarprofilesdialog.cpp \
51     calendarsetprofiledialog.cpp \
52     networkdialogdialog.cpp \
53     networkprofile.cpp \
54     networkdialogedit.cpp \
55     telephonenumprofile.cpp \
56     telenumdialog.cpp \
57     telephonenumnewruledialog.cpp \
58     profilesmanager.cpp \
59     soundfilesmanager.cpp \
60     rulesmanager.cpp
61 HEADERS += mainwindow.h \
62     controlclass.h \
63     profil.h \
64     profiledb.h \
65     profiledeamon.h \
66     profildialog.h \
67     timeprofile.h \
68     timedprofildialog.h \
69     calendatprofile.h \
70     calendar.h \
71     event.h \
72     calendarprofilesdialog.h \
73     calendarsetprofiledialog.h \
74     networkdialogdialog.h \
75     networkprofile.h \
76     networkdialogedit.h \
77     telephonenumprofile.h \
78     telenumdialog.h \
79     telephonenumnewruledialog.h \
80     profilesmanager.h \
81     soundfilesmanager.h \
82     rulesmanager.h
83 FORMS += mainwindow.ui \
84     profildialog.ui \
85     timedprofildialog.ui \
86     calendarprofilesdialog.ui \
87     calendarsetprofiledialog.ui \
88     networkdialogdialog.ui \
89     networkdialogedit.ui \
90     telenumdialog.ui \
91     telephonenumnewruledialog.ui
92
93
94 # čeština a nastavení na UTF-8
95 TRANSLATIONS = N9Profil_cs_CZ.ts
96 CODECFORTR = UTF-8
97 RESOURCES += rcc.qrc
98
99 BINDIR = $$PREFIX/bin
100 DATADIR =$$PREFIX/share
101
102 DEFINES += DATADIR=\\\"$$DATADIR\\\" PKGDATADIR=\\\"$$PKGDATADIR\\\"
103
104 #MAKE INSTALL
105
106 INSTALLS += target desktop iconxpm icon26 icon40 icon64 service
107
108     target.path =$$BINDIR
109
110     desktop.path = $$DATADIR/applications/hildon
111     desktop.files += data/$${TARGET}.desktop
112
113     iconxpm.path = $$DATADIR/pixmap
114     iconxpm.files += data/maemo/$${TARGET}.xpm
115
116     icon26.path = $$DATADIR/icons/hicolor/26x26/apps
117     icon26.files += data/26x26/$${TARGET}.png
118
119     icon40.path = $$DATADIR/icons/hicolor/40x40/apps
120     icon40.files += data/40x40/$${TARGET}.png
121
122     icon64.path = $$DATADIR/icons/hicolor/64x64/apps
123     icon64.files += data/64x64/$${TARGET}.png
124
125     service.path = $$DATADIR/dbus-1/services
126     service.files += data/org.indt.N9Profil.service
127 }