aboutsummaryrefslogtreecommitdiffstats
path: root/build/platform/qt/ya.make
blob: e058ef99b19365b75b1ee0e877d33b0d1bae2886 (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
RESOURCES_LIBRARY()

OWNER(g:contrib heretic)

IF (NOT QT_REQUIRED)
    MESSAGE(FATAL_ERROR "No QT Toolkit for your build")
ELSE()
    IF (OS_LINUX)
        DECLARE_EXTERNAL_RESOURCE(QT sbr:2694823276)
    ELSEIF (OS_DARWIN)
        CFLAGS(GLOBAL "-F$QT_RESOURCE_GLOBAL/lib")
        LDFLAGS("-F$QT_RESOURCE_GLOBAL/lib")
        DECLARE_EXTERNAL_RESOURCE(QT sbr:2694837565)
    ELSE()
        ENABLE(QT_NOT_FOUND)
    ENDIF()

    IF (HOST_OS_LINUX)
        DECLARE_EXTERNAL_RESOURCE(HOST_QT sbr:2694823276)
    ELSEIF (HOST_OS_DARWIN)
        DECLARE_EXTERNAL_RESOURCE(HOST_QT sbr:2694837565)
    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()