refact: optimize regular expression initialization

add profiling test.

Signed-off-by: ComixHe <heyuming@deepin.org>
This commit is contained in:
ComixHe
2023-08-21 18:38:27 +08:00
committed by Comix
parent 06ee5e5899
commit 2bdb9e99ee
6 changed files with 50 additions and 7 deletions

View File

@ -15,6 +15,7 @@ set(THREADS_PREFER_PTHREAD_FLAG ON)
set(BUILD_EXAMPLES ON CACHE BOOL "Whether to build examples or not.")
set(DEBUG_MODE ON CACHE BOOL "start a dde-applicatiom-manager service for debug")
set(PROFILING_MODE OFF CACHE BOOL "run a valgrind performance profiling.")
find_package(Qt6 REQUIRED COMPONENTS Core DBus Concurrent)
find_package(Threads REQUIRED)
@ -25,6 +26,10 @@ if(DEBUG_MODE)
add_compile_definitions(-DDEBUG_MODE)
endif()
if(PROFILING_MODE)
add_compile_definitions(-DDPROFILING_MODE)
endif()
add_subdirectory(src)
add_subdirectory(plugins)
add_subdirectory(apps)