aboutsummaryrefslogtreecommitdiffstats
path: root/build/platform/qt/ya.make
blob: 750e319b84739b06aaa48ad1ffe56d83ed693626 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
RESOURCES_LIBRARY()

OWNER(g:contrib heretic)

IF (NOT QT_REQUIRED)
    MESSAGE(FATAL_ERROR "No QT Toolkit for your build")
ELSE()
    IF (OS_LINUX)
        # Qt version 5.15.2 for linux
        DECLARE_EXTERNAL_RESOURCE(QT sbr:2773138831)
    ELSEIF (OS_DARWIN)
        CFLAGS(GLOBAL "-F$QT_RESOURCE_GLOBAL/lib")
        LDFLAGS("-F$QT_RESOURCE_GLOBAL/lib")
        # Qt version 5.15.2 for darwin
        DECLARE_EXTERNAL_RESOURCE(QT sbr:2773128565)
    ELSE()
        ENABLE(QT_NOT_FOUND)
    ENDIF()

    IF (HOST_OS_LINUX)
        DECLARE_EXTERNAL_RESOURCE(HOST_QT sbr:2773138831)
    ELSEIF (HOST_OS_DARWIN)
        DECLARE_EXTERNAL_RESOURCE(HOST_QT sbr:2773128565)
    ELSE()
        ENABLE(QT_NOT_FOUND)
    ENDIF()

    IF (QT_NOT_FOUND)
        MESSAGE(FATAL_ERROR "No QT Toolkit for the selected platform")
    ELSE()
        CFLAGS(GLOBAL "-isystem$QT_RESOURCE_GLOBAL/include")
        LDFLAGS("-L$QT_RESOURCE_GLOBAL/lib")
    ENDIF()
ENDIF()

END()