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 | |
| 28 | SOURCES += 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 Milaret | 627500d | 2015-03-27 16:41:40 -0400 | [diff] [blame] | 37 | aboutdialog.cpp \ |
Edric Milaret | 4bba46d | 2015-04-29 16:33:38 -0400 | [diff] [blame] | 38 | videowidget.cpp \ |
Edric Milaret | 559bda5 | 2015-04-29 17:02:31 -0400 | [diff] [blame] | 39 | utils.cpp \ |
Edric Milaret | 67007d1 | 2015-05-07 09:40:09 -0400 | [diff] [blame] | 40 | wizarddialog.cpp \ |
Edric Milaret | 53f57b6 | 2015-05-11 11:02:17 -0400 | [diff] [blame] | 41 | windowscontactbackend.cpp \ |
Edric Milaret | db76aa8 | 2015-05-11 16:01:00 -0400 | [diff] [blame] | 42 | historydelegate.cpp \ |
Edric Milaret | 7153eed | 2015-06-03 15:29:03 -0400 | [diff] [blame] | 43 | contactdelegate.cpp \ |
Edric Milaret | 3e6aefe | 2015-06-05 16:07:26 -0400 | [diff] [blame] | 44 | selectareadialog.cpp \ |
Edric Milaret | cdc978b | 2015-06-04 11:25:12 -0400 | [diff] [blame] | 45 | accountserializationadapter.cpp \ |
Edric Milaret | 5d61a06 | 2015-06-12 11:16:08 -0400 | [diff] [blame] | 46 | instantmessagingwidget.cpp \ |
Edric Milaret | 029b95a | 2015-06-09 09:51:44 -0400 | [diff] [blame] | 47 | accountstatedelegate.cpp \ |
| 48 | videoview.cpp \ |
Edric Milaret | 83b248c | 2015-06-02 11:42:23 -0400 | [diff] [blame] | 49 | videooverlay.cpp \ |
Edric Milaret | 43f3c1e | 2015-07-16 17:52:47 -0400 | [diff] [blame] | 50 | imdelegate.cpp \ |
| 51 | contactdialog.cpp \ |
| 52 | contactpicker.cpp |
Edric Milaret | 627500d | 2015-03-27 16:41:40 -0400 | [diff] [blame] | 53 | |
| 54 | HEADERS += mainwindow.h \ |
| 55 | callwidget.h \ |
| 56 | configurationwidget.h \ |
| 57 | navstack.h \ |
| 58 | navbar.h \ |
| 59 | mainbar.h \ |
| 60 | navwidget.h \ |
| 61 | accountdetails.h \ |
Edric Milaret | 627500d | 2015-03-27 16:41:40 -0400 | [diff] [blame] | 62 | aboutdialog.h \ |
Edric Milaret | 4bba46d | 2015-04-29 16:33:38 -0400 | [diff] [blame] | 63 | videowidget.h \ |
Edric Milaret | 559bda5 | 2015-04-29 17:02:31 -0400 | [diff] [blame] | 64 | utils.h \ |
Edric Milaret | 67007d1 | 2015-05-07 09:40:09 -0400 | [diff] [blame] | 65 | wizarddialog.h \ |
Edric Milaret | 53f57b6 | 2015-05-11 11:02:17 -0400 | [diff] [blame] | 66 | windowscontactbackend.h \ |
Edric Milaret | db76aa8 | 2015-05-11 16:01:00 -0400 | [diff] [blame] | 67 | historydelegate.h \ |
Edric Milaret | 7153eed | 2015-06-03 15:29:03 -0400 | [diff] [blame] | 68 | contactdelegate.h \ |
Edric Milaret | 3e6aefe | 2015-06-05 16:07:26 -0400 | [diff] [blame] | 69 | selectareadialog.h \ |
Edric Milaret | cdc978b | 2015-06-04 11:25:12 -0400 | [diff] [blame] | 70 | accountserializationadapter.h \ |
Edric Milaret | 5d61a06 | 2015-06-12 11:16:08 -0400 | [diff] [blame] | 71 | instantmessagingwidget.h \ |
Edric Milaret | 029b95a | 2015-06-09 09:51:44 -0400 | [diff] [blame] | 72 | accountstatedelegate.h \ |
| 73 | videoview.h \ |
Edric Milaret | 83b248c | 2015-06-02 11:42:23 -0400 | [diff] [blame] | 74 | videooverlay.h \ |
Edric Milaret | 43f3c1e | 2015-07-16 17:52:47 -0400 | [diff] [blame] | 75 | imdelegate.h \ |
| 76 | contactdialog.h \ |
| 77 | contactpicker.h |
Edric Milaret | 627500d | 2015-03-27 16:41:40 -0400 | [diff] [blame] | 78 | |
| 79 | FORMS += mainwindow.ui \ |
| 80 | callwidget.ui \ |
| 81 | configurationwidget.ui \ |
| 82 | navbar.ui \ |
| 83 | mainbar.ui \ |
| 84 | accountdetails.ui \ |
| 85 | aboutdialog.ui \ |
Edric Milaret | 559bda5 | 2015-04-29 17:02:31 -0400 | [diff] [blame] | 86 | pivotviewwidget.ui \ |
Edric Milaret | cdc978b | 2015-06-04 11:25:12 -0400 | [diff] [blame] | 87 | wizarddialog.ui \ |
Edric Milaret | 029b95a | 2015-06-09 09:51:44 -0400 | [diff] [blame] | 88 | instantmessagingwidget.ui \ |
| 89 | videoview.ui \ |
Edric Milaret | 43f3c1e | 2015-07-16 17:52:47 -0400 | [diff] [blame] | 90 | videooverlay.ui \ |
| 91 | contactdialog.ui \ |
| 92 | contactpicker.ui |
Edric Milaret | 627500d | 2015-03-27 16:41:40 -0400 | [diff] [blame] | 93 | |
Edric Milaret | 4bba46d | 2015-04-29 16:33:38 -0400 | [diff] [blame] | 94 | win32: LIBS += -lole32 -luuid -lshlwapi |
| 95 | |
Edric Milaret | f38362d | 2015-05-08 11:53:46 -0400 | [diff] [blame] | 96 | INCLUDEPATH += $${RING}/include/libringclient |
Edric Milaret | 627500d | 2015-03-27 16:41:40 -0400 | [diff] [blame] | 97 | |
Edric Milaret | 1eca029 | 2015-06-29 12:03:36 -0400 | [diff] [blame] | 98 | LIBS += -L$${RING}/lib -lringclient |
Edric Milaret | 627500d | 2015-03-27 16:41:40 -0400 | [diff] [blame] | 99 | |
| 100 | RESOURCES += \ |
| 101 | ressources.qrc |
Edric Milaret | 18e8184 | 2015-04-29 13:51:36 -0400 | [diff] [blame] | 102 | |
| 103 | RC_FILE = ico.rc |
| 104 | |
| 105 | DISTFILES += \ |
Edric Milaret | 031c305 | 2015-04-29 18:14:18 -0400 | [diff] [blame] | 106 | License.rtf \ |
Edric Milaret | 34eb920 | 2015-05-14 12:36:41 -0400 | [diff] [blame] | 107 | ringtones/konga.ul \ |
| 108 | ring.nsi |
Edric Milaret | 031c305 | 2015-04-29 18:14:18 -0400 | [diff] [blame] | 109 | |
Edric Milaret | f38362d | 2015-05-08 11:53:46 -0400 | [diff] [blame] | 110 | win32 { |
Edric Milaret | 031c305 | 2015-04-29 18:14:18 -0400 | [diff] [blame] | 111 | |
Edric Milaret | f38362d | 2015-05-08 11:53:46 -0400 | [diff] [blame] | 112 | RINGTONES.files = ringtones |
| 113 | RINGTONES.path = $$OUT_PWD/release |
Edric Milaret | 031c305 | 2015-04-29 18:14:18 -0400 | [diff] [blame] | 114 | |
Edric Milaret | 34eb920 | 2015-05-14 12:36:41 -0400 | [diff] [blame] | 115 | PACKAGING.files = ring.nsi images/ring.ico |
Edric Milaret | f38362d | 2015-05-08 11:53:46 -0400 | [diff] [blame] | 116 | PACKAGING.path = $$OUT_PWD/release |
Edric Milaret | 031c305 | 2015-04-29 18:14:18 -0400 | [diff] [blame] | 117 | |
Edric Milaret | f38362d | 2015-05-08 11:53:46 -0400 | [diff] [blame] | 118 | 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 Milaret | 43f3c1e | 2015-07-16 17:52:47 -0400 | [diff] [blame] | 127 | $$RUNTIMEDIR/Qt5Gui.dll $$RUNTIMEDIR/Qt5Svg.dll \ |
| 128 | $$RUNTIMEDIR/Qt5Xml.dll |
Edric Milaret | f38362d | 2015-05-08 11:53:46 -0400 | [diff] [blame] | 129 | 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 Milaret | 7d40a4a | 2015-05-13 13:01:15 -0400 | [diff] [blame] | 135 | $$RUNTIMEDIR/libpcre16-0.dll $$RUNTIMEDIR/libpng16-16.dll \ |
Edric Milaret | b42308f | 2015-06-12 17:34:23 -0400 | [diff] [blame] | 136 | $$RUNTIMEDIR/libjpeg-62.dll $$RUNTIMEDIR/libiconv-2.dll |
Edric Milaret | f38362d | 2015-05-08 11:53:46 -0400 | [diff] [blame] | 137 | QTDEPSRUNTIME.path = $$OUT_PWD/release |
| 138 | |
| 139 | QTPLATFORMS.files = $$(QTDIR)/plugins/platforms/qwindows.dll |
| 140 | QTPLATFORMS.path = $$OUT_PWD/release/platforms |
| 141 | |
Edric Milaret | 7d40a4a | 2015-05-13 13:01:15 -0400 | [diff] [blame] | 142 | QTPLUGINIMAGE.files = $$(QTDIR)/plugins/imageformats/ |
| 143 | QTPLUGINIMAGE.path = $$OUT_PWD/release |
| 144 | |
Edric Milaret | f38362d | 2015-05-08 11:53:46 -0400 | [diff] [blame] | 145 | 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 Milaret | 7d40a4a | 2015-05-13 13:01:15 -0400 | [diff] [blame] | 150 | QTPLUGINIMAGE QTPLATFORMS LIBSTD |
Edric Milaret | f38362d | 2015-05-08 11:53:46 -0400 | [diff] [blame] | 151 | } |