RingWinClient.pro 3.97 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 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 32 33 34 35 36 37

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

HEADERS  += mainwindow.h \
    callwidget.h \
    configurationwidget.h \
    navstack.h \
    navbar.h \
    mainbar.h \
    navwidget.h \
    accountdetails.h \
    aboutdialog.h \
64
    videowidget.h \
65
    utils.h \
66
    wizarddialog.h \
67
    windowscontactbackend.h \
Edric Milaret's avatar
Edric Milaret committed
68
    historydelegate.h \
Edric Milaret's avatar
Edric Milaret committed
69
    contactdelegate.h \
70
    selectareadialog.h \
Edric Milaret's avatar
Edric Milaret committed
71
    accountserializationadapter.h \
72
    instantmessagingwidget.h \
73 74
    accountstatedelegate.h \
    videoview.h \
Edric Milaret's avatar
Edric Milaret committed
75
    videooverlay.h \
76 77
    imdelegate.h \
    contactdialog.h \
78 79
    contactpicker.h \
    contactmethodpicker.h
Edric Milaret's avatar
Edric Milaret committed
80 81 82 83 84 85 86 87

FORMS    += mainwindow.ui \
    callwidget.ui \
    configurationwidget.ui \
    navbar.ui \
    mainbar.ui \
    accountdetails.ui \
    aboutdialog.ui \
88
    pivotviewwidget.ui \
Edric Milaret's avatar
Edric Milaret committed
89
    wizarddialog.ui \
90 91
    instantmessagingwidget.ui \
    videoview.ui \
92 93
    videooverlay.ui \
    contactdialog.ui \
94 95
    contactpicker.ui \
    contactmethodpicker.ui
Edric Milaret's avatar
Edric Milaret committed
96

97 98
win32: LIBS += -lole32 -luuid -lshlwapi

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

101
LIBS += -L$${RING}/lib -lringclient
Edric Milaret's avatar
Edric Milaret committed
102 103 104

RESOURCES += \
    ressources.qrc
105 106 107 108

RC_FILE = ico.rc

DISTFILES += \
109
    License.rtf \
110 111
    ringtones/konga.ul \
    ring.nsi
112

113 114 115 116 117
win32 {

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

118
    PACKAGING.files = ring.nsi images/ring.ico
119 120 121 122 123 124 125 126 127 128 129
    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

    QTRUNTIME.files = $$RUNTIMEDIR/Qt5Core.dll $$RUNTIMEDIR/Qt5Widgets.dll \
130 131
                            $$RUNTIMEDIR/Qt5Gui.dll $$RUNTIMEDIR/Qt5Svg.dll \
                            $$RUNTIMEDIR/Qt5Xml.dll
132 133 134 135 136 137
    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
138
                            $$RUNTIMEDIR/libpcre16-0.dll $$RUNTIMEDIR/libpng16-16.dll \
139
                            $$RUNTIMEDIR/libjpeg-62.dll $$RUNTIMEDIR/libiconv-2.dll
140 141 142 143 144
    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
145 146 147
    QTPLUGINIMAGE.files = $$(QTDIR)/plugins/imageformats/
    QTPLUGINIMAGE.path = $$OUT_PWD/release

148 149 150
    LIBSTD.files = $$RUNTIMEDIR/libgcc_s_sjlj-1.dll $$RUNTIMEDIR/libstdc++-6.dll \
                    $$RUNTIMEDIR/libwinpthread-1.dll
    LIBSTD.path = $$OUT_PWD/release
151

152
    INSTALLS += RINGTONES PACKAGING LICENSE RUNTIME QTRUNTIME QTDEPSRUNTIME \
Edric Milaret's avatar
Edric Milaret committed
153
                QTPLUGINIMAGE QTPLATFORMS LIBSTD
154
}