mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-31 20:48:56 +00:00
meson: build more tests and add options to disable tests and examples
This commit is contained in:
parent
1555143299
commit
0dae3a007d
3 changed files with 19 additions and 2 deletions
|
@ -89,6 +89,10 @@ gir_init_section = [ '--add-init-section=extern void gst_init(gint*,gchar**);' +
|
|||
'gst_init(NULL,NULL);' ]
|
||||
|
||||
subdir('gst')
|
||||
subdir('tests')
|
||||
subdir('examples')
|
||||
if get_option('tests')
|
||||
subdir('tests')
|
||||
endif
|
||||
if get_option('examples')
|
||||
subdir('examples')
|
||||
endif
|
||||
subdir('pkgconfig')
|
||||
|
|
|
@ -5,3 +5,7 @@ option('with-package-name', type : 'string',
|
|||
description : 'package name to use in plugins')
|
||||
option('with-package-origin', type : 'string', value : 'Unknown package origin',
|
||||
description : 'package origin URL to use in plugins')
|
||||
option('tests', type : 'boolean', value : true,
|
||||
description : 'Build and enable unit tests')
|
||||
option('examples', type : 'boolean', value : true,
|
||||
description : 'Build the examples')
|
||||
|
|
|
@ -1,3 +1,12 @@
|
|||
if host_machine.system() != 'windows'
|
||||
subdir('check')
|
||||
endif
|
||||
|
||||
test_cleanup_exe = executable('test-cleanup', 'test-cleanup.c',
|
||||
dependencies: gst_rtsp_server_dep)
|
||||
|
||||
test_reuse_exe = executable('test-reuse', 'test-reuse.c',
|
||||
dependencies: gst_rtsp_server_dep)
|
||||
|
||||
test('test-cleanup', test_cleanup_exe)
|
||||
test('test-reuse', test_reuse_exe)
|
||||
|
|
Loading…
Reference in a new issue