build: DDE_DEBUG_MODE->USE_DEBUG_DBUS_NAME

Signed-off-by: black-desk <me@black-desk.cn>
This commit is contained in:
black-desk
2023-08-30 12:12:53 +08:00
committed by Comix
parent c85f3d0950
commit 3df26e4fc2
5 changed files with 9 additions and 18 deletions

View File

@ -13,8 +13,8 @@ set(CMAKE_AUTORCC ON)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
set(THREADS_PREFER_PTHREAD_FLAG ON)
set(BUILD_EXAMPLES ON CACHE BOOL "Whether to build examples or not.")
set(DDE_DDE_DEBUG_MODE ON CACHE BOOL "start a dde-applicatiom-manager service for debug")
set(BUILD_EXAMPLES OFF CACHE BOOL "Whether to build examples or not.")
set(DDE_AM_USE_DEBUG_DBUS_NAME OFF CACHE BOOL "build a dbus service using a different bus name for debug.")
set(PROFILING_MODE OFF CACHE BOOL "run a valgrind performance profiling.")
find_package(Qt6 REQUIRED COMPONENTS Core DBus Concurrent)
@ -22,8 +22,8 @@ find_package(Threads REQUIRED)
set(APP_LAUNCH_HELPER_BIN app-launch-helper)
if(DDE_DEBUG_MODE)
add_compile_definitions(-DDDE_DEBUG_MODE)
if(DDE_AM_USE_DEBUG_DBUS_NAME)
add_compile_definitions(-DDDE_AM_USE_DEBUG_DBUS_NAME)
endif()
if(PROFILING_MODE)