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 19from __future__ import print_function 20import re 21import os 22import sys 23import yaml 24 25out = {} 26 27try: 28 out['libs'] = [{ 29 'name': 'upb', 30 'build': 'all', 31 'language': 'c', 32 'src': [ 33 "third_party/upb/upb/decode.c", 34 "third_party/upb/upb/encode.c", 35 "third_party/upb/upb/msg.c", 36 "third_party/upb/upb/port.c", 37 "third_party/upb/upb/table.c", 38 "third_party/upb/upb/upb.c", 39 ], 40 'headers': [ 41 "third_party/upb/upb/decode.h", 42 "third_party/upb/upb/encode.h", 43 "third_party/upb/upb/msg.h", 44 "third_party/upb/upb/port_def.inc", 45 "third_party/upb/upb/port_undef.inc", 46 "third_party/upb/upb/table.int.h", 47 "third_party/upb/upb/upb.h", 48 "third_party/upb/upb/upb.hpp", 49 ], 50 'secure': False, 51 }] 52except: 53 pass 54 55print(yaml.dump(out)) 56