blob: f8e0c08fc7b524852f4c70613bd5ac4e12d3360e [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
Edric Milaret53ac6e52015-09-14 13:37:06 -040028isEmpty(QMAKE_LRELEASE) {
29 QMAKE_LRELEASE = lrelease
30}
31
Edric Milaret627500d2015-03-27 16:41:40 -040032SOURCES += main.cpp\
33 mainwindow.cpp \
34 callwidget.cpp \
35 configurationwidget.cpp \
36 navstack.cpp \
37 navbar.cpp \
38 mainbar.cpp \
39 navwidget.cpp \
40 accountdetails.cpp \
Edric Milaret627500d2015-03-27 16:41:40 -040041 aboutdialog.cpp \
Edric Milaret4bba46d2015-04-29 16:33:38 -040042 videowidget.cpp \
Edric Milaret559bda52015-04-29 17:02:31 -040043 utils.cpp \
Edric Milaret67007d12015-05-07 09:40:09 -040044 wizarddialog.cpp \
Edric Milaret53f57b62015-05-11 11:02:17 -040045 windowscontactbackend.cpp \
Edric Milaretdb76aa82015-05-11 16:01:00 -040046 historydelegate.cpp \
Edric Milaret7153eed2015-06-03 15:29:03 -040047 contactdelegate.cpp \
Edric Milaret3e6aefe2015-06-05 16:07:26 -040048 selectareadialog.cpp \
Edric Milaretcdc978b2015-06-04 11:25:12 -040049 accountserializationadapter.cpp \
Edric Milaret5d61a062015-06-12 11:16:08 -040050 instantmessagingwidget.cpp \
Edric Milaret029b95a2015-06-09 09:51:44 -040051 accountstatedelegate.cpp \
52 videoview.cpp \
Edric Milaret83b248c2015-06-02 11:42:23 -040053 videooverlay.cpp \
Edric Milaret43f3c1e2015-07-16 17:52:47 -040054 imdelegate.cpp \
Edric Milaret2afd2bf2015-07-21 17:12:25 -040055 contactpicker.cpp \
56 contactmethodpicker.cpp
Edric Milaret627500d2015-03-27 16:41:40 -040057
58HEADERS += mainwindow.h \
59 callwidget.h \
60 configurationwidget.h \
61 navstack.h \
62 navbar.h \
63 mainbar.h \
64 navwidget.h \
65 accountdetails.h \
Edric Milaret627500d2015-03-27 16:41:40 -040066 aboutdialog.h \
Edric Milaret4bba46d2015-04-29 16:33:38 -040067 videowidget.h \
Edric Milaret559bda52015-04-29 17:02:31 -040068 utils.h \
Edric Milaret67007d12015-05-07 09:40:09 -040069 wizarddialog.h \
Edric Milaret53f57b62015-05-11 11:02:17 -040070 windowscontactbackend.h \
Edric Milaretdb76aa82015-05-11 16:01:00 -040071 historydelegate.h \
Edric Milaret7153eed2015-06-03 15:29:03 -040072 contactdelegate.h \
Edric Milaret3e6aefe2015-06-05 16:07:26 -040073 selectareadialog.h \
Edric Milaretcdc978b2015-06-04 11:25:12 -040074 accountserializationadapter.h \
Edric Milaret5d61a062015-06-12 11:16:08 -040075 instantmessagingwidget.h \
Edric Milaret029b95a2015-06-09 09:51:44 -040076 accountstatedelegate.h \
77 videoview.h \
Edric Milaret83b248c2015-06-02 11:42:23 -040078 videooverlay.h \
Edric Milaret43f3c1e2015-07-16 17:52:47 -040079 imdelegate.h \
Edric Milaret2afd2bf2015-07-21 17:12:25 -040080 contactpicker.h \
81 contactmethodpicker.h
Edric Milaret627500d2015-03-27 16:41:40 -040082
83FORMS += mainwindow.ui \
84 callwidget.ui \
85 configurationwidget.ui \
86 navbar.ui \
87 mainbar.ui \
88 accountdetails.ui \
89 aboutdialog.ui \
Edric Milaretcdc978b2015-06-04 11:25:12 -040090 wizarddialog.ui \
Edric Milaret029b95a2015-06-09 09:51:44 -040091 instantmessagingwidget.ui \
92 videoview.ui \
Edric Milaret43f3c1e2015-07-16 17:52:47 -040093 videooverlay.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
Edric Milaret68ce2e62015-09-18 11:50:06 -0400108TRANSLATIONS = translations/ring_client_windows.ts \
109 translations/ring_client_windows_fr.ts \
Edric Milaret53ac6e52015-09-14 13:37:06 -0400110
111maketranslationdir.target = customtarget
112maketranslationdir.commands = $(MKDIR) $$OUT_PWD/share/ring/translations/
113
114updateqm.input = TRANSLATIONS
115updateqm.output = $$OUT_PWD/release/share/ring/translations/${QMAKE_FILE_BASE}.qm
116updateqm.commands = $$QMAKE_LRELEASE ${QMAKE_FILE_IN} -qm $$OUT_PWD/release/share/ring/translations/${QMAKE_FILE_BASE}.qm
117updateqm.CONFIG += no_link
118
119QMAKE_EXTRA_TARGETS += maketranslationdir
120QMAKE_EXTRA_COMPILERS += updateqm
121
122PRE_TARGETDEPS += customtarget compiler_updateqm_make_all
123
124QM_FILES.files = share
125QM_FILES.path = $$OUT_PWD/release
126
127INSTALLS += QM_FILES
128
Edric Milaret18e81842015-04-29 13:51:36 -0400129DISTFILES += \
Edric Milaret031c3052015-04-29 18:14:18 -0400130 License.rtf \
Edric Milaret34eb9202015-05-14 12:36:41 -0400131 ringtones/konga.ul \
132 ring.nsi
Edric Milaret031c3052015-04-29 18:14:18 -0400133
Edric Milaretf38362d2015-05-08 11:53:46 -0400134win32 {
Edric Milaret031c3052015-04-29 18:14:18 -0400135
Edric Milaretf38362d2015-05-08 11:53:46 -0400136 RINGTONES.files = ringtones
137 RINGTONES.path = $$OUT_PWD/release
Edric Milaret031c3052015-04-29 18:14:18 -0400138
Edric Milaret34eb9202015-05-14 12:36:41 -0400139 PACKAGING.files = ring.nsi images/ring.ico
Edric Milaretf38362d2015-05-08 11:53:46 -0400140 PACKAGING.path = $$OUT_PWD/release
Edric Milaret031c3052015-04-29 18:14:18 -0400141
Edric Milaretf38362d2015-05-08 11:53:46 -0400142 LICENSE.files = License.rtf
143 LICENSE.path = $$OUT_PWD/release
144
145 RUNTIMEDIR=/usr/i686-w64-mingw32/bin/
146
147 RUNTIME.files = $${RING}/bin/libring.dll $${RING}/bin/libringclient.dll
148 RUNTIME.path = $$OUT_PWD/release
149
Edric Milaret53ac6e52015-09-14 13:37:06 -0400150 LRC_TRANSLATION.files = $${RING}/share/libringclient/translations
151 LRC_TRANSLATION.path = $$OUT_PWD/release/share/libringclient/
152
Edric Milaretf38362d2015-05-08 11:53:46 -0400153 QTRUNTIME.files = $$RUNTIMEDIR/Qt5Core.dll $$RUNTIMEDIR/Qt5Widgets.dll \
Edric Milaret43f3c1e2015-07-16 17:52:47 -0400154 $$RUNTIMEDIR/Qt5Gui.dll $$RUNTIMEDIR/Qt5Svg.dll \
155 $$RUNTIMEDIR/Qt5Xml.dll
Edric Milaretf38362d2015-05-08 11:53:46 -0400156 QTRUNTIME.path = $$OUT_PWD/release
157
158 QTDEPSRUNTIME.files = $$RUNTIMEDIR/zlib1.dll $$RUNTIMEDIR/iconv.dll \
159 $$RUNTIMEDIR/libfreetype-6.dll $$RUNTIMEDIR/libglib-2.0-0.dll \
160 $$RUNTIMEDIR/libharfbuzz-0.dll \
161 $$RUNTIMEDIR/libintl-8.dll $$RUNTIMEDIR/libpcre-1.dll \
Edric Milaret7d40a4a2015-05-13 13:01:15 -0400162 $$RUNTIMEDIR/libpcre16-0.dll $$RUNTIMEDIR/libpng16-16.dll \
Edric Milaretb42308f2015-06-12 17:34:23 -0400163 $$RUNTIMEDIR/libjpeg-62.dll $$RUNTIMEDIR/libiconv-2.dll
Edric Milaretf38362d2015-05-08 11:53:46 -0400164 QTDEPSRUNTIME.path = $$OUT_PWD/release
165
166 QTPLATFORMS.files = $$(QTDIR)/plugins/platforms/qwindows.dll
167 QTPLATFORMS.path = $$OUT_PWD/release/platforms
168
Edric Milaret7d40a4a2015-05-13 13:01:15 -0400169 QTPLUGINIMAGE.files = $$(QTDIR)/plugins/imageformats/
170 QTPLUGINIMAGE.path = $$OUT_PWD/release
171
Edric Milaretf38362d2015-05-08 11:53:46 -0400172 LIBSTD.files = $$RUNTIMEDIR/libgcc_s_sjlj-1.dll $$RUNTIMEDIR/libstdc++-6.dll \
173 $$RUNTIMEDIR/libwinpthread-1.dll
174 LIBSTD.path = $$OUT_PWD/release
175
Edric Milaret53ac6e52015-09-14 13:37:06 -0400176 INSTALLS += RINGTONES PACKAGING LICENSE RUNTIME LRC_TRANSLATION QTRUNTIME QTDEPSRUNTIME \
Edric Milaret7d40a4a2015-05-13 13:01:15 -0400177 QTPLUGINIMAGE QTPLATFORMS LIBSTD
Edric Milaretf38362d2015-05-08 11:53:46 -0400178}