mirror of
https://gitlab.freedesktop.org/libinput/libei.git
synced 2025-12-20 04:30:07 +01:00
This is the outline of the API intended with a minimal compiler just to verify there are no immediate parsing issues.
39 lines
986 B
Meson
39 lines
986 B
Meson
project('libei', 'c',
|
|
version: '0.1',
|
|
license: 'MIT/Expat',
|
|
default_options: [ 'c_std=gnu99', 'warning_level=2' ],
|
|
meson_version: '>= 0.50.0')
|
|
|
|
pkgconfig = import('pkgconfig')
|
|
|
|
cc = meson.get_compiler('c')
|
|
cppflags = ['-Wno-unused-parameter', '-fvisibility=hidden']
|
|
cflags = cppflags + ['-Wmissing-prototypes', '-Wstrict-prototypes']
|
|
add_project_arguments(cflags, language : 'c')
|
|
add_project_arguments(cppflags, language : 'cpp')
|
|
|
|
lib_libei = shared_library('ei',
|
|
'src/libei.h',
|
|
'src/libei.c',
|
|
install: true
|
|
)
|
|
|
|
pkgconfig.generate(lib_libei,
|
|
filebase: 'libei',
|
|
name : 'libEI',
|
|
description : 'Emulated Input client library',
|
|
version : meson.project_version(),
|
|
)
|
|
|
|
lib_libeis = shared_library('eis',
|
|
'src/libeis.h',
|
|
'src/libeis.c',
|
|
install: true
|
|
)
|
|
pkgconfig.generate(lib_libeis,
|
|
filebase: 'libeis',
|
|
name : 'libEIS',
|
|
description : 'Emulated Input server library',
|
|
version : meson.project_version(),
|
|
libraries : lib_libei
|
|
)
|