mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2026-04-06 07:15:47 -04:00
meson: only require cpp for tests
Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
This commit is contained in:
parent
34306efeb2
commit
4c21053123
2 changed files with 10 additions and 8 deletions
|
|
@ -1,5 +1,5 @@
|
||||||
project(
|
project(
|
||||||
'wayland', 'c', 'cpp',
|
'wayland', 'c',
|
||||||
version: '1.19.90',
|
version: '1.19.90',
|
||||||
license: 'MIT',
|
license: 'MIT',
|
||||||
meson_version: '>= 0.52.1',
|
meson_version: '>= 0.52.1',
|
||||||
|
|
|
||||||
|
|
@ -64,15 +64,17 @@ executable(
|
||||||
dependencies: test_runner_dep
|
dependencies: test_runner_dep
|
||||||
)
|
)
|
||||||
|
|
||||||
test(
|
if add_languages('cpp')
|
||||||
'cpp-compile-test',
|
test(
|
||||||
executable(
|
|
||||||
'cpp-compile-test',
|
'cpp-compile-test',
|
||||||
'cpp-compile-test.cpp',
|
executable(
|
||||||
wayland_server_protocol_h,
|
'cpp-compile-test',
|
||||||
include_directories: src_inc
|
'cpp-compile-test.cpp',
|
||||||
|
wayland_server_protocol_h,
|
||||||
|
include_directories: src_inc
|
||||||
|
)
|
||||||
)
|
)
|
||||||
)
|
endif
|
||||||
|
|
||||||
sed_path = find_program('sed').path()
|
sed_path = find_program('sed').path()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue