RingWinClient.pro 4.95 KB
Newer Older
Edric Milaret's avatar
Edric Milaret committed
1 2 3 4 5 6 7 8
#-------------------------------------------------
#
# Project created by QtCreator 2015-03-23T14:30:35
#
#-------------------------------------------------

QT       += core gui

9
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets svg winextras xml
Edric Milaret's avatar
Edric Milaret committed
10

Guillaume Roguez's avatar
Guillaume Roguez committed
11
VERSION = 0.3.0
12
GIT_VERSION = $$system(git --git-dir $$PWD/.git --work-tree $$PWD describe --always --tags)
Edric Milaret's avatar
Edric Milaret committed
13 14

DEFINES += VERSION=\\\"$$VERSION\\\"
15
DEFINES += GIT_VERSION=\\\"$$GIT_VERSION\\\"
Edric Milaret's avatar
Edric Milaret committed
16

17
BUILD=$${BUILD}
Edric Milaret's avatar
Edric Milaret committed
18
TARGET = Ring
Edric Milaret's avatar
Edric Milaret committed
19 20 21 22
TEMPLATE = app

QMAKE_CXXFLAGS += -std=c++11

23 24 25 26
contains(BUILD, Debug) {
    QMAKE_STRIP = echo
    CONFIG += console
}
Edric Milaret's avatar
Edric Milaret committed
27

28 29 30 31
isEmpty(QMAKE_LRELEASE) {
    QMAKE_LRELEASE = lrelease
}

Edric Milaret's avatar
Edric Milaret committed
32 33 34 35 36 37 38 39 40 41
SOURCES += main.cpp\
        mainwindow.cpp \
    callwidget.cpp \
    configurationwidget.cpp \
    navstack.cpp \
    navbar.cpp \
    mainbar.cpp \
    navwidget.cpp \
    accountdetails.cpp \
    aboutdialog.cpp \
42
    videowidget.cpp \
43
    utils.cpp \
44
    wizarddialog.cpp \
45
    windowscontactbackend.cpp \
Edric Milaret's avatar
Edric Milaret committed
46
    historydelegate.cpp \
Edric Milaret's avatar
Edric Milaret committed
47
    contactdelegate.cpp \
48
    selectareadialog.cpp \
Edric Milaret's avatar
Edric Milaret committed
49
    accountserializationadapter.cpp \
50
    instantmessagingwidget.cpp \
51 52
    accountstatedelegate.cpp \
    videoview.cpp \
Edric Milaret's avatar
Edric Milaret committed
53
    videooverlay.cpp \
54
    imdelegate.cpp \
55
    contactpicker.cpp \
56
    contactmethodpicker.cpp \
57 58
    globalsystemtray.cpp \
    transferdialog.cpp
Edric Milaret's avatar
Edric Milaret committed
59 60 61 62 63 64 65 66 67 68

HEADERS  += mainwindow.h \
    callwidget.h \
    configurationwidget.h \
    navstack.h \
    navbar.h \
    mainbar.h \
    navwidget.h \
    accountdetails.h \
    aboutdialog.h \
69
    videowidget.h \
70
    utils.h \
71
    wizarddialog.h \
72
    windowscontactbackend.h \
Edric Milaret's avatar
Edric Milaret committed
73
    historydelegate.h \
Edric Milaret's avatar
Edric Milaret committed
74
    contactdelegate.h \
75
    selectareadialog.h \
Edric Milaret's avatar
Edric Milaret committed
76
    accountserializationadapter.h \
77
    instantmessagingwidget.h \
78 79
    accountstatedelegate.h \
    videoview.h \
Edric Milaret's avatar
Edric Milaret committed
80
    videooverlay.h \
81
    imdelegate.h \
82
    contactpicker.h \
83
    contactmethodpicker.h \
84
    settingskey.h \
85 86
    globalsystemtray.h \
    transferdialog.h
Edric Milaret's avatar
Edric Milaret committed
87 88 89 90 91 92 93 94

FORMS    += mainwindow.ui \
    callwidget.ui \
    configurationwidget.ui \
    navbar.ui \
    mainbar.ui \
    accountdetails.ui \
    aboutdialog.ui \
Edric Milaret's avatar
Edric Milaret committed
95
    wizarddialog.ui \
96 97
    instantmessagingwidget.ui \
    videoview.ui \
98
    videooverlay.ui \
99
    contactpicker.ui \
100 101
    contactmethodpicker.ui \
    transferdialog.ui
Edric Milaret's avatar
Edric Milaret committed
102

103 104
win32: LIBS += -lole32 -luuid -lshlwapi

