记录一个编译webrtc的参数(windows环境)

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接: https://blog.csdn.net/glw0223/article/details/101573426

windows环境

生成ninja文件

gn gen out\x86 --ide=vs2017 --args="target_cpu=\"x86\" 
rtc_use_h264=true rtc_libvpx_build_vp9=false proprietary_codecs=true
 ffmpeg_branding=\"Chrome\" is_debug=true 
 enable_iterator_debugging=true is_win_fastlink=true use_lld=false"

编译

ninja -C out\x86 webrtc

macOS环境

EXTRA_GN_ARGS="\
    target_os=\"mac\"  \
    target_cpu=\"x64\" \
    rtc_use_h264=true  \
    rtc_use_h265=true  \
    use_openh264_asm=true   \
    proprietary_codecs=true  \
    ffmpeg_branding=\"Chrome\" \
    use_sysroot=false  \
    treat_warnings_as_errors=false  \
    use_custom_libcxx=false  \
    use_custom_libcxx_for_host=false  \
    rtc_include_pulse_audio=false  \
    rtc_include_tests=false  \
    rtc_libvpx_build_vp9=false  \
    rtc_libvpx_build_vp8=false  \
"
if [ "$type" == "debug" ]; then
    gn gen out/Debug --args="$EXTRA_GN_ARGS is_debug=true"
else
    gn gen out/Debug --args="$EXTRA_GN_ARGS is_debug=false"
fi

ninja -C out/Debug

猜你喜欢

转载自blog.csdn.net/glw0223/article/details/101573426