CMake: Add support to find LTTng-ust
CMake comes with a Find module for this, so use it in src/corelib/configure.cmake Change-Id: I8f4abcb32fb10513d67c3c959310eefaf7b56d3d Reviewed-by: Frederik Gladhorn <frederik.gladhorn@qt.io>
This commit is contained in:
parent
eb2ece3c59
commit
3acebfe6eb
@ -20,6 +20,8 @@ find_package(Atomic)
|
||||
set_package_properties(Atomic PROPERTIES TYPE OPTIONAL)
|
||||
find_package(WrapRt)
|
||||
set_package_properties(WrapRt PROPERTIES TYPE OPTIONAL)
|
||||
find_package(LTTngUST)
|
||||
set_package_properties(LTTngUST PROPERTIES TYPE OPTIONAL)
|
||||
find_package(PCRE2)
|
||||
set_package_properties(PCRE2 PROPERTIES TYPE REQUIRED)
|
||||
find_package(PPS)
|
||||
@ -713,7 +715,7 @@ qt_feature("commandlineparser" PUBLIC
|
||||
qt_feature("lttng" PRIVATE
|
||||
LABEL "LTTNG"
|
||||
AUTODETECT OFF
|
||||
CONDITION LINUX AND libs.lttng-ust OR FIXME
|
||||
CONDITION LINUX AND LTTNGUST_FOUND
|
||||
ENABLE INPUT_trace STREQUAL 'lttng' OR ( INPUT_trace STREQUAL 'yes' AND LINUX )
|
||||
DISABLE INPUT_trace STREQUAL 'etw' OR INPUT_trace STREQUAL 'no'
|
||||
)
|
||||
|
@ -69,6 +69,7 @@ def map_library(lib: str) -> Union[str, LibraryMapping, List[str]]:
|
||||
'libproxy': 'libproxy',
|
||||
'librt': 'WrapRt',
|
||||
'libudev': 'Libudev',
|
||||
'lttng-ust': LibraryMapping(package='LTTngUST', resultVariable="LTTNGUST"),
|
||||
'opengl': LibraryMapping(package="OpenGL", resultVariable="OpenGL_OpenGL"),
|
||||
'openssl_headers': LibraryMapping(package="OpenSSL", resultVariable="OPENSSL_INCLUDE_DIR", appendFoundSuffix=False),
|
||||
'pcre2': ['PCRE2', 'REQUIRED'],
|
||||
|
Loading…
Reference in New Issue
Block a user