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