mirror of
https://gitlab.freedesktop.org/emersion/libdisplay-info.git
synced 2024-11-16 19:48:30 +01:00
a8e78208a5
Add two small shell utilities to generate and compare diffs between edid-decode and di-edid-decode. Store the diffs in-tree and add tests to ensure they don't regress. Run the tests in CI with a pinned installation of edid-decode. One EDID blob is added to the test collection: dell-2408wfp-dp. It's extracted [1] from the edid-decode repository. [1]: https://git.linuxtv.org/edid-decode.git/tree/data/dell-2408wfp-dp Signed-off-by: Simon Ser <contact@emersion.fr> Closes: https://gitlab.freedesktop.org/emersion/libdisplay-info/-/issues/5
61 lines
1 KiB
Meson
61 lines
1 KiB
Meson
project(
|
|
'libdisplay-info',
|
|
'c',
|
|
version: '0.0.0',
|
|
license: 'MIT',
|
|
meson_version: '>= 0.55.0',
|
|
default_options: [
|
|
'c_std=c11',
|
|
'warning_level=3',
|
|
],
|
|
)
|
|
|
|
cc = meson.get_compiler('c')
|
|
|
|
add_project_arguments(['-D_POSIX_C_SOURCE=200809L'], language: 'c')
|
|
|
|
add_project_arguments(cc.get_supported_arguments([
|
|
'-Wundef',
|
|
'-Wmissing-prototypes',
|
|
'-Walloca',
|
|
'-Wdeclaration-after-statement',
|
|
'-Wconversion',
|
|
|
|
'-Wno-unused-parameter',
|
|
'-Wno-missing-field-initializers',
|
|
]), language: 'c')
|
|
|
|
di_lib = library(
|
|
'display-info',
|
|
[
|
|
'edid.c',
|
|
'info.c',
|
|
],
|
|
include_directories: include_directories('include'),
|
|
install: true,
|
|
)
|
|
|
|
install_subdir(
|
|
'include/libdisplay-info',
|
|
install_dir: get_option('includedir'),
|
|
)
|
|
|
|
pkgconfig = import('pkgconfig')
|
|
pkgconfig.generate(
|
|
di_lib,
|
|
description: 'EDID and DisplayID library',
|
|
)
|
|
|
|
di_dep = declare_dependency(
|
|
link_with: di_lib,
|
|
include_directories: include_directories('include'),
|
|
)
|
|
|
|
di_edid_decode = executable(
|
|
'di-edid-decode',
|
|
'di-edid-decode.c',
|
|
dependencies: di_dep,
|
|
install: true,
|
|
)
|
|
|
|
subdir('test')
|