mirror of
https://github.com/webmproject/libwebp.git
synced 2024-12-27 06:08:21 +01:00
README.wasm: normalize cmake command lines
+ enable NEON for armv7 Change-Id: If914f3973391271a1817e7ff16541f3272b2ad88
This commit is contained in:
parent
cfaebe3e95
commit
c646241391
@ -36,14 +36,14 @@ armv7:
|
|||||||
------
|
------
|
||||||
$ gcc_arm=/opt/gcc-arm; target=arm-linux-gnueabihf
|
$ gcc_arm=/opt/gcc-arm; target=arm-linux-gnueabihf
|
||||||
|
|
||||||
$ cmake -DWEBP_BUILD_DWEBP=1 -DCMAKE_C_COMPILER=clang -DWEBP_ENABLE_WASM=1 \
|
$ cmake .. -DWEBP_BUILD_DWEBP=1 -DCMAKE_C_COMPILER=clang -DWEBP_ENABLE_WASM=1 \
|
||||||
-DCMAKE_C_FLAGS="--target=$target --gcc-toolchain=$gcc_arm --sysroot=$gcc_arm/$target/libc" \
|
-DCMAKE_C_FLAGS="--target=$target --gcc-toolchain=$gcc_arm --sysroot=$gcc_arm/$target/libc -march=armv7-a -mfpu=neon" \
|
||||||
-DCMAKE_PREFIX_PATH=$gcc_arm/$target/libc/usr
|
-DCMAKE_PREFIX_PATH=$gcc_arm/$target/libc/usr
|
||||||
|
|
||||||
aarch64 / arm64:
|
aarch64 / arm64:
|
||||||
----------------
|
----------------
|
||||||
$ gcc_arm=/opt/gcc-aarch64; target=aarch64-linux-gnu
|
$ gcc_arm=/opt/gcc-aarch64; target=aarch64-linux-gnu
|
||||||
|
|
||||||
$ cmake .. -DWEBP_BUILD_DWEBP=ON -DCMAKE_C_COMPILER=clang \
|
$ cmake .. -DWEBP_BUILD_DWEBP=1 -DCMAKE_C_COMPILER=clang -DWEBP_ENABLE_WASM=1 \
|
||||||
-DCMAKE_C_FLAGS="--target=$target --gcc-toolchain=$gcc_arm --sysroot=$gcc_arm/$target/libc" \
|
-DCMAKE_C_FLAGS="--target=$target --gcc-toolchain=$gcc_arm --sysroot=$gcc_arm/$target/libc" \
|
||||||
-DCMAKE_PREFIX_PATH=$gcc_arm/$target/libc/usr
|
-DCMAKE_PREFIX_PATH=$gcc_arm/$target/libc/usr
|
||||||
|
Loading…
Reference in New Issue
Block a user