Skip to content
This repository was archived by the owner on Mar 25, 2023. It is now read-only.
This repository was archived by the owner on Mar 25, 2023. It is now read-only.

Source of truth #14

@cerisano

Description

@cerisano

Just a question about the "source of truth" for webidl-napi, the generator seems to depend on an idl definition, a impl.h and a impl.cc definition. Are all required, or can the impl.h and impl.cc be generated from the idl?

My understanding was that webidl-napi generates the impl base classes which are then subclassed to integrate with native libraries (eg. generates webgpu-impl.cc and webgpu-impl.h containing all N-API wrappers which are then subclassed to integrate with Dawn or other webgpu native implmentations.)

Is it the case that webidl-napi is going even further and referencing the native headers as well (eg. webgpu-native?) That would be pretty staggeringly awesome ...

COMMAND node ${REPO_ROOT}/index.js -i class-impl.h -n node_api.h -o ${CMAKE_CURRENT_BINARY_DIR}/class.cc ${CMAKE_CURRENT_SOURCE_DIR}/class.idl

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions