Properly using our build.yaml source of truth to generate our list of public APIs.

pull/6399/head
Nicolas "Pixel" Noble 9 years ago
parent 1dd74dd378
commit 777c26329c
  1. 9
      tools/buildgen/plugins/list_api.py

@ -64,12 +64,13 @@ def headers_under(directory):
def mako_plugin(dictionary): def mako_plugin(dictionary):
apis = [] apis = []
headers = []
# for lib in dictionary['libs']: for lib in dictionary['libs']:
# if lib['name'] == 'grpc': if lib['name'] in ['grpc', 'gpr']:
# apis.extend(list_c_apis(lib['public_headers'])) headers.extend(lib['public_headers'])
apis.extend(list_c_apis(sorted(headers_under('include/grpc'))))
apis.extend(list_c_apis(sorted(set(headers))))
dictionary['c_apis'] = apis dictionary['c_apis'] = apis

Loading…
Cancel
Save