aboutsummaryrefslogtreecommitdiffstats
path: root/yql/providers/stat/expr_nodes/ya.make
blob: 478e92f4d364fae5ed7a2804017f397e15b7e893 (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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
LIBRARY()

PEERDIR(
    yql/essentials/core/expr_nodes
    yql/essentials/providers/common/provider
)

SRCS(
    yql_stat_expr_nodes.cpp
)

SRCDIR(
    yql/essentials/core/expr_nodes_gen
)

IF(EXPORT_CMAKE)
    RUN_PYTHON3(
        ${ARCADIA_ROOT}/yql/essentials/core/expr_nodes_gen/gen/__main__.py
            yql_expr_nodes_gen.jnj
            yql_stat_expr_nodes.json
            yql_stat_expr_nodes.gen.h
            yql_stat_expr_nodes.decl.inl.h
            yql_stat_expr_nodes.defs.inl.h
        IN yql_expr_nodes_gen.jnj
        IN yql_stat_expr_nodes.json
        OUT yql_stat_expr_nodes.gen.h
        OUT yql_stat_expr_nodes.decl.inl.h
        OUT yql_stat_expr_nodes.defs.inl.h
        OUTPUT_INCLUDES
        ${ARCADIA_ROOT}/yql/essentials/core/expr_nodes_gen/yql_expr_nodes_gen.h
        ${ARCADIA_ROOT}/util/generic/hash_set.h
    )
ELSE()
    RUN_PROGRAM(
        yql/essentials/core/expr_nodes_gen/gen
            yql_expr_nodes_gen.jnj
            yql_stat_expr_nodes.json
            yql_stat_expr_nodes.gen.h
            yql_stat_expr_nodes.decl.inl.h
            yql_stat_expr_nodes.defs.inl.h
        IN yql_expr_nodes_gen.jnj
        IN yql_stat_expr_nodes.json
        OUT yql_stat_expr_nodes.gen.h
        OUT yql_stat_expr_nodes.decl.inl.h
        OUT yql_stat_expr_nodes.defs.inl.h
        OUTPUT_INCLUDES
        ${ARCADIA_ROOT}/yql/essentials/core/expr_nodes_gen/yql_expr_nodes_gen.h
        ${ARCADIA_ROOT}/util/generic/hash_set.h
    )
ENDIF()

END()