3e7670324180c6ee50fd9d2cf5bf096fa9268e3f
[someplayer] / src / src.pro
1 #-------------------------------------------------
2 #
3 # Project created by QtCreator 2010-09-04T01:48:53
4 #
5 #-------------------------------------------------
6
7 QT       += core gui phonon sql dbus webkit
8
9 TARGET = someplayer
10 TEMPLATE = app
11
12 INCLUDEPATH += taglib
13 INCLUDEPATH += taglib/toolkit
14 INCLUDEPATH += taglib/ape
15 INCLUDEPATH += taglib/asf
16 INCLUDEPATH += taglib/flac
17 INCLUDEPATH += taglib/mp4
18 INCLUDEPATH += taglib/mpc
19 INCLUDEPATH += taglib/mpeg
20 INCLUDEPATH += taglib/mpeg/id3v1
21 INCLUDEPATH += taglib/mpeg/id3v2
22 INCLUDEPATH += taglib/ogg
23 INCLUDEPATH += taglib/ogg/flac
24 INCLUDEPATH += taglib/ogg/speex
25 INCLUDEPATH += taglib/ogg/vorbis
26 INCLUDEPATH += taglib/riff
27 INCLUDEPATH += taglib/riff/aiff
28 INCLUDEPATH += taglib/riff/wav
29 INCLUDEPATH += taglib/trueaudio
30 INCLUDEPATH += taglib/wavpack
31
32 SOURCES += main.cpp\
33         mainwindow.cpp \
34                 player/player.cpp \
35         track.cpp \
36     trackmetainformation.cpp \
37     playlist.cpp \
38     library.cpp \
39     filestorage.cpp \
40     dbstorage.cpp \
41     mediascanner.cpp \
42     tagresolver.cpp \
43     playerform.cpp \
44     libraryform.cpp \
45     busywidget.cpp \
46     trackrenderer.cpp \
47     config.cpp \
48     playlistdialog.cpp \
49     taglib/tagunion.cpp \
50     taglib/tag.cpp \
51     taglib/fileref.cpp \
52     taglib/audioproperties.cpp \
53     taglib/ape/apetag.cpp \
54     taglib/ape/apeitem.cpp \
55     taglib/ape/apefooter.cpp \
56     taglib/asf/asftag.cpp \
57     taglib/asf/asfproperties.cpp \
58     taglib/asf/asffile.cpp \
59     taglib/asf/asfattribute.cpp \
60     taglib/flac/flacproperties.cpp \
61     taglib/flac/flacfile.cpp \
62     taglib/mp4/mp4tag.cpp \
63     taglib/mp4/mp4properties.cpp \
64     taglib/mp4/mp4item.cpp \
65     taglib/mp4/mp4file.cpp \
66     taglib/mp4/mp4coverart.cpp \
67     taglib/mp4/mp4atom.cpp \
68     taglib/mpc/mpcproperties.cpp \
69     taglib/mpc/mpcfile.cpp \
70     taglib/mpeg/xingheader.cpp \
71     taglib/mpeg/mpegproperties.cpp \
72     taglib/mpeg/mpegheader.cpp \
73     taglib/mpeg/mpegfile.cpp \
74     taglib/mpeg/id3v1/id3v1tag.cpp \
75     taglib/mpeg/id3v1/id3v1genres.cpp \
76     taglib/mpeg/id3v2/id3v2tag.cpp \
77     taglib/mpeg/id3v2/id3v2synchdata.cpp \
78     taglib/mpeg/id3v2/id3v2header.cpp \
79     taglib/mpeg/id3v2/id3v2framefactory.cpp \
80     taglib/mpeg/id3v2/id3v2frame.cpp \
81     taglib/mpeg/id3v2/id3v2footer.cpp \
82     taglib/mpeg/id3v2/id3v2extendedheader.cpp \
83     taglib/mpeg/id3v2/frames/urllinkframe.cpp \
84     taglib/mpeg/id3v2/frames/unsynchronizedlyricsframe.cpp \
85     taglib/mpeg/id3v2/frames/unknownframe.cpp \
86     taglib/mpeg/id3v2/frames/uniquefileidentifierframe.cpp \
87     taglib/mpeg/id3v2/frames/textidentificationframe.cpp \
88     taglib/mpeg/id3v2/frames/relativevolumeframe.cpp \
89     taglib/mpeg/id3v2/frames/privateframe.cpp \
90     taglib/mpeg/id3v2/frames/popularimeterframe.cpp \
91     taglib/mpeg/id3v2/frames/generalencapsulatedobjectframe.cpp \
92     taglib/mpeg/id3v2/frames/commentsframe.cpp \
93     taglib/mpeg/id3v2/frames/attachedpictureframe.cpp \
94     taglib/ogg/xiphcomment.cpp \
95     taglib/ogg/oggpageheader.cpp \
96     taglib/ogg/oggpage.cpp \
97     taglib/ogg/oggfile.cpp \
98     taglib/ogg/flac/oggflacfile.cpp \
99     taglib/ogg/speex/speexproperties.cpp \
100     taglib/ogg/speex/speexfile.cpp \
101     taglib/ogg/vorbis/vorbisproperties.cpp \
102     taglib/ogg/vorbis/vorbisfile.cpp \
103     taglib/riff/rifffile.cpp \
104     taglib/riff/aiff/aiffproperties.cpp \
105     taglib/riff/aiff/aifffile.cpp \
106     taglib/riff/wav/wavproperties.cpp \
107     taglib/riff/wav/wavfile.cpp \
108     taglib/toolkit/unicode.cpp \
109     taglib/toolkit/tstringlist.cpp \
110     taglib/toolkit/tstring.cpp \
111     taglib/toolkit/tfile.cpp \
112     taglib/toolkit/tdebug.cpp \
113     taglib/toolkit/tbytevectorlist.cpp \
114     taglib/toolkit/tbytevector.cpp \
115     taglib/trueaudio/trueaudioproperties.cpp \
116     taglib/trueaudio/trueaudiofile.cpp \
117     taglib/wavpack/wavpackproperties.cpp \
118     taglib/wavpack/wavpackfile.cpp \
119     edittagsdialog.cpp \
120     timerdialog.cpp \
121     equalizerdialog.cpp \
122     saveplaylistdialog.cpp \
123     dbusadaptor.cpp \
124     toolswidget.cpp \
125     managelibraryform.cpp \
126     directoryview.cpp \
127     coverfinder.cpp \
128     clickablelabel.cpp \
129     settingsform.cpp \
130     dbusclient.cpp \
131     fmtxsettingsdialog.cpp \
132     aboutform.cpp \
133     playlistsortform.cpp \
134     player/abstractplayer.cpp \
135     player/playerfactory.cpp
136
137 HEADERS  += mainwindow.h \
138                 player/player.h \
139                 track.h \
140     trackmetainformation.h \
141     playlist.h \
142     someplayer.h \
143     library.h \
144     storage.h \
145     filestorage.h \
146     dbstorage.h \
147     mediascanner.h \
148     tagresolver.h \
149     playerform.h \
150     libraryform.h \
151     busywidget.h \
152     trackrenderer.h \
153     config.h \
154     playlistdialog.h \
155     taglib/taglib_export.h \
156     taglib/tagunion.h \
157     taglib/tag.h \
158     taglib/fileref.h \
159     taglib/audioproperties.h \
160     taglib/ape/apetag.h \
161     taglib/ape/apeitem.h \
162     taglib/ape/apefooter.h \
163     taglib/asf/asftag.h \
164     taglib/asf/asfproperties.h \
165     taglib/asf/asffile.h \
166     taglib/asf/asfattribute.h \
167     taglib/flac/flacproperties.h \
168     taglib/flac/flacfile.h \
169     taglib/mp4/mp4tag.h \
170     taglib/mp4/mp4properties.h \
171     taglib/mp4/mp4item.h \
172     taglib/mp4/mp4file.h \
173     taglib/mp4/mp4coverart.h \
174     taglib/mp4/mp4atom.h \
175     taglib/mpc/mpcproperties.h \
176     taglib/mpc/mpcfile.h \
177     taglib/mpeg/xingheader.h \
178     taglib/mpeg/mpegproperties.h \
179     taglib/mpeg/mpegheader.h \
180     taglib/mpeg/mpegfile.h \
181     taglib/mpeg/id3v1/id3v1tag.h \
182     taglib/mpeg/id3v1/id3v1genres.h \
183     taglib/mpeg/id3v2/id3v2tag.h \
184     taglib/mpeg/id3v2/id3v2synchdata.h \
185     taglib/mpeg/id3v2/id3v2header.h \
186     taglib/mpeg/id3v2/id3v2framefactory.h \
187     taglib/mpeg/id3v2/id3v2frame.h \
188     taglib/mpeg/id3v2/id3v2footer.h \
189     taglib/mpeg/id3v2/id3v2extendedheader.h \
190     taglib/mpeg/id3v2/frames/urllinkframe.h \
191     taglib/mpeg/id3v2/frames/unsynchronizedlyricsframe.h \
192     taglib/mpeg/id3v2/frames/unknownframe.h \
193     taglib/mpeg/id3v2/frames/uniquefileidentifierframe.h \
194     taglib/mpeg/id3v2/frames/textidentificationframe.h \
195     taglib/mpeg/id3v2/frames/relativevolumeframe.h \
196     taglib/mpeg/id3v2/frames/privateframe.h \
197     taglib/mpeg/id3v2/frames/popularimeterframe.h \
198     taglib/mpeg/id3v2/frames/generalencapsulatedobjectframe.h \
199     taglib/mpeg/id3v2/frames/commentsframe.h \
200     taglib/mpeg/id3v2/frames/attachedpictureframe.h \
201     taglib/ogg/xiphcomment.h \
202     taglib/ogg/oggpageheader.h \
203     taglib/ogg/oggpage.h \
204     taglib/ogg/oggfile.h \
205     taglib/ogg/flac/oggflacfile.h \
206     taglib/ogg/speex/speexproperties.h \
207     taglib/ogg/speex/speexfile.h \
208     taglib/ogg/vorbis/vorbisproperties.h \
209     taglib/ogg/vorbis/vorbisfile.h \
210     taglib/riff/rifffile.h \
211     taglib/riff/aiff/aiffproperties.h \
212     taglib/riff/aiff/aifffile.h \
213     taglib/riff/wav/wavproperties.h \
214     taglib/riff/wav/wavfile.h \
215     taglib/toolkit/unicode.h \
216     taglib/toolkit/tstringlist.h \
217     taglib/toolkit/tstring.h \
218     taglib/toolkit/tmap.h \
219     taglib/toolkit/tlist.h \
220     taglib/toolkit/tfile.h \
221     taglib/toolkit/tdebug.h \
222     taglib/toolkit/tbytevectorlist.h \
223     taglib/toolkit/tbytevector.h \
224     taglib/toolkit/taglib.h \
225     taglib/trueaudio/trueaudioproperties.h \
226     taglib/trueaudio/trueaudiofile.h \
227     taglib/wavpack/wavpackproperties.h \
228     taglib/wavpack/wavpackfile.h \
229     edittagsdialog.h \
230     timerdialog.h \
231     equalizerdialog.h \
232     saveplaylistdialog.h \
233     abstractitemrenderer.h \
234     dbusadaptor.h \
235     toolswidget.h \
236     managelibraryform.h \
237     directoryview.h \
238     coverfinder.h \
239     clickablelabel.h \
240     settingsform.h \
241     dbusclient.h \
242     fmtxsettingsdialog.h \
243     aboutform.h \
244     playlistsortform.h \
245     player/abstractplayer.h \
246     player/playerfactory.h
247
248 FORMS    += ui/mainwindow.ui \
249     ui/playerform.ui \
250     ui/libraryform.ui \
251     ui/busywidget.ui \
252     ui/playlistdialog.ui \
253     ui/edittagsdialog.ui \
254     ui/timerdialog.ui \
255     ui/equalizerdialog.ui \
256     ui/saveplaylistdialog.ui \
257     ui/toolswidget.ui \
258     ui/managelibraryform.ui \
259     ui/directoryview.ui \
260     ui/settingsform.ui \
261     ui/fmtxsettingsdialog.ui \
262     ui/aboutform.ui \
263     ui/playlistsortform.ui
264
265 CONFIG += mobility
266 MOBILITY = 
267
268 symbian {
269     TARGET.UID3 = 0xebd21b9a
270     # TARGET.CAPABILITY += 
271     TARGET.EPOCSTACKSIZE = 0x14000
272     TARGET.EPOCHEAPSIZE = 0x020000 0x800000
273 }
274
275 RESOURCES += \
276     resources/resources.qrc
277
278 OTHER_FILES += \
279     README \
280     COPYING \
281     resources/someplayer.desktop \
282     taglib/taglib_config.h.in \
283     taglib/ape/ape-tag-format.txt \
284     taglib/mpeg/id3v2/id3v2.4.0-structure.txt \
285     taglib/mpeg/id3v2/id3v2.4.0-frames.txt \
286     taglib/mpeg/id3v2/id3v2.3.0.txt \
287     taglib/mpeg/id3v2/id3v2.2.0.txt \
288     taglib/toolkit/tmap.tcc \
289     taglib/toolkit/tlist.tcc \
290     AUTHORS.TagLib \
291     COPYING.LGPL
292
293 TRANSLATIONS    =  resources/someplayer_ru.ts \
294         resources/someplayer_zh_CN.ts \
295         resources/someplayer_zh_TW.ts \
296         resources/someplayer_it.ts \
297         resources/someplayer_pl.ts \
298         resources/someplayer_pt_BR.ts
299
300
301 unix {
302         #VARIABLES
303         isEmpty(PREFIX) {
304                 PREFIX = /usr
305         }
306         BINDIR = $$PREFIX/bin
307         DATADIR =$$PREFIX/share
308         
309         DEFINES += DATADIR=\\\"$$DATADIR\\\" PKGDATADIR=\\\"$$PKGDATADIR\\\"
310         
311         #MAKE INSTALL
312         
313         INSTALLS += target desktop service iconxpm icon26 icon48 icon64
314         
315         target.path =$$BINDIR
316         
317         desktop.path = $$DATADIR/applications/hildon
318         desktop.files += $${TARGET}.desktop
319         
320         service.path = $$DATADIR/dbus-1/services
321         service.files += $${TARGET}.service
322         
323         icon64.path = $$DATADIR/icons/hicolor/64x64/apps
324         icon64.files += ../data/64x64/$${TARGET}.png
325 }
326