Commit b6dce64a authored by Clément Bœsch's avatar Clément Bœsch Committed by Clément Bœsch

build: add check_apple_framework()

This will be used in the following commits.
parent f8519529
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment