Commit 8672d91f authored by Brion Vibber's avatar Brion Vibber Committed by Felix Paul Kühne

Don't pass internal avcodec option when avcodec library not included

It causes initialization to fail when built with -w option.
Signed-off-by: Felix Paul Kühne's avatarFelix Paul Kühne <fkuehne@videolan.org>
parent 34256a4e
......@@ -103,7 +103,9 @@ static VLCLibrary * sharedLibrary = nil;
@"--no-osd",
@"--no-video-title-show",
@"--no-stats",
#ifndef NOSCARYCODECS
@"--avcodec-fast",
#endif
@"--verbose=0",
@"--text-renderer=quartztext",
@"--avi-index=3",
......
......@@ -60,11 +60,17 @@ buildxcodeproj()
info "Building $1 ($target, ${CONFIGURATION})"
local defs="$GCC_PREPROCESSOR_DEFINITIONS"
if [ "$SCARY" = "no" ]; then
defs="$defs NOSCARYCODECS"
fi
xcodebuild -project "$1.xcodeproj" \
-target "$target" \
-sdk $PLATFORM$SDK \
-configuration ${CONFIGURATION} \
IPHONEOS_DEPLOYMENT_TARGET=${SDK_MIN} > ${out}
IPHONEOS_DEPLOYMENT_TARGET=${SDK_MIN} \
GCC_PREPROCESSOR_DEFINITIONS="$defs" \
> ${out}
}
while getopts "hvwsfdnlk:" OPTION
......
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