aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/tools/protoc_old/ya.make.prebuilt
blob: f18500ce6c12d1b95c1febe7f13a51e0e167acee (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
SET_RESOURCE_URI_FROM_JSON(SANDBOX_RESOURCE_URI resources.json)

IF (SANDBOX_RESOURCE_URI != "")
    ENABLE(PREBUILT)

    PREBUILT_PROGRAM()

    DECLARE_EXTERNAL_RESOURCE(PROTOC ${SANDBOX_RESOURCE_URI})

    PRIMARY_OUTPUT(${PROTOC_RESOURCE_GLOBAL}/protoc${MODULE_SUFFIX})

    END()
ELSE()
    PROGRAM(protoc)
    SRCS(main.c)
    END()
ENDIF()