| 1 |
#!/usr/bin/env python2.7 |
| 2 |
|
| 3 |
# Copyright 2015 gRPC authors. |
| 4 |
# |
| 5 |
# Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 |
# you may not use this file except in compliance with the License. |
| 7 |
# You may obtain a copy of the License at |
| 8 |
# |
| 9 |
# http://www.apache.org/licenses/LICENSE-2.0 |
| 10 |
# |
| 11 |
# Unless required by applicable law or agreed to in writing, software |
| 12 |
# distributed under the License is distributed on an "AS IS" BASIS, |
| 13 |
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 |
# See the License for the specific language governing permissions and |
| 15 |
# limitations under the License. |
| 16 |
|
| 17 |
# TODO: This should ideally be in upb submodule to avoid hardcoding this here. |
| 18 |
|
| 19 |
import re |
| 20 |
import os |
| 21 |
import sys |
| 22 |
import yaml |
| 23 |
|
| 24 |
out = {} |
| 25 |
|
| 26 |
try: |
| 27 |
out['libs'] = [{ |
| 28 |
'name': 'upb', |
| 29 |
'build': 'all', |
| 30 |
'language': 'c', |
| 31 |
'src': [ |
| 32 |
"third_party/upb/third_party/utf8_range/naive.c", |
| 33 |
"third_party/upb/third_party/utf8_range/range2-neon.c", |
| 34 |
"third_party/upb/third_party/utf8_range/range2-sse.c", |
| 35 |
"third_party/upb/upb/arena.c", |
| 36 |
"third_party/upb/upb/array.c", |
| 37 |
"third_party/upb/upb/decode_fast.c", |
| 38 |
"third_party/upb/upb/decode.c", |
| 39 |
"third_party/upb/upb/def.c", |
| 40 |
"third_party/upb/upb/encode.c", |
| 41 |
"third_party/upb/upb/extension_registry.c", |
| 42 |
"third_party/upb/upb/json_decode.c", |
| 43 |
"third_party/upb/upb/json_encode.c", |
| 44 |
"third_party/upb/upb/map.c", |
| 45 |
"third_party/upb/upb/mini_table.c", |
| 46 |
"third_party/upb/upb/msg.c", |
| 47 |
"third_party/upb/upb/reflection.c", |
| 48 |
"third_party/upb/upb/status.c", |
| 49 |
"third_party/upb/upb/table.c", |
| 50 |
"third_party/upb/upb/text_encode.c", |
| 51 |
"third_party/upb/upb/upb.c", |
| 52 |
"src/core/ext/upb-generated/google/protobuf/descriptor.upb.c", |
| 53 |
"src/core/ext/upbdefs-generated/google/protobuf/descriptor.upbdefs.c", |
| 54 |
], |
| 55 |
'headers': [ |
| 56 |
"third_party/upb/third_party/utf8_range/utf8_range.h", |
| 57 |
"third_party/upb/upb/arena.h", |
| 58 |
"third_party/upb/upb/array.h", |
| 59 |
"third_party/upb/upb/collections.h", |
| 60 |
"third_party/upb/upb/decode_fast.h", |
| 61 |
"third_party/upb/upb/decode.h", |
| 62 |
"third_party/upb/upb/def.h", |
| 63 |
"third_party/upb/upb/def.hpp", |
| 64 |
"third_party/upb/upb/encode.h", |
| 65 |
"third_party/upb/upb/extension_registry.h", |
| 66 |
"third_party/upb/upb/internal/decode.h", |
| 67 |
"third_party/upb/upb/internal/table.h", |
| 68 |
"third_party/upb/upb/internal/upb.h", |
| 69 |
"third_party/upb/upb/internal/vsnprintf_compat.h", |
| 70 |
"third_party/upb/upb/json_decode.h", |
| 71 |
"third_party/upb/upb/json_encode.h", |
| 72 |
"third_party/upb/upb/map.h", |
| 73 |
"third_party/upb/upb/message_value.h", |
| 74 |
"third_party/upb/upb/mini_table.h", |
| 75 |
"third_party/upb/upb/mini_table.hpp", |
| 76 |
"third_party/upb/upb/msg_internal.h", |
| 77 |
"third_party/upb/upb/msg.h", |
| 78 |
"third_party/upb/upb/port_def.inc", |
| 79 |
"third_party/upb/upb/port_undef.inc", |
| 80 |
"third_party/upb/upb/reflection.h", |
| 81 |
"third_party/upb/upb/reflection.hpp", |
| 82 |
"third_party/upb/upb/status.h", |
| 83 |
"third_party/upb/upb/table_internal.h", |
| 84 |
"third_party/upb/upb/text_encode.h", |
| 85 |
"third_party/upb/upb/upb.h", |
| 86 |
"third_party/upb/upb/upb.hpp", |
| 87 |
"src/core/ext/upb-generated/google/protobuf/descriptor.upb.h", |
| 88 |
"src/core/ext/upbdefs-generated/google/protobuf/descriptor.upbdefs.h", |
| 89 |
], |
| 90 |
'secure': False, |
| 91 |
}] |
| 92 |
except: |
| 93 |
pass |
| 94 |
|
| 95 |
print(yaml.dump(out)) |