RingWinClient.pro 2.92 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

11
VERSION = 0.1.1
Edric Milaret's avatar
Edric Milaret committed
12 13 14

DEFINES += VERSION=\\\"$$VERSION\\\"

15 16
BUILD=$${BUILD}

Edric Milaret's avatar
Edric Milaret committed
17 18 19 20 21
TARGET = RingClientWindows
TEMPLATE = app

QMAKE_CXXFLAGS += -std=c++11

22 23 24 25
contains(BUILD, Debug) {
    QMAKE_STRIP = echo
    CONFIG += console
}
Edric Milaret's avatar
Edric Milaret committed
26 27 28 29 30 31 32 33 34 35 36 37 38 39

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 \
40
    videowidget.cpp \
41 42
    utils.cpp \
    wizarddialog.cpp
Edric Milaret's avatar
Edric Milaret committed
43 44 45 46 47 48 49 50 51 52 53 54 55

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 \
56
    videowidget.h \
57 58
    utils.h \
    wizarddialog.h
Edric Milaret's avatar
Edric Milaret committed
59 60 61 62 63 64 65 66

FORMS    += mainwindow.ui \
    callwidget.ui \
    configurationwidget.ui \
    navbar.ui \
    mainbar.ui \
    accountdetails.ui \
    aboutdialog.ui \
67 68
    pivotviewwidget.ui \
    wizarddialog.ui
Edric Milaret's avatar
Edric Milaret committed
69

70 71
win32: LIBS += -lole32 -luuid -lshlwapi

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

74
LIBS += -L$${RING}/lib/ -lringclient
Edric Milaret's avatar
Edric Milaret committed
75 76 77

RESOURCES += \
    ressources.qrc
78 79 80 81 82

RC_FILE = ico.rc

DISTFILES += \
    ring.wxs \
83 84 85
    License.rtf \
    ringtones/konga.ul

86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118
win32 {

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

    PACKAGING.files = ring.wxs
    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
119

120 121 122
    INSTALLS += RINGTONES PACKAGING LICENSE RUNTIME QTRUNTIME QTDEPSRUNTIME \
                 QTPLATFORMS LIBSTD
}
123 124