Craig Tiller | d3cd017 | 2016-10-25 17:02:20 -0700 | [diff] [blame] | 1 | #!/usr/bin/env python2.7 |
| 2 | |
Jan Tattermusch | 7897ae9 | 2017-06-07 22:57:36 +0200 | [diff] [blame] | 3 | # Copyright 2015 gRPC authors. |
Craig Tiller | d3cd017 | 2016-10-25 17:02:20 -0700 | [diff] [blame] | 4 | # |
Jan Tattermusch | 7897ae9 | 2017-06-07 22:57:36 +0200 | [diff] [blame] | 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 |
Craig Tiller | d3cd017 | 2016-10-25 17:02:20 -0700 | [diff] [blame] | 8 | # |
Jan Tattermusch | 7897ae9 | 2017-06-07 22:57:36 +0200 | [diff] [blame] | 9 | # http://www.apache.org/licenses/LICENSE-2.0 |
Craig Tiller | d3cd017 | 2016-10-25 17:02:20 -0700 | [diff] [blame] | 10 | # |
Jan Tattermusch | 7897ae9 | 2017-06-07 22:57:36 +0200 | [diff] [blame] | 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. |
Craig Tiller | d3cd017 | 2016-10-25 17:02:20 -0700 | [diff] [blame] | 16 | |
| 17 | import os |
| 18 | import sys |
| 19 | import glob |
| 20 | import yaml |
| 21 | |
| 22 | os.chdir(os.path.dirname(sys.argv[0])+'/../..') |
| 23 | |
| 24 | out = {} |
| 25 | |
| 26 | out['libs'] = [{ |
David Garcia Quintas | ff31121 | 2016-12-06 16:03:18 -0800 | [diff] [blame] | 27 | 'name': 'benchmark', |
Craig Tiller | d3cd017 | 2016-10-25 17:02:20 -0700 | [diff] [blame] | 28 | 'build': 'private', |
| 29 | 'language': 'c++', |
| 30 | 'secure': 'no', |
David Garcia Quintas | ff31121 | 2016-12-06 16:03:18 -0800 | [diff] [blame] | 31 | 'defaults': 'benchmark', |
| 32 | 'src': sorted(glob.glob('third_party/benchmark/src/*.cc')), |
Craig Tiller | 8ef26b6 | 2016-11-04 15:20:51 -0700 | [diff] [blame] | 33 | 'headers': sorted( |
David Garcia Quintas | ff31121 | 2016-12-06 16:03:18 -0800 | [diff] [blame] | 34 | glob.glob('third_party/benchmark/src/*.h') + |
| 35 | glob.glob('third_party/benchmark/include/benchmark/*.h')), |
Craig Tiller | d3cd017 | 2016-10-25 17:02:20 -0700 | [diff] [blame] | 36 | }] |
| 37 | |
| 38 | print yaml.dump(out) |