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 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78
|
(env
(release
(ocamlopt_flags
(:standard -w -9 -alert --deprecated -O2)))
(_
(flags
(:standard -w -9 -alert --deprecated))))
; Regenerate using dune build @gendune --auto-promote
(include dune.inc)
(executable
(name gen_dune)
(libraries liquidsoap_build_tools)
(modules gen_dune))
(rule
(alias gendune)
(deps
(source_tree .))
(target dune.inc.gen)
(action
(with-stdout-to
dune.inc.gen
(run ./gen_dune.exe))))
(rule
(alias gendune)
(action
(diff dune.inc dune.inc.gen)))
(rule
(alias citest)
(target test.wav)
(action
(run ffmpeg -f lavfi -i "sine=frequency=440:duration=5" -ac 2 %{target})))
(rule
(alias citest)
(target test.mp3)
(action
(run ffmpeg -f lavfi -i "sine=frequency=440:duration=5" -ac 2 %{target})))
(rule
(alias citest)
(target json)
(action
(progn
(run rm -rf json)
(run git clone --depth 1 https://github.com/nst/JSONTestSuite json)
(system "cd json && mv test_parsing/*.json .")
(system
"cd json && find . -maxdepth 1 -type d | grep -v '^\\.$' | xargs rm -rf"))))
(rule
(alias citest)
(target json5)
(action
(progn
(run rm -rf json5)
(run git clone --depth 1 https://github.com/json5/json5-tests.git json5)
(system
"cd json5 && find . -type f | egrep '\\.json|\\.js|\\.txt' | xargs -I % mv % .")
(system "cd json5 && find . -type d | grep -v '^\\.$' | xargs rm -rf"))))
(rule
(alias citest)
(target big-list-of-naughty-strings)
(action
(progn
(run rm -rf big-list-of-naughty-strings)
(run
git
clone
--depth
1
https://github.com/minimaxir/big-list-of-naughty-strings.git))))
|