aboutsummaryrefslogtreecommitdiffstats
path: root/yql/essentials/core/expr_nodes/ya.make
blob: 0ee410d90a4fb825253781e620abc5a00afa1f9c (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()

SRCS(
    yql_expr_nodes.h
    yql_expr_nodes.cpp
)

PEERDIR(
    yql/essentials/core/expr_nodes_gen
    yql/essentials/public/udf
    yql/essentials/core/issue
)

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_expr_nodes.json
            yql_expr_nodes.gen.h
            yql_expr_nodes.decl.inl.h
            yql_expr_nodes.defs.inl.h
        IN yql_expr_nodes_gen.jnj
        IN yql_expr_nodes.json
        OUT yql_expr_nodes.gen.h
        OUT yql_expr_nodes.decl.inl.h
        OUT yql_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_expr_nodes.json
            yql_expr_nodes.gen.h
            yql_expr_nodes.decl.inl.h
            yql_expr_nodes.defs.inl.h
        IN yql_expr_nodes_gen.jnj
        IN yql_expr_nodes.json
        OUT yql_expr_nodes.gen.h
        OUT yql_expr_nodes.decl.inl.h
        OUT yql_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()