50 lines
956 B
Plaintext
50 lines
956 B
Plaintext
name: image
|
|||
|
|
gpid: malunal
|
||
|
|
semv: 1.0.0
|
||
|
|
|
||
|
|
options:
|
||
|
|
level: 2
|
||
|
|
|
||
|
|
requires:
|
||
|
|
- https://git.malunal.studio/sakura/std@v1.0.0
|
||
|
|
|
||
|
|
targets:
|
||
|
|
- name: malunal.image
|
||
|
|
type: library
|
||
|
|
root: ./image
|
||
|
|
deps:
|
||
|
|
- std.containers
|
||
|
|
- std.io
|
||
|
|
- std.math
|
||
|
|
- std.xml
|
||
|
|
|
||
|
|
# Times reading and writing each format; see its header.
|
||
|
|
- name: malunal.image.bench
|
||
|
|
type: program
|
||
|
|
level: ${level}
|
||
|
|
deps:
|
||
|
|
- malunal.image
|
||
|
|
- std.io
|
||
|
|
- std.time
|
||
|
|
srcs:
|
||
|
|
- tools/bench.sakura
|
||
|
|
|
||
|
|
tests:
|
||
|
|
# They read the images in `tests/images/`, from the package's root.
|
||
|
|
- name: malunal.image.tests
|
||
|
|
type: program
|
||
|
|
deps: [malunal.image, std.io, std.testing]
|
||
|
|
srcs:
|
||
|
|
- tests/main.sakura
|
||
|
|
- tests/support.sakura
|
||
|
|
- tests/formats.sakura
|
||
|
|
- tests/png.sakura
|
||
|
|
- tests/jpeg.sakura
|
||
|
|
- tests/svg.sakura
|
||
|
|
|
||
|
|
exports:
|
||
|
|
- malunal.image
|
||
|
|
|
||
|
|
package:
|
||
|
|
desc: Images read from PNG, JPEG, and SVG, and written to PNG and JPEG, as RGBA of eight bits a channel in sRGB.
|
||
|
|
auth: John Christman <sorakatadzuma@gmail.com>
|