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

OWNER(g:contrib heretic)

IF (NOT OPENGL_REQUIRED)
    MESSAGE(FATAL_ERROR "No OpenGL Toolkit for your build")
ELSE()
    IF (OS_LINUX)
        IF (OPENGL_VERSION == "18.0.5")
            DECLARE_EXTERNAL_RESOURCE(OPENGL sbr:1271121094)
            SET(OS_SUFFIX "x86_64-linux-gnu")
        ELSE()
            ENABLE(OPENGL_NOT_FOUND)
        ENDIF()
    ELSE()
        ENABLE(OPENGL_NOT_FOUND)
    ENDIF()

    IF (OPENGL_NOT_FOUND)
        MESSAGE(FATAL_ERROR "No OpenGL Toolkit for the selected platform")
    ELSE()
        CFLAGS(GLOBAL "-I$OPENGL_RESOURCE_GLOBAL/usr/include")
        LDFLAGS("-L$OPENGL_RESOURCE_GLOBAL/usr/lib/$OS_SUFFIX")
    ENDIF()
ENDIF()

END()