Commit Graph

451 Commits

Author SHA1 Message Date
ck 1b07dacb79 feat: update Log license
1. 本次修改为了保证接口兼容头文件部分
的接口定义基本没有变动,包括文件名也是不变的。
但是实现部分做了一些调整,在原有实现的基础上做了
一些改进,包括不限于编码风格和部分定制化的修改。
2. 删除log目录下的无用 LICENSE 文件
3. 更新根目录下的 LICENSE 文件,LGPL-3.0-or-later

Log: none
Change-Id: I23e12fc3cff2ba1221586aa70fcb898bd4f15225
2022-10-21 14:21:47 +08:00
heyuming 01fc362af0 chore: change Dexpected to DExpected
Derror和Dunexpected同理

Log: Dexpected改名为DExpected
2022-10-20 15:26:21 +08:00
heyuming d7cd2fd226 docs: add docs for Derror and Dexpected class
Log: 加入Derror和Dexpected的文档
2022-10-20 14:35:42 +08:00
heyuming ae532db64d feat: add Derror class
Log:加入Derror错误类
2022-10-20 14:35:42 +08:00
heyuming 68952c80d0 feat: add Dexpected class
Dexpected作为错误处理模板类,Dunexpected作为辅助类

Log:加入Dexpected类
2022-10-20 14:35:42 +08:00
deepin-admin-bot 9371813c93 chore: Sync by 6fbf8e00b9
sync by github workflow

Log: none
Influence: none
2022-10-14 05:24:48 +00:00
rewine 8ce7d3e3c7 feat: Optimize compilation parameters
Log: Optimize compilation parameters
2022-10-09 07:21:28 +00:00
guoyao 1b4b0c229a fix(DDBusInterface): can not emit property changed signal
can not emit property changed signal

Log:
2022-09-29 09:04:34 +08:00
rewine 563a954d9c feat: set DtkCore_LIBRARY_DIRS
Log: set DtkCore_LIBRARY_DIRS
2022-09-28 01:06:58 +00:00
liuheng 42bd299eb2 chore: update changelog
update changelog

Log:
2022-09-21 14:34:00 +08:00
ck f1c10cbbff chore: 微调 ddbusinterface 类
1. 去除编译警告,用 static 修饰变量
2. 空指针检测
3. 加上dtkcore 的 namespace

Log: none
Influence: none
Change-Id: Ibf8b72a01f4450f0fdac54a2f6f7040535dd75ee
2022-09-21 13:21:07 +08:00
rewine 17c429611f chore: use SameMajorVersion in version file
Log: dtk 5 与 dtk 6 不保证兼容,使用 SameMajorVersion 更好
2022-09-20 09:04:21 +00:00
heyuming 24313e806b feat: add ddbusinterface
增加ddbusinterface2并且修改相关cmake文件

Log:增加ddbusinterface类
2022-09-14 10:32:28 +08:00
rewine 363b612ef7 chore(tools): remove deprecated script
Log: remove deprecated script
2022-09-08 16:01:54 +08:00
rewine e3f7f6bbd9 fix: don't check DtkCore_TOOL_DIR cause split pkgs
Log: deepin 中,tool 会被分到和 dev 不同的包,因此 dev 提供的 config.cmake  不应该检查
DtkCore_TOOL_DIR 是否存在
2022-09-08 14:38:00 +08:00
rewine 40324bf909 fix: use FULL install path
Log: 安装路径使用绝对路径, INCLUDE_INSTALL_DIR 会传给 .pc 文件
2022-09-08 01:53:37 +00:00
rewine 5321d477ad feat: use CMakePackageConfigHelpers to generate better config.cmake
1. 对 CMAKE_INSTALL_PREFIX 默认值修改移动到根目录 CMakeLists.txt
2. 增加 INCLUDE_INSTALL_DIR TOOL_INSTALL_DIR 变量化简写法
3. 使用专门处理 config.cmake 的 configure_package_config_file 函数代替 configure_file
4. 使用 write_basic_package_version_file 生成 cmake 用的版本文件
5. 补充 pkg-config 的 -L 参数
6. 使用更普适的方法配置 pkg-config 内路径
2022-09-07 10:01:28 +00:00
rewine 513d12a0c1 chore(mkspecs): define mkspecs self
Log: mkspecs path
2022-09-06 06:37:03 +00:00
rewine 7b5422934f chore: use DSG_PREFIX_PATH set PREFIX
Log: use DSG_PREFIX_PATH set PREFIX
2022-09-06 06:37:03 +00:00
chenhongtao 068a6d9688 fix(shell): wrong target
A mistake, since the target name changed, the target name in shell
should also change

