[FFmpeg-cvslog] build: add check_apple_framework()

Clément Bœsch git at videolan.org
Fri Sep 8 19:58:54 EEST 2017


ffmpeg | branch: master | Clément Bœsch <cboesch at gopro.com> | Wed Sep  6 11:29:23 2017 +0200| [b6dce64a8ea5e98ce09916a056a7ac51316c9bce] | committer: Clément Bœsch

build: add check_apple_framework()

This will be used in the following commits.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b6dce64a8ea5e98ce09916a056a7ac51316c9bce
---

 configure | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/configure b/configure
index 996cb9f309..8d4ab43933 100755
--- a/configure
+++ b/configure
@@ -1121,6 +1121,15 @@ check_header_objcc(){
     } | check_objcc && check_stat "$TMPO" && enable_safe $header
 }
 
+check_apple_framework(){
+    log check_apple_framework "$@"
+    framework="$1"
+    name="$(tolower $framework)"
+    header="${framework}/${framework}.h"
+    disable $name
+    check_header_objcc $header && enable $name && add_extralibs "-framework $framework"
+}
+
 check_func(){
     log check_func "$@"
     func=$1



More information about the ffmpeg-cvslog mailing list