Compression setting for models

This commit is contained in:
Christopher Monsanto 2020-05-01 03:23:16 -04:00
parent a7183cbc47
commit a8a176f3c0
2 changed files with 5 additions and 2 deletions

View File

@ -71,6 +71,7 @@ Build settings are configurable in `tup.config`.
- `CONFIG_DEFAULT_ADVPNG`: Command line to pass to `advpng`.
- `CONFIG_TRAINERS_{OPTIPNG,ADVPNG}`: Compression options for `trainers/` only.
- `CONFIG_DEX_{OPTIPNG,ADVPNG}`: Compression options for `dex/` only.
- `CONFIG_MODELS_{OPTIPNG,ADVPNG}`: Compression options for `models/` only.
For example, these settings reflect the compression settings for the files chaos uploaded in `src/`:
```

View File

@ -32,7 +32,8 @@ tup.rule(
function fbsprite(input, output)
tup.foreach_rule(
input,
"^ fbsprite %f^ tools/fbsprite.sh %f %o",
"^ fbsprite %f^ " .. makecmd{"tools/fbsprite.sh %f %o",
compresspng{config="MODELS"}},
output
)
end
@ -40,7 +41,8 @@ end
function twittersprite(input, output)
tup.foreach_rule(
input,
"^ twittersprite %f^ tools/twittersprite.sh %f %o",
"^ twittersprite %f^ " .. makecmd{"tools/twittersprite.sh %f %o",
compresspng{config="MODELS"}},
output
)
end