summaryrefslogtreecommitdiff
path: root/gdk/meson.build
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-09-10 12:44:43 -0400
committerBenjamin Otte <otte@redhat.com>2021-09-17 00:25:22 +0200
commitf51f7f85ebd32528614dc4442afc98d5384c06fb (patch)
treebec53db1c5b887e26914052dbaeaa53e0ea9e41e /gdk/meson.build
parent66031fd00b9a4968e482ea9fdf2edc17d9e30199 (diff)
downloadgtk+-f51f7f85ebd32528614dc4442afc98d5384c06fb.tar.gz
Add code to load and save pngs
Using libpng instead of the lowest-common-denominator gdk-pixbuf loader. This will allow us to load >8bit data, and apply gamma and color correction in the future. For now, this still just provides RGBA8 data. As a consequence, we are now linking against libpng.
Diffstat (limited to 'gdk/meson.build')
-rw-r--r--gdk/meson.build4
1 files changed, 3 insertions, 1 deletions
diff --git a/gdk/meson.build b/gdk/meson.build
index ccc1738eab..092537257f 100644
--- a/gdk/meson.build
+++ b/gdk/meson.build
@@ -51,6 +51,7 @@ gdk_public_sources = files([
'gdktoplevelsize.c',
'gdktoplevel.c',
'gdkdragsurface.c',
+ 'loaders/gdkpng.c',
])
gdk_public_headers = files([
@@ -201,6 +202,7 @@ gdk_deps = [
platform_gio_dep,
pangocairo_dep,
vulkan_dep,
+ png_dep,
]
if profiler_enabled
@@ -257,7 +259,7 @@ endif
libgdk = static_library('gdk',
sources: [gdk_sources, gdk_backends_gen_headers, gdkconfig],
dependencies: gdk_deps + [libgtk_css_dep],
- link_with: [libgtk_css, ],
+ link_with: [libgtk_css],
include_directories: [confinc, gdkx11_inc, wlinc],
c_args: libgdk_c_args + common_cflags,
link_whole: gdk_backends,