blob: 42ef5bc30a390a9ce3170e10056507a7a484e4a8 [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 \
52 contactpicker.cpp
Edric Milaret627500d2015-03-27 16:41:40 -040053
54HEADERS += mainwindow.h \
55 callwidget.h \
56 configurationwidget.h \
57 navstack.h \
58 navbar.h \
59 mainbar.h \
60 navwidget.h \
61 accountdetails.h \
Edric Milaret627500d2015-03-27 16:41:40 -040062 aboutdialog.h \
Edric Milaret4bba46d2015-04-29 16:33:38 -040063 videowidget.h \
Edric Milaret559bda52015-04-29 17:02:31 -040064 utils.h \
Edric Milaret67007d12015-05-07 09:40:09 -040065 wizarddialog.h \
Edric Milaret53f57b62015-05-11 11:02:17 -040066 windowscontactbackend.h \
Edric Milaretdb76aa82015-05-11 16:01:00 -040067 historydelegate.h \
Edric Milaret7153eed2015-06-03 15:29:03 -040068 contactdelegate.h \
Edric Milaret3e6aefe2015-06-05 16:07:26 -040069 selectareadialog.h \
Edric Milaretcdc978b2015-06-04 11:25:12 -040070 accountserializationadapter.h \
Edric Milaret5d61a062015-06-12 11:16:08 -040071 instantmessagingwidget.h \
Edric Milaret029b95a2015-06-09 09:51:44 -040072 accountstatedelegate.h \
73 videoview.h \
Edric Milaret83b248c2015-06-02 11:42:23 -040074 videooverlay.h \
Edric Milaret43f3c1e2015-07-16 17:52:47 -040075 imdelegate.h \
76 contactdialog.h \
77 contactpicker.h
Edric Milaret627500d2015-03-27 16:41:40 -040078
79FORMS += mainwindow.ui \
80 callwidget.ui \
81 configurationwidget.ui \
82 navbar.ui \
83 mainbar.ui \
84 accountdetails.ui \
85 aboutdialog.ui \
Edric Milaret559bda52015-04-29 17:02:31 -040086 pivotviewwidget.ui \
Edric Milaretcdc978b2015-06-04 11:25:12 -040087 wizarddialog.ui \
Edric Milaret029b95a2015-06-09 09:51:44 -040088 instantmessagingwidget.ui \
89 videoview.ui \
Edric Milaret43f3c1e2015-07-16 17:52:47 -040090 videooverlay.ui \
91 contactdialog.ui \
92 contactpicker.ui
Edric Milaret627500d2015-03-27 16:41:40 -040093
Edric Milaret4bba46d2015-04-29 16:33:38 -040094win32: LIBS += -lole32 -luuid -lshlwapi
95
Edric Milaretf38362d2015-05-08 11:53:46 -040096INCLUDEPATH += $${RING}/include/libringclient
Edric Milaret627500d2015-03-27 16:41:40 -040097
Edric Milaret1eca0292015-06-29 12:03:36 -040098LIBS += -L$${RING}/lib -lringclient
Edric Milaret627500d2015-03-27 16:41:40 -040099
100RESOURCES += \
101 ressources.qrc
Edric Milaret18e81842015-04-29 13:51:36 -0400102
103RC_FILE = ico.rc
104
105DISTFILES += \
Edric Milaret031c3052015-04-29 18:14:18 -0400106 License.rtf \
Edric Milaret34eb9202015-05-14 12:36:41 -0400107 ringtones/konga.ul \
108 ring.nsi
Edric Milaret031c3052015-04-29 18:14:18 -0400109
Edric Milaretf38362d2015-05-08 11:53:46 -0400110win32 {
Edric Milaret031c3052015-04-29 18:14:18 -0400111
Edric Milaretf38362d2015-05-08 11:53:46 -0400112 RINGTONES.files = ringtones
113 RINGTONES.path = $$OUT_PWD/release
Edric Milaret031c3052015-04-29 18:14:18 -0400114
Edric Milaret34eb9202015-05-14 12:36:41 -0400115 PACKAGING.files = ring.nsi images/ring.ico
Edric Milaretf38362d2015-05-08 11:53:46 -0400116 PACKAGING.path = $$OUT_PWD/release
Edric Milaret031c3052015-04-29 18:14:18 -0400117
Edric Milaretf38362d2015-05-08 11:53:46 -0400118 LICENSE.files = License.rtf
119 LICENSE.path = $$OUT_PWD/release
120
121 RUNTIMEDIR=/usr/i686-w64-mingw32/bin/
122
123 RUNTIME.files = $${RING}/bin/libring.dll $${RING}/bin/libringclient.dll
124 RUNTIME.path = $$OUT_PWD/release
125
126 QTRUNTIME.files = $$RUNTIMEDIR/Qt5Core.dll $$RUNTIMEDIR/Qt5Widgets.dll \
Edric Milaret43f3c1e2015-07-16 17:52:47 -0400127 $$RUNTIMEDIR/Qt5Gui.dll $$RUNTIMEDIR/Qt5Svg.dll \
128 $$RUNTIMEDIR/Qt5Xml.dll
Edric Milaretf38362d2015-05-08 11:53:46 -0400129 QTRUNTIME.path = $$OUT_PWD/release
130
131 QTDEPSRUNTIME.files = $$RUNTIMEDIR/zlib1.dll $$RUNTIMEDIR/iconv.dll \
132 $$RUNTIMEDIR/libfreetype-6.dll $$RUNTIMEDIR/libglib-2.0-0.dll \
133 $$RUNTIMEDIR/libharfbuzz-0.dll \
134 $$RUNTIMEDIR/libintl-8.dll $$RUNTIMEDIR/libpcre-1.dll \
Edric Milaret7d40a4a2015-05-13 13:01:15 -0400135 $$RUNTIMEDIR/libpcre16-0.dll $$RUNTIMEDIR/libpng16-16.dll \
Edric Milaretb42308f2015-06-12 17:34:23 -0400136 $$RUNTIMEDIR/libjpeg-62.dll $$RUNTIMEDIR/libiconv-2.dll
Edric Milaretf38362d2015-05-08 11:53:46 -0400137 QTDEPSRUNTIME.path = $$OUT_PWD/release
138
139 QTPLATFORMS.files = $$(QTDIR)/plugins/platforms/qwindows.dll
140 QTPLATFORMS.path = $$OUT_PWD/release/platforms
141
Edric Milaret7d40a4a2015-05-13 13:01:15 -0400142 QTPLUGINIMAGE.files = $$(QTDIR)/plugins/imageformats/
143 QTPLUGINIMAGE.path = $$OUT_PWD/release
144
Edric Milaretf38362d2015-05-08 11:53:46 -0400145 LIBSTD.files = $$RUNTIMEDIR/libgcc_s_sjlj-1.dll $$RUNTIMEDIR/libstdc++-6.dll \
146 $$RUNTIMEDIR/libwinpthread-1.dll
147 LIBSTD.path = $$OUT_PWD/release
148
149 INSTALLS += RINGTONES PACKAGING LICENSE RUNTIME QTRUNTIME QTDEPSRUNTIME \
Edric Milaret7d40a4a2015-05-13 13:01:15 -0400150 QTPLUGINIMAGE QTPLATFORMS LIBSTD
Edric Milaretf38362d2015-05-08 11:53:46 -0400151}