-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathharbour-hipsterfish.pro
111 lines (95 loc) · 3.48 KB
/
harbour-hipsterfish.pro
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
# NOTICE:
#
# Application name defined in TARGET has a corresponding QML filename.
# If name defined in TARGET is changed, the following needs to be done
# to match new name:
# - corresponding QML filename must be changed
# - desktop icon filename must be changed
# - desktop filename must be changed
# - icon definition filename in desktop file must be changed
# - translation filenames have to be changed
# The name of your application
TARGET = harbour-hipsterfish
QT += qml
CONFIG += link_pkgconfig sailfishapp c++11
CONFIG+=qml_debug
PKGCONFIG += mlite5
SOURCES += src/harbour-hipsterfish.cpp \
src/dconfcookiejar.cpp \
src/instagramclient.cpp \
src/instagramaccount.cpp \
src/instagramaccountmanager.cpp \
src/qmlstringutils.cpp
OTHER_FILES += qml/harbour-hipsterfish.qml \
qml/cover/CoverPage.qml \
rpm/harbour-hipsterfish.changes.in \
rpm/harbour-hipsterfish.spec \
rpm/harbour-hipsterfish.yaml \
translations/*.ts \
harbour-hipsterfish.desktop
# Load Instagram signature key
KEY_FILE = $$PWD/instagram_signature_key.key
!exists($$KEY_FILE) {
error("Instagram signature key file not found: instagram_signature_key.key")
}
INSTAGRAM_SIGNATURE_DATA = $$cat($$KEY_FILE, lines)
INSTAGRAM_SIGNATURE_VERSION = $$member(INSTAGRAM_SIGNATURE_DATA, 0)
INSTAGRAM_SIGNATURE_KEY = $$member(INSTAGRAM_SIGNATURE_DATA, 1)
message($${INSTAGRAM_SIGNATURE_VERSION} $${INSTAGRAM_SIGNATURE_KEY})
DEFINES += INSTAGRAM_SIGNATURE_VERSION=\\\"$${INSTAGRAM_SIGNATURE_VERSION}\\\" \
INSTAGRAM_SIGNATURE_KEY=\\\"$${INSTAGRAM_SIGNATURE_KEY}\\\" \
APP_NAME=\\\"$${TARGET}\\\"
SAILFISHAPP_ICONS = 86x86 108x108 128x128 256x256
# to disable building translations every time, comment out the
# following CONFIG line
#CONFIG += sailfishapp_i18n
# German translation is enabled as an example. If you aren't
# planning to localize your app, remember to comment out the
# following TRANSLATIONS line. And also do not forget to
# modify the localized app name in the the .desktop file.
TRANSLATIONS += translations/harbour-hipsterfish-de.ts
DISTFILES += \
instagram_signature_key.key \
instagram_signature_key_old.key \
qml/pages/LoginPage.qml \
qml/pages/StartPage.qml \
qml/common/JSONListModel.qml \
qml/js/jsonpath.js \
qml/delegates/PostDelegate.qml \
qml/pages/CommentsPage.qml \
qml/common/ProfilePicture.qml \
qml/views/TimelineView.qml \
qml/common/BaseView.qml \
qml/views/SearchView.qml \
qml/views/NotificationsView.qml \
qml/views/MeView.qml \
qml/common/LoadingMoreIndicator.qml \
qml/common/CommentEditor.qml \
qml/common/UserProfile.qml \
qml/js/Utils.js \
qml/common/PostStreamView.qml \
qml/common/InstagramModel.qml \
qml/pages/PostStreamPage.qml \
qml/pages/SearchPage.qml \
qml/common/ProfileDetailItem.qml \
qml/pages/UserProfilePage.qml \
qml/common/FeedView.qml \
qml/common/InstagramLabel.qml \
qml/common/StaticMap.qml \
qml/pages/LocationPage.qml \
qml/common/NonInteractiveGridView.qml \
qml/pages/HashtagPage.qml \
qml/pages/FriendshipsPage.qml \
qml/delegates/UserListItem.qml \
qml/common/FollowButton.qml \
qml/common/InstagramButton.qml \
qml/js/JSONListModelWorker.js
HEADERS += \
src/dconfcookiejar.h \
src/instagramclient.h \
src/instagramaccount.h \
src/instagramaccountmanager.h \
src/qmlstringutils.h
include(3rdparty/qt-json/qt-json.pri)
#include(3rdparty/gel/com_cutehacks_gel.pri)
#DEFINES += QT_NO_DEBUG_OUTPUT