Commit Graph

15 Commits

Author SHA1 Message Date
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
ShootingStarDragons db5ae947fe feat(tocmake): tocmake
Change the build system to cmake

Log: use cmake
2022-08-16 07:50:54 +00:00
guoyao c6629ebb55 chore: adapt REUSE license header
开源合规

Log: 开源合规
2022-08-11 14:02:36 +08:00
sunkang b9205142b7 feat: 适配多版本合并(移除冲突添加依赖)
1. 移除prf文件,全部移动到libdtkcommon包中
2. 移除cmake文件夹中的文件,移动到libdtkcommon包中
3. 移除src/com.deepin.dtk.gschema.xml文件,移动到libdtkcommon包中
4. 修改control文件,添加依赖libdtkcommon包

Log: dtkcore多版本前的适配版本(移除冲突)
Change-Id: Iac4310cef55ab2bf31478e905d751aa121fb4078
2021-03-01 19:39:05 +08:00
ck 562b0e8c37 fix: correct tools output message typo
打印信息有误,更新api.json

Log: 修复工具输出信息有误的地方
Change-Id: I0eb72cb6162882e083d931318672b008dfdb0cf1
Reviewed-on: http://gerrit.uniontech.com/c/dtkcore/+/5078
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: caitongxun <caitongxun@uniontech.com>
Reviewed-by: chenke <chenke@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-09-16 17:01:59 +08:00
ck 523a51ab69 feat: os-version 系统识别方案新接口
根据系统识别方案实现新的接口

Log: 系统识别方案新接口
Task: https://pms.uniontech.com/zentao/task-view-30524.html
Change-Id: I9e1b95a0e85d40c97164b2dd95090bd1d4abf2f9
Reviewed-on: http://gerrit.uniontech.com/c/dtkcore/+/506
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: chenke <chenke@uniontech.com>
Reviewed-by: zhangjide <zhangjide@uniontech.com>
Tested-by: <mailman@uniontech.com>
2020-07-24 01:09:36 +00:00
Gary Wang 57fc346a46 license: switch to LGPLv3 license 2020-04-24 14:44:07 +08:00
Gary Wang 63d6f5c4b3 feat: support get installed memory size from lshw 2020-03-18 16:39:07 +08:00
Gary Wang 0f2b21af82 fix: stderr warning from deepin-os-release tool 2020-03-18 09:37:12 +08:00
Gary Wang 6884be6f68 feat: new interface for getting information of different organization 2019-11-28 15:58:22 +08:00
zccrs a64a8da288 refactor: adjust responsibility of the prf files
prf files:
 * dtk_build_config.prf: 只用于dtk模块,包含一些编译
   中需要的变量(如版本号,文件名等)
 * dtk_build.prf: 只用于dtk模块,为模块编译添加一些
   必要的信息,以及动态生成一些源文件(如 dtkcore_config.h)
 * dtk_cmake.prf: 只用于dtk模块,在编译过程中生成
   模块对应的的cmake package文件,便于在cmake项目中引入库
 * dtk_module.prf: 只用于dtk模块,生成一个qmake模块对应的
   pri文件,便于在qmake项目中引入库
 * dtk_translation.prf: 只用于dtk模块,封装了模块内翻译文件的
   生成以及安装的操作
 * dtk_qmake.prf: dtk库提供的通用方法,可用于任意qmake项目,
   包含了获取系统版本号、当前构建平台信息等一些变量的定义
2019-07-30 17:01:17 +08:00
Felix Yan a3873dc5f4 chore: correct a typo 2019-05-07 17:47:44 +08:00
Gary Wang cbeb47c97e fix: deepin-os-release support cpu model and other info query
Now support:
--cpu-model, --memory-size, --disk-size

Now with better help output.

Change-Id: I52115e66db0b14ee18854158c231650c7daa530c
2019-02-17 17:33:07 +08:00
zccrs 432ad80de0 refactor: fallback to lsb-release if same property is empty on os-release
feat: add deepin-version property

Change-Id: I3a58f24a256b5a64f301ce3e8cd02dd1dbef449f
2018-09-12 09:20:47 +08:00
zccrs 16faf6c84d feat: add DSysInfo class
feat: add the “dtk_qmake.prf” feature of qmake

Change-Id: I6ed77c13e0233d59b48b160c640d5a8c68c4dadf
2018-08-16 14:23:40 +08:00