This builds on the work on portable-intrinsics branch:
- define WEBP_ENABLE_WASM_SIMD to enable WebAssembly optimizations, this
defines a constant (WEBP_USE_WASM_SIMD) that we can use in the future to
enable Wasm SIMD intrinsics
- build dwebp with JS build
- add a placeholder dec_wasm.c file, we don't do any special
initialization so it will fall back to c functions
- add Wasm to cpu checks, it needs to come before all checks since the
Emscripten toolchain will emulate x86 systems
Change-Id: I12de720304ff19fff82c8d100defbc60353787a9
Also fix the variables: we need to check for PTHREAD_PRIO_INHERIT
and PTHREAD_CREATE_JOINABLE (not PTHREAD_CREATE_UNDETACHED) and
internally use HAVE_PTHREAD_PRIO_INHERIT and PTHREAD_CREATE_JOINABLE
(and not HAVE_PTHREAD_CREATE_JOINABLE).
cmake/config.h.in actually had the right variables.
BUG=webp:498
Change-Id: Ibf6cf854337cea5781a74316024f8ff4960366d7
It is still redefined, but to the same constant,
hence no more warning as mentioned on BUG=webp:358
Change-Id: I80a834c139d5d60cd693d468b0e2ea399729ab3e
The goal is not to replace our autotools configuration, but to
provide a minimal CMake file that can build the lib, cwebp and
dwebp.
Change-Id: I3be343bd698d118c5f00172449d232d87e868f23