2022-03-24 02:20:55 +01:00
|
|
|
project(
|
|
|
|
'libdisplay-info',
|
|
|
|
'c',
|
|
|
|
version: '0.0.0',
|
|
|
|
license: 'MIT',
|
|
|
|
meson_version: '>= 0.52.1',
|
|
|
|
default_options: [
|
|
|
|
'c_std=c11',
|
|
|
|
'warning_level=3',
|
|
|
|
],
|
|
|
|
)
|
2022-03-24 19:34:28 +01:00
|
|
|
|
|
|
|
cc = meson.get_compiler('c')
|
|
|
|
|
|
|
|
add_project_arguments(cc.get_supported_arguments([
|
|
|
|
'-Wundef',
|
|
|
|
'-Wmissing-prototypes',
|
|
|
|
'-Walloca',
|
|
|
|
'-Wdeclaration-after-statement',
|
2022-03-27 16:08:16 +02:00
|
|
|
'-Wconversion',
|
2022-03-24 19:34:28 +01:00
|
|
|
|
|
|
|
'-Wno-unused-parameter',
|
|
|
|
'-Wno-missing-field-initializers',
|
|
|
|
]), language: 'c')
|
2022-03-24 13:23:07 +01:00
|
|
|
|
|
|
|
di_lib = library(
|
|
|
|
'display-info',
|
|
|
|
[
|
|
|
|
'edid.c',
|
2022-04-10 11:07:42 +02:00
|
|
|
'info.c',
|
2022-03-24 13:23:07 +01:00
|
|
|
],
|
|
|
|
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',
|
|
|
|
)
|