Skip to content
Public template

About

No description, website, or topics provided.

Resources

Stars

5 stars

Watchers

1 watching

Forks

Latest commit

 

History

8 Commits

Folders and files

Repository files navigation

cpp-wasm-template

A script written in Python to compile C++ code into WebAssembly using Emscripten

Getting started

  • Use the template to generate a repository

Prerequisites

Installation

pip install -r requirements.txt

Configuration

#config.yml

SourceDir: ./Assembly/src
OutputDir: ./App/src
IncludeDirs:
  - ./Assembly/src
IntBins: ./App/src/bin-int
OutputFileName: main
BuildMode: Debug
  • SourceDir - Relative path to cpp code
  • OutputDir - Relative path to the output WASM file
  • IncludeDirs - Dir that would be including in the compilation phase
  • IntDins - Relative path to intermediate directory
  • OutputFileName - Name of the wasm file
  • BuildMode - Build mode Debug/ Release

Usage

python build.py config.yml

About

No description, website, or topics provided.

Resources

Stars

5 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages