aboutsummaryrefslogtreecommitdiffstats
path: root/yql/essentials/providers/pg/expr_nodes/ya.make
blob: 6195b92abb9c6c6c879313b225f858e1533dffba (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_pg_expr_nodes.cpp
)

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

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_pg_expr_nodes.json
            yql_pg_expr_nodes.gen.h
            yql_pg_expr_nodes.decl.inl.h
            yql_pg_expr_nodes.defs.inl.h
        IN yql_expr_nodes_gen.jnj
        IN yql_pg_expr_nodes.json
        OUT yql_pg_expr_nodes.gen.h
        OUT yql_pg_expr_nodes.decl.inl.h
        OUT yql_pg_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_pg_expr_nodes.json
            yql_pg_expr_nodes.gen.h
            yql_pg_expr_nodes.decl.inl.h
            yql_pg_expr_nodes.defs.inl.h
        IN yql_expr_nodes_gen.jnj
        IN yql_pg_expr_nodes.json
        OUT yql_pg_expr_nodes.gen.h
        OUT yql_pg_expr_nodes.decl.inl.h
        OUT yql_pg_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()