babl_base = static_library('babl_base',
babl_base_sources,
- include_directories: [ rootInclude, bablInclude, ],
- dependencies: [ math, lcms],
+ include_directories: [rootInclude, bablInclude],
+ dependencies: [math, lcms],
)
copy: true
)
-foreach file : graphic_files
+foreach _file : graphic_files
# Copy svg files to build
graphic_files_install += configure_file(
- input: file,
+ input: _file,
output: '@PLAINNAME@',
copy: true
)
endforeach
if rsvg_convert_bin.found()
- foreach file : graphic_files
- sizeinfo = (
- file.contains('a4poster')
- ? [ '-w', '256', ]
- : []
- )
-
- graphic_files_install += custom_target(
- file,
- input: file,
+ foreach _file : graphic_files
+ sizeinfo = _file.contains('a4poster') ? ['-w', '256'] : []
+ graphic_files_install += custom_target(_file,
+ input: _file,
output: '@BASENAME@.png',
command: [
rsvg_convert_bin,
# Linker arguments
babl_ext_link_args = [
]
-if platform_win32
+if platform_win32 and cc.has_link_argument('-Wl,--no-undefined')
babl_ext_link_args += '-Wl,--no-undefined'
endif
['HSV', no_cflags],
['naive-CMYK', no_cflags],
['simple', no_cflags],
- ['sse-half', [sse4_1_cflags, f16c_cflags]],
+ ['sse-half', [sse4_1_cflags, f16c_cflags]],
['sse2-float', sse2_cflags],
['sse2-int16', sse2_cflags],
['sse2-int8', sse2_cflags],
dependencies: babl_ext_dep,
name_prefix: '',
install: true,
- install_dir: join_paths(get_option('libdir'), lib_name),
+ install_dir: babl_libdir / lib_name,
)
endforeach
version: '0.1.79',
meson_version: '>=0.53.0',
default_options: [
- 'sysconfdir=/etc',
- 'localstatedir=/var',
- 'sharedstatedir=/var/lib',
'buildtype=debugoptimized'
],
# https://gitlab.gnome.org/GNOME/babl/issues/
# if backwards compatibility has been broken,
# set BABL_BINARY_AGE _and_ BABL_INTERFACE_AGE to 0.
-
conf = configuration_data()
pkgconfig = import('pkgconfig')
-i18n = import('i18n')
gnome = import('gnome')
python = import('python')
if buildtype == 'debugoptimized' or buildtype == 'release'
common_c_flags += cc.get_supported_arguments(['-Ofast'])
endif
-common_c_flags += cc.get_supported_arguments(['-fno-unsafe-math-optimizations'])
+common_c_flags += cc.get_supported_arguments(
+ ['-fno-unsafe-math-optimizations']
+)
extra_warnings_list = [
'-Wdeclaration-after-statement',
################################################################################
# Build utilities
-env_bin = find_program('env', required: false, native: true)
+# build from git repo
git_bin = find_program('git', required: false, native: true)
+
+# docs
+env_bin = find_program('env', required: false, native: true)
rsvg_convert_bin = find_program('rsvg-convert', required: false,
native: true)
w3m_bin = find_program('w3m', required: false, native: true)
+
################################################################################
# Build flags
elif get_option('with-docs') == 'auto'
if meson.is_cross_build()
build_docs = false
+ message(
+ 'configure with -Ddocs=true to cross-build documentation'
+ )
endif
elif get_option('with-docs') == 'false'
build_docs = false
summary(
{
'prefix': babl_prefix,
+ 'libdir': get_option('libdir'),
}, section: 'Directories'
)
summary(
foreach tool_name : tool_names
tool = executable(tool_name,
tool_name + '.c',
- include_directories: [ rootInclude, bablInclude, ],
- link_with: [ babl, ],
- dependencies: [ math, thread, ],
+ include_directories: [rootInclude, bablInclude],
+ link_with: babl,
+ dependencies: [math, thread],
install: false,
)