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 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107
|
(library
(name avcodec)
(public_name ffmpeg-avcodec)
(synopsis "Bindings to ffmpeg's avcodec library")
(foreign_stubs
(language c)
(names avcodec_stubs)
(flags
(:include c_flags.sexp)))
(c_library_flags
(:include c_library_flags.sexp))
(install_c_headers avcodec_stubs)
(libraries ffmpeg-avutil))
(rule
(targets c_flags c_flags.sexp c_library_flags.sexp)
(action
(run ./config/discover.exe)))
(rule
(targets avcodec_stubs.c)
(mode fallback)
(deps
hw_config_method_stubs.h
codec_capabilities_stubs.h
codec_properties_stubs.h
codec_id_stubs.h)
(action
(echo "this should not happen")))
(rule
(targets hw_config_method_stubs.h)
(deps c_flags)
(action
(run
../gen_code/gen_code.exe
"%{cc}"
hw_config_method
h
%{read-lines:c_flags})))
(rule
(targets hw_config_method.ml)
(deps hw_config_method_stubs.h c_flags)
(action
(run
../gen_code/gen_code.exe
"%{cc}"
hw_config_method
ml
%{read-lines:c_flags})))
(rule
(targets codec_capabilities_stubs.h)
(deps c_flags)
(action
(run
../gen_code/gen_code.exe
"%{cc}"
codec_capabilities
h
%{read-lines:c_flags})))
(rule
(targets codec_capabilities.ml)
(deps codec_capabilities_stubs.h c_flags)
(action
(run
../gen_code/gen_code.exe
"%{cc}"
codec_capabilities
ml
%{read-lines:c_flags})))
(rule
(targets codec_properties_stubs.h)
(deps c_flags)
(action
(run
../gen_code/gen_code.exe
"%{cc}"
codec_properties
h
%{read-lines:c_flags})))
(rule
(targets codec_properties.ml)
(deps codec_properties_stubs.h c_flags)
(action
(run
../gen_code/gen_code.exe
"%{cc}"
codec_properties
ml
%{read-lines:c_flags})))
(rule
(targets codec_id_stubs.h)
(deps c_flags)
(action
(run ../gen_code/gen_code.exe "%{cc}" codec_id h %{read-lines:c_flags})))
(rule
(targets codec_id.ml)
(deps codec_id_stubs.h c_flags)
(action
(run ../gen_code/gen_code.exe "%{cc}" codec_id ml %{read-lines:c_flags})))
|