Skip to content

Commit 0768c2d

Browse files
authored
Merge pull request #14 from Aldrog/ubuntu-port
Ubuntu port
2 parents be16819 + ca5fea6 commit 0768c2d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+2663
-197
lines changed

common.pri

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
QT += qml quick network dbus
2+
CONFIG += c++11
3+
4+
SOURCES += \
5+
src/main.cpp \
6+
src/ircchat.cpp \
7+
src/tools.cpp \
8+
src/qmlsettings.cpp \
9+
src/message.cpp \
10+
src/messagelistmodel.cpp
11+
12+
HEADERS += \
13+
src/ircchat.h \
14+
src/tools.h \
15+
src/qmlsettings.h \
16+
src/message.h \
17+
src/messagelistmodel.h

harbour-twitchtube.pro

Lines changed: 20 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -12,65 +12,34 @@
1212
# The name of your application
1313
TARGET = harbour-twitchtube
1414

15-
CONFIG += sailfishapp c++11
15+
CONFIG += sailfishapp
1616

17-
QT += network dbus
17+
DEFINES += OS_SAILFISH
1818

19-
icons.path = /usr/share/icons/hicolor
20-
icons.files = icons/*
21-
INSTALLS += icons
19+
include(common.pri)
2220

23-
SOURCES += \
24-
src/harbour-twitchtube.cpp \
25-
src/ircchat.cpp \
26-
src/tools.cpp \
27-
src/qmlsettings.cpp \
28-
src/message.cpp \
29-
src/messagelistmodel.cpp
21+
RESOURCES += sailfish-ui/TwitchTube.qrc
3022

31-
OTHER_FILES += \
32-
translations/*.ts \
33-
qml/pages/GamesPage.qml \
34-
qml/pages/ChannelsPage.qml \
35-
qml/pages/StreamPage.qml \
36-
qml/js/httphelper.js \
37-
qml/pages/SettingsPage.qml \
38-
qml/pages/SearchPage.qml \
39-
qml/pages/LoginPage.qml \
40-
qml/pages/FollowedPage.qml \
41-
qml/harbour-twitchtube.qml \
42-
harbour-twitchtube.desktop \
43-
rpm/harbour-twitchtube.spec \
44-
rpm/harbour-twitchtube.yaml \
45-
qml/pages/elements/Categories.qml \
46-
qml/pages/QualityChooserPage.qml \
47-
rpm/harbour-twitchtube.changes \
48-
qml/images/heart.png \
49-
qml/images/icon.png \
50-
qml/pages/elements/GamesGrid.qml \
51-
qml/pages/elements/ChannelsGrid.qml \
52-
qml/pages/GameChannelsPage.qml \
53-
qml/pages/FollowedGamesPage.qml \
54-
qml/cover/NavigationCover.qml \
55-
qml/cover/StreamCover.qml \
56-
qml/images/heart_crossed.png
23+
QML_FILES += $$files(sailfish-ui/*.qml,true) \
24+
$$files(sailfish-ui/*.js,true) \
25+
$$files(sailfish-ui/*.png,true)
26+
27+
CONF_FILES += rpm/harbour-twitchtube.spec \
28+
rpm/harbour-twitchtube.yaml \
29+
rpm/harbour-twitchtube.changes
30+
31+
TRANSLATIONS += $$files(translations/*.ts)
32+
33+
OTHER_FILES += $${CONF_FILES} \
34+
$${QML_FILES} \
35+
harbour-twitchtube.desktop
36+
37+
SAILFISHAPP_ICONS = 86x86 108x108 128x128 256x256
5738

5839
# to disable building translations every time, comment out the
5940
# following CONFIG line
6041
CONFIG += sailfishapp_i18n
61-
#TRANSLATIONS += translations/harbour-twitchtube-ru.ts
62-
63-
HEADERS += \
64-
src/ircchat.h \
65-
src/tools.h \
66-
src/qmlsettings.h \
67-
src/message.h \
68-
src/messagelistmodel.h
6942

7043
DISTFILES += \
71-
icons/108x108/apps/harbour-twitchtube.png \
72-
icons/128x128/apps/harbour-twitchtube.png \
73-
icons/256x256/apps/harbour-twitchtube.png \
74-
icons/86x86/apps/harbour-twitchtube.png \
75-
qml/pages/elements/GridWrapper.qml
44+
sailfish-ui/Main.qml
7645

rpm/harbour-twitchtube.spec

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,6 @@ desktop-file-install --delete-original \
6969
%{_bindir}
7070
%{_datadir}/%{name}
7171
%{_datadir}/applications/%{name}.desktop
72-
%{_datadir}/icons/hicolor/86x86/apps/%{name}.png
73-
%{_datadir}/icons/hicolor/108x108/apps/%{name}.png
74-
%{_datadir}/icons/hicolor/128x128/apps/%{name}.png
75-
%{_datadir}/icons/hicolor/256x256/apps/%{name}.png
72+
%{_datadir}/icons/hicolor/*/apps/%{name}.png
7673
# >> files
7774
# << files

rpm/harbour-twitchtube.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,7 @@ Files:
4242
- '%{_bindir}'
4343
- '%{_datadir}/%{name}'
4444
- '%{_datadir}/applications/%{name}.desktop'
45-
- '%{_datadir}/icons/hicolor/86x86/apps/%{name}.png'
46-
- '%{_datadir}/icons/hicolor/108x108/apps/%{name}.png'
47-
- '%{_datadir}/icons/hicolor/128x128/apps/%{name}.png'
48-
- '%{_datadir}/icons/hicolor/256x256/apps/%{name}.png'
45+
- '%{_datadir}/icons/hicolor/*/apps/%{name}.png'
4946

5047
# For more information about yaml and what's supported in Sailfish OS
5148
# build system, please see https://wiki.merproject.org/wiki/Spectacle

sailfish-icon.svg

Lines changed: 229 additions & 0 deletions
Loading
File renamed without changes.

sailfish-ui/TwitchTube.qrc

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<RCC>
2+
<qresource prefix="/">
3+
<file>Main.qml</file>
4+
<file>pages/ChannelsPage.qml</file>
5+
<file>pages/GameChannelsPage.qml</file>
6+
<file>pages/GamesPage.qml</file>
7+
<file>pages/StreamPage.qml</file>
8+
<file>pages/FollowedPage.qml</file>
9+
<file>pages/LoginPage.qml</file>
10+
<file>pages/QualityChooserPage.qml</file>
11+
<file>pages/SearchPage.qml</file>
12+
<file>pages/SettingsPage.qml</file>
13+
<file>pages/FollowedGamesPage.qml</file>
14+
<file>pages/elements/Categories.qml</file>
15+
<file>pages/elements/ChannelsGrid.qml</file>
16+
<file>pages/elements/GamesGrid.qml</file>
17+
<file>pages/elements/GridWrapper.qml</file>
18+
<file>cover/NavigationCover.qml</file>
19+
<file>cover/StreamCover.qml</file>
20+
<file>js/httphelper.js</file>
21+
<file>images/heart.png</file>
22+
<file>images/heart_crossed.png</file>
23+
<file>images/icon.png</file>
24+
</qresource>
25+
</RCC>
26+
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)