Log: fix recoveryshell
2022-09-06 06:16:31 +00:00
Chen Bin e221e232fc fix: Build failed using clang
const 类成员函数下的成员变量默认会添加 const 属性,
而 QMutexLocker 的参数需要接收一个非 const 的变量,
出现编译错误。这种情况下,需要将成员变量修改为
mutable。

Log:
Change-Id: I573b3a258a837037717b9d646977886dba45c5d8
2022-09-01 11:07:49 +08:00
Wang Zichong 71bb1cd1dd fix: wrong option() usage in CMakeLists.txt
修复错误的 option() 用法

Log:
2022-09-01 02:50:10 +00:00
Ye ShanShan f1c4f76f1a chore: Modify some nonstandard writing
Change Warning log to Debug.
  Rename GlobalUID to InvalidUID avoiding to misunderstand.
  cache saved only it's setValue has been called.

Log: 移除错误的输出警告,当cache被修改后才保存
Influence: 如果没有设置值,再不会生成缓存文件
Change-Id: I1f71513e91bef3412f593281e68fea44801fe07b
2022-08-31 03:51:37 +00:00
Ye ShanShan 9bdb33a201 fix: DConfig can't load meta file
PREFIX's value is error when qmake to cmake, and it causes
dde-dconfig-daemon can't load meta file.

Log: PREFIX未赋值,导致查找配置文件路径错误
Influence: 配置中心服务异常,不能正确加载配置信息
Change-Id: Ib0850d40ff62ebf6673bd410afa3f9587a2b3413
2022-08-31 11:47:12 +08:00
myml a58c432421 fix: README link
fix 'Application Specification' link url
2022-08-31 11:16:57 +08:00
deepin-admin-bot 22a7a7c9b6 "chore: Sync by " 2022-08-30 09:11:22 +00:00
chenhongtao 552c42794e chore(package): unit test, coverage
use better optionname and use test , make test link to -lgcov , then
coverage can be caculated. And use ctest , the cmake command to run
tests

fix test-recoverage bash scipts

Log: option name changed , use ctest command, fix test-recoverage script
2022-08-30 08:14:36 +00:00
chenhongtao d0c66b03a6 feat(doc): add package for doc
build the package for doc

Log: build package of doc
2022-08-29 09:33:59 +08:00
Chen Bin 9cdc9e7741 feat: add the permission management for files
Use DCapManager class to unify privilege management on
whether to open files or not.

By registering a special file engine, the scope of action
after registration is global unless called the unregister
function manually.

By default, the application can still access some directories
and files with permissions after it is started, but when it
access files beyond the scope of these directories, it will
not get any information.

The default directory includes: Home path; Cache path; DSG path
XDG path etc.

Log:
Influence: null
Change-Id: I0fed6051addc56001b382fc34f73b046c0e4aca2
2022-08-26 11:45:17 +08:00
Ye ShanShan 066f34ede8 chore: Add zh_CN readme
add README.zh_CN.md

Log: 添加中文说明文档
Influence: none
Change-Id: Ic45a17adbfd068b3036aae83524791fc7f602b81
2022-08-26 10:13:23 +08:00
Wang Zichong a4ee7c1275 fix: missing include folder while generating documentation
添加项目转换为 CMake 后生成文档缺少的 include 目录

