vengi/data/README.md

16 lines
774 B
Markdown
Raw Permalink Normal View History

2018-10-18 09:35:35 -07:00
# How to install data files
Each artifact can get its own directory here - If you depend on an artifact that
installs assets for its own usage, the dependent artifact will also get these
assets installed. Therefore it is important to know, that the directory part of
the original artifact will be removed. An example:
You have a module names `foo` and it has assets in `data/foo`.
2021-01-28 08:44:47 -08:00
You also have a module names `bar` which depends on `foo`.
2018-10-18 09:35:35 -07:00
`bar` will now automatically get the files installed that `foo` offers.
But - not in `$install_prefix/bar/foo/myasset.ext` - but in
`$install_prefix/bar/myasset.ext`. This is exactly due to the reason that
you had to specify the `FILES` for the `engine_add_executable` with the full
path to `foo/myasset.ext`.