mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-05-02 16:38:13 +02:00
Added DBUS_ENABLE_STATS option to cmake buildsystem to keep in sync with autotools.
This commit is contained in:
parent
0161eb8c34
commit
110e06a78c
3 changed files with 10 additions and 0 deletions
|
|
@ -98,6 +98,8 @@ endif(NOT WIN32)
|
|||
#AC_ARG_ENABLE(asserts, AS_HELP_STRING([--enable-asserts],[include assertion checks]),enable_asserts=$enableval,enable_asserts=$USE_MAINTAINER_MODE)
|
||||
OPTION(DBUS_DISABLE_ASSERTS "Disable assertion checking" OFF)
|
||||
|
||||
option (DBUS_ENABLE_STATS "enable bus daemon usage statistics" OFF)
|
||||
|
||||
# do config checks
|
||||
INCLUDE(ConfigureChecks.cmake)
|
||||
|
||||
|
|
@ -557,6 +559,7 @@ message(" Building unit tests: ${DBUS_BUILD_TESTS} "
|
|||
message(" Building verbose mode: ${DBUS_ENABLE_VERBOSE_MODE} ")
|
||||
message(" Building w/o assertions: ${DBUS_DISABLE_ASSERTS} ")
|
||||
message(" Building w/o checks: ${DBUS_DISABLE_CHECKS} ")
|
||||
message(" Building bus stats API: ${DBUS_ENABLE_STATS} ")
|
||||
message(" installing system libs: ${DBUS_INSTALL_SYSTEM_LIBS} ")
|
||||
#message(" Building SELinux support: ${have_selinux} ")
|
||||
#message(" Building dnotify support: ${have_dnotify} ")
|
||||
|
|
|
|||
|
|
@ -74,6 +74,12 @@ set (BUS_SOURCES
|
|||
${XML_SOURCES}
|
||||
${DIR_WATCH_SOURCE}
|
||||
)
|
||||
if(DBUS_ENABLE_STATS)
|
||||
list(APPEND BUS_SOURCES
|
||||
${BUS_DIR}/stats.c
|
||||
${BUS_DIR}/stats.h
|
||||
)
|
||||
endif()
|
||||
|
||||
include_directories(${XML_INCLUDE_DIR})
|
||||
|
||||
|
|
|
|||
|
|
@ -25,6 +25,7 @@
|
|||
#cmakedefine DBUS_MICRO_VERSION @DBUS_MICRO_VERSION@
|
||||
#cmakedefine DBUS_VERSION ((@DBUS_MAJOR_VERSION@ << 16) | (@DBUS_MINOR_VERSION@ << 8) | (@DBUS_MICRO_VERSION@))
|
||||
#cmakedefine DBUS_VERSION_STRING "@DBUS_VERSION_STRING@"
|
||||
#cmakedefine DBUS_ENABLE_STATS
|
||||
|
||||
#define VERSION DBUS_VERSION_STRING
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue