mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 14:56:36 +00:00
meson: make C++ compiler optional
It's only used to build tests to see if our headers are C++ clean.
This commit is contained in:
parent
ce439995c0
commit
fe5111e71d
3 changed files with 10 additions and 4 deletions
2
common
2
common
|
@ -1 +1 @@
|
|||
Subproject commit 29046b89d80bbca22eb222c18820fb40a4ac5bde
|
||||
Subproject commit 48a5d85ebf4a0bad1c997c83100f710fe2154fbf
|
|
@ -1,4 +1,4 @@
|
|||
project('gstreamer', 'c', 'cpp',
|
||||
project('gstreamer', 'c',
|
||||
version : '1.13.0.1',
|
||||
meson_version : '>= 0.40.1',
|
||||
default_options : [ 'warning_level=1',
|
||||
|
|
|
@ -105,10 +105,16 @@ core_tests = [
|
|||
[ 'gst/gstevent.c', not have_registry ],
|
||||
[ 'pipelines/stress.c', not have_registry ],
|
||||
[ 'generic/sinks.c', not have_registry ],
|
||||
[ 'gst/gstcpp.cc', not have_registry ],
|
||||
[ 'libs/gstlibscpp.cc', false ],
|
||||
]
|
||||
|
||||
# Make sure our headers are C++ clean
|
||||
if add_languages('cpp', required : false)
|
||||
core_tests += [
|
||||
[ 'gst/gstcpp.cc', not have_registry ],
|
||||
[ 'libs/gstlibscpp.cc', false ],
|
||||
]
|
||||
endif
|
||||
|
||||
test_defines = [
|
||||
'-UG_DISABLE_ASSERT',
|
||||
'-UG_DISABLE_CAST_CHECKS',
|
||||
|
|
Loading…
Reference in a new issue