diff mupdf-source/thirdparty/lcms2/plugins/threaded/src/meson.build @ 2:b50eed0cc0ef upstream

ADD: MuPDF v1.26.7: the MuPDF source as downloaded by a default build of PyMuPDF 1.26.4. The directory name has changed: no version number in the expanded directory now.
author Franz Glasner <fzglas.hg@dom66.de>
date Mon, 15 Sep 2025 11:43:07 +0200
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mupdf-source/thirdparty/lcms2/plugins/threaded/src/meson.build	Mon Sep 15 11:43:07 2025 +0200
@@ -0,0 +1,34 @@
+liblcms2_threaded_sources = files(
+  'threaded_core.c',
+  'threaded_main.c',
+  'threaded_scheduler.c',
+  'threaded_split.c',
+)
+
+lcms2_threaded_incdir = include_directories('../include', '.')
+
+if host_machine.system() == 'windows'
+  lcms2_threaded_rc = configure_file(
+    input: 'lcms2_threaded.rc.in',
+    configuration: version_cfg,
+    output: 'lcms2_threaded.rc',
+  )
+
+  liblcms2_threaded_sources += win.compile_resources(lcms2_threaded_rc)
+endif
+
+liblcms2_threaded = library(
+  'lcms2_threaded',
+  liblcms2_threaded_sources,
+  include_directories: lcms2_threaded_incdir,
+  dependencies: [ liblcms2_dep, threads_dep ],
+  c_args: cargs,
+  install: true,
+)
+
+liblcms2_threaded_dep = declare_dependency(
+  link_with: liblcms2_threaded,
+  include_directories: lcms2_threaded_incdir,
+)
+
+extra_libraries += liblcms2_threaded