]> git.sur5r.net Git - minitube/blob - minitube.pro
Imported Upstream version 1.2
[minitube] / minitube.pro
1 CONFIG += release
2 TEMPLATE = app
3 VERSION = 1.2
4 DEFINES += APP_VERSION="$$VERSION"
5 INCLUDEPATH += /usr/include/phonon
6
7 # TODO Saner string behaviour
8 # DEFINES += QT_NO_CAST_FROM_ASCII QT_NO_CAST_TO_ASCII QT_STRICT_ITERATORS
9 TARGET = minitube
10 QT += network \
11     xml \
12     phonon
13 include(src/qtsingleapplication/qtsingleapplication.pri)
14 HEADERS += src/MainWindow.h \
15     src/SearchView.h \
16     src/MediaView.h \
17     src/AboutView.h \
18     src/youtubesearch.h \
19     src/video.h \
20     src/youtubestreamreader.h \
21     src/View.h \
22     src/searchlineedit.h \
23     src/urllineedit.h \
24     src/spacer.h \
25     src/constants.h \
26     src/iconloader/qticonloader.h \
27     src/faderwidget/FaderWidget.h \
28     src/ListModel.h \
29     src/playlist/PrettyItemDelegate.h \
30     src/networkaccess.h \
31     src/videomimedata.h \
32     src/global.h \
33     src/updatechecker.h \
34     src/playlistwidget.h \
35     src/searchparams.h \
36     src/minisplitter.h \
37     src/loadingwidget.h \
38     src/videoareawidget.h \
39     src/googlesuggest.h \
40     src/videowidget.h \
41     src/videodefinition.h \
42     src/fontutils.h \
43     src/thlibrary/thblackbar.h \
44     src/globalshortcuts.h \
45     src/globalshortcutbackend.h \
46     src/downloadmanager.h \
47     src/downloaditem.h \
48     src/downloadview.h \
49     src/downloadmodel.h \
50     src/downloadlistview.h \
51     src/downloadsettings.h
52 SOURCES += src/main.cpp \
53     src/MainWindow.cpp \
54     src/SearchView.cpp \
55     src/MediaView.cpp \
56     src/AboutView.cpp \
57     src/youtubesearch.cpp \
58     src/youtubestreamreader.cpp \
59     src/searchlineedit.cpp \
60     src/urllineedit.cpp \
61     src/spacer.cpp \
62     src/video.cpp \
63     src/iconloader/qticonloader.cpp \
64     src/faderwidget/FaderWidget.cpp \
65     src/ListModel.cpp \
66     src/playlist/PrettyItemDelegate.cpp \
67     src/videomimedata.cpp \
68     src/updatechecker.cpp \
69     src/networkaccess.cpp \
70     src/playlistwidget.cpp \
71     src/searchparams.cpp \
72     src/minisplitter.cpp \
73     src/loadingwidget.cpp \
74     src/videoareawidget.cpp \
75     src/googlesuggest.cpp \
76     src/videowidget.cpp \
77     src/videodefinition.cpp \
78     src/constants.cpp \
79     src/fontutils.cpp \
80     src/thlibrary/thblackbar.cpp \
81     src/globalshortcuts.cpp \
82     src/globalshortcutbackend.cpp \
83     src/downloadmanager.cpp \
84     src/downloaditem.cpp \
85     src/downloadview.cpp \
86     src/downloadmodel.cpp \
87     src/downloadlistview.cpp \
88     src/downloadsettings.cpp
89 RESOURCES += resources.qrc
90 DESTDIR = build/target/
91 OBJECTS_DIR = build/obj/
92 MOC_DIR = build/moc/
93 RCC_DIR = build/rcc/
94
95 # Tell Qt Linguist that we use UTF-8 strings in our sources
96 CODECFORTR = UTF-8
97 CODECFORSRC = UTF-8
98 include(locale/locale.pri)
99
100 # deploy
101 DISTFILES += CHANGES \
102     COPYING
103 unix:!mac { 
104     QT += dbus
105     HEADERS += src/gnomeglobalshortcutbackend.h
106     SOURCES += src/gnomeglobalshortcutbackend.cpp
107     isEmpty(PREFIX):PREFIX = /usr
108     BINDIR = $$PREFIX/bin
109     INSTALLS += target
110     target.path = $$BINDIR
111     DATADIR = $$PREFIX/share
112     PKGDATADIR = $$DATADIR/minitube
113     DEFINES += DATADIR=\\\"$$DATADIR\\\" \
114         PKGDATADIR=\\\"$$PKGDATADIR\\\"
115     INSTALLS += translations \
116         desktop \
117         iconsvg \
118         icon16 \
119         icon22 \
120         icon32 \
121         icon48 \
122         icon64 \
123         icon128 \
124         icon256 \
125         icon512
126     translations.path = $$PKGDATADIR
127     translations.files += $$DESTDIR/locale
128     desktop.path = $$DATADIR/applications
129     desktop.files += minitube.desktop
130     iconsvg.path = $$DATADIR/icons/hicolor/scalable/apps
131     iconsvg.files += data/minitube.svg
132     icon16.path = $$DATADIR/icons/hicolor/16x16/apps
133     icon16.files += data/16x16/minitube.png
134     icon22.path = $$DATADIR/icons/hicolor/22x22/apps
135     icon22.files += data/22x22/minitube.png
136     icon32.path = $$DATADIR/icons/hicolor/32x32/apps
137     icon32.files += data/32x32/minitube.png
138     icon48.path = $$DATADIR/icons/hicolor/48x48/apps
139     icon48.files += data/48x48/minitube.png
140     icon64.path = $$DATADIR/icons/hicolor/64x64/apps
141     icon64.files += data/64x64/minitube.png
142     icon128.path = $$DATADIR/icons/hicolor/128x128/apps
143     icon128.files += data/128x128/minitube.png
144     icon256.path = $$DATADIR/icons/hicolor/256x256/apps
145     icon256.files += data/256x256/minitube.png
146     icon256.path = $$DATADIR/icons/hicolor/512x512/apps
147     icon256.files += data/256x256/minitube.png
148     icon512.path = $$DATADIR/icons/hicolor/512x512/apps
149     icon512.files += data/512x512/minitube.png
150 }
151 mac|win32:include(local/local.pri)