summaryrefslogtreecommitdiff
path: root/platform/linux
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2017-01-24 18:57:44 +0100
committerKonstantin Käfer <mail@kkaefer.com>2017-01-25 10:32:23 +0100
commit1715bf9508ec1defe2e2dd1809f1e5226e24337f (patch)
tree546a982e49f5b418b1620307d4b0668df9eb5c59 /platform/linux
parent1f3424fafab32431f02c6348382266437bb08aea (diff)
downloadqtlocation-mapboxgl-1715bf9508ec1defe2e2dd1809f1e5226e24337f.tar.gz
[core] replace encodePNG() with a version that doesn't use libpng
rationale: encodePNG is only used in tests + sample apps, but shouldn't actually be part of the core library. In #7828, we're removing the libpng dependency for Android, and using a libpng-free version of encodePNG allows us to run the core unit tests on Android without pulling in libpng just for the test suite. In a next step, we should remove encodePNG() from the image.hpp header, which is a public header.
Diffstat (limited to 'platform/linux')
-rw-r--r--platform/linux/config.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/platform/linux/config.cmake b/platform/linux/config.cmake
index 13f3edb96f..caf91fdce2 100644
--- a/platform/linux/config.cmake
+++ b/platform/linux/config.cmake
@@ -72,6 +72,7 @@ macro(mbgl_platform_core)
# Image handling
PRIVATE platform/default/image.cpp
PRIVATE platform/default/jpeg_reader.cpp
+ PRIVATE platform/default/png_writer.cpp
PRIVATE platform/default/png_reader.cpp
PRIVATE platform/default/webp_reader.cpp