view Resources/CodeGeneration/README.md @ 519:17106b29ed6d bgo-commands-codegen

Changed the metadata system for structs. A __handler entry is now required (with "cpp", "ts" or both: ["cpp","ts"]). Changed the enumerations to string-based values. Adapted the integrated wasm test.
author Benjamin Golinvaux <bgo@osimis.io>
date Tue, 12 Mar 2019 13:11:18 +0100
parents 6405435480ae
children b7fd0471281c
line wrap: on
line source

Requirements
----------------

Install Node and npm.

Then:
- `npm install browserify`
- `npm install typescript`
- `npm install tsify`

`testCppHandler` contains a C++ project that produces an executable 
slurping a set of text files representing messages defined against 
the `test_data/test1.yaml' schema and dumping them to `cout`.

'testWasmIntegrated` contains a small Web app demonstrating the 
interaction between TypeScript and C++ in WASM.
source ~/apps/emsdk/emsdk_env.sh