capture: true,
)
+# c compiler arguments
+babl_c_args = [
+ sse2_cflags,
+ '-DLIBDIR="@0@"'.format(babl_libdir),
+]
# Linker arguments
babl_link_args = [
subdir: join_paths(lib_name, 'babl')
)
-
babl = library(
lib_name,
babl_sources,
include_directories: [ rootInclude, bablBaseInclude],
- c_args: [ '-DLIBDIR="' + join_paths(get_option('prefix'), get_option('libdir')) + '"', ],
- cpp_args: [ '-DLIBDIR="' + join_paths(get_option('prefix'), get_option('libdir')) + '"', ],
+ c_args: babl_c_args,
link_whole: [ babl_base, ],
link_args: [ babl_link_args, ],
dependencies: [ math, thread, dl, lcms, ],
prefix = get_option('prefix')
buildtype = get_option('buildtype')
+babl_prefix = get_option('prefix')
+babl_libdir = join_paths(babl_prefix, get_option('libdir'))
+
################################################################################
# Projects infos
# LCMS
if get_option('with-lcms')
- lcms = dependency('lcms2', required : true)
+ lcms = dependency('lcms2', required: true, native: false)
if lcms.found()
conf.set('HAVE_LCMS', 1, description:
'Define to 1 if liblcms2 is available')
build_docs = false
if get_option('with-docs')
- if cc_can_run and env_bin.found() and not build_platform_win32
+ if cc_can_run and env_bin.found() and not platform_win32
build_docs = true
else
warning('Unable to generate docs in this environment')
if w3m_bin.found() and build_docs
custom_target('README',
input: index_html,
- output: [ 'README' ] ,
+ output: 'README',
command: [
w3m_bin,
'-cols', '72',