meson: do not search for needless deps
If we don't want to use these deps, there's no good reason to search for them in the first place. This should shave a bit of time for the initial build. Signed-off-by: Erik Faye-Lund <kusmabite@gmail.com> Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
This commit is contained in:
parent
5010436e09
commit
5c2ff5773a
20
meson.build
20
meson.build
|
@ -691,9 +691,13 @@ if with_glvnd
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# TODO: make this conditional
|
# TODO: make this conditional
|
||||||
dep_valgrind = dependency('valgrind', required : false)
|
if with_valgrind != 'false'
|
||||||
if dep_valgrind.found() and with_valgrind
|
dep_valgrind = dependency('valgrind', required : with_valgrind == 'true')
|
||||||
pre_args += '-DHAVE_VALGRIND'
|
if dep_valgrind.found()
|
||||||
|
pre_args += '-DHAVE_VALGRIND'
|
||||||
|
endif
|
||||||
|
else
|
||||||
|
dep_valgrind = []
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# pthread stubs. Lets not and say we didn't
|
# pthread stubs. Lets not and say we didn't
|
||||||
|
@ -709,9 +713,13 @@ endif
|
||||||
|
|
||||||
# TODO: llvm-prefix and llvm-shared-libs
|
# TODO: llvm-prefix and llvm-shared-libs
|
||||||
|
|
||||||
dep_unwind = dependency('libunwind', required : false)
|
if with_libunwind != 'false'
|
||||||
if dep_unwind.found() and with_libunwind
|
dep_unwind = dependency('libunwind', required : with_libunwind == 'true')
|
||||||
pre_args += '-DHAVE_LIBUNWIND'
|
if dep_unwind.found()
|
||||||
|
pre_args += '-DHAVE_LIBUNWIND'
|
||||||
|
endif
|
||||||
|
else
|
||||||
|
dep_unwind = []
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# TODO: flags for opengl, gles, dri
|
# TODO: flags for opengl, gles, dri
|
||||||
|
|
|
@ -138,15 +138,17 @@ option(
|
||||||
)
|
)
|
||||||
option(
|
option(
|
||||||
'valgrind',
|
'valgrind',
|
||||||
type : 'boolean',
|
type : 'combo',
|
||||||
value : true,
|
value : 'auto',
|
||||||
description : 'Build with valgrind support if possible'
|
choices : ['auto', 'true', 'false'],
|
||||||
|
description : 'Build with valgrind support'
|
||||||
)
|
)
|
||||||
option(
|
option(
|
||||||
'libunwind',
|
'libunwind',
|
||||||
type : 'boolean',
|
type : 'combo',
|
||||||
value : true,
|
value : 'auto',
|
||||||
description : 'Use libunwind for stack-traces if possible'
|
choices : ['auto', 'true', 'false'],
|
||||||
|
description : 'Use libunwind for stack-traces'
|
||||||
)
|
)
|
||||||
option(
|
option(
|
||||||
'build-tests',
|
'build-tests',
|
||||||
|
|
Loading…
Reference in New Issue