Remove prototype Blink codegen support

This commit is contained in:
Corentin Wallez 2018-07-18 15:32:44 +02:00 committed by Corentin Wallez
parent 6ed9cbf894
commit 846cfe3421
1 changed files with 1 additions and 14 deletions

View File

@ -389,7 +389,7 @@ def debug(text):
print(text) print(text)
def main(): def main():
targets = ['dawn', 'dawncpp', 'mock_dawn', 'opengl', 'metal', 'd3d12', 'null', 'wire', 'blink'] targets = ['dawn', 'dawncpp', 'mock_dawn', 'opengl', 'metal', 'd3d12', 'null', 'wire']
parser = argparse.ArgumentParser( parser = argparse.ArgumentParser(
description = 'Generates code for various target for Dawn.', description = 'Generates code for various target for Dawn.',
@ -485,19 +485,6 @@ def main():
renders.append(FileRender('wire/WireClient.cpp', 'wire/WireClient.cpp', base_backend_params)) renders.append(FileRender('wire/WireClient.cpp', 'wire/WireClient.cpp', base_backend_params))
renders.append(FileRender('wire/WireServer.cpp', 'wire/WireServer.cpp', base_backend_params)) renders.append(FileRender('wire/WireServer.cpp', 'wire/WireServer.cpp', base_backend_params))
if 'blink' in targets:
js_params = {'native_methods': lambda typ: js_native_methods(api_params['types'], typ)}
renders.append(FileRender('autogen.gni', 'autogen.gni', [base_params, api_params, js_params]))
renders.append(FileRender('Objects.cpp', 'NXT.cpp', [base_params, api_params, js_params]))
renders.append(FileRender('Forward.h', 'Forward.h', [base_params, api_params, js_params]))
for typ in api_params['by_category']['object']:
file_prefix = 'NXT' + typ.name.CamelCase()
params = [base_params, api_params, js_params, {'type': typ}]
renders.append(FileRender('Object.h', file_prefix + '.h', params))
renders.append(FileRender('Object.idl', file_prefix + '.idl', params))
output_separator = '\n' if args.gn else ';' output_separator = '\n' if args.gn else ';'
if args.print_dependencies: if args.print_dependencies:
dependencies = set( dependencies = set(