Edric Milaret | 627500d | 2015-03-27 16:41:40 -0400 | [diff] [blame] | 1 | #------------------------------------------------- |
| 2 | # |
| 3 | # Project created by QtCreator 2015-03-23T14:30:35 |
| 4 | # |
| 5 | #------------------------------------------------- |
| 6 | |
| 7 | QT += core gui |
| 8 | |
Edric Milaret | 43f3c1e | 2015-07-16 17:52:47 -0400 | [diff] [blame] | 9 | greaterThan(QT_MAJOR_VERSION, 4): QT += widgets svg xml |
Edric Milaret | 627500d | 2015-03-27 16:41:40 -0400 | [diff] [blame] | 10 | |
Guillaume Roguez | e024e47 | 2015-05-15 17:12:56 -0400 | [diff] [blame] | 11 | VERSION = 0.3.0 |
Edric Milaret | 7af1879 | 2015-05-21 16:03:03 -0400 | [diff] [blame] | 12 | GIT_VERSION = $$system(git --git-dir $$PWD/.git --work-tree $$PWD describe --always --tags) |
Edric Milaret | 627500d | 2015-03-27 16:41:40 -0400 | [diff] [blame] | 13 | |
| 14 | DEFINES += VERSION=\\\"$$VERSION\\\" |
Edric Milaret | 7af1879 | 2015-05-21 16:03:03 -0400 | [diff] [blame] | 15 | DEFINES += GIT_VERSION=\\\"$$GIT_VERSION\\\" |
Edric Milaret | 627500d | 2015-03-27 16:41:40 -0400 | [diff] [blame] | 16 | |
Edric Milaret | f38362d | 2015-05-08 11:53:46 -0400 | [diff] [blame] | 17 | BUILD=$${BUILD} |
Edric Milaret | a34e4ba | 2015-06-01 14:47:49 -0400 | [diff] [blame] | 18 | TARGET = Ring |
Edric Milaret | 627500d | 2015-03-27 16:41:40 -0400 | [diff] [blame] | 19 | TEMPLATE = app |
| 20 | |
| 21 | QMAKE_CXXFLAGS += -std=c++11 |
| 22 | |
Edric Milaret | f38362d | 2015-05-08 11:53:46 -0400 | [diff] [blame] | 23 | contains(BUILD, Debug) { |
| 24 | QMAKE_STRIP = echo |
| 25 | CONFIG += console |
| 26 | } |
Edric Milaret | 627500d | 2015-03-27 16:41:40 -0400 | [diff] [blame] | 27 | |
Edric Milaret | 53ac6e5 | 2015-09-14 13:37:06 -0400 | [diff] [blame] | 28 | isEmpty(QMAKE_LRELEASE) { |
| 29 | QMAKE_LRELEASE = lrelease |
| 30 | } |
| 31 | |
Edric Milaret | 627500d | 2015-03-27 16:41:40 -0400 | [diff] [blame] | 32 | SOURCES += 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 Milaret | 627500d | 2015-03-27 16:41:40 -0400 | [diff] [blame] | 41 | aboutdialog.cpp \ |
Edric Milaret | 4bba46d | 2015-04-29 16:33:38 -0400 | [diff] [blame] | 42 | videowidget.cpp \ |
Edric Milaret | 559bda5 | 2015-04-29 17:02:31 -0400 | [diff] [blame] | 43 | utils.cpp \ |
Edric Milaret | 67007d1 | 2015-05-07 09:40:09 -0400 | [diff] [blame] | 44 | wizarddialog.cpp \ |
Edric Milaret | 53f57b6 | 2015-05-11 11:02:17 -0400 | [diff] [blame] | 45 | windowscontactbackend.cpp \ |
Edric Milaret | db76aa8 | 2015-05-11 16:01:00 -0400 | [diff] [blame] | 46 | historydelegate.cpp \ |
Edric Milaret | 7153eed | 2015-06-03 15:29:03 -0400 | [diff] [blame] | 47 | contactdelegate.cpp \ |
Edric Milaret | 3e6aefe | 2015-06-05 16:07:26 -0400 | [diff] [blame] | 48 | selectareadialog.cpp \ |
Edric Milaret | cdc978b | 2015-06-04 11:25:12 -0400 | [diff] [blame] | 49 | accountserializationadapter.cpp \ |
Edric Milaret | 5d61a06 | 2015-06-12 11:16:08 -0400 | [diff] [blame] | 50 | instantmessagingwidget.cpp \ |
Edric Milaret | 029b95a | 2015-06-09 09:51:44 -0400 | [diff] [blame] | 51 | accountstatedelegate.cpp \ |
| 52 | videoview.cpp \ |
Edric Milaret | 83b248c | 2015-06-02 11:42:23 -0400 | [diff] [blame] | 53 | videooverlay.cpp \ |
Edric Milaret | 43f3c1e | 2015-07-16 17:52:47 -0400 | [diff] [blame] | 54 | imdelegate.cpp \ |
Edric Milaret | 2afd2bf | 2015-07-21 17:12:25 -0400 | [diff] [blame] | 55 | contactpicker.cpp \ |
| 56 | contactmethodpicker.cpp |
Edric Milaret | 627500d | 2015-03-27 16:41:40 -0400 | [diff] [blame] | 57 | |
| 58 | HEADERS += mainwindow.h \ |
| 59 | callwidget.h \ |
| 60 | configurationwidget.h \ |
| 61 | navstack.h \ |
| 62 | navbar.h \ |
| 63 | mainbar.h \ |
| 64 | navwidget.h \ |
| 65 | accountdetails.h \ |
Edric Milaret | 627500d | 2015-03-27 16:41:40 -0400 | [diff] [blame] | 66 | aboutdialog.h \ |
Edric Milaret | 4bba46d | 2015-04-29 16:33:38 -0400 | [diff] [blame] | 67 | videowidget.h \ |
Edric Milaret | 559bda5 | 2015-04-29 17:02:31 -0400 | [diff] [blame] | 68 | utils.h \ |
Edric Milaret | 67007d1 | 2015-05-07 09:40:09 -0400 | [diff] [blame] | 69 | wizarddialog.h \ |
Edric Milaret | 53f57b6 | 2015-05-11 11:02:17 -0400 | [diff] [blame] | 70 | windowscontactbackend.h \ |
Edric Milaret | db76aa8 | 2015-05-11 16:01:00 -0400 | [diff] [blame] | 71 | historydelegate.h \ |
Edric Milaret | 7153eed | 2015-06-03 15:29:03 -0400 | [diff] [blame] | 72 | contactdelegate.h \ |
Edric Milaret | 3e6aefe | 2015-06-05 16:07:26 -0400 | [diff] [blame] | 73 | selectareadialog.h \ |
Edric Milaret | cdc978b | 2015-06-04 11:25:12 -0400 | [diff] [blame] | 74 | accountserializationadapter.h \ |
Edric Milaret | 5d61a06 | 2015-06-12 11:16:08 -0400 | [diff] [blame] | 75 | instantmessagingwidget.h \ |
Edric Milaret | 029b95a | 2015-06-09 09:51:44 -0400 | [diff] [blame] | 76 | accountstatedelegate.h \ |
| 77 | videoview.h \ |
Edric Milaret | 83b248c | 2015-06-02 11:42:23 -0400 | [diff] [blame] | 78 | videooverlay.h \ |
Edric Milaret | 43f3c1e | 2015-07-16 17:52:47 -0400 | [diff] [blame] | 79 | imdelegate.h \ |
Edric Milaret | 2afd2bf | 2015-07-21 17:12:25 -0400 | [diff] [blame] | 80 | contactpicker.h \ |
| 81 | contactmethodpicker.h |
Edric Milaret | 627500d | 2015-03-27 16:41:40 -0400 | [diff] [blame] | 82 | |
| 83 | FORMS += mainwindow.ui \ |
| 84 | callwidget.ui \ |
| 85 | configurationwidget.ui \ |
| 86 | navbar.ui \ |
| 87 | mainbar.ui \ |
| 88 | accountdetails.ui \ |
| 89 | aboutdialog.ui \ |
Edric Milaret | cdc978b | 2015-06-04 11:25:12 -0400 | [diff] [blame] | 90 | wizarddialog.ui \ |
Edric Milaret | 029b95a | 2015-06-09 09:51:44 -0400 | [diff] [blame] | 91 | instantmessagingwidget.ui \ |
| 92 | videoview.ui \ |
Edric Milaret | 43f3c1e | 2015-07-16 17:52:47 -0400 | [diff] [blame] | 93 | videooverlay.ui \ |
Edric Milaret | 2afd2bf | 2015-07-21 17:12:25 -0400 | [diff] [blame] | 94 | contactpicker.ui \ |
| 95 | contactmethodpicker.ui |
Edric Milaret | 627500d | 2015-03-27 16:41:40 -0400 | [diff] [blame] | 96 | |
Edric Milaret | 4bba46d | 2015-04-29 16:33:38 -0400 | [diff] [blame] | 97 | win32: LIBS += -lole32 -luuid -lshlwapi |
| 98 | |
Edric Milaret | f38362d | 2015-05-08 11:53:46 -0400 | [diff] [blame] | 99 | INCLUDEPATH += $${RING}/include/libringclient |
Edric Milaret | 627500d | 2015-03-27 16:41:40 -0400 | [diff] [blame] | 100 | |
Edric Milaret | 1eca029 | 2015-06-29 12:03:36 -0400 | [diff] [blame] | 101 | LIBS += -L$${RING}/lib -lringclient |
Edric Milaret | 627500d | 2015-03-27 16:41:40 -0400 | [diff] [blame] | 102 | |
| 103 | RESOURCES += \ |
| 104 | ressources.qrc |
Edric Milaret | 18e8184 | 2015-04-29 13:51:36 -0400 | [diff] [blame] | 105 | |
| 106 | RC_FILE = ico.rc |
| 107 | |
Edric Milaret | 68ce2e6 | 2015-09-18 11:50:06 -0400 | [diff] [blame^] | 108 | TRANSLATIONS = translations/ring_client_windows.ts \ |
| 109 | translations/ring_client_windows_fr.ts \ |
Edric Milaret | 53ac6e5 | 2015-09-14 13:37:06 -0400 | [diff] [blame] | 110 | |
| 111 | maketranslationdir.target = customtarget |
| 112 | maketranslationdir.commands = $(MKDIR) $$OUT_PWD/share/ring/translations/ |
| 113 | |
| 114 | updateqm.input = TRANSLATIONS |
| 115 | updateqm.output = $$OUT_PWD/release/share/ring/translations/${QMAKE_FILE_BASE}.qm |
| 116 | updateqm.commands = $$QMAKE_LRELEASE ${QMAKE_FILE_IN} -qm $$OUT_PWD/release/share/ring/translations/${QMAKE_FILE_BASE}.qm |
| 117 | updateqm.CONFIG += no_link |
| 118 | |
| 119 | QMAKE_EXTRA_TARGETS += maketranslationdir |
| 120 | QMAKE_EXTRA_COMPILERS += updateqm |
| 121 | |
| 122 | PRE_TARGETDEPS += customtarget compiler_updateqm_make_all |
| 123 | |
| 124 | QM_FILES.files = share |
| 125 | QM_FILES.path = $$OUT_PWD/release |
| 126 | |
| 127 | INSTALLS += QM_FILES |
| 128 | |
Edric Milaret | 18e8184 | 2015-04-29 13:51:36 -0400 | [diff] [blame] | 129 | DISTFILES += \ |
Edric Milaret | 031c305 | 2015-04-29 18:14:18 -0400 | [diff] [blame] | 130 | License.rtf \ |
Edric Milaret | 34eb920 | 2015-05-14 12:36:41 -0400 | [diff] [blame] | 131 | ringtones/konga.ul \ |
| 132 | ring.nsi |
Edric Milaret | 031c305 | 2015-04-29 18:14:18 -0400 | [diff] [blame] | 133 | |
Edric Milaret | f38362d | 2015-05-08 11:53:46 -0400 | [diff] [blame] | 134 | win32 { |
Edric Milaret | 031c305 | 2015-04-29 18:14:18 -0400 | [diff] [blame] | 135 | |
Edric Milaret | f38362d | 2015-05-08 11:53:46 -0400 | [diff] [blame] | 136 | RINGTONES.files = ringtones |
| 137 | RINGTONES.path = $$OUT_PWD/release |
Edric Milaret | 031c305 | 2015-04-29 18:14:18 -0400 | [diff] [blame] | 138 | |
Edric Milaret | 34eb920 | 2015-05-14 12:36:41 -0400 | [diff] [blame] | 139 | PACKAGING.files = ring.nsi images/ring.ico |
Edric Milaret | f38362d | 2015-05-08 11:53:46 -0400 | [diff] [blame] | 140 | PACKAGING.path = $$OUT_PWD/release |
Edric Milaret | 031c305 | 2015-04-29 18:14:18 -0400 | [diff] [blame] | 141 | |
Edric Milaret | f38362d | 2015-05-08 11:53:46 -0400 | [diff] [blame] | 142 | 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 Milaret | 53ac6e5 | 2015-09-14 13:37:06 -0400 | [diff] [blame] | 150 | LRC_TRANSLATION.files = $${RING}/share/libringclient/translations |
| 151 | LRC_TRANSLATION.path = $$OUT_PWD/release/share/libringclient/ |
| 152 | |
Edric Milaret | f38362d | 2015-05-08 11:53:46 -0400 | [diff] [blame] | 153 | QTRUNTIME.files = $$RUNTIMEDIR/Qt5Core.dll $$RUNTIMEDIR/Qt5Widgets.dll \ |
Edric Milaret | 43f3c1e | 2015-07-16 17:52:47 -0400 | [diff] [blame] | 154 | $$RUNTIMEDIR/Qt5Gui.dll $$RUNTIMEDIR/Qt5Svg.dll \ |
| 155 | $$RUNTIMEDIR/Qt5Xml.dll |
Edric Milaret | f38362d | 2015-05-08 11:53:46 -0400 | [diff] [blame] | 156 | 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 Milaret | 7d40a4a | 2015-05-13 13:01:15 -0400 | [diff] [blame] | 162 | $$RUNTIMEDIR/libpcre16-0.dll $$RUNTIMEDIR/libpng16-16.dll \ |
Edric Milaret | b42308f | 2015-06-12 17:34:23 -0400 | [diff] [blame] | 163 | $$RUNTIMEDIR/libjpeg-62.dll $$RUNTIMEDIR/libiconv-2.dll |
Edric Milaret | f38362d | 2015-05-08 11:53:46 -0400 | [diff] [blame] | 164 | QTDEPSRUNTIME.path = $$OUT_PWD/release |
| 165 | |
| 166 | QTPLATFORMS.files = $$(QTDIR)/plugins/platforms/qwindows.dll |
| 167 | QTPLATFORMS.path = $$OUT_PWD/release/platforms |
| 168 | |
Edric Milaret | 7d40a4a | 2015-05-13 13:01:15 -0400 | [diff] [blame] | 169 | QTPLUGINIMAGE.files = $$(QTDIR)/plugins/imageformats/ |
| 170 | QTPLUGINIMAGE.path = $$OUT_PWD/release |
| 171 | |
Edric Milaret | f38362d | 2015-05-08 11:53:46 -0400 | [diff] [blame] | 172 | 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 Milaret | 53ac6e5 | 2015-09-14 13:37:06 -0400 | [diff] [blame] | 176 | INSTALLS += RINGTONES PACKAGING LICENSE RUNTIME LRC_TRANSLATION QTRUNTIME QTDEPSRUNTIME \ |
Edric Milaret | 7d40a4a | 2015-05-13 13:01:15 -0400 | [diff] [blame] | 177 | QTPLUGINIMAGE QTPLATFORMS LIBSTD |
Edric Milaret | f38362d | 2015-05-08 11:53:46 -0400 | [diff] [blame] | 178 | } |