Log:
2022-08-25 13:30:56 +08:00
xzl 1750f9811b chore: update REUSE license header
更新开源合规内容

Log: 更新开源合规内容
2022-08-19 13:05:01 +08:00
Felix Yan 5109a018ab chore: fix a typo in dfilewatcher.cpp
Correct a typo.

Log: Fix a typo in dfilewatcher.cpp
2022-08-19 10:29:21 +08:00
ShootingStarDragons c2ab630d91 chore(win32): Add win32 files and delete pri files
Delete all pri files and add win32 files back to CMakeLists.txt

Log: add win32 file back to CMakeLists.txt
2022-08-17 06:06:02 +00:00
ck 165921354d fix(build): invalid digit "8" in octal constant
when BUILD_VERSION start with 0 was recognized as octal

Log:
Influence: debian build
Change-Id: I0d9cb1518b4250b5f50408651d8fab66f469bebb
2022-08-17 13:03:59 +08:00
deepin-bot[bot] c19f743895
chore: Sync by 8fb17418f4 (#89)
chore: Sync by 8fb17418f4
2022-08-16 09:33:47 +00:00
ShootingStarDragons db5ae947fe feat(tocmake): tocmake
Change the build system to cmake

Log: use cmake
2022-08-16 07:50:54 +00:00
deepin-bot[bot] b2de0dd2e2
chore: Sync by ab82576125 (#87)
chore: Sync by ab82576125
2022-08-16 00:14:15 +00:00
Hillwood Yang a0817dffb4 fix: link to dl
It should link to dl for some distrbutions. For example, openSUSE.
The compiling won't be success without this link.

Log:
2022-08-15 14:55:00 +08:00
deepin-bot[bot] c859224ee7
chore: Sync by (#86)
chore: Sync by
2022-08-15 03:03:51 +00:00
deepin-bot[bot] c0d423e8d1
chore: Sync by 1086c873ff (#85)
chore: Sync by 1086c873ff
2022-08-12 02:05:52 +00:00
deepin-bot[bot] 8f422c4d4f
chore: Sync by 8cd7951872 (#84)
chore: Sync by 8cd7951872
2022-08-11 08:52:07 +00:00
guoyao c6629ebb55 chore: adapt REUSE license header
开源合规

Log: 开源合规
2022-08-11 14:02:36 +08:00
zccrs 7b13e5c4b8 fix: fallback to the user directory if no a valid global config directory
In the not supported for DSG_APP_DATA environment, we can't get a valid
directory for the global config, then falied when saving data. In order
not to lose data, we can only fallback to storing it to the user
directory.

Also, allows to specify a fallback directory for DSG_APP_DATA on
compile, in order to never fallback to the user directory.

Log:
2022-08-04 14:30:03 +08:00
deepin-bot[bot] a597abb745
chore: Sync by fed570b6d7 (#77)
chore: Sync by fed570b6d7
2022-07-26 05:45:45 +00:00
deepin-bot[bot] 28215712ce
chore: Sync by (#76)
chore: Sync by
2022-07-21 10:02:26 +00:00
zccrs 9b9b96427a
fix: remove not supported syntax for README (#75)
Log:
2022-07-21 17:51:54 +08:00
deepin-bot[bot] 381fa7ca74
chore: Sync by (#73)
chore: Sync by
2022-07-19 09:10:25 +00:00
rewine 702a43dd09
feat: add NixOS for DSysInfo (#62)
Log: add NixOS for DSysInfo
2022-07-19 09:32:23 +08:00
Han Gao 6c2377c6da
feat: add Gentoo for DSysInfo (#63)
add gentoo define to DSysInfo

Signed-off-by: Han Gao <gaohan@deepin.org>
Co-authored-by: Han Gao <gaohan@deepin.org>
2022-07-18 17:18:11 +08:00