libdisplay-info/meson.build
Simon Ser ad1e3f4167 Add very basic EDID functions
Introduce an opaque struct di_edid to host EDID structures. Add
a function to create a di_edid (with basic size, header and
checksum validation). Add functions to fetch the EDID version and
revision.

This doesn't do much, but hopefully can be used as a fundation.

Signed-off-by: Simon Ser <contact@emersion.fr>
2022-05-05 16:42:10 +02:00

44 lines
749 B
Meson

project(
'libdisplay-info',
'c',
version: '0.0.0',
license: 'MIT',
meson_version: '>= 0.52.1',
default_options: [
'c_std=c11',
'warning_level=3',
],
)
cc = meson.get_compiler('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',
],
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',
)