gentoo-ebuilds/media-libs/icclib/files/meson.build
NHOrus 2ed9cd89da
media-libs/icclib: update EAPI 7 -> 8, fix build problems
Update code to compile with C23 compilers.
Replace build system with meson: existing makefile and patches appear
to have silently dropped dependencies, that were automagically included
only somewhere. Fixes segfaults on start.
Adds smoke test to check for said segfault

Closes: https://bugs.gentoo.org/875098
Closes: https://bugs.gentoo.org/456780
Signed-off-by: NHOrus <jy6x2b32pie9@yahoo.com>
Signed-off-by: Sam James <sam@gentoo.org>
2025-04-12 21:58:19 +01:00

51 lines
897 B
Meson

project('icclib', 'c', version: '2.14')
add_project_arguments('-DUNIX', language: 'c')
cc = meson.get_compiler('c')
math = cc.find_library('m', required: false)
icclib = library(
'icc',
'icc.c',
soversion: '0',
dependencies: math,
install: true,
)
executable(
'iccdump',
['iccdump.c', 'iccstd.c'],
install: true,
link_with: icclib,
dependencies: math,
)
executable(
'lutest',
['lutest.c', 'iccstd.c'],
install: false,
link_with: icclib,
dependencies: math,
)
executable(
'icclu',
['icclu.c', 'iccstd.c'],
install: false,
link_with: icclib,
dependencies: math,
)
executable(
'iccrw',
['iccrw.c', 'iccstd.c'],
install: false,
link_with: icclib,
dependencies: math,
)
executable(
'icctest',
['icctest.c', 'iccstd.c'],
install: false,
link_with: icclib,
dependencies: math,
)