Created new ui for the program. Almost everything that worked previously
[ptas] / zouba / zouba.pro
1 TARGET      = zouba
2 SOURCES += \
3     src/main.cpp \
4     src/route.cpp \
5     src/route_p.cpp \
6     src/uicontroller.cpp \
7     src/ui.cpp \
8     src/locationbutton.cpp \
9     src/addressdialog.cpp \
10     src/logic/ytv.cpp \
11     src/logic/routepointgenerator.cpp \
12     src/logic/routepoint.cpp \
13     src/logic/routenew.cpp \
14     src/logic/routeleggenerator.cpp \
15     src/logic/routeleg.cpp \
16     src/logic/routefinder.cpp \
17     src/logic/locations.cpp \
18     src/logic/locationfinder.cpp \
19     src/logic/location.cpp \
20     src/gui/routelegwidget.cpp \
21     src/gui/routeresultwidget.cpp \
22     src/gui/searchdisplay.cpp \
23     src/gui/routeoneitemwidget.cpp \
24     src/gui/locationsdisplaywindow.cpp
25
26 HEADERS += \
27     src/route.h \
28     src/route_p.h \
29     src/uicontroller.h \
30     src/ui.h \
31     src/locationbutton.h \
32     src/addressdialog.h \
33     src/logic/ytv.h \
34     src/logic/routepointgenerator.h \
35     src/logic/routepoint.h \
36     src/logic/routenew.h \
37     src/logic/routeleggenerator.h \
38     src/logic/routeleg.h \
39     src/logic/routefinder.h \
40     src/logic/locations.h \
41     src/logic/locationfinder.h \
42     src/logic/location.h \
43     src/gui/routelegwidget.h \
44     src/gui/routeresultwidget.h \
45     src/gui/searchdisplay.h \
46     src/gui/routeoneitemwidget.h \
47     src/gui/locationsdisplaywindow.h
48
49 FORMS       += \
50     src/gui/locationsdisplaywindow.ui \
51     src/gui/routelegwidget.ui \
52     src/gui/routeresultwidget.ui \
53     src/gui/searchdisplay.ui \
54     src/gui/routeoneitemwidget.ui
55
56 LEXSOURCES  += #LEXS#
57 YACCSOURCES += #YACCS#
58
59 INCLUDEPATH += include
60 DEPENDSPATH += INCLUDEPATH
61 #QMAKE_LIBDIR_QT = qt4-maemo5/lib
62 #QMAKE_INCDIR_QT = qt4-maemo5/include
63 LIBS        += -Llib
64 #DEFINES     += Q_WS_MAEMO_5
65
66 # All generated files goes same directory
67 OBJECTS_DIR = build
68 MOC_DIR     = build
69 UI_DIR      = build
70
71 DESTDIR     = build
72 TEMPLATE    = app
73 DEPENDPATH  +=
74 VPATH       += src uis
75 CONFIG      -=
76 CONFIG      += debug qt
77 #MOBILITY    += location bearer
78 QT=core gui network
79
80 linux-g++-maemo5 {
81 SOURCES += \
82     gpscontroller.cpp \
83     src/gui/favoriteselectiondialog.cpp
84 HEADERS += \
85     gpscontroller.h \
86     src/gui/favoriteselectiondialog.h
87 FORMS += \
88     src/gui/favoriteselectiondialog.ui
89
90 QT += maemo5
91 LIBS += -lQtBearer -lQtLocation
92 MOBILITY += location bearer
93 CONFIG += mobility
94 }
95
96 INSTALLS    += target
97 target.path  = /usr/bin/
98
99 INSTALLS    += desktop
100 desktop.path  = /usr/share/applications/hildon
101 desktop.files  = data/zouba.desktop
102
103 INSTALLS    += service
104 service.path  = /usr/share/dbus-1/services
105 service.files  = data/zouba.service
106
107 INSTALLS    += icon64
108 icon64.path  = /usr/share/icons/hicolor/64x64/apps
109 icon64.files  = data/64x64/zouba.png
110
111 #
112 # Targets for debian source and binary package creation
113 #
114 debian-src.commands = dpkg-buildpackage -S -r -us -uc -d
115 debian-bin.commands = dpkg-buildpackage -b -r -uc -d
116 debian-all.depends = debian-src debian-bin
117
118 #
119 # Clean all but Makefile
120 #
121 compiler_clean.commands = -$(DEL_FILE) $(TARGET)
122
123 QMAKE_EXTRA_TARGETS += debian-all debian-src debian-bin compiler_clean
124
125 OTHER_FILES += \
126     data/TODO.txt
127
128 RESOURCES += \
129     ReittiopasImages.qrc