Skip to content
Snippets Groups Projects
configure 227 KiB
Newer Older
  • Learn to ignore specific revisions
  • if test -n "$WARNINGS"; then
        printf "\n%s%s$WARNINGS%s" "$warn_color" "$bold_color" "$reset_color"
        enabled fatal_warnings && exit 1
    fi
    
    # Settings for pkg-config files
    
    cat > ffbuild/config.sh <<EOF
    
    # Automatically generated by configure - do not modify!
    shared=$shared
    
    build_suffix=$build_suffix
    
    incdir=$incdir
    rpath=$(enabled rpath && echo "-Wl,-rpath,\${libdir}")
    
    source_path=${source_path}
    LIBPREF=${LIBPREF}
    LIBSUF=${LIBSUF}
    
    extralibs_avutil="$LIBRT $LIBM"
    extralibs_avcodec="$extralibs"
    extralibs_avformat="$extralibs"
    extralibs_avdevice="$extralibs"
    extralibs_avfilter="$extralibs"
    extralibs_avresample="$LIBM"
    
    extralibs_swresample="$LIBM $LIBSOXR"
    
    for lib in $LIBRARY_LIST; do
        lib_deps="$(eval echo \$${lib}_deps)"
        echo ${lib}_deps=\"$lib_deps\" >> ffbuild/config.sh
    done