blob: 9e9feb199e1f0fe2e732a8fa7aa544c857edb961 [file] [log] [blame]
Edric Milaret627500d2015-03-27 16:41:40 -04001#-------------------------------------------------
2#
3# Project created by QtCreator 2015-03-23T14:30:35
4#
5#-------------------------------------------------
6
7QT += core gui
8
Edric Milaret43f3c1e2015-07-16 17:52:47 -04009greaterThan(QT_MAJOR_VERSION, 4): QT += widgets svg xml
Edric Milaret627500d2015-03-27 16:41:40 -040010
Guillaume Rogueze024e472015-05-15 17:12:56 -040011VERSION = 0.3.0
Edric Milaret7af18792015-05-21 16:03:03 -040012GIT_VERSION = $$system(git --git-dir $$PWD/.git --work-tree $$PWD describe --always --tags)
Edric Milaret627500d2015-03-27 16:41:40 -040013
14DEFINES += VERSION=\\\"$$VERSION\\\"
Edric Milaret7af18792015-05-21 16:03:03 -040015DEFINES += GIT_VERSION=\\\"$$GIT_VERSION\\\"
Edric Milaret627500d2015-03-27 16:41:40 -040016
Edric Milaretf38362d2015-05-08 11:53:46 -040017BUILD=$${BUILD}
Edric Milareta34e4ba2015-06-01 14:47:49 -040018TARGET = Ring
Edric Milaret627500d2015-03-27 16:41:40 -040019TEMPLATE = app
20
21QMAKE_CXXFLAGS += -std=c++11
22
Edric Milaretf38362d2015-05-08 11:53:46 -040023contains(BUILD, Debug) {
24 QMAKE_STRIP = echo
25 CONFIG += console
26}
Edric Milaret627500d2015-03-27 16:41:40 -040027
28SOURCES += main.cpp\
29 mainwindow.cpp \
30 callwidget.cpp \
31 configurationwidget.cpp \
32 navstack.cpp \
33 navbar.cpp \
34 mainbar.cpp \
35 navwidget.cpp \
36 accountdetails.cpp \
Edric Milaret627500d2015-03-27 16:41:40 -040037 aboutdialog.cpp \
Edric Milaret4bba46d2015-04-29 16:33:38 -040038 videowidget.cpp \
Edric Milaret559bda52015-04-29 17:02:31 -040039 utils.cpp \
Edric Milaret67007d12015-05-07 09:40:09 -040040 wizarddialog.cpp \
Edric Milaret53f57b62015-05-11 11:02:17 -040041 windowscontactbackend.cpp \
Edric Milaretdb76aa82015-05-11 16:01:00 -040042 historydelegate.cpp \
Edric Milaret7153eed2015-06-03 15:29:03 -040043 contactdelegate.cpp \
Edric Milaret3e6aefe2015-06-05 16:07:26 -040044 selectareadialog.cpp \
Edric Milaretcdc978b2015-06-04 11:25:12 -040045 accountserializationadapter.cpp \
Edric Milaret5d61a062015-06-12 11:16:08 -040046 instantmessagingwidget.cpp \
Edric Milaret029b95a2015-06-09 09:51:44 -040047 accountstatedelegate.cpp \
48 videoview.cpp \
Edric Milaret83b248c2015-06-02 11:42:23 -040049 videooverlay.cpp \
Edric Milaret43f3c1e2015-07-16 17:52:47 -040050 imdelegate.cpp \
51 contactdialog.cpp \
Edric Milaret2afd2bf2015-07-21 17:12:25 -040052 contactpicker.cpp \
53 contactmethodpicker.cpp
Edric Milaret627500d2015-03-27 16:41:40 -040054
55HEADERS += mainwindow.h \
56 callwidget.h \
57 configurationwidget.h \
58 navstack.h \
59 navbar.h \
60 mainbar.h \
61 navwidget.h \
62 accountdetails.h \
Edric Milaret627500d2015-03-27 16:41:40 -040063 aboutdialog.h \
Edric Milaret4bba46d2015-04-29 16:33:38 -040064 videowidget.h \
Edric Milaret559bda52015-04-29 17:02:31 -040065 utils.h \
Edric Milaret67007d12015-05-07 09:40:09 -040066 wizarddialog.h \
Edric Milaret53f57b62015-05-11 11:02:17 -040067 windowscontactbackend.h \
Edric Milaretdb76aa82015-05-11 16:01:00 -040068 historydelegate.h \
Edric Milaret7153eed2015-06-03 15:29:03 -040069 contactdelegate.h \
Edric Milaret3e6aefe2015-06-05 16:07:26 -040070 selectareadialog.h \
Edric Milaretcdc978b2015-06-04 11:25:12 -040071 accountserializationadapter.h \
Edric Milaret5d61a062015-06-12 11:16:08 -040072 instantmessagingwidget.h \
Edric Milaret029b95a2015-06-09 09:51:44 -040073 accountstatedelegate.h \
74 videoview.h \
Edric Milaret83b248c2015-06-02 11:42:23 -040075 videooverlay.h \
Edric Milaret43f3c1e2015-07-16 17:52:47 -040076 imdelegate.h \
77 contactdialog.h \
Edric Milaret2afd2bf2015-07-21 17:12:25 -040078 contactpicker.h \
79 contactmethodpicker.h
Edric Milaret627500d2015-03-27 16:41:40 -040080
81FORMS += mainwindow.ui \
82 callwidget.ui \
83 configurationwidget.ui \
84 navbar.ui \
85 mainbar.ui \
86 accountdetails.ui \
87 aboutdialog.ui \
Edric Milaret559bda52015-04-29 17:02:31 -040088 pivotviewwidget.ui \
Edric Milaretcdc978b2015-06-04 11:25:12 -040089 wizarddialog.ui \
Edric Milaret029b95a2015-06-09 09:51:44 -040090 instantmessagingwidget.ui \
91 videoview.ui \
Edric Milaret43f3c1e2015-07-16 17:52:47 -040092 videooverlay.ui \
93 contactdialog.ui \
Edric Milaret2afd2bf2015-07-21 17:12:25 -040094 contactpicker.ui \
95 contactmethodpicker.ui
Edric Milaret627500d2015-03-27 16:41:40 -040096
Edric Milaret4bba46d2015-04-29 16:33:38 -040097win32: LIBS += -lole32 -luuid -lshlwapi
98
Edric Milaretf38362d2015-05-08 11:53:46 -040099INCLUDEPATH += $${RING}/include/libringclient
Edric Milaret627500d2015-03-27 16:41:40 -0400100
Edric Milaret1eca0292015-06-29 12:03:36 -0400101LIBS += -L$${RING}/lib -lringclient
Edric Milaret627500d2015-03-27 16:41:40 -0400102
103RESOURCES += \
104 ressources.qrc
Edric Milaret18e81842015-04-29 13:51:36 -0400105
106RC_FILE = ico.rc
107
108DISTFILES += \
Edric Milaret031c3052015-04-29 18:14:18 -0400109 License.rtf \
Edric Milaret34eb9202015-05-14 12:36:41 -0400110 ringtones/konga.ul \
111 ring.nsi
Edric Milaret031c3052015-04-29 18:14:18 -0400112
Edric Milaretf38362d2015-05-08 11:53:46 -0400113win32 {
Edric Milaret031c3052015-04-29 18:14:18 -0400114
Edric Milaretf38362d2015-05-08 11:53:46 -0400115 RINGTONES.files = ringtones
116 RINGTONES.path = $$OUT_PWD/release
Edric Milaret031c3052015-04-29 18:14:18 -0400117
Edric Milaret34eb9202015-05-14 12:36:41 -0400118 PACKAGING.files = ring.nsi images/ring.ico
Edric Milaretf38362d2015-05-08 11:53:46 -0400119 PACKAGING.path = $$OUT_PWD/release
Edric Milaret031c3052015-04-29 18:14:18 -0400120
Edric Milaretf38362d2015-05-08 11:53:46 -0400121 LICENSE.files = License.rtf
122 LICENSE.path = $$OUT_PWD/release
123
124 RUNTIMEDIR=/usr/i686-w64-mingw32/bin/
125
126 RUNTIME.files = $${RING}/bin/libring.dll $${RING}/bin/libringclient.dll
127 RUNTIME.path = $$OUT_PWD/release
128
129 QTRUNTIME.files = $$RUNTIMEDIR/Qt5Core.dll $$RUNTIMEDIR/Qt5Widgets.dll \
Edric Milaret43f3c1e2015-07-16 17:52:47 -0400130 $$RUNTIMEDIR/Qt5Gui.dll $$RUNTIMEDIR/Qt5Svg.dll \
131 $$RUNTIMEDIR/Qt5Xml.dll
Edric Milaretf38362d2015-05-08 11:53:46 -0400132 QTRUNTIME.path = $$OUT_PWD/release
133
134 QTDEPSRUNTIME.files = $$RUNTIMEDIR/zlib1.dll $$RUNTIMEDIR/iconv.dll \
135 $$RUNTIMEDIR/libfreetype-6.dll $$RUNTIMEDIR/libglib-2.0-0.dll \
136 $$RUNTIMEDIR/libharfbuzz-0.dll \
137 $$RUNTIMEDIR/libintl-8.dll $$RUNTIMEDIR/libpcre-1.dll \
Edric Milaret7d40a4a2015-05-13 13:01:15 -0400138 $$RUNTIMEDIR/libpcre16-0.dll $$RUNTIMEDIR/libpng16-16.dll \
Edric Milaretb42308f2015-06-12 17:34:23 -0400139 $$RUNTIMEDIR/libjpeg-62.dll $$RUNTIMEDIR/libiconv-2.dll
Edric Milaretf38362d2015-05-08 11:53:46 -0400140 QTDEPSRUNTIME.path = $$OUT_PWD/release
141
142 QTPLATFORMS.files = $$(QTDIR)/plugins/platforms/qwindows.dll
143 QTPLATFORMS.path = $$OUT_PWD/release/platforms
144
Edric Milaret7d40a4a2015-05-13 13:01:15 -0400145 QTPLUGINIMAGE.files = $$(QTDIR)/plugins/imageformats/
146 QTPLUGINIMAGE.path = $$OUT_PWD/release
147
Edric Milaretf38362d2015-05-08 11:53:46 -0400148 LIBSTD.files = $$RUNTIMEDIR/libgcc_s_sjlj-1.dll $$RUNTIMEDIR/libstdc++-6.dll \
149 $$RUNTIMEDIR/libwinpthread-1.dll
150 LIBSTD.path = $$OUT_PWD/release
151
152 INSTALLS += RINGTONES PACKAGING LICENSE RUNTIME QTRUNTIME QTDEPSRUNTIME \
Edric Milaret7d40a4a2015-05-13 13:01:15 -0400153 QTPLUGINIMAGE QTPLATFORMS LIBSTD
Edric Milaretf38362d2015-05-08 11:53:46 -0400154}