Skip to content

tools: make js2c.py usable for other build systems

Rodrigo Muino Tomonari requested to merge github/fork/zcbenz/patch-4 into main

The js2c.py script assumes that: 1. the script is running under the source root dir; 2. passed paths are all relative paths.

This assumption makes it very hard for other build systems to reuse the script, because most build systems choose to run scripts in the build dir instead of source root dir.

This PR adds a --root argument to the script, allowing users to pass absolute paths to the script while correctly resolving module names.

Merge request reports

Loading