summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarti Maria <marti.maria@littlecms.com>2023-03-14 19:04:46 +0100
committerGitHub <noreply@github.com>2023-03-14 19:04:46 +0100
commit4020aacd77e6341874eaa2128d58144b21877a07 (patch)
tree4692d7a54a05b29b494202a01bdcfccf8b572281
parentbad332609443dd3ad38a73ca950a43c4f346f39f (diff)
parent0cbb7ac63af7eabb6992361fa0f7ee941deaf0c3 (diff)
downloadlcms2-4020aacd77e6341874eaa2128d58144b21877a07.tar.gz
Merge pull request #370 from heitbaum/meson-fixes
Allow optional build of utils using meson Looks great, thank you!
-rw-r--r--meson.build5
-rw-r--r--meson_options.txt1
2 files changed, 5 insertions, 1 deletions
diff --git a/meson.build b/meson.build
index f049200..91152f8 100644
--- a/meson.build
+++ b/meson.build
@@ -100,7 +100,10 @@ deps = [m_dep, threads_dep]
subdir('include')
subdir('src')
subdir('testbed')
-subdir('utils')
+
+if get_option('utils')
+ subdir('utils')
+endif
if get_option('samples')
subdir('utils/samples')
diff --git a/meson_options.txt b/meson_options.txt
index 5adc464..ae41f38 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -2,5 +2,6 @@ option('jpeg', type: 'feature', value: 'auto', description: 'Use JPEG')
option('tiff', type: 'feature', value: 'auto', description: 'Use LibTiff')
option('samples', type: 'boolean', value: 'false', description: 'Build the samples')
+option('utils', type: 'boolean', value: 'true', description: 'Build the utils')
option('fastfloat', type: 'boolean', value: 'false', description: 'Build and install the fast float plugin, use only if GPL 3.0 is acceptable')
option('threaded', type: 'boolean', value: 'false', description: 'Build and install the multi threaded plugin, use only if GPL 3.0 is acceptable')