fairchat.pro 2.28 KB
Newer Older
armin's avatar
armin committed
1
2
3
QT += qml quick core network websockets sql quickcontrols2 multimedia svg xml concurrent

SOURCES += \
4
    main.cpp \
Dennis Beier's avatar
Dennis Beier committed
5
    models/serverchoicemodel.cpp
armin's avatar
armin committed
6

7
HEADERS += config.h \
Dennis Beier's avatar
Dennis Beier committed
8
    models/serverchoicemodel.h
armin's avatar
armin committed
9
10
11
12
13
14
15
16
17
18

RESOURCES += qml.qrc\
            fonts.qrc\
            emojis.qrc

QMAKE_RPATHDIR += $ORIGIN/../engine/
INCLUDEPATH += $$PWD/../engine/
QMAKE_RPATHDIR += $ORIGIN
LIBS += -L../engine -lengine

armin's avatar
armin committed
19
20
21
22
23
win32:CONFIG(release, debug|release): PRE_TARGETDEPS += $$OUT_PWD/../engine/release/engine.lib
else:win32:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$OUT_PWD/../engine/debug/engine.lib
else:unix: PRE_TARGETDEPS += $$OUT_PWD/../engine/libengine.a


armin's avatar
armin committed
24
25
TARGET = fairchat
VER_MAJ = 1
26
VER_MIN = 0
27
VER_PAT = 1
armin's avatar
armin committed
28
29
30
31
VERSION = $$sprintf("%1.%2.%3",$$VER_MAJ,$$VER_MIN,$$VER_PAT)

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

Roland Alton's avatar
adding    
Roland Alton committed
32
TRANSLATIONS += fairchat_de.ts
armin's avatar
armin committed
33
34
35
36

android{
    QT += androidextras
    RESOURCES += android.qrc
37
38
39
40
41
42
43
    DISTFILES += android/AndroidManifest.xml \
    android/gradle/wrapper/gradle-wrapper.jar \
    android/gradlew \
    android/res/values/libs.xml \
    android/build.gradle \
    android/gradle/wrapper/gradle-wrapper.properties \
    android/gradlew.bat
armin's avatar
armin committed
44
45
46
47
48
49
50
51

    QT_varfile = ""
    for(var, $$list($$find($$list($$enumerate_vars()), ^(?!QMAKE_.*|QT\..*|QT_.*|\.QMAKE.*).*$))) {
        line = $$var "$$eval($$var)"
        QT_varfile += $$join(line, "=")
    }
    write_file($$absolute_path("../android-build/VARIABLES.txt", $$OUT_PWD), QT_varfile)

52
53
54
55

    ANDROID_PACKAGE_SOURCE_DIR = $$PWD/android
    TRDESTDIR = $$system_path($$PWD/translations)
    QMAKE_POST_LINK = $$QMAKE_COPY $$shell_path($$[QT_INSTALL_TRANSLATIONS]/qt*_de.qm) $$TRDESTDIR
armin's avatar
armin committed
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
}

contains(ANDROID_TARGET_ARCH,armeabi-v7a) {
    ANDROID_EXTRA_LIBS = \
        $$PWD/../openssl/android-arm/libssl.so \
        $$PWD/../openssl/android-arm/libcrypto.so
}
ios{
    RESOURCES += ios.qrc

    QMAKE_INFO_PLIST = ios/Info.plist

    ios_icon.files = $$files($$PWD/ios/icons/AppIcon*.png)

    app_launch_images.files = $$PWD/ios/Launch.xib $$files($$PWD/ios/launch/LaunchImage*.png)
    QMAKE_BUNDLE_DATA += app_launch_images
    QMAKE_BUNDLE_DATA += ios_icon

    QMAKE_IOS_DEPLOYMENT_TARGET = 10
    QMAKE_IOS_TARGETED_DEVICE_FAMILY = 1
    PRODUCT_NAME = fairchat
77
    PRODUCT_BUNDLE_IDENTIFIER = com.osalliance.rocketchatMobile
armin's avatar
armin committed
78
79
80
81
82
}
winrt{
    RESOURCES += winrt.qrc

}