1 Star 0 Fork 0

deepin-community / dde-file-manager

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
install_dconfig.cmake 989 Bytes
一键复制 编辑 原始数据 按行查看 历史
# expect that all dconfigs of plugin is saved in ./assets/configs
function(INSTALL_DCONFIG CONFIG_NAME)
set(DConfigPath ${CMAKE_SOURCE_DIR}/assets/configs)
message("DConfigPath: ${DConfigPath}")
set(DFMAppId "org.deepin.dde.file-manager")
set(ConfigName ${CONFIG_NAME})
if (DEFINED DSG_DATA_DIR)
message("-- DConfig is supported by DTK")
message("---- AppId: ${DFMAppId}")
message("---- Base: ${DConfigPath}")
message("---- Files: ${DConfigPath}/${ConfigName}")
dconfig_meta_files(APPID ${DFMAppId}
BASE ${DConfigPath}
FILES ${DConfigPath}/${ConfigName})
else()
set(DSG_DATA_DIR ${CMAKE_INSTALL_PREFIX}/share/dsg)
message("-- DConfig is NOT supported by DTK, install files into target path")
message("---- InstallTargetDir: ${DSG_DATA_DIR}/configs")
install(FILES ${DConfigPath}/${ConfigName} DESTINATION ${DSG_DATA_DIR}/configs/${DFMAppId})
endif()
endfunction()
1
https://gitee.com/deepin-community/dde-file-manager.git
git@gitee.com:deepin-community/dde-file-manager.git
deepin-community
dde-file-manager
dde-file-manager
master

搜索帮助