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

QT       += core gui

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets svg

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 19 20 21 22
TARGET = RingClientWindows
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 38 39 40

SOURCES += main.cpp\
        mainwindow.cpp \
    callwidget.cpp \
    configurationwidget.cpp \
    navstack.cpp \
    navbar.cpp \
    mainbar.cpp \
    navwidget.cpp \
    accountdetails.cpp \
    minimalhistorybackend.cpp \
    aboutdialog.cpp \
    pivotviewwidget.cpp \
    pivotcontrol.cpp \
41
    videowidget.cpp \
42
    utils.cpp \
43
    wizarddialog.cpp \
44
    windowscontactbackend.cpp \
Edric Milaret's avatar
Edric Milaret committed
45 46
    historydelegate.cpp \
    contactdelegate.cpp
Edric Milaret's avatar
Edric Milaret committed
47 48 49 50 51 52 53 54 55 56 57 58 59

HEADERS  += mainwindow.h \
    callwidget.h \
    configurationwidget.h \
    navstack.h \
    navbar.h \
    mainbar.h \
    navwidget.h \
    accountdetails.h \
    minimalhistorybackend.h \
    aboutdialog.h \
    pivotviewwidget.h \
    pivotcontrol.h \
60
    videowidget.h \
61
    utils.h \
62
    wizarddialog.h \
63
    windowscontactbackend.h \
Edric Milaret's avatar
Edric Milaret committed
64 65
    historydelegate.h \
    contactdelegate.h
Edric Milaret's avatar
Edric Milaret committed
66 67 68 69 70 71 72 73

FORMS    += mainwindow.ui \
    callwidget.ui \
    configurationwidget.ui \
    navbar.ui \
    mainbar.ui \
    accountdetails.ui \
    aboutdialog.ui \
74 75
    pivotviewwidget.ui \
    wizarddialog.ui
Edric Milaret's avatar
Edric Milaret committed
76

77 78
win32: LIBS += -lole32 -luuid -lshlwapi

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

81
LIBS += -L$${RING}/lib/ -lringclient
Edric Milaret's avatar
Edric Milaret committed
82 83 84

RESOURCES += \
    ressources.qrc
85 86 87 88

RC_FILE = ico.rc

DISTFILES += \
89
    License.rtf \
90 91
    ringtones/konga.ul \
    ring.nsi
92

93 94 95 96 97
win32 {

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

98
    PACKAGING.files = ring.nsi images/ring.ico
99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125
    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 \
                            $$RUNTIMEDIR/Qt5Gui.dll $$RUNTIMEDIR/Qt5Svg.dll
    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 \
                            $$RUNTIMEDIR/libpcre16-0.dll $$RUNTIMEDIR/libpng16-16.dll
    QTDEPSRUNTIME.path = $$OUT_PWD/release

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

    LIBSTD.files = $$RUNTIMEDIR/libgcc_s_sjlj-1.dll $$RUNTIMEDIR/libstdc++-6.dll \
                    $$RUNTIMEDIR/libwinpthread-1.dll
    LIBSTD.path = $$OUT_PWD/release
126

127 128 129
    INSTALLS += RINGTONES PACKAGING LICENSE RUNTIME QTRUNTIME QTDEPSRUNTIME \
                 QTPLATFORMS LIBSTD
}
130 131