File: dune

package info (click to toggle)
ocaml-ffmpeg 1.2.7-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 908 kB
  • sloc: ansic: 6,412; ml: 6,166; makefile: 3
file content (46 lines) | stat: -rw-r--r-- 880 bytes parent folder | download | duplicates (3)
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
(library
 (name swresample)
 (public_name ffmpeg-swresample)
 (synopsis "Bindings to ffmpeg's swresample library")
 (foreign_stubs
  (language c)
  (names swresample_stubs)
  (flags
   (:include c_flags.sexp)))
 (c_library_flags
  (:include c_library_flags.sexp))
 (libraries ffmpeg-avutil ffmpeg-avcodec))

(rule
 (targets c_flags c_flags.sexp c_library_flags.sexp)
 (action
  (run ./config/discover.exe)))

(rule
 (targets swresample_stubs.c)
 (mode fallback)
 (deps swresample_options_stubs.h)
 (action
  (echo "this should not happen")))

(rule
 (targets swresample_options_stubs.h)
 (deps c_flags)
 (action
  (run
   ../gen_code/gen_code.exe
   "%{cc}"
   swresample_options
   h
   %{read-lines:c_flags})))

(rule
 (targets swresample_options.ml)
 (deps c_flags)
 (action
  (run
   ../gen_code/gen_code.exe
   "%{cc}"
   swresample_options
   ml
   %{read-lines:c_flags})))