RingWinClient.pro 3.89 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 52
    imdelegate.cpp \
    contactdialog.cpp \
    contactpicker.cpp
Edric Milaret's avatar
Edric Milaret committed
53 54 55 56 57 58 59 60 61 62

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

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

94 95
win32: LIBS += -lole32 -luuid -lshlwapi

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

98
LIBS += -L$${RING}/lib -lringclient
Edric Milaret's avatar
Edric Milaret committed
99 100 101

RESOURCES += \
    ressources.qrc
102 103 104 105

RC_FILE = ico.rc

DISTFILES += \
106
    License.rtf \
107 108
    ringtones/konga.ul \
    ring.nsi
109

110 111 112 113 114
win32 {

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

115
    PACKAGING.files = ring.nsi images/ring.ico
116 117 118 119 120 121 122 123 124 125 126
    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 \
127 128
                            $$RUNTIMEDIR/Qt5Gui.dll $$RUNTIMEDIR/Qt5Svg.dll \
                            $$RUNTIMEDIR/Qt5Xml.dll
129 130 131 132 133 134
    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
135
                            $$RUNTIMEDIR/libpcre16-0.dll $$RUNTIMEDIR/libpng16-16.dll \
136
                            $$RUNTIMEDIR/libjpeg-62.dll $$RUNTIMEDIR/libiconv-2.dll
137 138 139 140 141
    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
142 143 144
    QTPLUGINIMAGE.files = $$(QTDIR)/plugins/imageformats/
    QTPLUGINIMAGE.path = $$OUT_PWD/release

145 146 147
    LIBSTD.files = $$RUNTIMEDIR/libgcc_s_sjlj-1.dll $$RUNTIMEDIR/libstdc++-6.dll \
                    $$RUNTIMEDIR/libwinpthread-1.dll
    LIBSTD.path = $$OUT_PWD/release
148

149
    INSTALLS += RINGTONES PACKAGING LICENSE RUNTIME QTRUNTIME QTDEPSRUNTIME \
Edric Milaret's avatar
Edric Milaret committed
150
                QTPLUGINIMAGE QTPLATFORMS LIBSTD
151
}