pocketpy/docs/developer_guide.md
blueloveTH 4afe293aca ...
2023-06-21 20:16:27 +08:00

724 B

icon order label
book -5 Developer guide

There are some scripts to help you develop this project.

Build scripts

build.py is the main script to build the project.

# equivalent to `python build.py linux`
python build.py

# build for linux executable or `.so` library
python build.py linux [-lib]

# build for windows executable or `.dll` library
python build.py windows [-lib]

# build for web (wasm)
python build.py web

Test scripts

# run unit tests
python scripts/run_tests.py

# run benchmarks
python scripts/run_tests.py benchmarks/

Distribution scripts

python amalgamate.py

It will generate a single pocketpy.h and main.cpp in amalgamate/ directory.