Skip to content

Commit f375c68

Browse files
committed
fix libpng
1 parent 41556ea commit f375c68

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

subprojects/libpng.wrap

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,7 @@ patch_url = https://wrapdb.mesonbuild.com/v2/libpng_1.6.39-2/get_patch
88
patch_hash = 8bcf8f69f50233f3a35e3718ab3c91b0c51b4c1a08a84c87be0b1f4813adf17f
99
wrapdb_version = 1.6.39-2
1010

11+
diff_files = libpng-1.6.39_web.diff
12+
1113
[provide]
1214
libpng = libpng_dep
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
diff --git a/meson.build b/meson.build
2+
index a57347c..03272e1 100644
3+
--- a/meson.build
4+
+++ b/meson.build
5+
@@ -83,6 +83,9 @@ elif host_machine.cpu_family() in ['x86', 'x86_64']
6+
'intel/intel_init.c',
7+
)
8+
c_args += '-DPNG_INTEL_SSE_OPT=1'
9+
+elif host_machine.system() == 'emscripten'
10+
+ thread_dep = dependency('threads')
11+
+ libpng_deps += thread_dep
12+
endif
13+
14+
libpng = library(

0 commit comments

Comments
 (0)