summaryrefslogtreecommitdiff
path: root/test/util
diff options
context:
space:
mode:
authorThiago Marcos P. Santos <thiago@mapbox.com>2016-05-05 18:10:03 +0300
committerThiago Marcos P. Santos <thiago@mapbox.com>2016-05-05 18:47:14 +0300
commita81891771441dfc1c839b9d100368b6bbf1fc127 (patch)
treeda242c7812532526a40fe7bb43083b3047c5fd1a /test/util
parent10e522d10b33e5268b619296eae0ccad899809d9 (diff)
downloadqtlocation-mapboxgl-a81891771441dfc1c839b9d100368b6bbf1fc127.tar.gz
[Qt] Make it possible to disable libwebp and libjpeg-turbo at build time
Pull less dependencies.
Diffstat (limited to 'test/util')
-rw-r--r--test/util/image.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/util/image.cpp b/test/util/image.cpp
index 445b32ce2a..67a79cf9dd 100644
--- a/test/util/image.cpp
+++ b/test/util/image.cpp
@@ -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 };