[Qt] Make it possible to disable libwebp and libjpeg-turbo at build time

Pull less dependencies.
This commit is contained in:
Thiago Marcos P. Santos
2016-05-05 18:10:03 +03:00
parent 10e522d10b
commit a818917714
5 changed files with 29 additions and 14 deletions

View File

@@ -78,13 +78,13 @@ TEST(Image, JPEGTile) {
EXPECT_EQ(256, image.height);
}
#if !defined(__ANDROID__) && !defined(__APPLE__)
#if !defined(__ANDROID__) && !defined(__APPLE__) && !defined(QT_IMAGE_DECODERS)
TEST(Image, WebPTile) {
PremultipliedImage image = decodeImage(util::read_file("test/fixtures/image/tile.webp"));
EXPECT_EQ(256, image.width);
EXPECT_EQ(256, image.height);
}
#endif // !defined(__ANDROID__) && !defined(__APPLE__)
#endif // !defined(__ANDROID__) && !defined(__APPLE__) && !defined(QT_IMAGE_DECODERS)
TEST(Image, Premultiply) {
UnassociatedImage rgba { 1, 1 };