Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 Name: libvpx | 1 Name: libvpx |
| 2 URL: http://www.webmproject.org | 2 URL: http://www.webmproject.org |
| 3 Version: v0.9.6-92-gba11e24 | 3 Version: v0.9.7p1 |
| 4 License File: source/libvpx/LICENSE | 4 License File: source/libvpx/LICENSE |
| 5 | 5 |
| 6 Date: Monday April 4 2011 | 6 Date: Tuesday August 16 2011 |
| 7 Commit: ba11e24d47009ac787fdb95ccbd846052e18f26a | 7 Branch: cayuga |
| 8 Commit: 20307c70ae96c45b9b00338989b952fb334e4fc9 | |
| 8 | 9 |
| 9 Description: | 10 Description: |
| 10 Contains the sources used to compile libvpx binaries used by Google Chrome and | 11 Contains the sources used to compile libvpx binaries used by Google Chrome and |
| 11 Chromium. | 12 Chromium. |
| 12 | 13 |
| 13 The libvpx source is from webmproject.org: | 14 The libvpx source is from webmproject.org: |
| 14 git://review.webmproject.org/libvpx | 15 git://review.webmproject.org/libvpx |
| 15 | 16 |
| 16 Patches | 17 Notes on icc (Intel Compiler) builds for linux and mac |
| 17 | |
| 18 One patch is included in the patches directory. It is needed for | |
| 19 obj_int_extract.c on x64 linux when using icc, and must be applied | |
| 20 before running make to avoid link errors. | |
| 21 | |
| 22 The patch can be applied by runnning the following command from within | |
| 23 source/libvpx: | |
| 24 | |
| 25 patch -p0 < ../../patches/01_obj_int_extract.patch | |
| 26 | |
| 27 Notes | |
| 28 | 18 |
| 29 The mac libvpx build was built with icc v11.1. In | 19 The mac libvpx build was built with icc v11.1. In |
| 30 addition to the configuration args listed in vpx_config.c for each target, the | 20 addition to the configuration args listed in vpx_config.c for each target, the |
| 31 following additions were made to CFLAGS: | 21 following additions were made to CFLAGS: |
| 32 | 22 |
| 33 - linux/x64 CFLAGS: -fPIC -ffreestanding | 23 - linux/x64 CFLAGS: -fPIC -ffreestanding |
| 34 - linux ia32 CFLAGS: -ffreestanding | 24 - linux ia32 CFLAGS: -ffreestanding |
| 35 - mac ia32 CFLAGS: -fPIC -ffreestanding | 25 - mac ia32 CFLAGS: -fPIC -ffreestanding -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5 |
| 36 -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5 | |
| 37 | 26 |
| 38 The -ffreestanding argument removes dependencies on Intel memcpy and memset | 27 The -ffreestanding argument removes dependencies on Intel memcpy and memset |
| 39 functions. | 28 functions. |
| 40 | 29 |
| 41 For example, the following could be used at libvpx configure time to reproduce | 30 For example, the following could be used at libvpx configure time to reproduce |
| 42 the linux x64 build: | 31 the linux x64 build: |
| 43 | 32 |
| 44 CFLAGS="-fPIC -ffreestanding" /path/to/libvpx/configure \ | 33 CFLAGS="-fPIC -ffreestanding" /path/to/libvpx/configure \ |
| 45 --target=x86_64-linux-icc --enable-pic --disable-install-docs \ | 34 --target=x86_64-linux-icc --enable-pic --disable-install-docs \ |
| 46 --disable-install-srcs --disable-examples --disable-postproc --disable-psnr | 35 --disable-install-srcs --disable-examples --disable-postproc |
|
fbarchard
2011/08/16 22:36:03
should we keep --disable-psnr?
| |
| 47 | 36 |
| 48 The vpx_config.{asm,h,cc}, and vpx_version.h files generated by the above | 37 The vpx_config.{asm,h,cc}, and vpx_version.h files generated by the above |
| 49 configure command should then be checked in to | 38 configure command should then be checked in to |
| 50 source/config/linux/<(target_arch)/. | 39 source/config/linux/<(target_arch)/. |
| 51 | 40 |
| 41 Notes about libvpx.gyp | |
| 42 | |
| 52 To generate the sources list for libvpx.gyp we ran: | 43 To generate the sources list for libvpx.gyp we ran: |
| 53 | 44 |
| 54 mkdir ++build && cd ++build | 45 mkdir ++build && cd ++build |
| 55 CFLAGS="-fPIC -ffreestanding" bash ../source/libvpx/configure --enable-pic \ | 46 CFLAGS="-fPIC -ffreestanding" bash ../source/libvpx/configure --enable-pic \ |
| 56 --disable-install-docs --disable-install-srcs --disable-examples \ | 47 --disable-install-docs --disable-install-srcs --disable-examples \ |
| 57 --disable-postproc --disable-psnr | 48 --disable-postproc --disable-psnr |
| 58 make verbose=true |tee make.out | 49 make verbose=true |tee make.out |
| 59 | 50 |
| 60 then trawl through make.out to find the file-names: | 51 then trawl through make.out to find the file-names: |
| 61 | 52 |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 113 source/config/linux/arm-neon/decoder/neon | 104 source/config/linux/arm-neon/decoder/neon |
| 114 cp source/libvpx/vp8/encoder/arm/armv5te/*.s \ | 105 cp source/libvpx/vp8/encoder/arm/armv5te/*.s \ |
| 115 source/config/linux/arm/encoder/arm5te | 106 source/config/linux/arm/encoder/arm5te |
| 116 cp source/libvpx/vp8/encoder/arm/armv6/*.s \ | 107 cp source/libvpx/vp8/encoder/arm/armv6/*.s \ |
| 117 source/config/linux/arm/encoder/armv6 | 108 source/config/linux/arm/encoder/armv6 |
| 118 cp source/libvpx/vp8/encoder/arm/neon/*.s \ | 109 cp source/libvpx/vp8/encoder/arm/neon/*.s \ |
| 119 source/config/linux/arm-neon/encoder/neon | 110 source/config/linux/arm-neon/encoder/neon |
| 120 cp source/libvpx/vpx_scale/arm/neon/*.s \ | 111 cp source/libvpx/vpx_scale/arm/neon/*.s \ |
| 121 source/config/linux/arm-neon/vpx_scale/neon | 112 source/config/linux/arm-neon/vpx_scale/neon |
| 122 | 113 |
| OLD | NEW |