aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/protoc/ya.make
blob: b882a2845775e014da10b873ca09f14c32fb0ad4 (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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
# Generated by devtools/yamaker.

LIBRARY()

LICENSE(
    BSD-3-Clause AND
    Protobuf-License
)

PROVIDES(protoc)

VERSION(3.20.2)

ORIGINAL_SOURCE(https://github.com/protocolbuffers/protobuf/archive/v3.20.2.tar.gz)

IF (OPENSOURCE_REPLACE_PROTOBUF AND EXPORT_CMAKE)
    OPENSOURCE_EXPORT_REPLACEMENT(
        CMAKE
        Protobuf
        CMAKE_TARGET
        protobuf::libprotobuf
        protobuf::libprotoc
        CONAN
        protobuf/${OPENSOURCE_REPLACE_PROTOBUF}
        "&& conan-requires"
        protobuf/${OPENSOURCE_REPLACE_PROTOBUF}
        "&& conan_require_tool"
        protobuf/${OPENSOURCE_REPLACE_PROTOBUF}
        "&& conan-tool_requires"
        protobuf/${OPENSOURCE_REPLACE_PROTOBUF}
        "&& conan_import \"bin, protoc* -> ./bin\" && conan-imports 'bin, protoc* -> ./bin' && vanilla_protobuf"
    )
ELSE()
    ADDINCL(
        GLOBAL contrib/libs/protoc/src
    )
ENDIF()

LICENSE_TEXTS(.yandex_meta/licenses.list.txt)

PEERDIR(
    contrib/libs/protobuf
)

NO_COMPILER_WARNINGS()

NO_UTIL()

CFLAGS(
    -DGOOGLE_PROTOBUF_CMAKE_BUILD
    -DHAVE_ZLIB
)

SRCS(
    src/google/protobuf/compiler/code_generator.cc
    src/google/protobuf/compiler/command_line_interface.cc
    src/google/protobuf/compiler/cpp/cpp_enum.cc
    src/google/protobuf/compiler/cpp/cpp_enum_field.cc
    src/google/protobuf/compiler/cpp/cpp_extension.cc
    src/google/protobuf/compiler/cpp/cpp_field.cc
    src/google/protobuf/compiler/cpp/cpp_file.cc
    src/google/protobuf/compiler/cpp/cpp_generator.cc
    src/google/protobuf/compiler/cpp/cpp_helpers.cc
    src/google/protobuf/compiler/cpp/cpp_map_field.cc
    src/google/protobuf/compiler/cpp/cpp_message.cc
    src/google/protobuf/compiler/cpp/cpp_message_field.cc
    src/google/protobuf/compiler/cpp/cpp_padding_optimizer.cc
    src/google/protobuf/compiler/cpp/cpp_parse_function_generator.cc
    src/google/protobuf/compiler/cpp/cpp_primitive_field.cc
    src/google/protobuf/compiler/cpp/cpp_service.cc
    src/google/protobuf/compiler/cpp/cpp_string_field.cc
    src/google/protobuf/compiler/csharp/csharp_doc_comment.cc
    src/google/protobuf/compiler/csharp/csharp_enum.cc
    src/google/protobuf/compiler/csharp/csharp_enum_field.cc
    src/google/protobuf/compiler/csharp/csharp_field_base.cc
    src/google/protobuf/compiler/csharp/csharp_generator.cc
    src/google/protobuf/compiler/csharp/csharp_helpers.cc
    src/google/protobuf/compiler/csharp/csharp_map_field.cc
    src/google/protobuf/compiler/csharp/csharp_message.cc
    src/google/protobuf/compiler/csharp/csharp_message_field.cc
    src/google/protobuf/compiler/csharp/csharp_primitive_field.cc
    src/google/protobuf/compiler/csharp/csharp_reflection_class.cc
    src/google/protobuf/compiler/csharp/csharp_repeated_enum_field.cc
    src/google/protobuf/compiler/csharp/csharp_repeated_message_field.cc
    src/google/protobuf/compiler/csharp/csharp_repeated_primitive_field.cc
    src/google/protobuf/compiler/csharp/csharp_source_generator_base.cc
    src/google/protobuf/compiler/csharp/csharp_wrapper_field.cc
    src/google/protobuf/compiler/importer.cc
    src/google/protobuf/compiler/java/java_context.cc
    src/google/protobuf/compiler/java/java_doc_comment.cc
    src/google/protobuf/compiler/java/java_enum.cc
    src/google/protobuf/compiler/java/java_enum_field.cc
    src/google/protobuf/compiler/java/java_enum_field_lite.cc
    src/google/protobuf/compiler/java/java_enum_lite.cc
    src/google/protobuf/compiler/java/java_extension.cc
    src/google/protobuf/compiler/java/java_extension_lite.cc
    src/google/protobuf/compiler/java/java_field.cc
    src/google/protobuf/compiler/java/java_file.cc
    src/google/protobuf/compiler/java/java_generator.cc
    src/google/protobuf/compiler/java/java_generator_factory.cc
    src/google/protobuf/compiler/java/java_helpers.cc
    src/google/protobuf/compiler/java/java_kotlin_generator.cc
    src/google/protobuf/compiler/java/java_map_field.cc
    src/google/protobuf/compiler/java/java_map_field_lite.cc
    src/google/protobuf/compiler/java/java_message.cc
    src/google/protobuf/compiler/java/java_message_builder.cc
    src/google/protobuf/compiler/java/java_message_builder_lite.cc
    src/google/protobuf/compiler/java/java_message_field.cc
    src/google/protobuf/compiler/java/java_message_field_lite.cc
    src/google/protobuf/compiler/java/java_message_lite.cc
    src/google/protobuf/compiler/java/java_name_resolver.cc
    src/google/protobuf/compiler/java/java_primitive_field.cc
    src/google/protobuf/compiler/java/java_primitive_field_lite.cc
    src/google/protobuf/compiler/java/java_service.cc
    src/google/protobuf/compiler/java/java_shared_code_generator.cc
    src/google/protobuf/compiler/java/java_string_field.cc
    src/google/protobuf/compiler/java/java_string_field_lite.cc
    src/google/protobuf/compiler/js/js_generator.cc
    src/google/protobuf/compiler/js/well_known_types_embed.cc
    src/google/protobuf/compiler/objectivec/objectivec_enum.cc
    src/google/protobuf/compiler/objectivec/objectivec_enum_field.cc
    src/google/protobuf/compiler/objectivec/objectivec_extension.cc
    src/google/protobuf/compiler/objectivec/objectivec_field.cc
    src/google/protobuf/compiler/objectivec/objectivec_file.cc
    src/google/protobuf/compiler/objectivec/objectivec_generator.cc
    src/google/protobuf/compiler/objectivec/objectivec_helpers.cc
    src/google/protobuf/compiler/objectivec/objectivec_map_field.cc
    src/google/protobuf/compiler/objectivec/objectivec_message.cc
    src/google/protobuf/compiler/objectivec/objectivec_message_field.cc
    src/google/protobuf/compiler/objectivec/objectivec_oneof.cc
    src/google/protobuf/compiler/objectivec/objectivec_primitive_field.cc
    src/google/protobuf/compiler/parser.cc
    src/google/protobuf/compiler/php/php_generator.cc
    src/google/protobuf/compiler/plugin.cc
    src/google/protobuf/compiler/plugin.pb.cc
    src/google/protobuf/compiler/python/python_generator.cc
    src/google/protobuf/compiler/python/python_helpers.cc
    src/google/protobuf/compiler/python/python_pyi_generator.cc
    src/google/protobuf/compiler/ruby/ruby_generator.cc
    src/google/protobuf/compiler/subprocess.cc
    src/google/protobuf/compiler/zip_writer.cc
)

END()