dde-application-manager/misc/service/CMakeLists.txt
weizhixiang 9833e1d7fb chore: 修复AM初次启动占用大量内存的问题
修复AM初次启动占用大量内存的问题

Log:
Task: https://pms.uniontech.com/task-view-144887.html
Influence: 正常启动
Change-Id: I6f76ee7101dd846d55f37cec949b9201bc331cd0
2022-06-08 10:51:28 +08:00

16 lines
733 B
CMake
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

set(SERVICE_FILES
dde-application-manager.service
)
macro(install_symlink filepath wantsdir)
file(MAKE_DIRECTORY ${PROJECT_BINARY_DIR}/link/${wantsdir}/)
execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink ${CMAKE_INSTALL_PREFIX}/lib/systemd/user/${filepath} ${PROJECT_BINARY_DIR}/link/${wantsdir}/${filepath})
install(FILES ${PROJECT_BINARY_DIR}/link/${wantsdir}/${filepath} DESTINATION lib/systemd/user/${wantsdir}/)
endmacro(install_symlink)
# 安装service文件到用户service目录
install(FILES ${SERVICE_FILES} DESTINATION lib/systemd/user/)
# 添加软链接系统启动时被dde-session-initialized拉起
# install_symlink(dde-application-manager.service dde-session-initialized.target.wants)