diff options
author | Nicolas Noble <nicolasnoble@users.noreply.github.com> | 2016-05-02 21:16:31 -0700 |
---|---|---|
committer | Nicolas Noble <nicolasnoble@users.noreply.github.com> | 2016-05-02 21:16:31 -0700 |
commit | 6bac7d3467c99dccc30e8447bc84237bb54b99fe (patch) | |
tree | c097f73079aff1e34a1efe304cacf49e4c0b7fb5 /tools | |
parent | 1a7adfb120a165731c145373dbd3c5302b304ee3 (diff) | |
parent | 777c26329cf1c1bfe06cd4d719a8fb9dbe24603f (diff) |
Merge pull request #6399 from nicolasnoble/source-of-truth-api
Properly using our build.yaml source of truth to generate our list of public APIs.
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/buildgen/plugins/list_api.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/tools/buildgen/plugins/list_api.py b/tools/buildgen/plugins/list_api.py index ff937a0ab8..1fc4f4123c 100755 --- a/tools/buildgen/plugins/list_api.py +++ b/tools/buildgen/plugins/list_api.py @@ -64,12 +64,13 @@ def headers_under(directory): def mako_plugin(dictionary): apis = [] + headers = [] -# for lib in dictionary['libs']: -# if lib['name'] == 'grpc': -# apis.extend(list_c_apis(lib['public_headers'])) - apis.extend(list_c_apis(sorted(headers_under('include/grpc')))) + for lib in dictionary['libs']: + if lib['name'] in ['grpc', 'gpr']: + headers.extend(lib['public_headers']) + apis.extend(list_c_apis(sorted(set(headers)))) dictionary['c_apis'] = apis |