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