84 lines
2.0 KiB
Plaintext
84 lines
2.0 KiB
Plaintext
name: models
|
|
gpid: malunal
|
|
semv: 1.0.0
|
|
|
|
options:
|
|
level: 2
|
|
|
|
requires:
|
|
- https://git.malunal.studio/sakura/std@v1.0.0
|
|
# Vectors, rotations, and matrices, which nodes are placed by:
|
|
# `malunal::linear`, of the `physics` package.
|
|
- https://git.malunal.studio/malunal/physics@v1.0.0
|
|
|
|
targets:
|
|
# glTF 2.0, read and written.
|
|
- name: malunal.gltf
|
|
type: library
|
|
root: ./gltf
|
|
deps:
|
|
- malunal.linear
|
|
- std.containers
|
|
- std.io
|
|
- std.json
|
|
- std.math
|
|
|
|
# Wavefront's OBJ, and the MTL files of its materials, read and written.
|
|
- name: malunal.obj
|
|
type: library
|
|
root: ./obj
|
|
deps:
|
|
- malunal.linear
|
|
- std.containers
|
|
- std.io
|
|
- std.math
|
|
|
|
# Autodesk's FBX, binary or ASCII, read as its tree of nodes and as a scene
|
|
# of what they mean; the tree written as binary.
|
|
- name: malunal.fbx
|
|
type: library
|
|
root: ./fbx
|
|
deps:
|
|
- malunal.linear
|
|
- std.containers
|
|
- std.io
|
|
- std.math
|
|
|
|
tests:
|
|
# They write and read models of their own, under `.blossom/gltf tests/`.
|
|
- name: malunal.gltf.tests
|
|
type: program
|
|
deps: [malunal.gltf, malunal.linear, std.io, std.math, std.testing]
|
|
srcs:
|
|
- tests/main.sakura
|
|
- tests/support.sakura
|
|
- tests/reading.sakura
|
|
- tests/accessors.sakura
|
|
- tests/nodes.sakura
|
|
- tests/writing.sakura
|
|
|
|
# They write and read models of their own, under `.blossom/obj tests/`.
|
|
- name: malunal.obj.tests
|
|
type: program
|
|
deps: [malunal.obj, malunal.linear, std.io, std.math, std.testing]
|
|
srcs:
|
|
- tests/main.sakura
|
|
- tests/obj.sakura
|
|
|
|
# They build documents and scenes of their own, in memory.
|
|
- name: malunal.fbx.tests
|
|
type: program
|
|
deps: [malunal.fbx, malunal.linear, std.math, std.testing]
|
|
srcs:
|
|
- tests/main.sakura
|
|
- tests/fbx.sakura
|
|
|
|
exports:
|
|
- malunal.gltf
|
|
- malunal.obj
|
|
- malunal.fbx
|
|
|
|
package:
|
|
desc: Models read and written. glTF 2.0, as .gltf and its files or .glb, whole and checked, with what their accessors hold read as numbers; Wavefront's OBJ, its faces of any number of corners, and the MTL files of its materials.
|
|
auth: John Christman <sorakatadzuma@gmail.com>
|