weston/westinyplus/meson.build
Marius Vlad c335ec70af gitlab-ci: Expand CI job for building with a C++ compiler
This tests out if libweston can be built with a C++ compiler and catch
potential issues which we don't normally see.

We re-use one of the builds, the full-x86-64 one, and build this new
front-end alongside it.

Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
2025-02-06 10:21:22 +00:00

40 lines
844 B
Meson

project('westinyplus',
'c', 'cpp',
version: '0.0.90',
default_options: [
'warning_level=3',
'cpp_std=c++20',
'werror=true',
],
meson_version: '>= 1.0.0',
license: 'MIT/Expat',
)
cxx = meson.get_compiler('cpp')
add_project_arguments(
cxx.get_supported_arguments([
'-Wno-unused-parameter',
'-Wno-pedantic',
'-Wno-deprecated-declarations'
]),
language: 'cpp'
)
add_project_arguments([
'-DPACKAGE_STRING="westinyplus @0@"'.format(meson.project_version()),
'-D_GNU_SOURCE',
'-D_ALL_SOURCE',
],
language: [ 'cpp', 'c' ],
)
exe_westinyplus = executable(
'westinyplus',
sources: [ 'src/main.cpp' ],
dependencies: [ dependency('wayland-server'),
dependency('weston'),
dependency('libweston-14') ],
include_directories : include_directories('.'),
install: false
)