File: dune

package info (click to toggle)
ocaml-xiph 1.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 820 kB
  • sloc: ml: 4,494; ansic: 3,994; makefile: 3
file content (38 lines) | stat: -rw-r--r-- 619 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
(executable
 (name decode)
 (modules decode)
 (optional)
 (libraries flac.ogg))

(executable
 (name encode)
 (modules encode)
 (optional)
 (libraries flac.ogg))

(rule
 (alias citest)
 (target src.wav)
 (action
  (run
   ffmpeg
   -hide_banner
   -loglevel
   error
   -f
   lavfi
   -i
   "sine=frequency=220:duration=5"
   -ac
   2
   %{target})))

(rule
 (alias citest)
 (deps ./src.wav)
 (action
  (progn
   (run ./encode.exe ./src.wav ./src.flac)
   (run ./decode.exe -i ./src.flac -o ./dst.wav)
   (run ./encode.exe --ogg true ./src.wav ./dst.ogg)
   (run ./decode.exe -ogg true -i ./dst.ogg -o ./ogg-dst.wav))))