fairchat.pro 2.23 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
5
    main.cpp \
    serverselector.cpp
armin's avatar
armin committed
6

7
8
HEADERS += config.h \
    serverselector.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
26
27
28
29
30
31
32
33
34
35
TARGET = fairchat
VER_MAJ = 1
VER_MIN = 1
VER_PAT = 0
VERSION = $$sprintf("%1.%2.%3",$$VER_MAJ,$$VER_MIN,$$VER_PAT)

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


android{
    QT += androidextras
    RESOURCES += android.qrc
36
37
38
39
40
41
42
    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
43
44
45
46
47
48
49
50

    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)

51
52
53
54

    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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
}

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
76
    PRODUCT_BUNDLE_IDENTIFIER = com.osalliance.rocketchatMobile
armin's avatar
armin committed
77
78
79
80
81
}
winrt{
    RESOURCES += winrt.qrc

}