| 7 | |
| 8 | Below is the steps to build and use libyuv: |
| 9 | == For GNU targets == |
| 10 | 1. By default, libyuv will always be built automatically. This automatic build can be disabled via configure script param {{{--disable-libyuv}}} or {{{--disable-video}}}, also it will not be built when ffmpeg swscale is detected. |
| 11 | 1. if you want to use external libyuv, specify {{{--with-external-libyuv}}} and set header/library search paths via CFLAGS and LDFLAGS environment variables. |
| 12 | |
| 13 | === Additional step for iOS targets === |
| 14 | 1. Add {{{third-party/lib/libyuv-[TARGET].a}}} to application project in XCode. |
| 15 | |
| 16 | == For Visual Studio == |
| 17 | 1. libyuv will always be built automatically. |
| 18 | 1. To enable libyuv, add this to your {{{config_site.h}}}: |
| 19 | {{{ |
| 20 | #define PJMEDIA_HAS_LIBYUV 1 |
| 21 | }}} |