diff --git a/debian/control b/debian/control index a1c3fad..30b0210 100644 --- a/debian/control +++ b/debian/control @@ -7,6 +7,7 @@ Build-Depends: debhelper-compat (= 11), pkg-config, libcap-dev, + libjemalloc-dev, qt5-qmake, qtbase5-dev, qttools5-dev, diff --git a/src/loader/CMakeLists.txt b/src/loader/CMakeLists.txt index a96a9d3..e108095 100644 --- a/src/loader/CMakeLists.txt +++ b/src/loader/CMakeLists.txt @@ -2,6 +2,10 @@ set(BIN_NAME dde-application-loader) pkg_check_modules(LIBCAP REQUIRED IMPORTED_TARGET libcap) +#TODO: use jemalloc to temporary circumvention of crash issues, +#find the root cause and remove jemalloc +pkg_check_modules(JEMALLOC REQUIRED IMPORTED_TARGET jemalloc) + set(SRCS ./main.cpp ../modules/tools/desktop_deconstruction.hpp @@ -36,6 +40,7 @@ add_executable(${BIN_NAME} ${SRCS}) target_link_libraries(${BIN_NAME} pthread PkgConfig::LIBCAP + PkgConfig::JEMALLOC stdc++fs Qt5::Core ) diff --git a/src/service/CMakeLists.txt b/src/service/CMakeLists.txt index d0d2030..5f44ee3 100644 --- a/src/service/CMakeLists.txt +++ b/src/service/CMakeLists.txt @@ -16,6 +16,10 @@ pkg_check_modules(GIO REQUIRED IMPORTED_TARGET gio-2.0 gio-unix-2.0) pkg_check_modules(GLib REQUIRED IMPORTED_TARGET glib-2.0) pkg_check_modules(QGSettings REQUIRED IMPORTED_TARGET gsettings-qt) +#TODO: use jemalloc to temporary circumvention of crash issues, +#find the root cause and remove jemalloc +pkg_check_modules(JEMALLOC REQUIRED IMPORTED_TARGET jemalloc) + qt5_add_dbus_adaptor(ADAPTER_SOURCES ../../dbus/org.deepin.dde.Application1.Manager.xml impl/application_manager.h @@ -62,6 +66,7 @@ target_link_libraries(${BIN_NAME} PkgConfig::GIO PkgConfig::GLib PkgConfig::QGSettings + PkgConfig::JEMALLOC ${DtkWidget_LIBRARIES} )