]> git.sur5r.net Git - minitube/blob - minitube.pro
Renamed uppercase filenames to lowercase
[minitube] / minitube.pro
1 CONFIG += release
2 TEMPLATE = app
3 VERSION = 2.0
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 DEFINES += QT_STRICT_ITERATORS
15
16 # TODO Saner string behaviour
17 # DEFINES += QT_NO_CAST_FROM_ASCII QT_NO_CAST_TO_ASCII
18 TARGET = minitube
19 QT += network xml phonon declarative
20 include(src/qtsingleapplication/qtsingleapplication.pri)
21 HEADERS += \
22     src/youtubesearch.h \
23     src/video.h \
24     src/youtubestreamreader.h \
25     src/searchlineedit.h \
26     src/urllineedit.h \
27     src/spacer.h \
28     src/constants.h \
29     src/iconloader/qticonloader.h \
30     src/playlistitemdelegate.h \
31     src/networkaccess.h \
32     src/videomimedata.h \
33     src/global.h \
34     src/updatechecker.h \
35     src/playlistwidget.h \
36     src/searchparams.h \
37     src/minisplitter.h \
38     src/loadingwidget.h \
39     src/videoareawidget.h \
40     src/autocomplete.h \
41     src/videodefinition.h \
42     src/fontutils.h \
43     src/globalshortcuts.h \
44     src/globalshortcutbackend.h \
45     src/downloadmanager.h \
46     src/downloaditem.h \
47     src/downloadview.h \
48     src/downloadmodel.h \
49     src/downloadlistview.h \
50     src/downloadsettings.h \
51     src/youtubesuggest.h \
52     src/suggester.h \
53     src/channelsuggest.h \
54     src/temporary.h \
55     src/segmentedcontrol.h \
56     src/playlistview.h \
57     src/refinesearchwidget.h \
58     src/refinesearchbutton.h \
59     src/sidebarwidget.h \
60     src/homeview.h \
61     src/aboutview.h \
62     src/listmodel.h \
63     src/mainwindow.h \
64     src/mediaview.h \
65     src/searchview.h \
66     src/view.h \
67     src/categoriesview.h \
68     src/userview.h \
69     src/youtubecategories.h
70 SOURCES += src/main.cpp \
71     src/youtubesearch.cpp \
72     src/youtubestreamreader.cpp \
73     src/searchlineedit.cpp \
74     src/urllineedit.cpp \
75     src/spacer.cpp \
76     src/video.cpp \
77     src/iconloader/qticonloader.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/videodefinition.cpp \
88     src/constants.cpp \
89     src/fontutils.cpp \
90     src/globalshortcuts.cpp \
91     src/globalshortcutbackend.cpp \
92     src/downloadmanager.cpp \
93     src/downloaditem.cpp \
94     src/downloadview.cpp \
95     src/downloadmodel.cpp \
96     src/downloadlistview.cpp \
97     src/downloadsettings.cpp \
98     src/youtubesuggest.cpp \
99     src/channelsuggest.cpp \
100     src/temporary.cpp \
101     src/segmentedcontrol.cpp \
102     src/playlistview.cpp \
103     src/refinesearchwidget.cpp \
104     src/refinesearchbutton.cpp \
105     src/sidebarwidget.cpp \
106     src/homeview.cpp \
107     src/mainwindow.cpp \
108     src/mediaview.cpp \
109     src/listmodel.cpp \
110     src/aboutview.cpp \
111     src/searchview.cpp \
112     src/categoriesview.cpp \
113     src/userview.cpp \
114     src/playlistitemdelegate.cpp \
115     src/youtubecategories.cpp
116 RESOURCES += resources.qrc
117 DESTDIR = build/target/
118 OBJECTS_DIR = build/obj/
119 MOC_DIR = build/moc/
120 RCC_DIR = build/rcc/
121
122 # Tell Qt Linguist that we use UTF-8 strings in our sources
123 CODECFORTR = UTF-8
124 CODECFORSRC = UTF-8
125 include(locale/locale.pri)
126
127 # deploy
128 DISTFILES += CHANGES COPYING
129 unix:!mac {
130     INCLUDEPATH += /usr/include/phonon
131     QT += dbus
132     HEADERS += src/gnomeglobalshortcutbackend.h
133     SOURCES += src/gnomeglobalshortcutbackend.cpp
134     isEmpty(PREFIX):PREFIX = /usr
135     BINDIR = $$PREFIX/bin
136     INSTALLS += target
137     target.path = $$BINDIR
138     DATADIR = $$PREFIX/share
139     PKGDATADIR = $$DATADIR/minitube
140     DEFINES += DATADIR=\\\"$$DATADIR\\\" \
141         PKGDATADIR=\\\"$$PKGDATADIR\\\"
142     INSTALLS += translations \
143         desktop \
144         iconsvg \
145         icon16 \
146         icon22 \
147         icon32 \
148         icon48 \
149         icon64 \
150         icon128 \
151         icon256 \
152         icon512
153     translations.path = $$PKGDATADIR
154     translations.files += $$DESTDIR/locale
155     desktop.path = $$DATADIR/applications
156     desktop.files += minitube.desktop
157     iconsvg.path = $$DATADIR/icons/hicolor/scalable/apps
158     iconsvg.files += data/minitube.svg
159     icon16.path = $$DATADIR/icons/hicolor/16x16/apps
160     icon16.files += data/16x16/minitube.png
161     icon22.path = $$DATADIR/icons/hicolor/22x22/apps
162     icon22.files += data/22x22/minitube.png
163     icon32.path = $$DATADIR/icons/hicolor/32x32/apps
164     icon32.files += data/32x32/minitube.png
165     icon48.path = $$DATADIR/icons/hicolor/48x48/apps
166     icon48.files += data/48x48/minitube.png
167     icon64.path = $$DATADIR/icons/hicolor/64x64/apps
168     icon64.files += data/64x64/minitube.png
169     icon128.path = $$DATADIR/icons/hicolor/128x128/apps
170     icon128.files += data/128x128/minitube.png
171     icon256.path = $$DATADIR/icons/hicolor/256x256/apps
172     icon256.files += data/256x256/minitube.png
173     icon512.path = $$DATADIR/icons/hicolor/512x512/apps
174     icon512.files += data/512x512/minitube.png
175 }
176 mac|win32:include(local/local.pri)
177
178 OTHER_FILES += \
179     qml/categories.qml