105
INCLUDEPATH += $${RING}/include/libringclient
Edric Milaret's avatar
Edric Milaret committed
106

107
LIBS += -L$${RING}/lib -lringclient
Edric Milaret's avatar
Edric Milaret committed
108 109 110

RESOURCES += \
    ressources.qrc
111 112 113

RC_FILE = ico.rc

Edric Milaret's avatar
Edric Milaret committed
114 115
TRANSLATIONS = translations/ring_client_windows.ts \
               translations/ring_client_windows_fr.ts \
116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134

maketranslationdir.target = customtarget
maketranslationdir.commands = $(MKDIR) $$OUT_PWD/share/ring/translations/

updateqm.input = TRANSLATIONS
updateqm.output = $$OUT_PWD/release/share/ring/translations/${QMAKE_FILE_BASE}.qm
updateqm.commands = $$QMAKE_LRELEASE ${QMAKE_FILE_IN} -qm $$OUT_PWD/release/share/ring/translations/${QMAKE_FILE_BASE}.qm
updateqm.CONFIG += no_link

QMAKE_EXTRA_TARGETS += maketranslationdir
QMAKE_EXTRA_COMPILERS += updateqm

PRE_TARGETDEPS += customtarget compiler_updateqm_make_all

QM_FILES.files = share
QM_FILES.path = $$OUT_PWD/release

INSTALLS += QM_FILES

135
DISTFILES += \
136
    License.rtf \
137 138
    ringtones/konga.ul \
    ring.nsi
139

140 141 142 143 144
win32 {

    RINGTONES.files = ringtones
    RINGTONES.path = $$OUT_PWD/release

145
    PACKAGING.files = ring.nsi images/ring.ico
146 147 148 149 150 151 152 153 154 155
    PACKAGING.path = $$OUT_PWD/release

    LICENSE.files = License.rtf
    LICENSE.path = $$OUT_PWD/release

    RUNTIMEDIR=/usr/i686-w64-mingw32/bin/

    RUNTIME.files = $${RING}/bin/libring.dll $${RING}/bin/libringclient.dll
    RUNTIME.path = $$OUT_PWD/release

156 157 158
    LRC_TRANSLATION.files = $${RING}/share/libringclient/translations
    LRC_TRANSLATION.path = $$OUT_PWD/release/share/libringclient/

159
    QTRUNTIME.files = $$RUNTIMEDIR/Qt5Core.dll $$RUNTIMEDIR/Qt5Widgets.dll \
160
                            $$RUNTIMEDIR/Qt5Gui.dll $$RUNTIMEDIR/Qt5Svg.dll \
161
                            $$RUNTIMEDIR/Qt5Xml.dll $$RUNTIMEDIR/Qt5WinExtras.dll
162 163 164 165 166 167
    QTRUNTIME.path = $$OUT_PWD/release

    QTDEPSRUNTIME.files = $$RUNTIMEDIR/zlib1.dll $$RUNTIMEDIR/iconv.dll \
                            $$RUNTIMEDIR/libfreetype-6.dll $$RUNTIMEDIR/libglib-2.0-0.dll \
                            $$RUNTIMEDIR/libharfbuzz-0.dll \
                            $$RUNTIMEDIR/libintl-8.dll $$RUNTIMEDIR/libpcre-1.dll \
Edric Milaret's avatar
Edric Milaret committed
168
                            $$RUNTIMEDIR/libpcre16-0.dll $$RUNTIMEDIR/libpng16-16.dll \
169
                            $$RUNTIMEDIR/libjpeg-62.dll $$RUNTIMEDIR/libiconv-2.dll
170 171 172 173 174
    QTDEPSRUNTIME.path = $$OUT_PWD/release

    QTPLATFORMS.files = $$(QTDIR)/plugins/platforms/qwindows.dll
    QTPLATFORMS.path = $$OUT_PWD/release/platforms

Edric Milaret's avatar
Edric Milaret committed
175 176 177
    QTPLUGINIMAGE.files = $$(QTDIR)/plugins/imageformats/
    QTPLUGINIMAGE.path = $$OUT_PWD/release

178 179 180
    LIBSTD.files = $$RUNTIMEDIR/libgcc_s_sjlj-1.dll $$RUNTIMEDIR/libstdc++-6.dll \
                    $$RUNTIMEDIR/libwinpthread-1.dll
    LIBSTD.path = $$OUT_PWD/release
181

182
    INSTALLS += RINGTONES PACKAGING LICENSE RUNTIME LRC_TRANSLATION QTRUNTIME QTDEPSRUNTIME \
Edric Milaret's avatar
Edric Milaret committed
183
                QTPLUGINIMAGE QTPLATFORMS LIBSTD
184
}