cpp_args: [ '-DLIBDIR="' + join_paths(get_option('prefix'), get_option('libdir')) + '"', ],
link_whole: [ babl_base, ],
link_args: [ babl_link_args, ],
- dependencies: [ math, thread, dl, ],
+ dependencies: [ math, thread, dl, lcms, ],
link_depends: [ version_script_target, ],
version: so_version,
install: true,
################################################################################
# Dependencies
+# LCMS
+with_lcms = get_option('with-lcms')
+if with_lcms
+ lcms = cc.find_library('lcms2', required : true)
+ if lcms.found()
+ conf.set('HAVE_LCMS', 1, description: 'Define to 1 if liblcms2 is available')
+ endif
+endif
+
math = cc.find_library('m', required: false)
log = cc.find_library('log', required: false)
if platform_win32
option('enable-sse4_1', type: 'boolean', value: true, description: 'enable SSE4.1 support')
option('enable-f16c', type: 'boolean', value: true, description: 'enable hardware half-float support')
option('with-docs', type: 'boolean', value: true, description: 'build website')
+option('with-lcms', type: 'boolean', value: true, description: 'build with lcms')