Hi All,

I would like to add a JS/WASM build of an existing C++ library (
https://github.com/team-charls/charls) and am looking for best practices on 
how to do so. Here are some options:

1) Create a new git repository that has the files files specific to the 
JS/WASM build (e.g. CMakeLists.txt, js warpper, package.json, etc).  In 
this case, I would checkout the C++ library as a subfolder (or use git 
submodules) in this new project.  I like this because it is a clean 
separation of concerns, but requires more work to keep things in sync.
2) Add the JS/WASM files to the existing repository.  This is nice because 
its all one repository, but makes things more complicated for those that 
just want the C/C++ version.  In this case, I would create a package.json 
to the root and create a "js" directory at the root which contains the 
JS/WASM specific bits (including the resulting JS/WASM code)
3) Combine the above two using a mono-repo pattern.

Any thoughts would be appreciated, thanks!

Chris

-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/emscripten-discuss/94209f29-f795-4086-8810-2e6ec790c85b%40googlegroups.com.

Reply via email to