aboutsummaryrefslogtreecommitdiffstats
path: root/yql/essentials/core/dq_expr_nodes/ya.make
blob: e1acd2003ecab1cbfa5c325c5537d24daf6a01fd (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
53
LIBRARY()

SRCS(
    dq_expr_nodes.h
)

PEERDIR(
    yql/essentials/core/expr_nodes
)

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
        dq_expr_nodes.json
        dq_expr_nodes.gen.h
        dq_expr_nodes.decl.inl.h
        dq_expr_nodes.defs.inl.h
        NDq
        IN yql_expr_nodes_gen.jnj
        IN dq_expr_nodes.json
        OUT dq_expr_nodes.gen.h
        OUT dq_expr_nodes.decl.inl.h
        OUT dq_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
        dq_expr_nodes.json
        dq_expr_nodes.gen.h
        dq_expr_nodes.decl.inl.h
        dq_expr_nodes.defs.inl.h
        NDq
        IN yql_expr_nodes_gen.jnj
        IN dq_expr_nodes.json
        OUT dq_expr_nodes.gen.h
        OUT dq_expr_nodes.decl.inl.h
        OUT dq_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()