v/vlib/os/asset
2025-06-18 16:37:57 +03:00
..
asset.v builtin,os: enable no warnings for gg programs like v -gc boehm_leak -cg -keepc run examples/gg/minimal.v (part 1 - before the gg loop) (#24749) 2025-06-18 16:37:57 +03:00
README.md examples,os: add an os.asset module, use it to simplify code in examples/, by removing $if android { checks (#22281) 2024-09-22 16:04:05 +03:00

Asset

The asset module provides a cross platform way to read assets, without cluttering the user code with comptime conditionals, like $if ios { or $if android { etc.

Currently it supports Android assets, and desktop applications, that do not use archived/zipped files, but could be extended to support archived files too in the future.

It relies on the assumption that each platform has a way to either read files, relative to the location of the executable, or a platform specific way, to package all asset files into the application archive/package/executable, that is then distributed to the end users.