collect all decoding utilities from examples/ in libexampledec.a

adds a generic examples/image_dec.[ch] entry point too.

WebPGuessImageType() can be used to infer image type.

Change-Id: I8337e7b6ad91863c9cf118e4791668d2d175079b
This commit is contained in:
Pascal Massimino
2016-05-30 21:45:38 -07:00
parent 0b8ae8520f
commit ae2a7222ce
9 changed files with 180 additions and 79 deletions

View File

@@ -241,10 +241,31 @@ model {
}
}
example_dec(NativeLibrarySpec) {
binaries {
all {
lib library: "webp", linkage: "static"
}
}
sources {
c {
source {
srcDir "./examples"
include "image_dec.c"
include "jpegdec.c"
include "metadata.c"
include "pngdec.c"
include "tiffdec.c"
include "webpdec.c"
}
}
}
}
cwebp(NativeExecutableSpec) {
binaries {
all {
lib library: "example_util", linkage: "static"
lib library: "example_dec", linkage: "static"
lib library: "webp", linkage: "static"
}
}
@@ -253,11 +274,6 @@ model {
source {
srcDir "./examples"
include "cwebp.c"
include "jpegdec.c"
include "metadata.c"
include "pngdec.c"
include "tiffdec.c"
include "webpdec.c"
}
}
}