name: binary gpid: malunal semv: 1.0.0 requires: - https://git.malunal.studio/sakura/std@v1.0.0 # Each library is one of its own, in the folder named for it, and reads only # std's modules it lists. A project names among its deps only those it reads. targets: - name: binary.amd64 type: library root: ./amd64 deps: [std.io] - name: binary.elf type: library root: ./elf deps: [std.io] - name: binary.dwarf type: library root: ./dwarf deps: [std.containers, std.io] - name: binary.pe type: library root: ./pe deps: [std.containers, std.io] - name: binary.pdb type: library root: ./pdb deps: [std.containers, std.io] # Each library's tests are a program of their own, reading only it. tests: - name: binary.amd64.tests type: program runs: machine deps: [binary.amd64, std.io, std.testing] srcs: [tests/main.sakura, tests/amd64/*.sakura] - name: binary.elf.tests type: program runs: machine deps: [binary.elf, std.io, std.testing] srcs: [tests/main.sakura, tests/elf/*.sakura] - name: binary.dwarf.tests type: program runs: machine deps: [binary.dwarf, std.io, std.testing] srcs: [tests/main.sakura, tests/dwarf/*.sakura] - name: binary.pe.tests type: program runs: machine deps: [binary.pe, std.io, std.testing] srcs: [tests/main.sakura, tests/pe/*.sakura] - name: binary.pdb.tests type: program runs: machine deps: [binary.pdb, std.io, std.testing] srcs: [tests/main.sakura, tests/pdb/*.sakura] exports: - binary.amd64 - binary.elf - binary.dwarf - binary.pe - binary.pdb