summaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorAndrew Opalach <andrew@akon.city> 2025-05-08 12:48:07 -0400
committerAndrew Opalach <andrew@akon.city> 2025-05-08 12:48:07 -0400
commit5c059c0167f468ed4c98592b55a312143bd94b22 (patch)
tree3f0e1ac455c47f95346766613bb250a7af100f68 /src/util
parent8404c1bad9d4ac448b4b051f29446ca2f24c4ef8 (diff)
downloadcamu-5c059c0167f468ed4c98592b55a312143bd94b22.tar.gz
camu-5c059c0167f468ed4c98592b55a312143bd94b22.tar.bz2
camu-5c059c0167f468ed4c98592b55a312143bd94b22.zip
Cleanup build
Signed-off-by: Andrew Opalach <andrew@akon.city>
Diffstat (limited to 'src/util')
-rw-r--r--src/util/meson.build19
1 files changed, 11 insertions, 8 deletions
diff --git a/src/util/meson.build b/src/util/meson.build
index a83a66a..c2c3c3d 100644
--- a/src/util/meson.build
+++ b/src/util/meson.build
@@ -1,11 +1,14 @@
util_src = ['color_palette.c']
-blake3 = dependency('libblake3', required: false, allow_fallback: false)
-if not blake3.found()
- blake3_opts = cmake.subproject_options()
- reltype = is_minsize ? 'MinSizeRel' : 'Release'
- blake3_opts.add_cmake_defines({ 'CMAKE_BUILD_TYPE': is_debug ? 'Debug' : reltype })
- blake3_opts.add_cmake_defines({ 'CMAKE_POSITION_INDEPENDENT_CODE': true })
- blake3 = cmake.subproject('BLAKE3', options: blake3_opts).dependency('blake3')
+util_deps = []
+if get_option('portal').enabled()
+ blake3 = dependency('libblake3', required: false, allow_fallback: false)
+ if not blake3.found()
+ blake3_opts = cmake.subproject_options()
+ reltype = is_minsize ? 'MinSizeRel' : 'Release'
+ blake3_opts.add_cmake_defines({ 'CMAKE_BUILD_TYPE': is_debug ? 'Debug' : reltype })
+ blake3_opts.add_cmake_defines({ 'CMAKE_POSITION_INDEPENDENT_CODE': true })
+ blake3 = cmake.subproject('BLAKE3', options: blake3_opts).dependency('blake3')
+ endif
+ util_deps += [blake3]
endif
-util_deps = [blake3]
util = declare_dependency(sources: util_src, dependencies: util_deps)