Skip to content

Latest commit

 

History

History
71 lines (44 loc) · 2.2 KB

build-instructions.md

File metadata and controls

71 lines (44 loc) · 2.2 KB

Build instructions

Uno is built using the command-line on Linux, macOS or Windows – or from Visual Studio 2022.

Building from command-line

Prerequisites

Our cross-platform build scripts are written in bash, and make is a convenient way to invoke build tasks. Bash is included in Git for Windows.

Build

make

This will build uno and standard library.

You can also try npm run build or bash scripts/build.sh for similar results.

Install and run

make install
uno --version

This will add your local-built uno to PATH and print version information.

You can also try npm link or <uno-root>/bin/uno for similar results.

Additional make commands

Command Description
make lib Build projects in lib/ only (instead of a full build).
make release Build in release configuration.
make clean Remove build artifacts.
make check Run test suite.

Additional npm commands

Command Description
npm pack Build package tarball.
npm test Run test suite.
npm version Increment version number.

Building from an IDE

Open uno.sln in Visual Studio 2022.

Make sure to set tool/uno as startup project when launching uno.

See also disasm.sln (Windows only) and runtime.sln (multi-platform).

Building the standard library

Try one of the following methods.

Pass doctor as parameter to tool/uno when launching from your IDE.

Run <uno-root>/bin/uno doctor.

Run npm run uno doctor.

Run make lib.