libliftoff/meson.build

63 lines
1.1 KiB
Meson
Raw Normal View History

2019-08-21 22:07:37 +02:00
project(
'liftoff',
2019-08-21 22:07:37 +02:00
'c',
version: '0.0.0',
license: 'MIT',
meson_version: '>=0.52.0',
2019-08-21 22:07:37 +02:00
default_options: [
'c_std=c99',
'warning_level=3',
'werror=true',
],
)
cc = meson.get_compiler('c')
add_project_arguments(cc.get_supported_arguments([
'-Wno-missing-braces',
'-Wno-unused-parameter',
]), language: 'c')
liftoff_inc = include_directories('include')
2019-08-21 22:07:37 +02:00
drm = dependency('libdrm', include_type: 'system')
2019-08-21 22:07:37 +02:00
liftoff_deps = [drm]
2019-08-21 22:07:37 +02:00
liftoff_lib = library(
2019-08-21 22:07:37 +02:00
meson.project_name(),
files(
'alloc.c',
'device.c',
2019-08-21 22:07:37 +02:00
'layer.c',
'list.c',
'log.c',
2019-08-21 22:07:37 +02:00
'output.c',
'plane.c',
2019-08-21 22:07:37 +02:00
),
include_directories: liftoff_inc,
2019-08-21 22:07:37 +02:00
version: meson.project_version(),
dependencies: liftoff_deps,
2019-08-21 22:07:37 +02:00
install: true,
)
liftoff = declare_dependency(
link_with: liftoff_lib,
include_directories: liftoff_inc,
dependencies: liftoff_deps,
2019-08-21 22:07:37 +02:00
)
install_headers('include/libliftoff.h')
2019-08-21 22:07:37 +02:00
pkgconfig = import('pkgconfig')
pkgconfig.generate(
libraries: liftoff_lib,
2019-08-21 22:07:37 +02:00
version: meson.project_version(),
filebase: meson.project_name(),
name: meson.project_name(),
description: 'Hardware composer library',
)
2019-09-16 22:41:19 +02:00
subdir('example')
subdir('test')